/* Calm iOS design kit. Taken from brewfave.coffee and made product-neutral.
   To rebrand: change the accent tokens below (both light and dark), the fonts if you want,
   and the brand mark. Everything else follows. */

:root {
  /* Neutrals */
  --canvas: #F2F2F7; --surface: #FFFFFF; --inset: #EBEBF0;
  --text: #1C1C1E; --text-2: #6C6C70; --divider: #E5E5EA;
  /* Accents. --cat-1/2/3 are the three "kinds of thing" in your product. */
  --primary: #245C73; --calm: #287B78;
  --cat-1: #B0562B; --cat-2: #245C73; --cat-3: #3B7553;
  --danger: #A33C43;
  --on-color: #FFFFFF;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);
  /* Device frame */
  --frame: #8F8A84; --frame-edge: #6F6A65;
  /* Type */
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Inter", "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #262624; --surface: #30302E; --inset: #3B3B38;
    --text: #F5F4F0; --text-2: #B4B2AB; --divider: #45443F;
    --primary: #90C6DD; --calm: #8ED0C5;
    --cat-1: #E8A07A; --cat-2: #90C6DD; --cat-3: #9BCFAE;
    --danger: #F0A6AC; --on-color: #1F1E1D;
    --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
    --shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 40px -16px rgba(0,0,0,.5);
    --frame: #5D5953; --frame-edge: #46433F;
  }
}
:root[data-theme="dark"] {
  --canvas: #262624; --surface: #30302E; --inset: #3B3B38;
  --text: #F5F4F0; --text-2: #B4B2AB; --divider: #45443F;
  --primary: #90C6DD; --calm: #8ED0C5;
  --cat-1: #E8A07A; --cat-2: #90C6DD; --cat-3: #9BCFAE;
  --danger: #F0A6AC; --on-color: #1F1E1D;
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 40px -16px rgba(0,0,0,.5);
  --frame: #5D5953; --frame-edge: #46433F;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 7.4vw, 76px); }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Color helpers: put one of these on a .kicker, .tile, .points or .m-tile */
.c1 { --c: var(--cat-1); } .c2 { --c: var(--cat-2); }
.calm { --c: var(--calm); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 0; font: 700 17px/1 var(--round); text-decoration: none; cursor: pointer; background: var(--primary); color: var(--on-color); transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 11px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--divider); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--round); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img, .brand .mark { width: 32px; height: 32px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--round); color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.hero h1 { max-width: 12ch; }
.hero .lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--text-2); max-width: 30ch; margin: 22px 0 32px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.stage { display: flex; justify-content: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 64px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 112px 0; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--round); margin-bottom: 18px; color: var(--c, var(--primary)); }
.center .kicker { justify-content: center; }
.tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--on-color); background: var(--c, var(--primary)); font-size: 22px; flex: none; }
.tile.lg { width: 48px; height: 48px; border-radius: 13px; font-size: 26px; }
.section-lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 36ch; margin-top: 18px; line-height: 1.5; }
.center .section-lede { margin-left: auto; margin-right: auto; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip .stage { order: -1; } }
.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.points li > .icon { font-size: 22px; margin-top: 2px; color: var(--c, var(--primary)); }
.points b { font-weight: 600; }
.points span { color: var(--text-2); }
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }

/* Card grids */
.grid { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.grid .card { padding: 24px; }
.grid .card > .icon { font-size: 26px; color: var(--c, var(--calm)); margin-bottom: 16px; }
.grid .card h3 { font-size: 18px; margin-bottom: 6px; }
.grid .card p { color: var(--text-2); font-size: 15px; }
.soon { display: inline-block; font: 700 12px/1 var(--round); color: var(--primary); background: var(--primary-soft); padding: 5px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }

/* Band: one big card holding a centered heading and inset cards */
.band .wrap > .card { padding: 40px 24px; }
@media (min-width: 900px) { .band .wrap > .card { padding: 72px 64px; } }
.band .grid .card { background: var(--inset); box-shadow: none; }

/* Strip: wide card with icon, text and button in a row */
.strip .card { padding: 40px 24px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .strip .card { grid-template-columns: auto 1fr auto; padding: 48px; gap: 32px; } }
.strip h2 { font-size: clamp(28px, 4vw, 40px); }
.strip p { color: var(--text-2); margin-top: 8px; max-width: 46ch; }

/* Stats */
.stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.stats b { display: block; font: 800 40px/1 var(--round); color: var(--primary); }
.stats span { font-size: 15px; color: var(--text-2); }

/* Fields */
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--divider); background: var(--inset); color: var(--text); font: 500 16px var(--sans); padding: 0 14px; }
textarea { padding: 12px 14px; min-height: 120px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.panel { margin-top: 22px; padding: 20px; border-radius: 16px; background: var(--inset); }

/* Final call to action */
.final { text-align: center; }
.final h2 { max-width: 16ch; margin: 0 auto; }
.final .actions { justify-content: center; margin-top: 32px; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--divider); font-size: 15px; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--text-2); }
footer .made { margin-left: auto; }
@media (max-width: 640px) { footer .made { margin-left: 0; width: 100%; } }

