/* ==========================================================================
   My Goat Farms — public website
   Same family as the admin panel and the app: Baloo 2 headings, Poppins
   body, Amaranth wordmark; pasture green, meadow, turmeric.
   Signature: the goat record on a phone in the hero. Motion is used to
   introduce the hero, mark sections as you reach them, and open the
   enquiry form from the button you pressed. All of it switches off for
   people who ask their device for reduced motion.
   ========================================================================== */

@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url("../fonts/Baloo2-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("../fonts/Baloo2-Bold.woff2") format("woff2"); }
@font-face { font-family: "Amaranth"; font-weight: 700; font-display: swap; src: url("../fonts/Amaranth-Bold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600 700; font-display: swap; src: url("../fonts/Poppins-Bold.woff2") format("woff2"); }

:root {
  --pasture: #173d24;
  --pasture-2: #21512f;
  --pasture-ink: #cfe2cb;
  --leaf: #2e7d32;
  --leaf-hover: #256a29;
  --leaf-bright: #4caf50;
  --leaf-wash: #e6f1e3;
  --meadow: #f2f5ec;
  --paper: #ffffff;
  --ink: #1d2a1f;
  --muted: #5d6b5f;
  --rule: #dce3d3;
  --rule-soft: #eaefe4;
  --turmeric: #c98a0e;
  --turmeric-wash: #fbf1d9;
  --clay: #b0412b;
  --sky: #2f6f9f;
  --wa: #1fa855;

  --font-head: "Baloo 2", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Amaranth", "Baloo 2", sans-serif;

  --r: 12px;
  --r-lg: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --focus: 0 0 0 3px rgba(46, 125, 50, 0.4);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body { margin: 0; background: var(--meadow); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p, ul, ol, dl, dd { margin: 0; }
a { color: var(--leaf); }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--paper); border-radius: var(--r); }
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-wa .ico { fill: currentColor; stroke: none; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--leaf), var(--leaf-bright), var(--turmeric)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------------- Buttons ---------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--leaf); color: #fff; box-shadow: 0 8px 20px -10px rgba(46, 125, 50, .8); }
.btn-primary:hover { background: var(--leaf-hover); box-shadow: 0 12px 26px -10px rgba(46, 125, 50, .9); transform: translateY(-1px); }
.btn-wa { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-wa .ico { color: var(--wa); }
.btn-wa:hover { border-color: var(--wa); transform: translateY(-1px); }
.btn-quiet { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-quiet:hover { border-color: var(--leaf); color: var(--leaf); }
.btn-light { background: #fff; color: var(--pasture); }
.btn-light:hover { background: var(--leaf-wash); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------------- Wordmark ---------------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.wordmark span { font-family: var(--font-brand); font-size: 22px; line-height: 1; }
.wordmark.small span { font-size: 18px; }

/* ---------------- Header ---------------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(242, 245, 236, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.top.scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 30px -24px rgba(16, 40, 22, .5); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease-out); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); cursor: pointer; place-items: center; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease-out), background-color .2s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-glow span:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -80px; background: #cfe5c5; }
.hero-glow span:nth-child(2) { width: 380px; height: 380px; left: -140px; bottom: -160px; background: #f3e2b9; opacity: .45; }
.hero-glow span:nth-child(3) { width: 300px; height: 300px; right: 28%; bottom: -120px; background: #d6e7f1; opacity: .4; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px var(--rule); font-size: 13.5px; font-weight: 500; color: var(--leaf); margin-bottom: 22px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-bright); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--leaf-bright); opacity: 0; }
.hero-title { font-size: clamp(42px, 6.4vw, 82px); line-height: 1; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.accent-line { position: relative; color: var(--leaf); }
.accent-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: .1em; background: var(--turmeric); opacity: .35; z-index: -1; transform-origin: 0 50%; }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.hero-facts strong { color: var(--ink); font-weight: 600; }

.hero-visual { position: relative; display: grid; place-items: center; padding: 24px 0; perspective: 1200px; }
.orbit { position: absolute; width: min(480px, 92%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e2efda, #c5dcbb 72%); }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1.5px dashed rgba(46, 125, 50, .25); }
.orbit::after { inset: -46px; border-style: solid; border-color: rgba(46, 125, 50, .08); }
.phone { --rx: 0deg; --ry: 0deg; position: relative; z-index: 1; width: min(320px, 80vw); padding: 12px; border-radius: 42px; background: #12261a; box-shadow: 0 50px 90px -30px rgba(16, 40, 22, .55), inset 0 0 0 2px #2c4734; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg); transition: transform .5s var(--ease-out); transform-style: preserve-3d; }
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 96px; height: 22px; border-radius: 0 0 14px 14px; background: #12261a; z-index: 2; }
.screen { border-radius: 30px; background: #f6f8f2; padding: 34px 14px 16px; display: grid; gap: 12px; overflow: hidden; }
.app-bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; font-weight: 600; font-size: 14px; }
.app-back { font-size: 22px; line-height: 1; color: var(--muted); }
.app-title { text-align: center; }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-bright); justify-self: end; }
.goat-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: #fff; border-radius: 16px; }
.goat-avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--turmeric-wash); display: grid; place-items: center; }
.goat-avatar svg { width: 44px; height: 44px; }
.goat-tag { font-weight: 600; font-size: 14px; line-height: 1.25; }
.goat-owner { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.pill.ok { background: var(--leaf-wash); color: var(--leaf); }
.pill.warn { background: var(--turmeric-wash); color: #8a5d05; }
.weight-card { padding: 12px 12px 8px; background: #fff; border-radius: 16px; }
.weight-top { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 8px; }
.weight-top span { font-size: 11.5px; color: var(--muted); }
.weight-top strong { font-family: var(--font-head); font-size: 22px; grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; }
.weight-top strong span { font-size: inherit; color: inherit; }
.weight-top em { font-style: normal; font-size: 11.5px; color: var(--leaf); font-weight: 600; }
.weight-chart { width: 100%; height: 70px; margin-top: 6px; overflow: visible; }
.weight-months { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.care-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.care-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; background: #fff; border-radius: 14px; }
.care-list strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.care-list small { font-size: 11px; color: var(--muted); }
.care-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.care-ico.v { background: var(--leaf-wash); color: var(--leaf); }
.care-ico.h { background: var(--turmeric-wash); color: #8a5d05; }
.care-ico.b { background: #e3eef6; color: var(--sky); }
.tick { color: var(--leaf); font-weight: 700; }
.share { font-size: 11.5px; font-weight: 600; color: var(--sky); }
.toast-chip { position: absolute; z-index: 2; bottom: 4%; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; background: var(--pasture); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 16px 34px -14px rgba(16, 40, 22, .6); }
.tc-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); font-size: 12px; }

/* ---------------- Ticker ---------------- */
.ticker { position: relative; overflow: hidden; background: var(--pasture); color: var(--pasture-ink); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { list-style: none; padding: 0; display: flex; flex: none; }
.ticker li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-head); font-size: 20px; font-weight: 600; white-space: nowrap; }
.ticker li::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--turmeric); transform: rotate(45deg); }

/* ---------------- Sections ---------------- */
.band { padding: clamp(64px, 9vw, 112px) 0; background: var(--paper); }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.section-head.left { text-align: left; margin: 0; }
.section-head.left .btn { margin-top: 24px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: var(--pasture-ink); }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 30px; border-radius: var(--r-lg); background: var(--meadow); border: 1px solid transparent; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s, background-color .35s; }
.module::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--tint, var(--leaf-wash)); opacity: .0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease-out); }
.module:hover { transform: translateY(-4px); background: #fff; border-color: var(--rule); box-shadow: 0 24px 50px -30px rgba(16, 40, 22, .35); }
.module:hover::before { opacity: 1; transform: scale(1); }
.module > * { position: relative; }
.module h3 { font-size: 25px; }
.module p { margin-top: 4px; color: var(--muted); }
.module ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 6px; font-size: 15px; }
.module li { position: relative; padding-left: 20px; }
.module li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf); transform: rotate(45deg); }
.module-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; transition: transform .45s var(--ease-spring); }
.module:hover .module-ico { transform: rotate(-8deg) scale(1.08); }
.module-ico .ico { width: 28px; height: 28px; }
.module-ico.teal { background: #d9efea; color: #2b8a7e; }
.module-ico.blue { background: #dcebf5; color: var(--sky); }
.module-ico.purple { background: #eee0f2; color: #8b4f9b; }
.module-ico.orange { background: var(--turmeric-wash); color: #a06c05; }
.module:nth-child(1) { --tint: #e3f3ef; }
.module:nth-child(2) { --tint: #e6f0f8; }
.module:nth-child(3) { --tint: #f3e9f6; }
.module:nth-child(4) { --tint: #fbf1d9; }

/* Journey */
.journey-band { position: relative; padding: clamp(64px, 9vw, 112px) 0; background: var(--pasture); color: var(--pasture-ink); background-image: repeating-linear-gradient(170deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px); overflow: hidden; }
.journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.journey::before, .journey::after { content: ""; position: absolute; top: 25px; left: 24px; right: 24px; height: 2px; }
.journey::before { background: linear-gradient(90deg, rgba(255, 255, 255, .25) 0 50%, transparent 0) 0 0 / 12px 2px repeat-x; }
.journey::after { background: linear-gradient(90deg, var(--leaf-bright), var(--turmeric)); transform: scaleX(0); transform-origin: 0 50%; }
.journey li { position: relative; }
.step { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--pasture-2); color: #fff; border: 2px solid rgba(255, 255, 255, .35); font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--pasture); transition: background-color .4s, color .4s, border-color .4s; }
.journey.in .step { background: #fff; color: var(--pasture); border-color: #fff; }
.journey.in li:last-child .step { background: var(--turmeric); color: #fff; border-color: var(--turmeric); }
.journey h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.journey p { font-size: 15px; }

/* Features */
.features-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.features-layout .section-head { position: sticky; top: 110px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-list > div { padding: 22px; border-radius: 18px; border: 1px solid var(--rule); transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s; }
.feature-list > div:hover { border-color: var(--leaf); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(16, 40, 22, .45); }
.feature-list dt { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.2; }
.f-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-wash); color: var(--leaf); flex: none; transition: background-color .3s, color .3s; }
.feature-list > div:hover .f-ico { background: var(--leaf); color: #fff; }
.feature-list dd { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Contact */
.contact-band { padding: clamp(56px, 8vw, 104px) 0; }
.contact-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--pasture); color: var(--pasture-ink); overflow: hidden; isolation: isolate; }
.contact-card::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 175, 80, .35), transparent 65%); }
.contact-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: repeating-linear-gradient(170deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 48px); }
.contact-copy h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); }
.contact-copy p { margin-top: 14px; font-size: 17px; max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reach { display: grid; gap: 6px; }
.reach-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .25s, transform .25s var(--ease-out); }
a.reach-row:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.reach-row strong { display: block; font-weight: 600; }
.reach-row small { display: block; color: var(--pasture-ink); font-size: 13px; }
.reach-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; flex: none; }

/* ---------------- Enquiry dialog ---------------- */
.sheet { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.sheet::backdrop { background: rgba(14, 32, 19, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { display: grid; place-items: center; padding: 20px; }
.sheet-panel { --ox: 50vw; --oy: 50vh; position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 26px; box-shadow: 0 40px 100px -30px rgba(10, 25, 14, .6); }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--meadow); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .3s var(--ease-out); }
.sheet-close:hover { background: var(--rule-soft); transform: rotate(90deg); }
.enquiry { display: grid; gap: 16px; padding: clamp(22px, 4vw, 34px); }
.sheet-head { display: flex; align-items: flex-start; gap: 14px; padding-right: 40px; }
.sheet-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--leaf-wash); color: var(--leaf); flex: none; }
.sheet-head h2 { font-size: 28px; }
.form-note { color: var(--muted); font-size: 14px; margin-top: 2px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcf9; font-size: 15px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
.input::placeholder { color: #98a397; }
.input:hover { border-color: #c4cfbb; }
.input:focus { outline: none; border-color: var(--leaf); background: #fff; box-shadow: 0 0 0 4px rgba(46, 125, 50, .14); }
.input[aria-invalid="true"] { border-color: var(--clay); background: #fffaf8; }
.field-error { margin: 0; font-size: 13px; color: var(--clay); animation: err-in .25s var(--ease-out); }
.field-error:empty { display: none; }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
.field-hint { font-size: 12px; color: var(--muted); text-align: right; }
.field-hint.near-limit { color: #8a5d05; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease-spring); }
.chip:hover { border-color: var(--leaf); color: var(--leaf); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.form-status { font-size: 14px; color: var(--clay); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.sent { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 32px 36px; }
.sent h2 { font-size: 30px; margin-top: 6px; }
.sent h2:focus { box-shadow: none; }
.sent p { color: var(--muted); max-width: 34ch; margin-bottom: 14px; }
.sent-check { width: 84px; height: 84px; }
.sent-check circle { stroke: var(--leaf); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; }
.sent-check path { stroke: var(--leaf); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.is-sent .sent-check circle { animation: draw-check .6s var(--ease-out) forwards; }
.is-sent .sent-check path { animation: draw-check .4s .45s var(--ease-out) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }

/* ---------------- Footer ---------------- */
.foot { border-top: 1px solid var(--rule); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* ==========================================================================
   Motion (only when the visitor hasn't asked for reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero intro: one orchestrated entrance */
  .intro { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
  .hero-title .line > span { animation: line-up .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms); }
  .accent-line::after { animation: grow-x .7s .75s var(--ease-out) both; }
  .live-dot::after { animation: ping 2s 1.2s ease-out infinite; }
  .hero-glow span { animation: drift 18s ease-in-out infinite alternate; }
  .hero-glow span:nth-child(2) { animation-duration: 22s; animation-delay: -6s; }
  .hero-glow span:nth-child(3) { animation-duration: 26s; animation-delay: -12s; }
  .orbit { animation: spin-slow 60s linear infinite; }
  .phone { animation: phone-in 1s .2s var(--ease-out) backwards; }
  .phone > .screen { animation: float 6s 1.4s ease-in-out infinite; }
  .pop { animation: pop .6s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * 120ms + 300ms); }
  .weight-line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s 1s var(--ease-out) forwards; }
  .weight-area { animation: fade 1s 1.4s both; }
  .weight-dot { animation: pop .5s 2.2s var(--ease-spring) both; transform-origin: 220px 14px; }
  .blink { animation: blink 5s 2s infinite; transform-box: fill-box; transform-origin: center; }
  .toast-chip { animation: toast 5.5s calc(var(--d, 0) * 150ms + 800ms) var(--ease-out) infinite; }
  .ticker-track { animation: marquee 40s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* Reveal on scroll (classes added by main.js) */
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .journey li { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 220ms + 150ms); }
  .js .journey.in li { opacity: 1; transform: none; }
  .journey::after { transition: transform 1.3s .2s var(--ease-out); }
  .journey.in::after { transform: scaleX(1); }
  .step { transition-delay: calc(var(--d, 0) * 220ms + 150ms); }
  .journey li .step { transition-delay: inherit; }

  /* Enquiry: grows from the pressed button; leaves the same way */
  .sheet[open] .sheet-panel { animation: sheet-in .5s var(--ease-out) both; transform-origin: calc(var(--ox) - 50vw + 50%) calc(var(--oy) - 50vh + 50%); }
  .sheet[open]::backdrop { animation: fade .3s both; }
  .sheet.closing .sheet-panel { animation: sheet-out .26s ease-in both; }
  .sheet.closing::backdrop { animation: fade .26s reverse both; }
  .sheet[open] .enquiry > * { animation: rise .5s var(--ease-out) both; }
  .sheet[open] .enquiry > *:nth-child(2) { animation-delay: .06s; }
  .sheet[open] .enquiry > *:nth-child(3) { animation-delay: .1s; }
  .sheet[open] .enquiry > *:nth-child(4) { animation-delay: .14s; }
  .sheet[open] .enquiry > *:nth-child(5) { animation-delay: .18s; }
  .sheet[open] .enquiry > *:nth-child(n+6) { animation-delay: .22s; }
  .sheet-panel.shake { animation: shake .4s ease-in-out; }
  .is-sent .sent > * { animation: rise .5s var(--ease-out) both; }
  .is-sent .sent > *:nth-child(2) { animation-delay: .5s; }
  .is-sent .sent > *:nth-child(3) { animation-delay: .6s; }
  .is-sent .sent > *:nth-child(4) { animation-delay: .7s; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes ping { 0% { opacity: .8; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(2deg) scale(.96); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 10%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheet-in { from { opacity: 0; transform: scale(.6) translateY(10px); } 60% { opacity: 1; } }
@keyframes sheet-out { to { opacity: 0; transform: scale(.92) translateY(12px); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner, .features-layout, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .features-layout .section-head { position: static; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .journey::before, .journey::after { display: none; }
  .journey.in .step { background: #fff; }
}
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--meadow); border-bottom: 1px solid var(--rule); box-shadow: 0 20px 30px -20px rgba(16, 40, 22, .25); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .35s var(--ease-out), visibility 0s .35s; }
  .menu-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s var(--ease-out); }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 14px; min-height: 48px; }
}
@media (max-width: 720px) {
  .modules { grid-template-columns: minmax(0, 1fr); }
  .module { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 20px; }
  .module-ico { width: 48px; height: 48px; border-radius: 15px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .ticker li { font-size: 17px; }

  /* On phones the enquiry form is a sheet that slides up from the bottom. */
  .sheet[open] { place-items: end center; padding: 0; }
  .sheet-panel { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-panel::before { content: ""; display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--rule); }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet-panel { animation: sheet-up .45s var(--ease-out) both; }
  .sheet.closing .sheet-panel { animation: sheet-down .28s ease-in both; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@media (max-width: 520px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .journey li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 16px; }
  .journey .step { grid-row: span 2; margin: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-actions .btn { flex: 1 1 100%; }
  .wordmark span { font-size: 19px; }
  .toast-chip { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------- FAQ ---------------- */
.faq-band { padding: clamp(64px, 9vw, 112px) 0 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: var(--leaf); box-shadow: 0 18px 40px -30px rgba(16, 40, 22, .45); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-lg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------------- Footer links + form note ---------------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--leaf); text-decoration: underline; }
.form-legal { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------------- Simple inner pages (privacy, thank you, 404) ---------------- */
.page-main { padding: clamp(40px, 7vw, 88px) 0; }
.page-card { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); background: var(--paper); border-radius: 28px; box-shadow: 0 0 0 1px var(--rule); }
.prose h1 { font-size: clamp(34px, 5vw, 50px); }
.prose .updated { margin-top: 6px; color: var(--muted); font-size: 14px; }
.prose h2 { font-size: 24px; margin-top: 34px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.center-card { display: grid; justify-items: center; text-align: center; gap: 14px; }
.center-card h1 { font-size: clamp(32px, 5vw, 46px); }
.center-card > p { color: var(--muted); max-width: 46ch; }
.center-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.big-code { font-family: var(--font-head); font-size: clamp(72px, 14vw, 120px); line-height: .9; color: var(--leaf); }
.link-list { list-style: none; padding: 18px 0 0; margin-top: 10px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; }
.thanks .sent-check { width: 96px; height: 96px; }

@media (max-width: 980px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .section-head { position: static; }
}
@media (max-width: 520px) {
  .faq-list summary { font-size: 18px; padding: 16px 18px; }
  .faq-list details p { padding: 0 18px 18px; }
  .center-card .actions .btn { flex: 1 1 100%; }
}
