/* ==========================================================
   Choto Energy: website styles
   Layout language: full-bleed sections, centred headlines,
   paired buttons, quiet chrome.
   ========================================================== */

:root {
  --green: #67b31b;
  --green-hover: #5aa015;
  --green-soft: #eef7e5;
  --navy: #324158;
  --ink: #171a20;
  --ink-2: #393c41;
  --muted: #5c5e62;
  --line: #e2e3e3;
  --light: #f4f4f4;
  --white: #ffffff;
  --cream: #f7f3ea;
  --green-deep: #4a850f;
  --pill-clear: calc(88px + env(safe-area-inset-bottom, 0px));
  --danger: #c0392b;

  --radius: 4px;
  --radius-lg: 14px;
  --header-h: 56px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(.5, 0, 0, .75);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mark: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 200px; height: 40px; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .33s var(--ease), color .33s var(--ease), box-shadow .33s var(--ease);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-hover); }
.btn-light { background: rgba(244, 244, 244, .65); color: var(--ink); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(244, 244, 244, .9); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-white { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.btn-ghost-white:hover { background: var(--white); color: var(--ink); }
.btn-sm { min-width: 0; height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-store {
  height: 52px; min-width: 210px; padding: 0 20px 0 16px; gap: 12px;
  background: var(--ink); color: var(--white); text-align: left; line-height: 1.1;
}
.btn-store:hover { background: #000; }
.btn-store small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; font-weight: 400; }
.btn-store strong { display: block; font-size: 17px; font-weight: 600; }
.btn-store svg { width: 26px; height: 26px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.on-dark { color: var(--white); }
.site-header.scrolled { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-word { font-family: var(--font-mark); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .3em; margin-right: -.3em; line-height: 1; }

.nav-main { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background-color .33s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { background: rgba(0,0,0,.06); }
.on-dark:not(.scrolled) .nav-link:hover, .on-dark:not(.scrolled) .nav-link[aria-current="page"] { background: rgba(255,255,255,.14); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 32px;
  border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; transition: background-color .33s var(--ease);
}
.icon-btn:hover { background: rgba(0,0,0,.06); }
.on-dark:not(.scrolled) .icon-btn:hover { background: rgba(255,255,255,.14); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--green); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-btn { display: none; padding: 6px 14px; border: 0; border-radius: var(--radius); background: rgba(0,0,0,.05); font-size: 14px; font-weight: 500; cursor: pointer; }
.on-dark:not(.scrolled) .menu-btn { background: rgba(255,255,255,.16); }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.35); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(330px, 100%);
  background: var(--white); padding: 72px 24px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer-open .drawer-backdrop[data-drawer-close], .cart-open .drawer-backdrop[data-cart-close] { opacity: 1; pointer-events: auto; }
.drawer-open #drawer, .cart-open #cart { transform: none; }
.drawer-close { position: absolute; top: 14px; right: 16px; }
.drawer nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius); font-size: 16px; font-weight: 500; text-decoration: none;
}
.drawer nav a:hover { background: var(--light); }
.drawer .btn { margin-top: 20px; width: 100%; }

/* ---------- Hero (full-bleed) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: calc(var(--header-h) + 9vh) var(--gutter) 40px;
  color: var(--white); text-align: center; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--navy) center/cover no-repeat; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 34%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.7) 100%);
}
.hero-title, .hero-sub, .spec { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero-title { font-size: clamp(36px, 6vw, 58px); line-height: 1.08; }
.hero-title em { font-style: normal; color: #a6e46a; }
.hero-sub { margin-top: 12px; font-size: clamp(15px, 1.6vw, 18px); opacity: .92; }
.hero-sub a { text-underline-offset: 4px; }
.hero-bottom { width: 100%; display: grid; gap: 28px; justify-items: center; }

.spec-bar { display: flex; justify-content: center; gap: clamp(20px, 5vw, 72px); flex-wrap: wrap; }
.spec { text-align: center; min-width: 120px; }
.spec-value { font-size: clamp(26px, 3.2vw, 34px); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spec-value small { font-size: .55em; font-weight: 500; margin-left: 3px; }
.spec-label { margin-top: 4px; font-size: 13px; opacity: .85; }
.spec + .spec { position: relative; }

.scroll-cue { width: 22px; height: 22px; opacity: .8; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.section-tight { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.h-xl { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; }
.h-lg { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; }
.h-md { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); line-height: 1.6; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--ink); color: var(--white); }
.bg-dark .lead { color: rgba(255,255,255,.72); }

/* ---------- Impact (emissions) ---------- */
.impact { position: relative; overflow: hidden; }
.impact::before {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(103,179,27,.28), transparent 70%); pointer-events: none;
}
.impact-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgba(255,255,255,.14); }
.impact-item { padding: 32px 24px 8px 0; }
.impact-item + .impact-item { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.impact-value { font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.impact-value small { font-size: .42em; margin-left: 4px; color: #a6e46a; letter-spacing: 0; }
.impact-label { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.72); max-width: 240px; }

/* ---------- Service cards (carousel) ---------- */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.rail-ctrls { display: flex; gap: 8px; }
.rail-ctrls button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--light); cursor: pointer; display: grid; place-items: center; transition: background-color .3s; }
.rail-ctrls button:hover { background: var(--line); }
.rail-ctrls svg { width: 18px; height: 18px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 880px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.card-hero {
  position: relative; scroll-snap-align: start; aspect-ratio: 16 / 10; min-height: 420px;
  border-radius: var(--radius-lg); overflow: hidden; color: var(--white); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px);
}
.card-hero > .media { position: absolute; inset: 0; z-index: -2; background: var(--navy) center/cover no-repeat; transition: transform 1.2s var(--ease); }
.card-hero:hover > .media { transform: scale(1.03); }
.card-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.05) 75%, rgba(0,0,0,0) 100%); }
.card-hero h3 { font-size: clamp(28px, 3.4vw, 40px); }
.card-hero p { margin-top: 8px; max-width: 520px; font-size: 15px; color: rgba(255,255,255,.88); }
.card-hero .btn-row { justify-content: flex-start; margin-top: 22px; gap: 12px; }
.card-hero .btn { min-width: 160px; }
.chip { display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-size: 12px; font-weight: 500; }

