/* rereset.ai site layer. Tokens live in re-reset.css; do not redeclare them here. */

[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; scroll-padding-top: 76px; }
body{ overflow-x: hidden; }
img{ max-width: 100%; height: auto; display: block; }

.skip{
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green-900); color: var(--sand-50);
  padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus{ top: 8px; }

.rr-wrap{ padding-inline: clamp(16px, 4vw, 56px); }

/* ------------------------------------------------------------- header --- */
.top{
  position: sticky; top: 0; z-index: 20;
  background: oklch(98% 0.008 65 / 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__inner{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand{ display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); text-decoration: none; }
.brand__mark{ width: 34px; height: 34px; flex: none; }
.brand__word{ font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.2em; white-space: nowrap; }
.top__nav{ display: flex; align-items: center; gap: 4px; }
.top__link{
  display: none; color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 10px 12px; border-radius: var(--radius); min-height: 44px; align-items: center;
}
.top__link:hover{ color: var(--terracotta-800); }
.top__cta{ padding: 12px 16px; font-size: 0.9rem; }
/* Pricing stays in the header on phones, compact, next to Book a call. */
.top__link--keep{ display: inline-flex; padding: 10px 8px; }
@media (max-width: 719px){
  .top__inner{ gap: 8px; }
  .top__cta{ padding: 12px 14px; }
}
@media (max-width: 339px){ .top__link--keep{ display: none; } }
@media (min-width: 720px){
  .top__link--keep{ padding: 10px 12px; }
  .top__inner{ min-height: 72px; }
  .top__link{ display: inline-flex; }
  .top__cta{ margin-left: 8px; }
}

/* --------------------------------------------------------------- hero --- */
.hero{
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 11vw, 136px) clamp(56px, 9vw, 112px);
}
.hero__ring{
  position: absolute; right: -14vw; top: -6vw;
  width: min(70vw, 720px); height: auto; color: var(--gold-400); opacity: 0.35;
  pointer-events: none; z-index: -1;
}
/* Below 1024px the ring would cross the headline and lede. One ring per hero is
   optional, so it goes. */
@media (max-width: 1023px){ .hero__ring{ display: none; } }
.hero__inner{ position: relative; }
.hero h1{ color: var(--sand-50); max-width: 20ch; margin-bottom: var(--sp-md); }
.hero__lede{ font-size: var(--step-1); color: oklch(85% 0.02 175); max-width: 56ch; }
.hero__price{
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: var(--sp-lg) 0 var(--sp-md); max-width: none;
}
.hero__from{
  font-family: var(--font-display); font-size: var(--step-3); letter-spacing: -0.02em;
  color: var(--sand-50); font-variant-numeric: tabular-nums lining-nums;
}
.hero__terms{ color: oklch(82% 0.02 175); }
.hero__ctas{ display: flex; flex-wrap: wrap; gap: 12px; }
.hero .rr-btn:focus-visible{ outline-color: var(--gold-400); outline-offset: 3px; }
.rr-btn{ text-align: center; }
.rr-btn--ghost{ background: transparent; color: var(--sand-50); border-color: oklch(100% 0 0 / 0.45); }
.rr-btn--ghost:hover{ background: var(--sand-50); color: var(--green-900); }
@media (max-width: 420px){
  .hero__ctas .rr-btn{ flex: 1 1 100%; }
}

/* ------------------------------------------------------ section heads --- */
.sec-head{ margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-head--tight{ margin-bottom: var(--sp-md); }
.sec-num{
  display: block; margin-bottom: 12px;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1;
  color: var(--terracotta-800); font-variant-numeric: tabular-nums lining-nums;
}
.sec-head h2{ margin-bottom: var(--sp-sm); }
.sec-head .rr-lede{ margin-top: 0; }
.rr-lede{ color: var(--ink-muted); }
.fine{ font-size: var(--step--1); color: var(--ink-muted); }

/* Lead/support split. Base grid comes from re-reset.css; widen breakpoint a touch. */
.rr-grid-lead{ gap: var(--sp-md); }
@media (max-width: 799px){ .rr-grid-lead{ grid-template-columns: 1fr; } }
@media (min-width: 800px){ .rr-grid-lead{ grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 4vw, 56px); } }

.split{ display: grid; gap: var(--sp-md); }
@media (min-width: 900px){
  .split{ grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 5vw, 72px); }
  .split .sec-head{ position: sticky; top: 104px; align-self: start; }
}

