/*
 * Repeatwise public site: the few rules app.css does not have.
 * Source: site/assets/site.css. npm run build:site copies it to public/site.css.
 * app.css is loaded first and is not edited; everything here is scoped to body.site
 * unless it only adds a new class.
 */

/* ---- accent with enough contrast for white text (5.2:1 or better) ---- */

.site {
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --focus: #ffb487;
    --focus-ring: 0 0 0 3px rgba(255, 180, 135, 0.4);
    --wash-1: rgba(217, 72, 15, 0.2);
  }
}

/* ---- brand mark and the closing band: orange family only ---- */

.site .logo {
  background: linear-gradient(140deg, #e0551a 0%, #9a3412 100%);
}

.site .cta-band {
  background: radial-gradient(600px 240px at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(140deg, #7c2d12 0%, #c2410c 100%);
}

.site .cta-band p {
  color: rgba(255, 255, 255, 0.94);
}

.site .cta-band a:not(.btn) {
  color: #ffffff;
}

.site .cta-band .btn.primary {
  --btn-bg: #ffffff;
  --btn-fg: #7c2d12;
  --btn-line: #ffffff;
}

.site .cta-band .btn.primary:hover {
  --btn-bg: #fff1e8;
}

.site .cta-band .btn {
  white-space: normal;
  text-align: center;
}

/* ---- breadcrumb above a guide ---- */

.crumb {
  margin: 0 0 var(--s4);
  font-size: var(--fs-sm);
}

.crumb a {
  color: var(--text-dim);
}

/* ---- four-step process (copy, check, delete) ---- */

.steps4 {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps4 li {
  counter-increment: step;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s5);
  box-shadow: var(--shadow-xs);
}

.steps4 li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 650;
  font-size: var(--fs-sm);
  margin-bottom: var(--s3);
}

.steps4 strong {
  display: block;
  font-size: var(--fs-md);
  margin-bottom: 4px;
}

.steps4 p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

/* ---- price shown struck through in the example table ---- */

.was {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.92em;
}

.site .sitefoot .brand {
  color: var(--text);
}

/* ---- long words never push the page sideways ---- */

.legal,
.guide,
.mwrap .card,
.mwrap .plan {
  overflow-wrap: anywhere;
}

.sitefoot-brand p {
  overflow-wrap: anywhere;
}

/* Keep four choices readable using the existing plan components. */
.site .plans.plans-annual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

@media (max-width: 720px) {
  .site .plans.plans-annual {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- guides: the numbered how-to reads as steps ---- */

.guide ol[data-howto] {
  padding-left: 1.4rem;
}

.guide ol[data-howto] li {
  padding-left: 4px;
}

/* ---- the hero note and consent line stay readable on the wash ---- */

.hero-note.consent {
  margin-top: var(--s2);
}

@media (max-width: 1000px) {
  .steps4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .steps4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-body {
    padding: var(--s4);
  }

  .site .cta-band .row .btn {
    width: 100%;
  }
}

/* ---- Repeatwise accent on the shared Atesen system (AI-EKIP/TASARIM-SISTEMI-ATESEN.md) ---- */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

.site {
  --lp-display: "Plus Jakarta Sans", var(--font);
  --lp-brand: #c2410c;
  --lp-brand-hover: #9a3412;
  --lp-brand-text: #b13a0a;
  --lp-brand-wash: #fff1e8;
  --lp-brand-wash-strong: #fdd5bd;
  --lp-brand-glow: rgba(194, 65, 12, 0.42);
  --lp-tint: #fff7f2;
  --lp-tint-line: #f7dccb;
  --lp-band: #c2410c;
  --lp-band-ink: #9a3412;
  --lp-btn-radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site {
    --lp-brand-text: #ffa36e;
    --lp-brand-wash: rgba(217, 72, 15, 0.16);
    --lp-brand-wash-strong: rgba(217, 72, 15, 0.4);
    --lp-tint: #17110d;
    --lp-tint-line: #3a2417;
  }
}

/* ==========================================================================
   Landing system (29 Oct 2026). One grammar shared by the Atesen Xero tools;
   each product sets its own display
   face, brand colours and button shape in the token block above.
   Spec: design/SYSTEM.md. Everything is scoped to body.site.
   ========================================================================== */

.site {
  --lp-ink: var(--text);
  --lp-body: var(--text-2);
  --lp-muted: var(--text-dim);
  --lp-line: var(--border);
  --lp-shadow-shot: 0 1px 0 rgba(14, 21, 37, 0.04), 0 24px 48px -18px rgba(14, 21, 37, 0.22), 0 8px 18px -8px rgba(14, 21, 37, 0.1);
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
}

.site ::selection {
  background: var(--lp-brand-wash-strong);
  color: var(--lp-ink);
}

.site h1,
.site h2,
.site h3,
.site .brand {
  font-family: var(--lp-display);
}

.site h2 {
  letter-spacing: -0.02em;
}

.site a {
  text-underline-offset: 3px;
}

.site p,
.site li,
.site figcaption {
  text-wrap: pretty;
}

.site .card p,
.site .tile p,
.site .section-head p,
.site .checks li {
  max-width: 62ch;
}

.lp-h3 {
  text-wrap: balance;
}

/* ---- header: brand, pages, one action ---- */

.site .sitebar {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.site .brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site .logo {
  background: var(--lp-brand);
}

.site .sitebar .btn.primary {
  --btn-bg: var(--lp-brand);
  --btn-line: var(--lp-brand);
  border-radius: var(--lp-btn-radius);
}

.site .sitebar .btn.primary:hover {
  --btn-bg: var(--lp-brand-hover);
  --btn-line: var(--lp-brand-hover);
}

/* ---- buttons ---- */

.site .btn.primary {
  --btn-bg: var(--lp-brand);
  --btn-line: var(--lp-brand);
  --btn-fg: #ffffff;
}

.site .btn.primary:hover {
  --btn-bg: var(--lp-brand-hover);
  --btn-line: var(--lp-brand-hover);
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--lp-btn-radius);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--lp-ease), box-shadow 160ms var(--lp-ease), transform 160ms var(--lp-ease), color 160ms var(--lp-ease);
}

.lp-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms var(--lp-ease);
}

.lp-btn-primary {
  background: var(--lp-brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(14, 21, 37, 0.14), 0 6px 16px -6px var(--lp-brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lp-btn-primary:hover {
  background: var(--lp-brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(14, 21, 37, 0.16), 0 10px 22px -8px var(--lp-brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lp-btn-primary:hover svg {
  transform: translateX(3px);
}

.lp-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(14, 21, 37, 0.18);
}

.lp-btn-quiet {
  color: var(--lp-ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.lp-btn-quiet:hover {
  color: var(--lp-ink);
  background: var(--surface-2);
}

.lp-btn:focus-visible {
  outline: 3px solid var(--lp-brand-wash-strong);
  outline-offset: 2px;
}

/* ---- hero ---- */

.lp-hero {
  position: relative;
  padding: 8px 0 0;
  text-align: center;
}

.lp-hero h1 {
  max-width: 15.5em;
  margin: 0 auto;
  font-size: clamp(2.375rem, 1.35rem + 3.1vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--lp-ink);
  text-wrap: balance;
}

.lp-hero h1 .lp-accent {
  color: var(--lp-brand-text);
}

.lp-lede {
  max-width: 40em;
  margin: 18px auto 0;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--lp-body);
  text-wrap: pretty;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}

.lp-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--lp-body);
  font-size: 0.9375rem;
}

.lp-assure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lp-assure svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--lp-brand-text);
  stroke-width: 2.4;
}

.lp-consent {
  margin: 10px 0 0;
  font-size: var(--fs-sm);
  color: var(--lp-muted);
}

.lp-consent a {
  color: inherit;
}

/* ---- the product screenshot, framed as the app it is ---- */

.lp-stage {
  position: relative;
  margin: 36px 0 0;
  padding: 0 0 56px;
  isolation: isolate;
}

/* A tinted floor under the lower part of the screenshot, full bleed, no sideways scroll. */
.lp-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: 38%;
  bottom: 0;
  background: var(--lp-tint);
  border-top: 1px solid var(--lp-tint-line);
}

.lp-shot {
  margin: 0;
  border-radius: 14px;
  background: #f6f7f9;
  box-shadow: 0 0 0 1px rgba(14, 21, 37, 0.08), var(--lp-shadow-shot);
  overflow: hidden;
}

.lp-shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid #e6e8ee;
  color: #5f6878;
  font-size: 0.8125rem;
}

.lp-shot-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-shot-url svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.lp-shot-tag {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #3d4659;
  font-size: 0.75rem;
  font-weight: 600;
}

.lp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-caption {
  max-width: 46em;
  margin: 16px auto 0;
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--lp-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .lp-hero .lp-shot {
    animation: lp-rise 720ms var(--lp-ease) 120ms both;
  }
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- four true facts under the screenshot ---- */

.lp-facts {
  display: grid;
  grid: auto-flow / repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.lp-facts li {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--lp-tint-line);
}

.lp-facts svg {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  color: var(--lp-brand-text);
}

.lp-facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--lp-ink);
  font-size: 1rem;
  font-weight: 650;
}

.lp-facts span {
  display: block;
  color: var(--lp-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---- sections ---- */

.lp-section {
  padding: 96px 0 0;
}

.lp-section > h2,
.lp-head h2 {
  max-width: 20em;
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 720;
  color: var(--lp-ink);
  text-wrap: balance;
}

.lp-head p {
  max-width: 40em;
  margin: 16px 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--lp-body);
}

/* copy on one side, the real screen on the other */
.lp-split .lp-head h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.1vw, 2.25rem);
}