/* Generated media for Amanzi (no photo yet) */
.media-water {
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(120,200,255,.55), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(103,179,27,.55), transparent 60%),
    linear-gradient(160deg, #0b3a5b 0%, #0f5c7a 45%, #1a7f6a 100%) !important;
}

.media-ice {
  background:
    radial-gradient(70% 60% at 75% 25%, rgba(220,245,255,.75), transparent 60%),
    radial-gradient(80% 70% at 15% 85%, rgba(103,179,27,.4), transparent 60%),
    linear-gradient(155deg, #13324a 0%, #2a6f96 50%, #8cc8e6 100%) !important;
}
.card-hero .media-ice::before, .card-hero .media-water::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}

/* ---------- App / how it works ---------- */
.app-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.phones { position: relative; height: clamp(420px, 48vw, 620px); }
.phone {
  position: absolute; width: clamp(170px, 19vw, 250px); aspect-ratio: 768 / 1492;
  background: center/contain no-repeat; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18));
}
.phone-1 { left: 4%; top: 12%; transform: rotate(-6deg); }
.phone-2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone-3 { right: 4%; top: 12%; transform: rotate(6deg); }
.steps { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-n { font-size: 14px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 18px; }
.step p { margin-top: 6px; color: var(--muted); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.member { text-decoration: none; }
.member-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--light) center 20%/cover no-repeat; transition: transform .6s var(--ease); }
.member:hover .member-photo { transform: translateY(-4px); }
.member h3 { margin-top: 14px; font-size: 17px; }
.member p { font-size: 14px; color: var(--muted); }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(28px, 5vw, 64px); margin-top: 32px; }
.logos img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Earn tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  position: relative; min-height: 560px; border-radius: var(--radius-lg); overflow: hidden; color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  padding: 56px 28px 40px; isolation: isolate;
}
.tile .media { position: absolute; inset: 0; z-index: -2; background: var(--navy) center/cover no-repeat; transition: transform 1.2s var(--ease); }
.tile:hover .media { transform: scale(1.03); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.2) 45%, rgba(0,0,0,.6)); }
.tile h3 { font-size: clamp(28px, 3vw, 38px); }
.tile p { margin-top: 8px; color: rgba(255,255,255,.88); }
.media-partner { background: radial-gradient(90% 80% at 70% 20%, rgba(103,179,27,.65), transparent 60%), linear-gradient(160deg, #1d2633 0%, #324158 60%, #24402a 100%) !important; }

/* ---------- Download CTA ---------- */
.download { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.qr-card { display: grid; justify-items: center; gap: 10px; padding: 20px; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.qr-card #qr, .qr-card .qr { width: 156px; height: 156px; }
.qr-card #qr svg, .qr-card .qr svg { width: 100%; height: 100%; }
.qr-card span { font-size: 12px; color: var(--muted); }

/* ---------- Sticky download pill ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, calc(100% + 40px));
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 14px;
  border-radius: 99px; background: rgba(255,255,255,.94); color: var(--ink); text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.16); backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .5s var(--ease);
}
.sticky-cta.show { transform: translate(-50%, 0); }
.sticky-cta .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.sticky-cta .dot svg { width: 14px; height: 14px; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px var(--gutter) 40px; font-size: 13px; color: var(--muted); background: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; max-width: var(--maxw); margin: 0 auto; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-col a, .footer-col span { display: block; padding: 3px 0; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding-top: 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background-color .3s; }
.socials a:hover { background: var(--light); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  position: relative; min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: calc(var(--header-h) + 64px) var(--gutter) 56px; color: var(--white); isolation: isolate; overflow: hidden;
}
.page-hero .media { position: absolute; inset: 0; z-index: -2; background: var(--navy) center/cover no-repeat; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.45) 40%, rgba(0,0,0,.78)); }
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 640px; margin: 12px auto 0; }

/* ---------- Benefit row ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.benefit { background: var(--white); padding: 28px 24px; }
.benefit svg { width: 28px; height: 28px; color: var(--green); }
.benefit h3 { margin-top: 16px; font-size: 16px; font-weight: 600; }
.benefit p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.form-aside ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; }
.form-aside li { counter-increment: s; position: relative; padding: 0 0 22px 44px; }
.form-aside li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green-hover); font-size: 13px; font-weight: 600;
}
.form-aside li strong { display: block; font-weight: 600; }
.form-aside li span { color: var(--muted); font-size: 14px; }

.form { display: grid; gap: 20px; }
.form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 16px; }
.form legend { padding: 0; margin-bottom: 4px; font-size: 18px; font-weight: 500; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--light); font-size: 15px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23393c41' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: var(--white); border-color: var(--ink-2); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); background: #fff6f5; }
.field .err { display: none; font-size: 12px; color: var(--danger); }
.field.invalid .err { display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px 14px 46px; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s;
}
.choice-box::before {
  content: ''; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px #a1a3a6; background: var(--white) center/12px no-repeat; transition: background-color .2s, box-shadow .2s;
}
.choice input[type="radio"] + .choice-box::before { border-radius: 50%; }
.choice:hover .choice-box { box-shadow: inset 0 0 0 1px #a1a3a6; }
.choice input:checked + .choice-box { box-shadow: inset 0 0 0 2px var(--ink); background: #fafafa; }
.choice input:checked + .choice-box::before {
  background-color: var(--green); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.choice input:focus-visible + .choice-box { outline: 2px solid var(--green); outline-offset: 2px; }
.choice-box strong { font-size: 14px; font-weight: 600; }
.choice-box span { font-size: 13px; color: var(--muted); }
.choices.invalid .choice-box { box-shadow: inset 0 0 0 1px var(--danger); }
.choices .err { display: none; font-size: 12px; color: var(--danger); margin-top: 6px; }
.choices.invalid .err { display: block; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.check.invalid { color: var(--danger); }

.form-foot { display: grid; gap: 12px; padding-top: 8px; }
.form-foot .fine { font-size: 12px; color: var(--muted); text-align: center; }

.notice { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--light); font-size: 13px; color: var(--muted); }
.notice strong { color: var(--ink); }

.form-success { display: none; text-align: center; padding: 48px 24px; border-radius: var(--radius-lg); background: var(--green-soft); }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--green); }
.form-success .btn-row { margin-top: 24px; }
.form-done .form { display: none; }
.form-done .form-success { display: block; }

.counter { display: inline-flex; align-items: center; border-radius: var(--radius); background: var(--light); }
.counter button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.counter input { width: 56px; height: 44px; border: 0; background: transparent; text-align: center; font-size: 15px; -moz-appearance: textfield; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Store ---------- */
.store-hero {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px;
  margin-top: var(--header-h); padding: clamp(40px, 6vw, 72px) var(--gutter); overflow: hidden;
  background: linear-gradient(180deg, #eef1f4 0%, #f7f8f9 100%);
}
.store-hero .visual { justify-self: center; width: min(560px, 100%); }
.store-hero .lead { margin-top: 12px; }
.store-hero .btn-row { justify-content: flex-start; margin-top: 28px; }

.store-bar {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 16px; border: 0; border-radius: var(--radius); background: transparent; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; color: var(--muted); transition: background-color .3s, color .3s; }
.tab:hover { color: var(--ink); background: var(--light); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--light); box-shadow: inset 0 -2px 0 var(--ink); }
.sort { width: auto; height: 36px; font-size: 14px; }


.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.product { display: flex; flex-direction: column; }
.product-media {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--light); overflow: hidden;
  display: grid; place-items: center; padding: 12%;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.product:hover .product-media img { transform: scale(1.05); }
.product-tag { position: absolute; top: 14px; left: 14px; padding: 3px 10px; border-radius: 99px; background: var(--white); font-size: 12px; font-weight: 600; }
.product-quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product:hover .product-quick, .product:focus-within .product-quick { opacity: 1; transform: none; }
.product-info { padding: 14px 2px 0; display: grid; gap: 4px; }
.product-info h3 { font-size: 15px; font-weight: 500; }
.product-info .price { font-size: 15px; color: var(--ink-2); }
.product-info .blurb { font-size: 13px; color: var(--muted); }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.product-specs span { padding: 2px 8px; border-radius: 99px; background: var(--light); font-size: 12px; color: var(--ink-2); }
.product .btn-mobile { display: none; margin-top: 12px; }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }

.store-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card { padding: 28px; border-radius: var(--radius-lg); background: var(--light); }
.help-card svg { width: 26px; height: 26px; color: var(--green); }
.help-card h3 { margin-top: 14px; font-size: 16px; font-weight: 600; }
.help-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Cart drawer */
.cart { width: min(420px, 100%); padding: 0; display: flex; flex-direction: column; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 18px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--light); padding: 8px; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h3 { font-size: 14px; font-weight: 500; }
.cart-line .muted { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border-radius: var(--radius); background: var(--light); }
.qty button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; font-size: 15px; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; }
.cart-foot .fine { font-size: 12px; color: var(--muted); }
.cart-empty { padding: 64px 0; text-align: center; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 48px));
  padding: 12px 18px; border-radius: 99px; background: var(--ink); color: var(--white); font-size: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: transform .45s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
/* The open cart already shows what was added; keep the toast off its checkout button. */
.cart-open .toast { transform: translate(-50%, calc(100% + 48px)); transition-duration: .2s; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .impact-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app-split, .form-layout, .download, .store-hero { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .phones { order: 2; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 460px; }
  .store-help { grid-template-columns: 1fr; }
  .download { text-align: center; justify-items: center; }
  .download .btn-row { justify-content: center !important; }
  .store-hero { text-align: center; }
  .store-hero .btn-row { justify-content: center; }
  .store-hero .visual { order: -1; width: min(420px, 100%); }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .btn { min-width: 0; width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; gap: 12px; }
  .card-hero .btn-row { max-width: none; }
  .hero-bottom .btn-row { max-width: 420px; }
  .spec-bar { gap: 12px 20px; }
  .spec { min-width: 0; flex: 1 1 28%; }
  .spec-label { font-size: 11px; }
  .rail { grid-auto-columns: 88%; gap: 12px; }
  .card-hero { aspect-ratio: auto; min-height: 520px; }
  .rail-ctrls { display: none; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-item, .impact-item + .impact-item { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .impact-item:first-child { border-top: 0; }
  .row-2, .choice-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .team { gap: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .product-quick { display: none; }
  .product .btn-mobile { display: inline-flex; height: 34px; font-size: 13px; }
  .product-info .blurb, .product-specs { display: none; }
  .phones { height: 380px; }
  .phone { width: 150px; }
  .store-bar { flex-wrap: wrap; }
  .sort { display: none; }
}

/* ---------- Contextual fixes ---------- */
.footer-col .brand { display: inline-flex; }
.bg-dark .btn-store, .tile .btn-store { background: var(--white); color: var(--ink); }
.bg-dark .btn-store:hover { background: #e9eaeb; }
.download .lead { max-width: 560px; }

/* ---------- Typography: Manrope, heavier weights only for headlines ---------- */
h1, h2 { font-weight: 600; letter-spacing: -0.02em; }
h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
.hero-title { font-weight: 700; letter-spacing: -0.025em; }
.spec-value, .impact-value { font-weight: 600; }
.eyebrow { font-weight: 700; }

/* ---------- Our Story: cream surface, photo beside the copy ---------- */
.story { background: var(--cream); color: var(--ink); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #e9e3d6; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; transform: scale(1.14); transform-origin: 45% 62%; }
.story-copy { max-width: 560px; }
.story-copy > * + * { margin-top: 20px; }
.story-copy .h-xl { margin-top: 12px; }
.story-copy .h-xl em { font-style: normal; color: var(--green-deep); }
.story-copy .lead { color: var(--ink-2); }

/* ---------- Floating download pill: hidden fully, incl. safe area ---------- */
.sticky-cta { transform: translate(-50%, calc(100% + 40px + env(safe-area-inset-bottom, 0px))); }
.sticky-cta.show { transform: translate(-50%, 0); }

/* ---------- Hero stats ---------- */
.spec-label { font-size: 14px; line-height: 1.35; opacity: .9; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-photo { aspect-ratio: 3 / 2; }
  .story-copy { max-width: 640px; }
}
@media (max-width: 640px) {
  /* keep the last lines of each section clear of the floating pill */
  .section { padding-bottom: max(72px, var(--pill-clear)); }
  .story-copy > * + * { margin-top: 16px; }
  .story-copy .lead { font-size: 16px; line-height: 1.65; }

  .spec-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 420px; }
  .spec { min-width: 0; padding: 0 8px; }
  .spec + .spec { border-left: 1px solid rgba(255,255,255,.28); }
  .spec-value { font-size: 24px; }
  .spec-label { margin-top: 6px; font-size: 13px; }
}

/* ---------- Header: inline top menu on every desktop width ---------- */
.site-header { gap: 16px; }
.nav-main { position: static; transform: none; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-link { white-space: nowrap; }
.btn-download { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-main { gap: 0; }
  .nav-link { padding: 6px 9px; font-size: 13.5px; }
  .brand-word { letter-spacing: .24em; margin-right: -.24em; }
  .btn-download { padding: 0 12px; }
}
/* Side drawer only on tablets and phones */
@media (max-width: 899px) {
  .nav-main { display: none; }
  .menu-btn { display: inline-block; }
  .nav-actions .btn-download { display: none; }
}
@media (min-width: 900px) {
  #drawer, .drawer-backdrop[data-drawer-close] { display: none; }
}
.nav-link .l-short { display: none; }
@media (max-width: 1080px) {
  .nav-link .l-full { display: none; }
  .nav-link .l-short { display: inline; }
}

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + clamp(32px, 6vw, 64px)) var(--gutter) clamp(64px, 9vw, 112px); }
.legal-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-tabs { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.legal-tab { padding: 8px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background-color .3s, color .3s; }
.legal-tab:hover { background: var(--light); color: var(--ink); }
.legal-tab[aria-current="page"] { background: var(--light); color: var(--ink); box-shadow: inset 3px 0 0 var(--green); }
.legal-doc { max-width: 720px; }
.legal-doc .h-xl { margin-top: 12px; }
.legal-updated { margin-top: 12px; color: var(--muted); font-size: 14px; }
.legal-body { margin-top: 40px; color: var(--ink-2); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-body h2 { margin: 44px 0 12px; font-size: 21px; line-height: 1.3; color: var(--ink); }
.legal-body h3 { margin: 28px 0 8px; font-size: 17px; line-height: 1.35; color: var(--ink); }
.legal-body > :first-child { margin-top: 0; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--green-deep); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 24px; }
  .legal-tabs { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .legal-tabs::-webkit-scrollbar { display: none; }
  .legal-tab { white-space: nowrap; background: var(--light); }
  .legal-tab[aria-current="page"] { background: var(--ink); color: var(--white); box-shadow: none; }
}