/* Reading page (Privacy, Terms) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); }
.doc .summary { padding: 24px; margin: 32px 0 8px; }
.doc .summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.doc .summary li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.doc .summary .icon { color: var(--calm); font-size: 20px; margin-top: 3px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p + p { margin-top: 12px; }
.doc ul.plain { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }

/* ---------- Phone mockup (iPhone 17 Pro, 1206 x 2622) ----------
   To use a real screenshot, replace the .screen's contents with:
   <picture><source media="(prefers-color-scheme: dark)" srcset="shot-dark.png"><img src="shot-light.png" alt="..."></picture> */
.phone { --w: clamp(260px, 76vw, 350px); position: relative; width: var(--w); height: calc(var(--w) * 1476 / 715); flex: none; padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .185); background: linear-gradient(145deg, var(--frame), var(--frame-edge)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), 0 40px 80px -30px rgba(0,0,0,.35), 0 18px 36px -18px rgba(0,0,0,.25); container-type: inline-size; }
.phone::before { content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: var(--frame-edge); }
.phone::after { content: ""; position: absolute; left: -3px; top: 21%; width: 3px; height: 8%; border-radius: 3px 0 0 3px; background: var(--frame-edge); box-shadow: 0 calc(var(--w) * .14) 0 var(--frame-edge); }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .15); background: var(--canvas); font-family: var(--sans); color: var(--text); font-size: 4.3cqi; line-height: 1.3; }
.screen > picture, .screen > picture img, .screen > img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 2.6%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 3; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 5.4% 9% 0; font: 600 .95em/1 var(--sans); height: 9%; }
.bars { display: flex; gap: .3em; align-items: center; }
.bars i { display: block; width: 1.5em; height: .7em; border-radius: .2em; border: .12em solid currentColor; position: relative; }
.bars i::after { content: ""; position: absolute; inset: .08em; right: .3em; background: currentColor; border-radius: .08em; }
.bars s { display: block; width: 1em; height: .7em; background: currentColor; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.app { padding: 2% 5.5% 0; }
.app .title { font: 800 1.95em/1.1 var(--round); letter-spacing: -0.01em; margin: .4em 0 .7em; display: flex; justify-content: space-between; align-items: center; }
.tabbar { position: absolute; left: 4%; right: 4%; bottom: 3%; height: 7.5%; border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 .3em 1.2em rgba(0,0,0,.12); display: flex; justify-content: space-around; align-items: center; font-size: .62em; color: var(--text-2); backdrop-filter: blur(10px); }
.tabbar span { display: grid; justify-items: center; gap: .25em; font-weight: 600; }
.tabbar .icon { font-size: 1.9em; }
.tabbar .on { color: var(--primary); }

/* Pieces to build screens with (all sized in em, so they scale with the device) */
.m-card { background: var(--surface); border-radius: 1em; padding: .85em; margin-bottom: .6em; }
.m-row { display: flex; align-items: center; gap: .6em; }
.m-tile { width: 2.1em; height: 2.1em; border-radius: .55em; display: grid; place-items: center; color: var(--on-color); background: var(--c, var(--primary)); flex: none; }
.m-tile .icon { font-size: 1.2em; }
.m-strong { font-weight: 650; font-size: .95em; }
.m-sub { color: var(--text-2); font-size: .78em; }
.m-big { font: 800 1.25em/1.1 var(--round); margin: .15em 0; }

/* ---------- Motion ----------
   Content shows without JavaScript. kit.js adds the "js" class, then fades things in. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.parallax { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .parallax { transform: none !important; }
  .btn { transition: none; }
}