.lp-split {
  display: grid;
  grid: auto-flow / minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
}

.lp-split.lp-flip {
  grid: auto-flow / minmax(0, 1.4fr) minmax(0, 0.85fr);
}

.lp-split.lp-flip > .lp-figure {
  order: -1;
}

.lp-figure {
  margin: 0;
}

.lp-figure .lp-shot {
  box-shadow: 0 0 0 1px rgba(14, 21, 37, 0.08), 0 18px 36px -18px rgba(14, 21, 37, 0.2);
}

.lp-figure figcaption {
  margin-top: 12px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--lp-muted);
}

/* numbered steps: the order is the point */
.lp-steps {
  counter-reset: lp-step;
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.lp-steps li {
  counter-increment: lp-step;
  position: relative;
  margin: 0;
  padding-left: 52px;
}

.lp-steps li::before {
  content: counter(lp-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lp-brand-wash);
  color: var(--lp-brand-text);
  font-family: var(--lp-display);
  font-weight: 750;
  font-size: 0.9375rem;
  box-shadow: inset 0 0 0 1px var(--lp-tint-line);
}

.lp-steps strong {
  display: block;
  color: var(--lp-ink);
  font-size: 1.0625rem;
  font-weight: 650;
}

.lp-steps p {
  margin: 4px 0 0;
  color: var(--lp-body);
  font-size: 0.9875rem;
  line-height: 1.6;
}

.lp-steps code,
.lp-checks code {
  font-size: 0.86em;
}

/* plain checks: true statements, one line of proof each */
.lp-checks {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.lp-checks li {
  position: relative;
  margin: 0;
  padding-left: 32px;
  color: var(--lp-body);
  font-size: 0.9875rem;
  line-height: 1.6;
}

.lp-checks li svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  color: var(--lp-brand-text);
  stroke-width: 2.4;
}

.lp-checks strong {
  color: var(--lp-ink);
  font-weight: 650;
}

/* the re-create chain: four steps in a row, read left to right */
.lp-chain {
  display: grid;
  grid: auto-flow / repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.lp-chain li {
  position: relative;
  margin: 0;
  padding: 22px 24px 24px;
}

.lp-chain li + li {
  border-left: 1px solid var(--lp-line);
}

.lp-chain b {
  display: block;
  margin-bottom: 8px;
  color: var(--lp-brand-text);
  font-family: var(--lp-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-chain strong {
  display: block;
  color: var(--lp-ink);
  font-size: 1.0625rem;
  font-weight: 650;
}

.lp-chain p {
  margin: 6px 0 0;
  color: var(--lp-body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---- the rest of the page, in the same voice ---- */

.site .section {
  margin: 0;
  padding-top: 80px;
}

.site .section-head .kicker {
  display: none;
}

.site .section-head h2,
.site .section > h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 720;
}

.site .card {
  border-radius: 14px;
}

.site .plan {
  border-radius: 16px;
  padding: 26px;
}

.site .plan.featured {
  border-color: var(--lp-brand);
  box-shadow: 0 0 0 1px var(--lp-brand), 0 18px 36px -20px var(--lp-brand-glow);
}

.site .plan-flag {
  background: var(--lp-brand);
  color: #ffffff;
}

.site .plan h3 {
  font-size: 1.125rem;
}

.site .plan .btn {
  border-radius: var(--lp-btn-radius);
}

/* closing band: the product colour, one action */
.site .cta-band {
  margin-top: 96px;
  padding: 64px 40px;
  border-radius: 24px;
  background: var(--lp-band);
  color: #ffffff;
  text-align: center;
}

.site .cta-band h2 {
  margin: 0 auto;
  max-width: 18em;
  color: #ffffff;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.site .cta-band p {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.88);
}

.site .cta-band .row {
  justify-content: center;
}

.site .cta-band a:not(.btn):not(.lp-btn) {
  color: #ffffff;
}

.site .cta-band a.lp-btn.lp-btn-primary {
  background: #ffffff;
  color: var(--lp-band-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.site .cta-band a.lp-btn.lp-btn-primary:hover {
  background: var(--lp-brand-wash);
  color: var(--lp-band-ink);
}

.site .cta-band a.lp-btn.lp-btn-quiet {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.site .cta-band a.lp-btn.lp-btn-quiet:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.site .cta-band .small,
.site .cta-band .consent {
  color: #ffffff;
}

/* ---- responsive ---- */

@media (max-width: 1000px) {
  .lp-facts {
    grid: auto-flow / repeat(2, minmax(0, 1fr));
  }

  .lp-split,
  .lp-split.lp-flip {
    grid: auto-flow / minmax(0, 1fr);
    gap: 32px;
  }

  .lp-split.lp-flip > .lp-figure {
    order: 0;
  }

  .lp-chain {
    grid: auto-flow / repeat(2, minmax(0, 1fr));
  }

  .lp-chain li:nth-child(3) {
    border-left: 0;
  }

  .lp-chain li:nth-child(n + 3) {
    border-top: 1px solid var(--lp-line);
  }
}

@media (max-width: 640px) {
  .lp-hero {
    padding-top: 0;
  }

  .lp-lede {
    margin-top: 14px;
  }

  .lp-hero h1 {
    letter-spacing: -0.03em;
  }

  .lp-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 24px;
  }

  .lp-btn {
    width: 100%;
  }

  .lp-actions .lp-btn-quiet {
    min-height: 44px;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 1rem;
  }

  .lp-assure {
    gap: 6px 16px;
    font-size: 0.875rem;
    margin-top: 10px;
  }

  .lp-assure svg {
    width: 15px;
    height: 15px;
  }

  .lp-stage {
    margin-top: 28px;
    padding-bottom: 40px;
  }

  .lp-stage::before {
    top: 30%;
  }

  .lp-shot {
    border-radius: 12px;
  }

  .lp-shot-bar {
    height: 34px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .lp-facts {
    grid: auto-flow / minmax(0, 1fr);
    gap: 18px;
    margin-top: 32px;
  }

  .lp-facts li {
    display: grid;
    grid: auto-flow / 22px minmax(0, 1fr);
    column-gap: 14px;
  }

  .lp-facts li svg {
    grid-row: span 2;
    margin: 2px 0 0;
  }

  .lp-section {
    padding-top: 72px;
  }

  .lp-chain {
    grid: auto-flow / minmax(0, 1fr);
  }

  .lp-chain li + li {
    border-left: 0;
    border-top: 1px solid var(--lp-line);
  }

  .site .section {
    padding-top: 64px;
  }

  .site .cta-band {
    margin-top: 72px;
    padding: 44px 20px;
    border-radius: 18px;
  }

  .site .cta-band .row .lp-btn {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-shot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px -18px rgba(0, 0, 0, 0.6);
  }
}

.lp-section-inner {
  margin-top: 56px;
}

/* steps side by side above a full-width screen, so the screen reads at its real size */
.lp-steps-row {
  grid: auto-flow / repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.lp-figure-wide {
  margin-top: 48px;
}

.lp-checks-grid {
  grid: auto-flow / repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin-top: 36px;
}

@media (max-width: 1000px) {
  .lp-steps-row,
  .lp-checks-grid {
    grid: auto-flow / minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .lp-figure-wide {
    margin-top: 32px;
  }
}

.lp-steps-row.lp-steps-4 {
  grid: auto-flow / repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.lp-steps-row.lp-steps-4 li {
  padding-left: 0;
  padding-top: 50px;
}

@media (max-width: 1000px) {
  .lp-steps-row.lp-steps-4 {
    grid: auto-flow / repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lp-steps-row.lp-steps-4 {
    grid: auto-flow / minmax(0, 1fr);
  }

  .lp-steps-row.lp-steps-4 li {
    padding-top: 0;
    padding-left: 52px;
  }
}

/* alternating rows of copy and a real screen */
.lp-row {
  margin-top: 56px;
}

.lp-h3 {
  margin: 0;
  font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 720;
  color: var(--lp-ink);
}

.lp-text {
  margin: 12px 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--lp-body);
}

.lp-row .lp-checks {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .lp-hide-narrow {
    display: none;
  }

  .lp-row {
    margin-top: 40px;
  }
}

/* who it is for, set above the headline as a plain line (not a section label) */
.lp-context {
  margin: 0 0 14px;
  color: var(--lp-brand-text);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.005em;
}

/* the price, said next to the button that charges it */
.lp-price {
  max-width: 60em;
  margin: 14px auto 0;
  color: var(--lp-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.lp-price a {
  color: var(--lp-brand-text);
  font-weight: 600;
}

/* the same offer again after "how it works", on the product tint */
.lp-cta-inline {
  margin: 72px 0 0;
  padding: 44px 40px 40px;
  border: 1px solid var(--lp-tint-line);
  border-radius: 20px;
  background: var(--lp-tint);
  text-align: center;
}

.lp-cta-inline h2 {
  max-width: 22em;
  margin: 0 auto;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 720;
  color: var(--lp-ink);
  text-wrap: balance;
}

.lp-cta-inline > p:not(.lp-price) {
  max-width: 40em;
  margin: 12px auto 0;
  color: var(--lp-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.lp-cta-inline .lp-actions {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .lp-context {
    margin-bottom: 10px;
    font-size: 0.875rem;
  }

  .lp-price {
    font-size: 0.875rem;
    margin-top: 10px;
  }

  .lp-cta-inline {
    margin-top: 56px;
    padding: 32px 18px 28px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  /* the phone keeps the pain line; the "how" sits right below in the screenshot and the steps */
  .lp-lede .lp-more {
    display: inline;
  }

  .lp-consent {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}

/* a long list of guides stays one line until it is asked for */
.site .guides-all > summary,
.site .lp-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--lp-ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.site .guides-all > summary::-webkit-details-marker,
.site .lp-fold > summary::-webkit-details-marker {
  display: none;
}

.site .guides-all > summary::after,
.site .lp-fold > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lp-brand-text);
  border-bottom: 2px solid var(--lp-brand-text);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms var(--lp-ease);
}

.site .guides-all[open] > summary::after,
.site .lp-fold[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.site .guides-all > summary:hover,
.site .lp-fold > summary:hover {
  border-color: var(--border-strong);
}

.site .guides-all[open] > summary,
.site .lp-fold[open] > summary {
  margin-bottom: 20px;
}

.site .lp-fold {
  margin-top: 32px;
}

/* the order of the purchase, said once, right under the buttons */
.lp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--lp-ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.lp-flow strong {
  font-weight: 700;
}

.lp-flow svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--lp-brand-text);
}

@media (max-width: 640px) {
  .lp-flow {
    margin-top: 10px;
    font-size: 0.875rem;
    text-align: center;
  }

  .lp-flow svg {
    display: none;
  }

  .lp-hero .lp-price {
    margin-top: 6px;
    font-size: 0.8125rem;
  }

  .lp-hero .lp-assure {
    margin-top: 8px;
    gap: 2px 12px;
    font-size: 0.8125rem;
  }

  .lp-hero .lp-assure svg {
    width: 13px;
    height: 13px;
  }

  .lp-hero .lp-consent {
    margin-top: 6px;
    font-size: 0.75rem;
  }

  .lp-hero .lp-actions .lp-btn-quiet {
    min-height: 40px;
  }

  .lp-hero .lp-stage {
    margin-top: 14px;
  }
}

/* the purchase order sits with the buy button: under the pair on wide screens, between the two on a phone */
.lp-actions > .lp-flow {
  order: 3;
  flex-basis: 100%;
  margin: 2px 0 0;
}

@media (max-width: 640px) {
  .lp-actions > .lp-flow {
    order: 0;
    margin: 6px 0 2px;
  }

  .lp-hero .lp-actions {
    margin-top: 20px;
  }
}

/* a limit that decides whether to buy: one plain line next to the price, the reason on demand */
.lp-note {
  max-width: 44em;
  margin: 12px auto 0;
  color: var(--lp-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.lp-note > summary {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  padding: 5px 12px;
  border: 1px solid var(--lp-tint-line);
  border-radius: 12px;
  background: var(--lp-tint);
  color: var(--lp-ink);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.lp-note > summary::-webkit-details-marker {
  display: none;
}

.lp-note > summary::after {
  content: "Why?";
  color: var(--lp-brand-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-note[open] > summary::after {
  content: "Hide";
}

.lp-note > summary:focus-visible {
  outline: 2px solid var(--lp-brand);
  outline-offset: 2px;
}

.lp-note > p {
  margin: 10px auto 0;
}

@media (max-width: 640px) {
  .lp-hero .lp-note {
    margin-top: 10px;
    font-size: 0.8125rem;
  }

  .lp-hero .lp-note > summary {
    padding: 4px 10px;
  }
}

/* phone: the sample tag sits on the picture, so the first result shows above the fold */
@media (max-width: 640px) {
  .lp-shot-overlay {
    position: relative;
  }

  .lp-shot-overlay .lp-shot-bar {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .lp-shot-overlay .lp-shot-url {
    display: none;
  }

  .lp-shot-overlay .lp-shot-tag {
    box-shadow: 0 0 0 1px #e6e8ee;
    background: #ffffff;
  }
}

@media (max-width: 640px) {
  /* on a phone the headline already names the job; the lede says how it is done */
  .lp-lede .lp-pain {
    display: none;
  }
}
