:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #142019;
  --ink-2: #5b665f;
  --ink-3: #8a938d;
  --line: #e7e4dc;
  --green: #17824c;
  --green-deep: #0f5e37;
  --mint: #e3f4ea;
  --mint-2: #c8ecd7;
  --peach: #ffe3d3;
  --red: #c4372b;
  --red-soft: #fdeceb;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 25, .04), 0 2px 8px rgba(20, 32, 25, .04);
  --shadow-md: 0 2px 6px rgba(20, 32, 25, .04), 0 12px 32px -8px rgba(20, 32, 25, .10);
  --shadow-lg: 0 4px 12px rgba(20, 32, 25, .04), 0 32px 64px -24px rgba(20, 32, 25, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- soft background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; }
.bg__blob--a { width: 520px; height: 520px; background: var(--mint-2); top: -160px; right: -80px; animation: drift 18s var(--ease) infinite alternate; }
.bg__blob--b { width: 420px; height: 420px; background: var(--peach); top: 240px; left: -180px; animation: drift 22s var(--ease) infinite alternate-reverse; }
.bg__blob--c { width: 360px; height: 360px; background: #eef4cf; top: 120px; left: 40%; opacity: .45; animation: drift 26s var(--ease) infinite alternate; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-stuck { background: rgba(247, 245, 240, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; height: 72px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; transition: transform .25s var(--ease), background .2s;
}
.nav__cta:hover { transform: translateY(-1px); background: #233229; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.045em; margin: 22px 0 20px; font-weight: 650; }
.hero h1 em { font-style: normal; color: var(--green); }
.nw { white-space: nowrap; }
.hero__lede { font-size: 18.5px; color: var(--ink-2); max-width: 31em; margin: 0 0 28px; }

.saving {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm); font-size: 15px; color: var(--ink-2); margin-bottom: 36px;
}
.saving strong { color: var(--ink); white-space: nowrap; }
.saving__tag { white-space: nowrap; flex: none; background: var(--mint); color: var(--green-deep); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; }

