/* ==========================================================================
   Full Auto AI | Home page
   Colors + fonts: design-system/full-auto-ai/MASTER.md
   Page rules:     design-system/full-auto-ai/pages/home.md (simple funnel, accent for CTAs only)
   ========================================================================== */

:root {
  /* Master palette */
  --color-background: #F6F1E7;
  --color-card: #FFFCF6;
  --color-muted: #EDE5D6;
  --color-foreground: #2B2420;
  --color-foreground-soft: #4A3F38;
  --color-muted-foreground: #66594F;
  --color-border: #E2D7C4;
  --color-border-strong: #CDBFA8;
  --color-primary: #A8461F;        /* CTA only */
  --color-primary-hover: #8F3A18;
  --color-on-primary: #FFFFFF;
  --color-ring: #A8461F;
  --color-surface-dark: #2F4A3A;   /* forest: offer card */
  --color-on-dark: #F6F1E7;
  --color-on-dark-muted: #D3DBCF;
  --color-on-dark-accent: #F3B793; /* CTA on forest */
  --color-border-dark: rgba(246, 241, 231, 0.2);
  --color-footer: #2B2420;
  --color-footer-muted: #CBBFB3;

  /* Master fonts */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space (spacious) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(43, 36, 32, 0.05), 0 18px 40px -24px rgba(43, 36, 32, 0.25);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--color-background); color: var(--color-foreground);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; cursor: pointer; }
svg { display: block; }
::selection { background: var(--color-primary); color: var(--color-on-primary); }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }
.offer__card :focus-visible { outline-color: var(--color-on-dark-accent); }

.skip-link { position: fixed; left: var(--space-md); top: -100px; z-index: 200; padding: .75rem 1rem; border-radius: 10px; background: var(--color-foreground); color: var(--color-on-dark); }
.skip-link:focus { top: var(--space-md); }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.015em; font-variation-settings: "opsz" 72;
}
.section-title em, .hero__title em { font-style: italic; font-weight: 500; }

/* ---------- Buttons + links (terracotta = booking actions only) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) ease, transform var(--dur) ease;
}
.btn:active { transform: scale(.98); transition-duration: var(--dur-fast); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
@media (hover: hover) { .btn--primary:hover { background: var(--color-primary-hover); } }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: var(--space-2xl);
  color: var(--color-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color var(--dur) ease;
}
@media (hover: hover) { .text-link:hover { color: var(--color-primary-hover); } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color var(--dur) ease, box-shadow var(--dur) ease; }
.nav.is-scrolled { background: rgba(246, 241, 231, .94); box-shadow: 0 1px 0 var(--color-border); }
@supports (backdrop-filter: blur(1px)) { .nav.is-scrolled { background: rgba(246, 241, 231, .82); backdrop-filter: blur(12px); } }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand__mark { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(9rem, 20vh, 12rem) var(--section); }
.hero__inner { display: grid; gap: var(--space-lg); justify-items: start; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6.6vw, 5.25rem);
  line-height: 1.04; letter-spacing: -0.025em; max-width: 15ch; font-variation-settings: "opsz" 96;
}
.hero__lede { max-width: 52ch; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--color-foreground-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-sm); }
.hero__note { font-size: .9375rem; color: var(--color-muted-foreground); }

/* One subtle entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise .7s var(--ease-out) both; }
  .hero__inner > :nth-child(2) { animation-delay: .08s; }
  .hero__inner > :nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Problem ---------- */
.problem { border-top: 1px solid var(--color-border); }
.problem__inner { display: grid; gap: var(--space-2xl); }
.problem__list { counter-reset: p; }
.problem__list li {
  counter-increment: p; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-md); align-items: baseline;
  padding-block: var(--space-lg); border-bottom: 1px solid var(--color-border);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--color-foreground);
}
.problem__list li:first-child { border-top: 1px solid var(--color-border); }
.problem__list li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); }
@media (min-width: 900px) { .problem__inner { grid-template-columns: 5fr 7fr; gap: var(--space-3xl); align-items: start; } }

/* ---------- Offer (the single forest card) ---------- */
.offer { background: var(--color-muted); }
.offer__card {
  display: grid; gap: var(--space-2xl); padding: clamp(var(--space-xl), 5vw, 4rem);
  background: var(--color-surface-dark); color: var(--color-on-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.offer__intro { display: grid; gap: var(--space-lg); align-content: start; justify-items: start; }
.offer__intro p { color: var(--color-on-dark-muted); font-size: 1.125rem; max-width: 34ch; }
.offer__card .btn--primary { background: var(--color-on-dark-accent); color: var(--color-foreground); }
@media (hover: hover) { .offer__card .btn--primary:hover { background: #F7C9AC; } }
.offer__list { display: grid; }
.offer__list li {
  position: relative; padding: var(--space-lg) 0 var(--space-lg) 2.5rem; border-top: 1px solid var(--color-border-dark);
  color: var(--color-on-dark-muted);
}
.offer__list li:last-child { border-bottom: 1px solid var(--color-border-dark); }
.offer__list li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--space-lg) + .2rem); width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-on-dark-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' fill='none' stroke='%232B2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.offer__list b { display: block; color: var(--color-on-dark); font-weight: 600; font-size: 1.125rem; margin-bottom: .15rem; }
@media (min-width: 900px) { .offer__card { grid-template-columns: 5fr 7fr; gap: var(--space-3xl); } }

/* ---------- How it works ---------- */
.steps__list { display: grid; gap: var(--space-xl); margin-top: var(--space-2xl); }
.steps__list li { display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--space-md); row-gap: var(--space-xs); }
.steps__num {
  grid-row: span 2; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--color-muted-foreground);
}
.steps__list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.25; }
.steps__list p { color: var(--color-foreground-soft); max-width: 36ch; }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); }
  .steps__list li { grid-template-columns: 1fr; padding-top: var(--space-lg); border-top: 2px solid var(--color-foreground); }
  .steps__num { grid-row: auto; margin-bottom: var(--space-md); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--color-border); }
