/* DM Sans, SIL OFL 1.1: see /assets/fonts/OFL.txt */
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-500.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  /* primitive */
  --navy-900:#070D52; --navy-700:#0B1471; --navy-600:#121C88; --navy-200:#C9CDEF; --navy-50:#F2F3FB;
  --grey-900:#0F1222; --grey-600:#464B60; --grey-400:#7A8098; --grey-200:#E4E6EE; --grey-50:#F6F7FB; --white:#fff;
  --marigold:#F6A21A; --green-700:#0E6F50; --green-50:#E7F6EF; --amber-700:#8A5300; --amber-50:#FFF3DC; --blue-500:#2F5BFF; --yellow-400:#FFC857;
  /* semantic */
  --g-main:var(--white); --g-alt:var(--grey-50); --g-brand:var(--navy-700); --g-deep:var(--navy-900);
  --ink:var(--grey-900); --text:var(--grey-600); --line:var(--grey-200); --action:var(--navy-700); --action-hover:var(--navy-600);
  --focus:var(--blue-500);
  --font:"DM Sans", "Segoe UI", system-ui, sans-serif;
  --t-h1:clamp(38px,1.6rem + 3vw,72px); --t-h2:clamp(30px,1.4rem + 1.9vw,48px); --t-h3:20px; --t-lead:clamp(18px,1rem + .35vw,20px); --t-small:14px;
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px;
  --r-sm:10px; --r-lg:24px;
  --ease-out:cubic-bezier(.23,1,.32,1);
  /* component */
  --nav:56px; --pad-top:96px; --pad-bottom:48px; --gutter:24px;
  --btn-h:48px; --btn-r:999px; --card-bg:var(--white); --card-line:var(--line);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--g-main); overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#main:focus { outline: none; } /* skip-link target, not a control */
.on-brand { background: var(--g-brand); color: var(--white); --text:var(--navy-50); --action:var(--white); --focus:var(--yellow-400); }
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 2; padding: var(--s-3) var(--s-4); background: var(--white); color: var(--navy-700); border-radius: var(--r-sm); }
.skip:focus { top: var(--s-2); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h); padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--btn-r); font: 500 16px/1.25 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy-700); border-color: var(--grey-400); }
.on-brand .btn-primary { background: var(--white); color: var(--navy-700); }
.on-brand .btn-secondary { color: var(--white); border-color: var(--navy-200); }
.actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-6); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.tag { display: inline-block; margin-bottom: var(--s-4); padding: var(--s-1) var(--s-3); border-radius: var(--btn-r); background: var(--green-50); color: var(--green-700); font-size: var(--t-small); font-weight: 500; }

