/* ==========================================================================
   SolarRun Maroubra - "Make your electricity bills fly away"
   Design read: local-business campaign landing (QR destination) for Randwick
   homeowners. Brand-led sunny language from the flyer: Poppins, SolarRun
   yellow + orange, ink text. Native CSS, no framework.

   Shape rule: buttons, pills and chips are full pill; inputs 14px;
   cards and images 24px. Nothing else.
   Z-index scale: nav 40, dock 30, content 1.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  /* brand (from the flyer) */
  --sun: #FEC225;
  --sun-2: #FCB514;
  --ember: #F68B1F;
  --on-sun: #16181D;

  /* light theme */
  --paper: #FDFDFC;
  --tint: #F1F2F4;
  --card: #FFFFFF;
  --ink: #16181D;
  --ink-2: #3A3E47;
  --mute: #5A5F69;
  --line: #DFE1E6;
  --field: #FFFFFF;
  --field-line: #B9BDC6;
  --accent-text: #9A4A00;      /* ember darkened for text on light (AA) */
  --danger: #B42318;
  --btn-bg: #16181D;
  --btn-fg: #FDFDFC;
  --btn-hover: #2B2E36;
  --shadow: 0 1px 2px rgb(60 45 10 / .06), 0 12px 32px -12px rgb(60 45 10 / .18);
  --hero-bg: linear-gradient(160deg, #FEC829 0%, #FEC225 45%, #FCB514 78%, #F9A51C 100%);

  --radius-card: 24px;
  --radius-field: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
    --paper: #111216;
    --tint: #17191E;
    --card: #1C1E24;
    --ink: #F3F3F0;
    --ink-2: #D2D4DA;
    --mute: #A3A8B2;
    --line: #2B2E36;
    --field: #15171B;
    --field-line: #4A4E58;
    --accent-text: #FFB25E;
    --danger: #FF8A7A;
    --btn-bg: #FEC225;
    --btn-fg: #16181D;
    --btn-hover: #FFD257;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    --hero-bg: radial-gradient(90% 80% at 78% 30%, rgb(254 194 37 / .22), transparent 60%), #111216;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #111216;
    --tint: #17191E;
    --card: #1C1E24;
    --ink: #F3F3F0;
    --ink-2: #D2D4DA;
    --mute: #A3A8B2;
    --line: #2B2E36;
    --field: #15171B;
    --field-line: #4A4E58;
    --accent-text: #FFB25E;
    --danger: #FF8A7A;
    --btn-bg: #FEC225;
    --btn-fg: #16181D;
    --btn-hover: #FFD257;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    --hero-bg: radial-gradient(90% 80% at 78% 30%, rgb(254 194 37 / .22), transparent 60%), #111216;
    color-scheme: dark;
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.lead { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.fine { font-size: .8125rem; line-height: 1.55; color: var(--mute); max-width: 90ch; }
.fine a, .form__legal a { color: inherit; text-underline-offset: 3px; }
.ref { color: inherit; text-decoration: none; font-weight: 600; padding-inline: 1px; }
.ref:hover { color: var(--accent-text); }

/* ---------- buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .25s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .925rem; }
.btn--lg { --pad-y: 1rem; --pad-x: 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 24px -12px rgb(22 24 29 / .55); }
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-2px); }
.btn--primary .ic { transition: transform .3s var(--ease-out); }
.btn--primary:hover .ic { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem .45rem .75rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; line-height: 1.3;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__logo { width: 132px; height: 26px; fill: var(--sun); }
.brand__place { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; margin-top: 2px; color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; font-size: .95rem; }
.nav__phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .nav__phone { display: none; }
  .brand__logo { width: 112px; height: 22px; }
  .nav .btn--sm { --pad-x: .95rem; font-size: .85rem; }
}
@media (max-width: 380px) { .nav .btn--sm { display: none; } .nav__phone { display: inline-flex; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hero-bg);
  color: var(--on-sun);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .hero { color: var(--ink); }
}
:root[data-theme="dark"] .hero { color: var(--ink); }
.hero__sun {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(60vw, 760px); aspect-ratio: 1; right: -8vw; top: -12%;
  background: radial-gradient(circle, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .18) 38%, transparent 68%);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .hero__sun { background: radial-gradient(circle, rgb(254 194 37 / .22) 0%, transparent 65%); }
}
:root[data-theme="dark"] .hero__sun { background: radial-gradient(circle, rgb(254 194 37 / .22) 0%, transparent 65%); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 24px;
  min-height: min(calc(100dvh - var(--nav-h)), 820px);
  padding-block: clamp(40px, 6vh, 72px);
}
.hero__copy { position: relative; z-index: 2; max-width: 600px; }
.pill--hero { background: rgb(255 255 255 / .6); color: var(--on-sun); box-shadow: inset 0 0 0 1px rgb(22 24 29 / .08); }
.pill--hero .ic { color: var(--accent-text); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .pill--hero { background: rgb(254 194 37 / .12); color: var(--sun); box-shadow: inset 0 0 0 1px rgb(254 194 37 / .3); }
:root:not([data-theme="light"]) .pill--hero .ic { color: var(--sun); }
}
:root[data-theme="dark"] .pill--hero { background: rgb(254 194 37 / .12); color: var(--sun); box-shadow: inset 0 0 0 1px rgb(254 194 37 / .3); }
:root[data-theme="dark"] .pill--hero .ic { color: var(--sun); }
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  text-wrap: balance;
}
.hero__title em { font-style: normal; display: inline-block; position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
  background: #FFFFFF; border-radius: 999px; opacity: .85;
  transform-origin: left; transform: scaleX(0); animation: underline 1s .5s var(--ease-out) forwards;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .hero__title em { color: var(--sun); }
:root:not([data-theme="light"]) .hero__title em::after { background: var(--sun); opacity: .25; }
}
:root[data-theme="dark"] .hero__title em { color: var(--sun); }
:root[data-theme="dark"] .hero__title em::after { background: var(--sun); opacity: .25; }
@keyframes underline { to { transform: scaleX(1); } }
.hero__sub { margin-top: 20px; font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 34ch; font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--ghost { color: var(--on-sun); border-color: rgb(22 24 29 / .8); }
.hero .btn--ghost:hover { background: var(--on-sun); color: var(--sun); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .hero .btn--ghost { color: var(--ink); border-color: rgb(243 243 240 / .6); }
:root:not([data-theme="light"]) .hero .btn--ghost:hover { background: var(--ink); color: var(--paper); }
}
:root[data-theme="dark"] .hero .btn--ghost { color: var(--ink); border-color: rgb(243 243 240 / .6); }
:root[data-theme="dark"] .hero .btn--ghost:hover { background: var(--ink); color: var(--paper); }

.hero__stage {
  position: relative; height: 100%; min-height: 420px;
  margin-right: calc(var(--gutter) * -1);
}
.hero__stage canvas { position: absolute; inset: -10% -6% -10% -18%; width: 124%; height: 120%; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero__stage.is-ready canvas { opacity: 1; }
.hero__fallback { position: absolute; left: 50%; bottom: 0; width: min(62%, 300px); height: auto; transform: translateX(-50%); opacity: 0; }
.hero__stage.no-webgl .hero__fallback { opacity: 1; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-block: 32px 0; }
  .hero__title { margin-top: 18px; }
  .hero__stage { min-height: 0; height: clamp(280px, 78vw, 420px); margin-inline: calc(var(--gutter) * -1); }
  .hero__stage canvas { inset: -8% 0 0 0; width: 100%; height: 108%; }
  .hero__sun { width: 110vw; right: -40vw; top: auto; bottom: -30%; }
}
@media (max-width: 420px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- section rhythm ---------- */
section { position: relative; }
.bali, .savings, .book, .tommy, .why, .fold { padding-block: clamp(72px, 10vw, 128px); }

/* ---------- bali ---------- */
.bali__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.bali__art { position: relative; padding-top: 22%; }
.bali__photo {
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  aspect-ratio: 830 / 681;
  clip-path: polygon(50% 0, 100% 62%, 100% 100%, 0 100%, 0 62%);
}
.bali__photo img { width: 100%; height: 100%; object-fit: cover; }
.bali__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(12 40 50 / .25)); }
.bali__pagoda {
  position: absolute; pointer-events: none;
  width: 39.9%; height: auto;
  left: 29.8%; top: 0;
  filter: drop-shadow(0 18px 24px rgb(40 30 0 / .18));
}
.bali__copy { display: grid; gap: 24px; }
.bali__copy .lead strong { color: var(--ink); }
.facts { display: grid; gap: 18px; margin-top: 4px; }
.facts li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.facts__ic { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--sun); color: var(--on-sun); }
.facts__ic .ic { width: 22px; height: 22px; }
.facts strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.facts li > span:last-child { color: var(--mute); font-size: .95rem; line-height: 1.45; }
@media (max-width: 900px) {
  .bali__grid { grid-template-columns: 1fr; }
  .bali__art { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ---------- savings ---------- */
.savings { background: var(--tint); }
.savings__title { max-width: 16ch; }
.savings__grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(12px, 2vw, 28px); padding: clamp(28px, 4vw, 44px); background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.compare__item { display: grid; gap: 10px; }
.compare__label { font-size: .95rem; font-weight: 600; color: var(--mute); line-height: 1.3; }
.compare__num { font-size: clamp(3rem, 1.6rem + 4.4vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.compare__num small { display: block; font-size: 1rem; letter-spacing: 0; font-weight: 600; color: var(--mute); margin-top: 10px; line-height: 1.2; }
.compare__item--old .compare__num { color: var(--mute); }
.compare__item--new .compare__num { color: var(--ink); }
.compare__arrow { width: 40px; height: 40px; color: var(--ember); margin-bottom: 44px; }
.compare { align-items: end; }
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em;
  background: var(--ember); border-radius: 999px; transform: rotate(-8deg) scaleX(1); transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .js .strike::after { transform: rotate(-8deg) scaleX(0); transition: transform .7s .45s var(--ease-out); }
  .js [data-compare].is-in .strike::after { transform: rotate(-8deg) scaleX(1); }
}
.savings__side { display: grid; gap: 28px; padding-top: 6px; }
.wins { display: grid; gap: 0; margin: 0; }
.wins > div { display: grid; grid-template-columns: 8.6rem 1fr; gap: 16px; align-items: baseline; padding-block: 14px; }
.wins > div + div { border-top: 1px solid var(--line); }
.wins dt { white-space: nowrap; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.wins dd { color: var(--ink-2); font-size: .98rem; line-height: 1.4; }
.savings__note { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) {
  .savings__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .compare { grid-template-columns: 1fr; gap: 18px; }
  .compare__arrow { transform: rotate(90deg); margin: 0; width: 32px; height: 32px; }
}

/* ---------- booking ---------- */
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.book__intro { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 32px); }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price__num { font-size: clamp(3.4rem, 2rem + 4vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--ink); background: var(--sun); color: var(--on-sun); padding: .08em .22em .04em; border-radius: 18px; }
.price__label { font-weight: 700; font-size: 1.15rem; }
.next { display: grid; gap: 14px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; color: var(--ink-2); }
.next .ic { width: 40px; height: 40px; padding: 10px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.book__call { font-weight: 600; }
.book__call a { color: var(--accent-text); text-underline-offset: 4px; }

.formcard { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--mute); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .select select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: var(--radius-field);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.field input:hover, .select select:hover { border-color: var(--mute); }
.field input:focus, .select select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(246 139 31 / .35); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--mute); }
.select .ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mute); }
.field__err { color: var(--danger); font-size: .875rem; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.field__help { color: var(--ink-2); font-size: .875rem; background: var(--tint); padding: 10px 14px; border-radius: var(--radius-field); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--field-line); font-weight: 600; font-size: .925rem; transition: background-color .2s, border-color .2s, color .2s; background: var(--field); }
.chip:hover span { border-color: var(--mute); }
.chip input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.chip input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; cursor: pointer; font-weight: 500 !important; position: relative; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.check__box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--field-line); display: grid; place-items: center; background: var(--field); transition: background-color .2s, border-color .2s; }
.check__box .ic { width: 16px; height: 16px; color: var(--on-sun); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out); }
.check input:checked + .check__box { background: var(--sun); border-color: var(--sun); }
.check input:checked + .check__box .ic { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--ember); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn--block { margin-top: 4px; }
.btn__plane { transition: transform .5s var(--ease-out), opacity .3s; }
.form.is-sending .btn { pointer-events: none; opacity: .85; }
.form.is-sending .btn__label::after { content: "..."; }
@media (prefers-reduced-motion: no-preference) {
  .form.is-sending .btn__plane { animation: wobble .8s ease-in-out infinite; }
  .form.is-sent .btn__plane { transform: translate(140px, -90px) rotate(-12deg); opacity: 0; transition-duration: .7s; }
}
@keyframes wobble { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(4px, -3px) rotate(-8deg); } }
.form__status { color: var(--danger); font-weight: 500; font-size: .95rem; background: color-mix(in srgb, var(--danger) 10%, transparent); padding: 12px 14px; border-radius: var(--radius-field); }
.form__status a { color: inherit; font-weight: 700; }
.form__legal { font-size: .8125rem; color: var(--mute); text-align: center; }