.toasts { display: grid; gap: 12px; max-width: 360px; }
.toast {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); box-shadow: var(--shadow-md); font-size: 13.5px;
  animation: float 6s ease-in-out infinite;
}
.toast b { display: block; font-size: 12px; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
.toast span { color: var(--ink); }
.toast--2 { margin-left: 44px; animation-delay: -3s; }
.toast__icon {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--mint); color: var(--green); font-weight: 700; font-size: 16px;
}
.toast__icon--mpesa { background: var(--green); color: #fff; font-size: 15px; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- buy panel ---------- */
.panel {
  background: var(--surface); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(231, 228, 220, .7); position: relative;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel__head h2 { font-size: 22px; }
.panel__badge { font-size: 12.5px; font-weight: 500; color: var(--green-deep); background: var(--mint); padding: 5px 11px; border-radius: 999px; }

.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.field input[type=tel], .amount {
  width: 100%; font: 500 18px var(--font); color: var(--ink); padding: 15px 16px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; background: #f4f3ef; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input[type=tel]::placeholder, .amount input::placeholder { color: #a9afaa; font-weight: 400; }
.field input[type=tel]:hover, .amount:hover { background: #efede8; }
.field input[type=tel]:focus, .amount:focus-within { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 130, 76, .12); }
.field__hint { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }
.field__err { display: block; color: var(--red); font-size: 13px; margin-top: 8px; animation: fadeUp .3s var(--ease); }
.field__err:empty { display: none; }
.is-bad input[type=tel], .is-bad .amount { border-color: var(--red) !important; background: var(--red-soft) !important; box-shadow: none !important; }
.field--other { animation: fadeUp .35s var(--ease); }


.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.chip {
  font: 500 15.5px var(--font); padding: 12px 0; border-radius: var(--r-sm); cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: #c9cdc8; transform: translateY(-1px); }
.chip.is-on { background: var(--mint); border-color: var(--green); color: var(--green-deep); font-weight: 600; }

.amount { display: flex; align-items: center; padding: 0 0 0 16px; }
.amount__cur { color: var(--ink-3); font-weight: 500; font-size: 16px; }
.amount input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 500 18px var(--font); color: var(--ink); padding: 15px 16px 15px 8px; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount input[type=number] { -moz-appearance: textfield; }

.total-unused {
  display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 18px; padding: 14px 16px;
  background: var(--mint); border-radius: var(--r-sm); font-size: 14.5px; color: var(--green-deep);
  animation: fadeUp .3s var(--ease);
}
.total strong { font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font: 600 16.5px var(--font); padding: 17px 22px; border-radius: 16px; cursor: pointer; border: 0; text-decoration: none;
  background: var(--green); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -6px rgba(23, 130, 76, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s;
}
.btn:hover { background: #148a4f; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 28px -8px rgba(23, 130, 76, .6); }
.btn:active { transform: translateY(0); }
.btn__arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn.is-busy .btn__arrow { display: none; }
.btn.is-busy .btn__text::after {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.btn--soft { background: var(--mint); color: var(--green-deep); box-shadow: none; width: auto; padding: 13px 20px; font-size: 15px; }
.btn--soft:hover { background: var(--mint-2); box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); width: auto; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn--light:hover { background: #fff; box-shadow: 0 16px 30px -10px rgba(0,0,0,.4); }
@keyframes spin { to { transform: rotate(360deg); } }

.form__msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; animation: fadeUp .3s var(--ease); }
.form__msg:empty { display: none; }
.panel__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); }
.panel__foot svg { width: 15px; height: 15px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- receipt ---------- */
.receipt { animation: popIn .5s var(--ease); }
.receipt__top { text-align: center; padding: 6px 0 20px; }
.receipt__ring { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; position: relative; }
.receipt__ring span { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--mint-2); border-top-color: var(--green); animation: spin .9s linear infinite; }
.receipt.is-done .receipt__ring { background: var(--green); animation: popIn .5s var(--ease); }
.receipt.is-done .receipt__ring span { animation: none; border: 0; width: 22px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; border-radius: 0; transform: rotate(-45deg) translate(2px, -3px); }
.receipt.is-failed .receipt__ring { background: var(--red-soft); }
.receipt.is-failed .receipt__ring span { animation: none; border: 0; width: 22px; height: 22px; border-radius: 0;
  background: linear-gradient(45deg, transparent 45%, var(--red) 45%, var(--red) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--red) 45%, var(--red) 55%, transparent 55%); }
.receipt__msg { font-size: 16.5px; font-weight: 500; margin: 0 auto 6px; max-width: 22em; }
.receipt.is-done .receipt__msg { color: var(--green-deep); }
.receipt.is-failed .receipt__msg { color: var(--red); }
.receipt__time { font-size: 12.5px; color: var(--ink-3); }

.steps { list-style: none; margin: 0 0 18px; padding: 16px 18px; background: #f7f6f2; border-radius: var(--r-md); }
.steps li { position: relative; padding: 7px 0 7px 32px; color: var(--ink-3); font-size: 14.5px; transition: color .3s; }
.steps li::before { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #dcdad3; background: #fff; transition: all .3s var(--ease); }
.steps li.is-now { color: var(--ink); font-weight: 500; }
.steps li.is-now::before { border-color: var(--green); border-right-color: transparent; animation: spin .9s linear infinite; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { background: var(--green); border-color: var(--green); }
.steps li.is-done::after { content: ""; position: absolute; left: 6px; top: 15px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.steps li.is-fail { color: var(--red); font-weight: 500; }
.steps li.is-fail::before { background: var(--red); border-color: var(--red); }

.receipt__rows { margin: 0 0 22px; }
.receipt__rows div { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.receipt__rows div:last-child { border-bottom: 0; }
.receipt__rows dt { color: var(--ink-3); }
.receipt__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.link { font-size: 14.5px; color: var(--green); }

/* ---------- trust row ---------- */
.trust { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(255,255,255,.6); border: 1px solid rgba(231,228,220,.8); font-size: 15px; color: var(--ink-2); }
.trust__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; }
.trust__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */
.how, .help { padding: 100px 0 0; }
.section-head { max-width: 560px; margin-bottom: 44px; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.section-head h2, .help__intro h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.035em; }

.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border-radius: var(--r-lg); padding: 14px 14px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(231,228,220,.7); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__art { height: 150px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 24px; }
.step__art--1 { background: linear-gradient(140deg, #eaf6ef, #f6faf2); }
.step__art--2 { background: linear-gradient(140deg, #fff1e8, #fdf7ef); }
.step__art--3 { background: linear-gradient(140deg, #eef4d9, #f6f8ec); }
.step__no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; margin: 0 14px 14px; }
.step h3 { font-size: 20px; margin: 0 14px 8px; }
.step p { margin: 0 14px; color: var(--ink-2); font-size: 15.5px; }

.mini-input { background: #fff; border-radius: 12px; padding: 12px 18px; font-size: 20px; font-weight: 500; letter-spacing: .02em; box-shadow: var(--shadow-md); min-width: 150px; }
.mini-input i { font-style: normal; color: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-pin { display: flex; gap: 10px; background: #fff; padding: 16px 20px; border-radius: 14px; box-shadow: var(--shadow-md); }
.mini-pin i { width: 14px; height: 14px; border-radius: 50%; background: #e9d2c3; animation: pin 2.4s var(--ease) infinite; }
.mini-pin i:nth-child(2) { animation-delay: .25s; } .mini-pin i:nth-child(3) { animation-delay: .5s; } .mini-pin i:nth-child(4) { animation-delay: .75s; }
@keyframes pin { 0%, 15% { background: #e9d2c3; transform: scale(1); } 25%, 80% { background: #e0763b; transform: scale(1.1); } 100% { background: #e9d2c3; } }
.mini-done { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 28px; box-shadow: 0 12px 24px -8px rgba(23,130,76,.5); animation: float 4s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.help__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.help__intro { position: sticky; top: 110px; }
.help__intro p { color: var(--ink-2); margin: 14px 0 24px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; text-decoration: none;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-weight: 500; font-size: 15px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-btn svg { width: 20px; height: 20px; color: #25a35a; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.help__intro .help__hours { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r-md); border: 1px solid rgba(231,228,220,.8); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 500; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: #f2f1ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23142019' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); background-color: var(--mint); }
.faq__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq__body p { margin: 0; }
.faq details[open] .faq__body { animation: fadeUp .4s var(--ease); }

/* ---------- CTA ---------- */
.cta { padding: 100px 0; }
.cta__card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px 52px; border-radius: 32px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #2a9a5f 0%, var(--green) 40%, var(--green-deep) 100%);
  box-shadow: 0 30px 60px -30px rgba(15, 94, 55, .6);
}
.cta__card::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -80px; bottom: -200px; background: rgba(255,255,255,.08); }
.cta__card h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.cta__card p { margin: 8px 0 0; color: rgba(255,255,255,.78); }
.cta__card .btn { position: relative; }

/* ---------- footer ---------- */
.footer { background: #111a15; color: #a5ada8; padding: 72px 0 32px; border-radius: 36px 36px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand--light { color: #fff; }
.footer__brand p { margin: 16px 0 0; max-width: 26em; font-size: 15px; line-height: 1.65; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .credit { color: #cfd5d1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.footer .credit:hover { color: #fff; text-decoration-color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13.5px; color: #6f7872; }

/* ---------- motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 24px; }
  .toasts { display: none; }
  .saving { margin-bottom: 4px; }
  .trust { grid-template-columns: 1fr; margin-top: 40px; gap: 10px; }
  .how__grid { grid-template-columns: 1fr; }
  .help__grid { grid-template-columns: 1fr; gap: 32px; }
  .help__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero h1 { font-size: 38px; }
  .hero__lede { font-size: 17px; }
  .panel { padding: 22px; border-radius: 24px; }
  .how, .help { padding-top: 72px; }
  .cta { padding: 72px 0; }
  .cta__card { padding: 34px 26px; border-radius: 26px; }
  .cta__card .btn { width: 100%; }
  .footer { padding-top: 56px; border-radius: 28px 28px 0 0; }
  .bg__blob { filter: blur(60px); opacity: .55; }
}

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

/* ---------- who's it for: segmented control ---------- */
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 22px;
  background: #f1efea; border-radius: 16px;
}
.seg__opt {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px var(--font); color: var(--ink-2); background: none; border: 0; padding: 12px 8px; border-radius: 12px; cursor: pointer;
  transition: color .25s var(--ease);
}
.seg__opt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seg__opt.is-on { color: var(--ink); font-weight: 600; }
.seg__opt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.seg__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px;
  background: #fff; box-shadow: 0 1px 2px rgba(20,32,25,.06), 0 4px 12px -4px rgba(20,32,25,.12);
  transition: transform .4s var(--ease);
}
#buyForm[data-mode="other"] .seg__pill { transform: translateX(100%); }

/* ---------- phone inputs ---------- */
.field__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field__row .field__label { margin: 0; }
.pick {
  display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px var(--font); color: var(--green-deep);
  background: var(--mint); border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .2s;
}
.pick:hover { background: var(--mint-2); }
.pick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.phone { position: relative; }
.phone input { padding-right: 48px !important; letter-spacing: .01em; }
.phone__ok {
  position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green); opacity: 0; transform: scale(.5); transition: opacity .25s, transform .35s var(--ease);
}
.phone__ok::after { content: ""; position: absolute; left: 7px; top: 6px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.phone.is-ok .phone__ok { opacity: 1; transform: none; }
.is-bad .phone__ok { opacity: 0; }

.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.recent__label { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.recent__chip {
  font: 500 13px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: border-color .2s, background .2s;
}
.recent__chip:hover { border-color: var(--green); background: var(--mint); }

/* ---------- summary ---------- */
.summary { margin: 4px 0 18px; padding: 6px 16px; border-radius: var(--r-md); background: #f7f6f2; animation: fadeUp .3s var(--ease); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14.5px; color: var(--ink-2); }
.summary__row + .summary__row { border-top: 1px dashed var(--line); }
.summary__row strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary__row strong.is-missing { color: var(--ink-3); font-weight: 400; }
.summary__row--pay strong { color: var(--green-deep); font-size: 16px; }
#buyForm[data-mode="me"] #sToRow { display: none; }

/* ---------- logo ---------- */
.brand { gap: 11px; letter-spacing: -0.02em; }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 4px 12px -4px rgba(15, 94, 55, .45); }
.brand__logo--lg { width: 56px; height: 56px; border-radius: 16px; }
.brand__text { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; line-height: 1.05; }
.brand__text small { font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--green); margin-top: 3px; }
.brand--light .brand__text small { color: #6fd39b; }
.footer__motto { color: #6fd39b !important; font-weight: 500; font-style: italic; margin-top: 10px !important; }
@media (max-width: 600px) {
  .brand__logo { width: 36px; height: 36px; border-radius: 10px; }
  .brand__text { font-size: 15.5px; }
}