/* header and menu */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1; border-bottom: 1px solid rgb(255 255 255 / .16); }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); min-height: var(--nav); }
.home { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.mark { height: 28px; width: auto; }
.menu-btn, .menu-close { --btn-h:44px; }
.menu ul { display: flex; flex-direction: column; }
.menu ul a { display: flex; align-items: center; min-height: 56px; min-width: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu:popover-open { display: flex; flex-direction: column; gap: var(--s-2); position: fixed; inset: 0 0 auto; width: 100%; max-width: 100%; max-height: 100%; height: fit-content; margin: 0; padding: var(--s-3) var(--gutter) var(--s-5); border: 0; overflow: auto; }
.menu::backdrop { background: rgb(15 18 34 / .6); }
.menu-close { align-self: flex-end; }
/* keeps keyboard focus from landing behind the open sheet (WCAG 2.4.11) */
@media (max-width: 767.98px) { body:has(.menu:popover-open) :is(.skip, .home, .menu-btn, main, .closing) { visibility: hidden; } }

/* sections: text on the left line, pictures on the right */
.section, .hero, .closing { padding-block: var(--pad-top) var(--pad-bottom); }
.hero { padding-top: calc(var(--nav) + var(--s-7)); }
.alt { background: var(--g-alt); }
.section > .wrap, .hero > .wrap, .closing > .wrap, .stack { display: grid; gap: var(--s-7); align-content: start; grid-template-columns: minmax(0, 1fr); }
.lead { margin-top: var(--s-5); font-size: var(--t-lead); color: var(--text); }
h2 + p { margin-top: var(--s-4); }
.section p { color: var(--text); }
.aside { margin-top: var(--s-4); }

/* app screens and drawings */
.screen { justify-self: center; width: min(100%, 360px); border: 1px solid var(--grey-200); border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 24px 48px -24px rgb(7 13 82 / .35); }
.screen img { width: 100%; }
.art { justify-self: center; width: 100%; max-width: 520px; border-radius: var(--r-lg); }

/* lists, tiles, questions */
.rows > li { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.rows p { margin-top: var(--s-1); }
.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s-4); }
.steps > li > * { grid-column: 2; }
.steps > li::before { content: counter(step); grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--grey-400); border-radius: 50%; font-weight: 500; font-variant-numeric: tabular-nums; }
.tiles { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--card-bg); }
.tile .more { margin-top: auto; }
.tile > img { width: 48px; height: 48px; }
.legend { display: grid; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-small); }
.legend li { display: flex; align-items: center; gap: var(--s-2); }
.key { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.key-pickup { background: var(--green-700); }
.key-delivery { border: 2px dashed var(--navy-700); }
.faq { display: grid; gap: 0 var(--s-5); margin-top: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.qa { padding-block: var(--s-4); border-top: 1px solid var(--line); }
.qa h3 { font-size: 18px; margin-bottom: var(--s-1); }
.links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }

/* closing: statement and directory */
.closing { background: var(--g-deep); }
.closing h2 { max-width: 16ch; font-size: clamp(36px, 1rem + 4vw, 72px); }
.directory { display: grid; gap: var(--s-6); align-content: end; grid-template-columns: minmax(0, 1fr); }
.directory h3 { font-size: var(--t-small); color: var(--navy-200); margin-bottom: var(--s-2); }
.directory li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.directory .legal { grid-column: 1 / -1; margin: 0; font-size: var(--t-small); color: var(--navy-200); }
.mark-lg { height: 32px; width: auto; }

/* marigold awning edge: the one kirana accent */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: radial-gradient(circle at 12px 0, var(--marigold) 9px, transparent 9.5px) 0 0 / 24px 10px repeat-x; }
.shoplink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.trust { padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.trust ul { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust li { display: grid; gap: var(--s-1); align-content: start; padding-left: var(--s-3); border-left: 3px solid var(--marigold); }
.trust strong { font-weight: 500; line-height: 1.3; }
.trust span { font-size: var(--t-small); color: var(--grey-600); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); column-gap: var(--s-4); }

/* audience switcher */
.switch { display: grid; gap: var(--s-4); }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.tabs[hidden], .pane[hidden], .demo[hidden], .demo-step[hidden], .calc-controls[hidden] { display: none; }
.tabs button, .choices button { min-height: 48px; padding: var(--s-2) var(--s-4); border: 1px solid var(--grey-400); border-radius: var(--r-sm); background: var(--white); color: var(--navy-700); font: 500 16px/1.3 var(--font); cursor: pointer; transition: transform 160ms var(--ease-out); }
.tabs button:active, .choices button:active { transform: scale(.97); }
.tabs [aria-selected="true"], .choices [aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.panes { display: grid; gap: var(--s-3); }
.pane { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.ticks { display: grid; gap: var(--s-2); }
.ticks li { position: relative; padding-left: var(--s-5); color: var(--grey-600); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 6px; height: 11px; border: solid var(--green-700); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* order demo */
.visual { display: grid; align-content: start; grid-template-columns: minmax(0, 1fr); }
.demo { display: grid; gap: var(--s-4); width: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 24px 48px -24px rgb(7 13 82 / .35); }
.demo-note { font-size: var(--t-small); }
.demo-dots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); font-size: var(--t-small); color: var(--grey-600); }
.demo-dots li { padding-top: var(--s-2); border-top: 4px solid var(--grey-200); }
.demo-dots [aria-current] { border-color: var(--marigold); color: var(--ink); font-weight: 500; }
.demo-step { display: grid; gap: var(--s-3); }
.demo-step h3:focus { outline: none; }
.choices { display: grid; gap: var(--s-2); }
.choices button { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3); text-align: left; }
.choices small { font-size: var(--t-small); font-weight: 400; }
.demo-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.demo .btn:disabled { opacity: .45; cursor: not-allowed; }
.section .demo .code { font-size: 56px; font-weight: 500; letter-spacing: .18em; line-height: 1.1; color: var(--navy-700); font-variant-numeric: tabular-nums; }

/* discount explainer */
.calc { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.ladder { display: grid; gap: var(--s-2); align-content: start; }
.ladder li { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); padding: var(--s-4); border: 1px solid var(--grey-400); border-radius: var(--r-sm); background: var(--white); font-variant-numeric: tabular-nums; }
.ladder li::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--green-50); transform: scaleX(0); transform-origin: left; }
.ladder li.met { border-color: var(--green-700); }
.ladder li.met::before { transform: scaleX(1); }
.ladder li.met strong::before { content: "\2713  "; color: var(--green-700); }
.calc-controls { display: grid; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.calc input { width: 100%; height: 44px; margin: 0; accent-color: var(--navy-700); }
.calc output { font-weight: 500; font-variant-numeric: tabular-nums; }
.result { min-height: 9em; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.section .result .pct { font-size: 40px; font-weight: 500; line-height: 1.15; color: var(--navy-700); }

/* sticky phone button */
.ctabar { position: fixed; inset: auto 0 0; z-index: 1; display: grid; padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); transform: translateY(100%); visibility: hidden; }
.ctabar.show { transform: none; visibility: visible; }
@media (max-width: 767.98px) { html { scroll-padding-bottom: 80px; } body:has(.menu:popover-open) .ctabar { visibility: hidden; } }

/* hover only where a pointer can hover */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--action-hover); color: var(--white); }
  .btn-secondary:hover { background: var(--navy-50); }
  .on-brand .btn-primary:hover { background: var(--navy-50); color: var(--navy-700); }
  .on-brand .btn-secondary:hover { background: var(--navy-600); }
  .menu ul a:hover, .directory li a:hover { text-decoration: underline; }
  a:not(.btn):hover { text-decoration-thickness: 2px; }
  .tile:has(a:hover), .pane:has(.btn:hover) { transform: translateY(-2px); }
}