/* ------------------------------------------------------------- demo --- */
.demo{ display: grid; gap: var(--sp-md); }
@media (min-width: 860px){
  .demo{ grid-template-columns: 1.7fr 1fr; align-items: start; }
  .demo__panel{ grid-column: 1; grid-row: 1; }
  .demo__pick{ grid-column: 2; grid-row: 1; }
}
.demo__hint{ margin-bottom: 12px; color: var(--ink-muted); }
.demo__pick{ display: grid; gap: 8px; align-content: start; }
.demo__tab{
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 12px 16px; text-align: left;
  font: 500 var(--step-0)/1.3 var(--font-body); color: var(--ink);
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.demo__tab:hover{ border-color: var(--terracotta-400); }
.demo__tab[aria-selected="true"]{ border-color: var(--terracotta-700); background: var(--terracotta-100); }
.demo__tabnum{
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 0.95rem; color: var(--terracotta-800); background: var(--surface);
}
.demo__tab[aria-selected="true"] .demo__tabnum{ border-color: var(--terracotta-700); }
.demo__note{ font-size: var(--step--1); color: var(--ink-muted); margin-top: 8px; }

.demo__panel{
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--elev-2);
}
.demo__panel > div{ padding: clamp(18px, 3vw, 28px); }
.demo__panel > div + div{ border-top: 1px solid var(--rule); }
.demo__who{
  display: block; margin-bottom: 8px;
  font-size: var(--step--1); font-weight: 700; color: var(--ink-muted);
}
.demo__qtext{ font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
.demo__a p{ font-size: var(--step-1); line-height: 1.5; }
.demo__src{ background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.demo__src ol{ margin: 0; padding-left: 1.4em; color: var(--ink-muted); }
.demo__src li{ padding: 2px 0; }
.demo__panel.is-swapping [data-slot]{ opacity: 0; }
.demo__panel [data-slot]{ transition: opacity var(--dur-base) var(--ease-out); }

/* ------------------------------------------------------- what we build --- */
.lead-item{ padding: clamp(24px, 4vw, 40px); }
.lead-item h3{ margin-bottom: var(--sp-sm); }
.lead-item p{ font-size: var(--step-1); line-height: 1.55; }
.rr-card h4{ margin-bottom: 8px; }
.rr-card__num{ color: var(--terracotta-800); font-family: var(--font-display); font-size: var(--step-0); letter-spacing: 0; }

/* -------------------------------------------------------------- tiers --- */
.tier__listhead{
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 700;
  letter-spacing: 0; margin: var(--sp-md) 0 12px;
}
.ticks{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 62ch; }
.ticks li{ position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); }
.ticks li::before{
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 12px; height: 6px; border-left: 2px solid var(--terracotta-700); border-bottom: 2px solid var(--terracotta-700);
  transform: rotate(-45deg);
}
.price{
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); align-self: start;
}
@media (min-width: 800px){ .price{ position: sticky; top: 104px; } }
.price p{ margin: 0; }
.price__name{ font-weight: 700; color: var(--ink-muted); }
.price__big{
  font-family: var(--font-display); font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.025em;
  margin-top: 8px !important; font-variant-numeric: tabular-nums lining-nums;
}
.price__from{ font-size: var(--step-1); letter-spacing: 0; color: var(--ink-muted); }
.price__unit{ color: var(--ink-muted); }
.price__then{ margin-top: var(--sp-md) !important; padding-top: var(--sp-sm); border-top: 1px solid var(--rule); font-size: var(--step-1); }
.price__then b{ font-weight: 700; }
.price__terms{ margin-top: 12px !important; font-size: var(--step--1); color: var(--ink-muted); }
.price__cta{ display: block; width: 100%; margin-top: var(--sp-md); }