.done { display: grid; gap: 14px; justify-items: start; }
.done:focus { outline: none; }
.done__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--sun); color: var(--on-sun); display: grid; place-items: center; }
.done__icon .ic { width: 30px; height: 30px; }
@media (prefers-reduced-motion: no-preference) { .done:not([hidden]) .done__icon .ic { animation: fly-in .9s var(--ease-out) both; } }
@keyframes fly-in { from { transform: translate(-40px, 30px) rotate(12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.done__title { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.done p { color: var(--ink-2); }
.done__tip { background: var(--tint); padding: 12px 16px; border-radius: var(--radius-field); font-size: .95rem; }
.done .btn { margin-top: 6px; }

@media (max-width: 900px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__intro { position: static; }
}

/* ---------- tommy ---------- */
.tommy { padding-top: 0; }
.letter {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end;
  background: var(--sun); color: var(--on-sun);
  border-radius: var(--radius-card); overflow: hidden;
}
.letter__photo { order: 2; align-self: end; display: flex; justify-content: flex-end; padding-top: 40px; }
.letter__photo img { width: 100%; max-width: 380px; height: auto; }
.letter__body { padding: clamp(28px, 5vw, 64px); display: grid; gap: 16px; font-size: 1.06rem; max-width: 64ch; }
.letter__body .h2 { margin-bottom: 8px; }
.letter__kicker { font-weight: 700; font-size: 1.2rem; line-height: 1.4; }
.letter__sign { display: grid; font-size: .95rem; font-weight: 500; margin-top: 6px; }
.letter__sign span { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
@media (max-width: 800px) {
  .letter { grid-template-columns: 1fr; }
  .letter__body { padding: 32px 24px 0; }
  .letter__photo { padding-top: 16px; }
  .letter__photo img { max-width: 320px; }
}

/* ---------- why us (bento) ---------- */
.why { background: var(--tint); }
.bento { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento__cell { border-radius: var(--radius-card); padding: clamp(24px, 3.2vw, 40px); display: grid; gap: 12px; align-content: start; }
.bento__cell h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 800; }
.bento__cell p { font-size: 1rem; line-height: 1.6; }
.bento__ic { width: 30px; height: 30px; margin-bottom: 18px; }
.bento__cell--reviews { grid-column: span 4; grid-row: span 2; background: var(--sun); color: var(--on-sun); align-content: end; min-height: 320px; }
.reviews__num { font-size: clamp(5rem, 3rem + 7vw, 8.5rem); font-weight: 800; line-height: .85; letter-spacing: -.06em; }
.stars { display: flex; gap: 4px; margin-top: 8px; }
.stars .ic { width: 26px; height: 26px; }
.reviews__label { font-weight: 700; font-size: 1.15rem; }
.bento__cell--local { grid-column: span 8; background: var(--on-sun); color: #F3F3F0; }
.bento__cell--local .bento__ic { color: var(--sun); }
.bento__cell--local p { color: #C9CCD3; max-width: 52ch; }
.bento__cell--roof { grid-column: span 8; background: var(--card); box-shadow: var(--shadow); }
.bento__cell--roof .bento__ic { color: var(--ember); }
.bento__cell--roof p { color: var(--ink-2); max-width: 56ch; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .bento__cell--local { background: #23262D; }
}
:root[data-theme="dark"] .bento__cell--local { background: #23262D; }
@media (max-width: 800px) {
  .bento__cell--reviews, .bento__cell--local, .bento__cell--roof { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
}

/* ---------- fold steps ---------- */
.fold__head { display: grid; gap: 16px; max-width: 60ch; }
.steps { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.step { display: grid; align-content: start; grid-template-rows: auto 150px auto; gap: 14px; padding: 18px; border-radius: var(--radius-card); background: var(--tint); }
.step__n { width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.step__img { width: 100%; height: 100%; max-height: 150px; object-fit: contain; }
.step__txt { font-size: .925rem; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.step:last-child { background: var(--sun); }
.step:last-child .step__txt { color: var(--on-sun); font-weight: 600; }
.step:last-child .step__n { background: var(--on-sun); color: var(--sun); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .step__img { filter: invert(1) brightness(.92); }
:root:not([data-theme="light"]) .step:last-child .step__img { filter: none; }
}
:root[data-theme="dark"] .step__img { filter: invert(1) brightness(.92); }
:root[data-theme="dark"] .step:last-child .step__img { filter: none; }
@media (max-width: 1080px) {
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .step { scroll-snap-align: start; }
}
@media (max-width: 560px) { .steps { grid-auto-columns: 72%; } }

/* ---------- terms ---------- */
.terms { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.terms__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.terms__list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--card); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .ic { transition: transform .3s var(--ease-out); color: var(--mute); }
details[open] summary .ic { transform: rotate(180deg); }
details ul { padding: 0 20px 20px 20px; display: grid; gap: 10px; }
details li { font-size: .9rem; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.55; }
details li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--ember); }
@media (max-width: 800px) { .terms__grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- footer ---------- */
.footer { background: var(--on-sun); color: #F3F3F0; padding-block: clamp(56px, 8vw, 96px) 32px; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .footer { background: #0B0C0F; }
}
:root[data-theme="dark"] .footer { background: #0B0C0F; }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 72px); }
.footer__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 16ch; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer .btn--primary { background: var(--sun); color: var(--on-sun); }
.footer .btn--primary:hover { background: #FFD257; }
.footer .btn--ghost { color: #F3F3F0; border-color: #F3F3F0; }
.footer .btn--ghost:hover { background: #F3F3F0; color: var(--on-sun); }
.footer__base { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; font-size: .9rem; color: #B6BAC3; }
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: #2E3139; }
.footer__base a { color: inherit; text-underline-offset: 3px; }
.footer .brand__place { color: #F3F3F0; }

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: none; gap: 10px; padding: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgb(22 24 29 / .35), inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.dock__main { flex: 1; }
.dock__call { width: 52px; padding: 0; }
.dock__call .ic { width: 22px; height: 22px; }
.dock.is-on { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__title em::after { transform: none; }
}

/* ---------- theme toggle (sun / moon) ---------- */
.theme-toggle { padding: 4px; margin: 0; border: 0; background: none; cursor: pointer; border-radius: 999px; color: inherit; -webkit-tap-highlight-color: transparent; }
.theme-toggle__track {
  position: relative; display: block; width: 62px; height: 32px; border-radius: 999px;
  background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .35s var(--ease-out), box-shadow .35s;
}
.theme-toggle:hover .theme-toggle__track { box-shadow: inset 0 0 0 1.5px var(--field-line); }
.theme-toggle__bg { position: absolute; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--mute); opacity: .8; }
.theme-toggle__bg--sun { left: 9px; }
.theme-toggle__bg--moon { right: 9px; }
.theme-toggle__knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--sun); color: var(--on-sun);
  box-shadow: 0 2px 6px rgb(22 24 29 / .25);
  transition: transform .5s var(--ease-out), background-color .35s;
}
.theme-toggle__knob .ic { grid-area: 1 / 1; width: 16px; height: 16px; transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-toggle[aria-checked="true"] .theme-toggle__knob { transform: translateX(30px); background: #2B2E36; color: var(--sun); }
.theme-toggle[aria-checked="true"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
.theme-toggle[aria-checked="true"] .theme-toggle__moon { opacity: 1; transform: none; }
.theme-toggle:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
/* smooth colour change only while switching */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, transform .5s cubic-bezier(.16, 1, .3, 1), opacity .3s ease !important; }
@media (max-width: 420px) {
  .nav__actions { gap: 10px; }
  .theme-toggle__track { width: 54px; height: 28px; }
  .theme-toggle__knob { width: 22px; height: 22px; }
  .theme-toggle[aria-checked="true"] .theme-toggle__knob { transform: translateX(26px); }
  .theme-toggle__bg { width: 13px; height: 13px; }
  .theme-toggle__bg--sun { left: 8px; } .theme-toggle__bg--moon { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .theme-anim, .theme-anim * { transition: none !important; } }