@media (min-width: 768px) {
  :root { --nav:72px; --pad-top:120px; --pad-bottom:72px; --gutter:48px; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tiles, .faq, .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mark { height: 32px; }
  .ctabar { display: none; }
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switch.on .panes { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .menu-btn, .menu .menu-close { display: none; }
  .menu, .menu:popover-open { display: flex; flex-direction: row; align-items: center; gap: var(--s-6); position: static; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: transparent; }
  .menu ul { flex-direction: row; gap: var(--s-6); }
  .menu ul a { min-height: 44px; }
  .menu .btn { --btn-h:44px; }
  /* menu left open while the screen widens, e.g. phone rotation */
  .menu:popover-open { position: fixed; inset: 0 0 auto auto; padding: var(--s-3) var(--gutter); background: var(--navy-700); }
  .menu::backdrop { display: none; }
}

@supports not selector(:popover-open) {
  .site-header { position: static; }
  .site-header .menu-btn, .menu .menu-close { display: none; }
  .menu { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); width: 100%; }
  .menu ul { flex-direction: row; flex-wrap: wrap; gap: 0 var(--s-4); }
}

@media (min-width: 1024px) {
  :root { --gutter:80px; }
  /* hero and closing fill a screen; other sections take the height of their content */
  .hero, .closing { display: flex; flex-direction: column; min-height: 100svh; }
  .hero > .wrap { flex: 1; }
  .closing > .wrap { flex: 1; align-content: space-between; }
  .section > .wrap > .cols, .hero > .wrap.cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .cols > :first-child { grid-column: 1 / span 6; }
  .cols > :nth-child(2) { grid-column: 8 / -1; }
  .cols > .screen { justify-self: end; }
  .hero .screen { width: min(360px, 100%, calc((100svh - var(--nav) - 120px) * .508)); }
  .section .screen { width: min(360px, 100%, calc((100svh - 192px) * .508)); }
  .screen.short { width: min(440px, 100%); }
  .hero .screen.short, .section .screen.short { width: min(440px, 100%, calc((100svh - 192px) * .68)); }
  .faq.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* motion: one entrance per page load; movement only when allowed */
@media (prefers-reduced-motion: no-preference) {
  .tile, .pane { transition: transform 200ms var(--ease-out); }
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  html:not(.keys) .switch.on .pane:not([hidden]), html:not(.keys) .demo-step:not([hidden]) { animation: enter 250ms var(--ease-out); }
  .ladder li::before { transition: transform 250ms var(--ease-out); }
  .ctabar { transition: transform 200ms var(--ease-out), visibility 200ms; }
  .hero h1, .hero .lead { animation: rise 500ms var(--ease-out) both; }
  .hero .lead { animation-delay: 60ms; }
  .hero .actions { animation: enter 500ms var(--ease-out) 120ms both; }
  .hero .screen, .hero .art { animation: rise 700ms var(--ease-out) 80ms both; } /* the one-time hero sequence */
  .menu:popover-open { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .menu:popover-open { opacity: 0; transform: translateY(-8px); } }
}
/* the headline and picture move but never start invisible, so they paint at once */
@keyframes rise { from { transform: translateY(16px); } }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