/* -------------------------------------------------------------- steps --- */
.steps{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.step{ display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: var(--sp-md) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 600px){ .step{ grid-template-columns: 72px 1fr; } }
.step__n{ font-size: var(--step-3); line-height: 1; color: var(--terracotta-800); }
.step__when{ margin: 0 0 4px; font-size: var(--step--1); font-weight: 700; color: var(--ink-muted); }
.step__title{ font-size: var(--step-1); margin-bottom: 8px; }

/* ------------------------------------------------------------ example --- */
.facts{ margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); align-self: start; }
.facts__row{ display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 24px; }
.facts__row + .facts__row{ border-top: 1px solid var(--rule); }
.facts dt{ color: var(--ink-muted); }
.facts dd{ margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; }

/* ----------------------------------------------------------- you own it --- */
.exit{ align-self: start; padding: clamp(24px, 3vw, 32px); }
.exit__h{ font-size: var(--step-2); margin-bottom: var(--sp-sm); }
.exit__list{ margin: 0; padding-left: 1.3em; }
.exit__list li{ padding: 6px 0; }
.exit__list li::marker{ color: var(--terracotta-800); font-family: var(--font-display); }

/* ------------------------------------------------------------- founder --- */
.founder{ display: grid; gap: var(--sp-md); }
@media (min-width: 800px){ .founder{ grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 5vw, 72px); align-items: start; } }
.founder__photo{ margin: 0; max-width: 420px; }
.founder__photo img{ width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }

/* ----------------------------------------------------------------- FAQ --- */
.faq{ border-top: 1px solid var(--rule); }
.faq details{ border-bottom: 1px solid var(--rule); }
.faq summary{
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; min-height: 44px;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); line-height: 1.35;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--terracotta-700); border-bottom: 2px solid var(--terracotta-700);
  transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after{ transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover{ color: var(--terracotta-800); }
.faq details p{ padding-bottom: 20px; }

/* ----------------------------------------------------------- the form --- */
.book__head{ margin-inline: auto; text-align: left; max-width: 760px; }
.qf{
  max-width: 760px; margin-inline: auto;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
}
.qf__progress{ height: 4px; background: var(--sand-200); border-radius: 2px; overflow: hidden; }
.qf__bar{
  display: block; height: 100%; width: 100%; background: var(--terracotta-700);
  transform-origin: left; transform: scaleX(0.1667);
  transition: transform var(--dur-slow) var(--ease-out);
}
.qf__count{ margin: 12px 0 var(--sp-md); font-size: var(--step--1); font-weight: 700; color: var(--ink-muted); }
.qf fieldset{ border: 0; margin: 0; padding: 0; min-width: 0; }
.qf legend{
  padding: 0; margin-bottom: 8px;
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em;
}
.qf__help{ color: var(--ink-muted); margin-bottom: var(--sp-sm); }
.opts{ display: grid; gap: 8px; margin-top: var(--sp-sm); }
@media (min-width: 560px){ .opts--row{ grid-template-columns: 1fr 1fr; } }
.opt{
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.opt:hover{ border-color: var(--terracotta-400); }
.opt input{ width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--terracotta-700); }
.opt:has(input:checked){ border-color: var(--terracotta-700); background: var(--terracotta-100); }
.opt:has(input:focus-visible){ outline: 2px solid var(--terracotta-600); outline-offset: 2px; }
.opt--tier{ align-items: flex-start; }
.opt--tier input{ margin-top: 3px; }
.opt--tier b{ display: block; font-size: var(--step-1); }
.opt--tier em{ display: block; font-style: normal; color: var(--ink-muted); margin-top: 2px; }
.qf__other{ margin-top: var(--sp-sm); }
.qf__other label, .field label{ display: block; font-weight: 700; margin-bottom: 6px; }
.qf textarea, .qf input:not([type="checkbox"]):not([type="radio"]){
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: var(--panel); border: 1px solid var(--sand-300); border-radius: var(--radius);
}
.qf textarea:focus-visible, .qf input:focus-visible{ outline: 2px solid var(--terracotta-600); outline-offset: 1px; border-color: var(--terracotta-700); }
.qf [aria-invalid="true"]{ border-color: var(--terracotta-700) !important; }
.fields{ display: grid; gap: var(--sp-sm); margin-top: var(--sp-sm); }
@media (min-width: 560px){ .fields{ grid-template-columns: 1fr 1fr; } .field--wide{ grid-column: 1 / -1; } }
.opt-tag{ font-weight: 400; color: var(--ink-muted); }
.qf__error{ margin: var(--sp-sm) 0 0; color: var(--terracotta-800); font-weight: 700; }
.qf__nav{ display: flex; justify-content: space-between; gap: 12px; margin-top: var(--sp-md); padding-top: var(--sp-md); border-top: 1px solid var(--rule); }
.qf__nav #qf-next, .qf__nav #qf-submit{ margin-left: auto; min-width: 140px; }
.qf__nav button[disabled]{ opacity: 0.6; cursor: progress; }
.qf__done h3{ margin-bottom: var(--sp-sm); }
.qf__done h3:focus{ outline: none; }
.qf__cal{ margin-top: var(--sp-md); min-height: 620px; }
/* On narrow phones the card padding squeezes the booking widget until its
   month arrows touch the edge. Let the calendar use the full card width. */
@media (max-width: 400px){
  .qf__cal{ margin-inline: calc(-1 * clamp(20px, 4vw, 40px)); }
}
.qf__cal iframe{ width: 100%; min-height: 620px; border: none; overflow: hidden; display: block; }

/* -------------------------------------------------------------- footer --- */
.foot{ background: var(--surface-2); padding-block: var(--sp-lg); }
.foot__inner{ display: grid; gap: var(--sp-sm); }
.foot__line{ color: var(--ink-muted); margin: 0; }
.foot__nav{ display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__nav a{ color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.foot__copy{ font-size: var(--step--1); color: var(--ink-muted); margin: 0; }
@media (min-width: 800px){
  .foot__inner{ grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-md); }
  .foot__copy{ grid-column: 1 / -1; }
}

/* -------------------------------------------------------- resources page --- */
.page-head{ padding-block: clamp(48px, 8vw, 96px) var(--sp-lg); border-bottom: 1px solid var(--rule); }
.page-head h1{ max-width: 18ch; margin-bottom: var(--sp-md); }
.res-list{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.res-item{ display: grid; gap: 12px 24px; padding: var(--sp-lg) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px){ .res-item{ grid-template-columns: 96px 1fr; } }
.res-item .step__n{ font-size: var(--step-4); }
.res-item h2{ font-size: var(--step-2); margin-bottom: var(--sp-sm); }

/* --------------------------------------------------------------- a11y --- */
:focus-visible{ outline: 2px solid var(--terracotta-600); outline-offset: 2px; }
.hero :focus-visible{ outline-color: var(--gold-400); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .qf__bar, .demo__panel [data-slot]{ transition: none; }
}

.res-cta{ margin-top: var(--sp-lg); max-width: 760px; }
.res-cta__h{ font-size: var(--step-2); margin-bottom: var(--sp-sm); }

/* ---------------------------------------------------------------- 404 --- */
.page-head--404{ padding-block: clamp(64px, 12vw, 144px); border-bottom: 0; }
.page-head--404 h1{ max-width: 16ch; }
.page-head--404 .hero__ctas{ margin-top: var(--sp-md); }