.faq__inner { display: grid; gap: var(--space-2xl); }
.faq__list { border-top: 1px solid var(--color-border-strong); }
.faq__list details { border-bottom: 1px solid var(--color-border-strong); }
.faq__list summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg);
  min-height: 64px; padding-block: var(--space-lg); font-weight: 600; font-size: 1.125rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform var(--dur) ease;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { padding-bottom: var(--space-lg); max-width: 62ch; color: var(--color-foreground-soft); }
@media (min-width: 900px) { .faq__inner { grid-template-columns: 5fr 7fr; gap: var(--space-3xl); } }

/* ---------- Book (final CTA + Calendly) ---------- */
.book { background: var(--color-muted); }
.book__head { display: grid; gap: var(--space-md); justify-items: center; text-align: center; margin-bottom: var(--space-2xl); }
.book__head p { max-width: 50ch; color: var(--color-foreground-soft); font-size: 1.125rem; }
.book__head .section-title:focus { outline: none; }
.book__embed {
  position: relative; min-height: 320px; overflow: hidden;
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.book__embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.book__fallback { position: absolute; inset: 0; display: grid; place-content: center; padding: var(--space-xl); text-align: center; color: var(--color-muted-foreground); }
.book__fallback a { display: inline-block; padding-block: .6rem; color: var(--color-primary); font-weight: 600; }
.book__embed.is-loaded .book__fallback { display: none; }
.book__embed.is-loading, .book__embed.is-loaded { height: 1080px; }
@media (min-width: 768px) { .book__embed.is-loading, .book__embed.is-loaded { height: 760px; } }
.book__consent { display: grid; gap: var(--space-lg); justify-items: center; max-width: 46ch; margin-inline: auto; padding: clamp(var(--space-xl), 6vw, var(--space-3xl)) var(--space-lg); text-align: center; }
.book__consent > p:first-child { font-size: 1.125rem; color: var(--color-foreground-soft); }
.book__consent-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-sm) var(--space-lg); }
.book__consent .text-link { margin-top: 0; }
.book__consent-note { font-size: .9375rem; color: var(--color-muted-foreground); }
.book__consent-note a { color: var(--color-primary); }

/* ---------- Footer ---------- */
.footer { background: var(--color-footer); color: var(--color-on-dark); padding-block: var(--space-3xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-xl); }
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.footer__tag { color: var(--color-footer-muted); }
.footer__link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--color-on-dark-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid rgba(246, 241, 231, .16); font-size: .875rem; color: var(--color-footer-muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.footer__legal a, .footer__legal button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0;
  font: inherit; color: var(--color-footer-muted); text-decoration: underline; text-underline-offset: 4px; transition: color var(--dur) ease;
}
.footer__legal [aria-current="page"] { color: var(--color-on-dark); }
@media (hover: hover) { .footer__legal a:hover, .footer__legal button:hover { color: var(--color-on-dark); } }
.footer :focus-visible { outline-color: var(--color-on-dark-accent); }

/* ---------- Cookie consent banner ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.btn--outline { background: var(--color-card); color: var(--color-foreground); border: 2px solid var(--color-foreground); }
@media (hover: hover) { .btn--outline:hover { background: var(--color-foreground); color: var(--color-card); } }
.consent {
  position: fixed; z-index: 150; left: var(--space-md); right: var(--space-md); bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  display: grid; gap: var(--space-md); max-width: 520px; padding: var(--space-lg);
  background: var(--color-card); color: var(--color-foreground); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -20px rgba(43, 36, 32, .45);
}
.consent[hidden] { display: none; }
.consent__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.consent__text { font-size: .9375rem; line-height: 1.55; color: var(--color-foreground-soft); }
.consent__text a { color: var(--color-primary); font-weight: 600; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.consent__actions .btn { min-height: 48px; padding: 10px 14px; white-space: normal; text-align: center; }
@media (min-width: 640px) { .consent { left: var(--space-lg); right: auto; bottom: var(--space-lg); } }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(7rem, 16vh, 9rem) var(--section); }
.legal__inner { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; }
.legal__meta { margin-top: var(--space-sm); margin-bottom: var(--space-2xl); color: var(--color-muted-foreground); font-size: .9375rem; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.legal h3 { font-size: 1.0625rem; font-weight: 600; margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.legal p, .legal li { color: var(--color-foreground-soft); }
.legal p + p { margin-top: var(--space-md); }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: var(--space-sm); margin-top: var(--space-sm); }
.legal a { color: var(--color-primary); text-underline-offset: 3px; }
.legal strong { color: var(--color-foreground); }
.legal code { font-size: .9em; background: var(--color-muted); padding: .1em .35em; border-radius: 4px; }
.legal__table-wrap { overflow-x: auto; margin-top: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-card); }
.legal__table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; }
.legal__table caption { text-align: left; padding: var(--space-md) var(--space-md) 0; font-weight: 600; color: var(--color-foreground); }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: var(--space-md); border-top: 1px solid var(--color-border); }
.legal__table th { font-weight: 600; color: var(--color-foreground); }
.legal__inline-btn { padding: 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
