/* Palette and type come from the app (design/mockups-v2.html in the app repo). */
:root {
  --ink: #0F2133;
  --frost: #EEF2F5;
  --tin: #C9D3DB;
  --steel: #5F6E7C;
  --air: #12B5E5;
  --air-deep: #0A6F92;
  --line: #D5DCE2;
  --card: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .85, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font: 17px/1.5 var(--sans);
  color: var(--ink);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: var(--air-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
h1, h2, .num { font-family: var(--display); font-stretch: condensed; font-weight: 800; letter-spacing: -.012em; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: .94; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 650; line-height: 1.25; }
.num { font-variant-numeric: tabular-nums; line-height: .9; }
.lede { font-size: 20px; line-height: 1.45; color: var(--steel); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--steel); }
.fine { font-size: 14px; line-height: 1.45; color: var(--steel); }
:focus-visible { outline: 3px solid var(--air); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 26px; border: 0;
  font: 600 17px/1 var(--sans); color: #fff; background: var(--ink); text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: #fff; background: #1a3350; }
.btn.air { background: var(--air); color: var(--ink); }
.btn.air:hover { background: #0ea6d3; color: var(--ink); }
.btn.soft { background: rgba(18,181,229,.13); color: var(--air-deep); }
.btn.soft:hover { background: rgba(18,181,229,.2); color: var(--air-deep); }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn[aria-disabled="true"] { cursor: default; }

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 96px 24px; }
.section > h2 { max-width: 14em; }
.section > h2 + .lede, .section > h2 + p { margin-top: 18px; }
@media (max-width: 720px) { .section { padding: 64px 20px; } }

/* The top of the home page is night: the icon's lit navy, under the nav and the hero. */
.night { background: radial-gradient(110% 90% at 12% 0%, #2A5276 0%, #1B3753 40%, #0A1826 100%); color: #fff; padding-top: 76px; }
.night .lede, .night .fine { color: #A9BBC9; }
.night a { color: #8BE3FB; }
.night a:hover { color: #fff; }
.night .btn, .on-night .btn { background: var(--frost); color: var(--ink); }
.night .btn.soft { background: rgba(255,255,255,.12); color: #fff; }
.night .btn.soft:hover { background: rgba(255,255,255,.2); }
.on-night { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.on-night .logo, .on-night .nav-links a { color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.hero .fine { margin-top: 16px; }
.hero-tin { position: relative; display: grid; place-items: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero-tin { order: -1; }
}

/* The tin: a static SVG with an optional lid layer on top. */
.tin { position: relative; width: var(--size, 220px); height: var(--size, 220px); margin: 0 auto; flex: none; }
.tin > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tin .c { color: var(--ink); position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.tin .c .num { font-size: calc(var(--size, 220px) * .3); }
.tin .c small { font-size: calc(var(--size, 220px) * .062); font-weight: 500; margin-top: 2px; }
/* Text on the closed lid, pressed into the metal. */
.emb { color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.lid { position: absolute; inset: 0; z-index: 3; opacity: 0; transform: translate(12%, -40%) rotate(-16deg) scale(1.05); transition: transform .62s var(--ease), opacity .22s; pointer-events: none; }
.lid svg { display: block; width: 100%; height: 100%; overflow: visible; }
.closed .lid { opacity: 1; transform: none; }
.closed .c.open-only { opacity: 0; }
.tin .c.closed-only { opacity: 0; z-index: 4; }
.closed .c.closed-only { opacity: 1; }
.tin-toggle { margin-top: 22px; }

/* Pattern list */
.pattern { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 36px; margin: 40px 0 0; padding: 0; list-style: none; }
.pattern li { padding-left: 16px; border-left: 3px solid var(--air); font-size: 17px; line-height: 1.45; color: var(--steel); text-wrap: pretty; }
.pattern li b { display: block; color: var(--ink); font-weight: 650; }

/* Steps: a real sequence, so it's numbered. */
.steps { counter-reset: step; display: grid; gap: 56px; margin-top: 56px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.step:nth-child(even) .step-copy { order: 2; }
.step-copy { max-width: 30em; }
.step-copy h3 { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 32px; line-height: 1; }
.step-copy h3::before { counter-increment: step; content: counter(step); display: block; font-size: 15px; font-weight: 700; color: var(--air-deep); margin-bottom: 10px; font-stretch: normal; }
.step-copy p { margin-top: 14px; color: var(--steel); text-wrap: pretty; }
.step-copy p b { color: var(--ink); font-weight: 650; }
.step-visual { display: grid; place-items: center; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-copy { order: 0; }
}

/* Phone screens, recreated from the app's mockups. */
.phone { flex: none; width: 300px; height: 640px; border-radius: 48px; padding: 8px; background: #1B1F24; box-shadow: 0 24px 40px -24px rgba(0,0,0,.55), inset 0 0 0 1.5px #3A4048; }
.scr { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: var(--frost); color: var(--ink); font-size: 14px; line-height: 1.35; }
.scr.dark { background: var(--ink); color: #E9F0F5; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 9; }
.status { height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 2px 26px 0 30px; font-weight: 600; font-size: 14px; }
.status svg { height: 11px; width: auto; }
.status span { display: flex; gap: 5px; align-items: center; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 5px; border-radius: 3px; background: rgba(15,33,51,.9); z-index: 9; }
.dark .homebar { background: rgba(255,255,255,.85); }
.pad { padding: 0 16px; }
.hdr { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.scr h4 { margin: 0; font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.scr .sub { font-size: 13px; color: var(--steel); margin-top: 4px; }
.dark .sub { color: #9FB2C2; }
.scr .num { font-family: var(--display); font-stretch: condensed; font-weight: 800; }
.qd { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 14px; background: #fff; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(15,33,51,.08); }
.qd b { color: var(--air-deep); }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 23px; font-weight: 600; font-size: 15px; }
.sbtn.ink { background: var(--ink); color: #fff; }
.sbtn.air { background: var(--air); color: var(--ink); }
.sbtn.soft { background: rgba(18,181,229,.13); color: var(--air-deep); height: 42px; font-size: 14px; }
.sbtn.ghost { color: #9FB2C2; height: 36px; font-weight: 500; }
.sbtn + .sbtn { margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 18px; padding: 10px 2px; margin-top: 12px; }
.stats div { padding: 0 9px; border-left: 1px solid rgba(15,33,51,.08); }
.stats div:first-child { border-left: 0; }
.stats .num { font-size: 22px; display: block; }
.stats small { font-size: 11px; line-height: 1.2; color: var(--steel); display: block; margin-top: 3px; }
.hours { margin: 8px 0 12px; }
.hours .r2 { display: flex; justify-content: space-between; font-size: 12px; color: var(--steel); white-space: nowrap; }
.hours .r2 b { color: var(--air-deep); font-weight: 650; }
.hours svg { width: 100%; height: 38px; margin-top: 2px; overflow: visible; }
.today { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; }
.today small { font-size: 12px; font-weight: 600; color: var(--air-deep); }
.today b { display: block; font-size: 15px; font-weight: 650; margin-top: 2px; }
.today p { font-size: 13px; color: var(--steel); margin-top: 3px; }
.help { margin-top: 10px; font-size: 11.5px; color: var(--steel); text-align: center; }
.help b { color: var(--ink); font-weight: 600; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 20px; height: 54px; border-radius: 27px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; background: rgba(255,255,255,.7); box-shadow: 0 6px 20px -6px rgba(15,33,51,.22), inset 0 0 0 1px rgba(255,255,255,.75); z-index: 8; }
.tab { font-size: 10.5px; font-weight: 600; color: #51606E; padding: 6px 16px; border-radius: 20px; display: grid; justify-items: center; gap: 2px; }
.tab svg { width: 20px; height: 20px; }
.tab.on { color: var(--ink); background: rgba(15,33,51,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 16px; background: #fff; font-size: 12.5px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(15,33,51,.1); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip svg { width: 13px; height: 13px; }
.foot { position: absolute; left: 16px; right: 16px; bottom: 26px; }
.weeks { margin-top: 10px; display: grid; gap: 3px; }
.wk { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 11px; border-radius: 15px; }
.wk .tin { --size: 32px; margin: 0; }
.wk b { font-size: 13.5px; font-weight: 600; display: block; }
.wk small { font-size: 11px; color: var(--steel); line-height: 1.25; display: block; }
.wk .r { text-align: right; font-size: 13px; font-weight: 600; }
.wk .r small { display: block; font-weight: 500; }
.wk.done { opacity: .5; }
.wk.now { background: #fff; box-shadow: 0 4px 14px -6px rgba(15,33,51,.2); }
.wk.zero b { color: var(--air-deep); }
.mini-h { font-size: 12.5px; font-weight: 650; color: var(--steel); margin: 14px 4px 4px; }
.ms { display: grid; background: #fff; border-radius: 16px; padding: 2px 12px; }
.ms div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 7px 0; font-size: 12px; border-top: 1px solid rgba(15,33,51,.07); }
.ms div:first-child { border-top: 0; }
.ms b { font-weight: 650; white-space: nowrap; }
.ms span { color: var(--steel); }
.wave { margin-top: 10px; }
.wave svg { width: 100%; height: 72px; overflow: visible; }
.wave .r2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-top: 6px; }
.orb-wrap { display: grid; place-items: center; height: 112px; margin-top: 2px; }
.orb { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 16px; background: radial-gradient(circle at 40% 35%, rgba(18,181,229,.45), rgba(18,181,229,.12) 62%, rgba(18,181,229,0) 72%); box-shadow: inset 0 0 0 1.5px rgba(18,181,229,.55); transform: scale(.9); }
.why { margin-top: 8px; padding: 10px 13px; border-radius: 15px; background: rgba(255,255,255,.07); font-size: 13px; }
.why b { color: #fff; font-weight: 600; }
.big-money { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.big-money .num { font-size: 54px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 18px; margin-top: 10px; }
.grid4 div { padding: 7px 13px; }
.grid4 div:nth-child(2n) { border-left: 1px solid rgba(15,33,51,.08); }
.grid4 div:nth-child(n+3) { border-top: 1px solid rgba(15,33,51,.08); }
.grid4 .num { font-size: 22px; display: block; }
.grid4 small { font-size: 11px; color: var(--steel); }
.chart { margin-top: 8px; background: #fff; border-radius: 18px; padding: 8px 10px 4px; }
.chart header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; padding: 0 4px 4px; white-space: nowrap; }
.chart header span { font-weight: 500; color: var(--steel); font-size: 10.5px; }
.chart svg { width: 100%; overflow: visible; }
.steps-list { counter-reset: s; display: grid; gap: 8px; margin-top: 12px; padding: 12px 13px; background: #fff; border-radius: 16px; }
.steps-list div { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13px; }
.steps-list div::before { counter-increment: s; content: counter(s); width: 19px; height: 19px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tally { margin-top: 12px; display: flex; gap: 4px; justify-content: center; }
.tally i { width: 20px; height: 8px; border-radius: 4px; background: var(--ink); }
.tally i.slip { background: #B7C1C9; }
.tally i.next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Pair of phones side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.pair figure { margin: 0; display: grid; justify-items: center; gap: 16px; }
.pair figcaption { max-width: 300px; font-size: 15px; line-height: 1.45; color: var(--steel); text-wrap: pretty; }
.pair figcaption b { color: var(--ink); font-weight: 650; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

/* Free and Plus */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.tier { background: #fff; border-radius: 28px; padding: 32px 30px; }
.tier.plus { box-shadow: inset 0 0 0 2.5px var(--ink); }
.tier-name { display: inline-block; font-size: 13px; font-weight: 650; line-height: 1; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.tier.plus .tier-name { color: #fff; background: var(--air-deep); box-shadow: none; }
.tier .price { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
.tier .price .num { font-size: 56px; color: var(--ink); }
.tier .price span { color: var(--steel); font-size: 16px; }
.tier p { margin-top: 10px; color: var(--steel); text-wrap: pretty; }
.tier ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tier li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.4; }
.tier li svg { width: 20px; height: 20px; color: var(--air-deep); margin-top: 2px; }
.tier li b { font-weight: 650; }
.tier li span { color: var(--steel); }
.tier-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--steel); }
.tier-note b { color: var(--ink); font-weight: 650; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } .tier { padding: 26px 22px; } }

/* Timeline of what to expect */
.expect { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expect div { padding-top: 14px; border-top: 3px solid rgba(15,33,51,.14); }
.expect div:first-child { border-color: var(--ink); }
.expect div:last-child { border-color: var(--air); }
.expect b { display: block; font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 26px; line-height: 1; }
.expect p { margin-top: 8px; color: var(--steel); font-size: 16px; }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr 1fr; } }

/* Honest note and hotlines */
.note-box { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.note-box > div { background: #fff; border-radius: 24px; padding: 26px 28px; }
.note-box h3 { margin-bottom: 10px; }
.note-box p { color: var(--steel); text-wrap: pretty; }
.note-box p + p { margin-top: 10px; }
.hotline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hotline a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--frost); color: var(--ink); text-decoration: none; font-weight: 600; }
.hotline a:hover { background: #e1e8ee; }
@media (max-width: 760px) { .note-box { grid-template-columns: 1fr; } }

/* Closing */
.closing { text-align: left; }
.closing .hero-cta { margin-top: 28px; }

/* Footer */
.footer { max-width: 1120px; margin: 0 auto; padding: 40px 24px 48px; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: 14px; color: var(--steel); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer p { max-width: 70ch; text-wrap: pretty; }

/* Legal and support pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); }
.legal .updated { margin: 14px 0 32px; color: var(--steel); font-size: 15px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal .summary { background: #fff; border-radius: 20px; padding: 20px 24px; margin-bottom: 28px; }
.legal .summary ul { margin-top: 8px; }
.legal details { border-top: 1px solid var(--line); padding: 4px 0; }
.legal details:last-of-type { border-bottom: 1px solid var(--line); }
.legal summary { cursor: pointer; font-weight: 650; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
.legal details[open] summary::after { transform: rotate(-135deg); }
.legal details p { padding-bottom: 18px; color: var(--steel); }
.legal details p + p { padding-top: 0; margin-top: -8px; }
.legal details p b { color: var(--ink); }
.legal .faq-list { margin-top: 24px; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.lost .num { font-size: clamp(120px, 24vw, 220px); color: var(--tin); }
.lost h1 { margin-top: 12px; }
.lost p { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lid { transition: none; }
  .legal summary::after { transition: none; }
}
