/* Occasionly on the web — Evening look. The palette follows the open list's holiday
   (app.js sets the variables from Shared/Theme.swift); badges keep fixed colors. */
:root {
  --bg: #0B1C17; --side: #0F221C; --surface: #132B24; --raised: #273D36; --line: #18342C; --border: #1E3D33;
  --text: #F1F5EF; --soft: #C9D7CF; --muted: #A9BFB4; --accent: #F2C26B; --accent-ink: #14201B;
  --mint: #86CFA9; --over: #EE8C7E; --over-bg: #3A1E26;
  --photo: #EDEAE3; --photo-ink: #9E9B93;
  --serif: Newsreader, "New York", ui-serif, Georgia, serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); transition: background-color .4s ease; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.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(--accent); outline-offset: 2px; }
.wordmark { font: 600 21px/1 var(--serif); letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- full-page states ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 16px; text-align: center; }
.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14vh; }
.gate-brand img { border-radius: 10px; }
.gate .screen { max-width: 520px; }
.gate h1 { font: 500 clamp(30px, 5vw, 42px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 14px; }
.lede { color: var(--soft); font-size: 16px; margin: 0 0 28px; }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.quiet { color: var(--muted); }
.apple-button { display: inline-block; min-height: 44px; }

/* ---------- shell ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side {
  flex: 1 0 220px; max-width: 236px; background: var(--side); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--accent); }
.side-brand .wordmark { color: var(--text); }
.side-label { color: var(--muted); font-size: 12px; font-weight: 600; margin: 0; padding: 0 8px 6px; }
.list-link {
  display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px;
  color: var(--soft); text-decoration: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
}
.list-link:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.list-link[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; }
.list-link small { color: var(--muted); font-size: 12px; font-weight: 500; }
.list-link[aria-current="page"] small { color: var(--accent); }
.side-foot { margin-top: auto; padding: 12px 0 0 8px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.sync { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; overflow: hidden; }
.side-signout { flex: none; white-space: nowrap; border: 0; background: none; color: var(--soft); font-weight: 600; font-size: 12px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.side-signout:hover { background: var(--surface); color: var(--text); }
.apple-signout-hidden { display: none; }
.sync-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.paste { padding: 16px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.paste-pill {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: text;
}
.paste-pill:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.paste-pill input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; }
.paste-pill input::placeholder { color: var(--muted); }
.pill-button { height: 38px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; white-space: nowrap; }
.pill-button:disabled { opacity: .6; cursor: default; }
.paste-hint { margin: 8px 16px 0; color: var(--muted); font-size: 13px; }
.paste.busy .pill-button { opacity: .6; }

.content { padding: 30px 32px 64px; display: flex; flex-direction: column; gap: 30px; max-width: 1180px; }
.page-head h1 { margin: 0; font: 500 40px/1.05 var(--serif); letter-spacing: -0.02em; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* budget tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { display: block; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tile-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #14201B; flex: none; }
.tile-left { display: block; margin-top: 10px; font-size: 20px; font-weight: 800; }
.tile.over .tile-left { color: var(--over); }
.tile-of { display: block; color: var(--muted); font-size: 12px; }
.meter { display: flex; gap: 1px; height: 4px; border-radius: 2px; background: var(--raised); margin-top: 10px; overflow: hidden; }
.meter .spent { background: var(--mint); }
.meter .planned { background: repeating-linear-gradient(135deg, var(--mint) 0 2px, color-mix(in srgb, var(--mint) 35%, var(--raised)) 2px 4px); }
.tile.over .meter .spent { background: var(--over); }

/* shelves */
.shelf { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; margin-top: 4px; }
.shelf + .shelf { margin-top: 26px; }
.shelf-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.shelf-head h2 { margin: 0; font: 500 26px/1.1 var(--serif); }
.shelf-head span { color: var(--muted); }
.shelf-head button { margin-left: auto; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; }
.shelf-head button:hover { border-color: var(--accent); color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.card-link { color: inherit; text-decoration: none; display: block; }
.card h3 .card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card:hover .photo img { transform: scale(1.03); }
.card-remove {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 9px; border: 0;
  display: grid; place-items: center; background: rgba(255,255,255,.94); color: #4A4F4B; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); opacity: 0; transition: opacity .15s ease;
}
.card:hover .card-remove, .card-remove:focus-visible { opacity: 1; }
.card-remove:hover { background: #FFFFFF; color: #B8322A; }
@media (hover: none) { .card-remove { opacity: 1; } }
.photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; background: #fff; overflow: hidden; display: grid; place-items: center; color: var(--photo-ink); }
.photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .25s ease; }
.photo.empty { background: var(--photo); }
.photo:not(.empty) .photo-placeholder { display: none; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.toBuy { background: #fff; color: #1D2420; box-shadow: 0 0 0 1px #DAD8D2; }
.badge.bought, .badge.ordered { background: #1F5A43; color: #fff; }
.badge.wrapped { background: #B8322A; color: #fff; }
.badge.given { background: #1D2420; color: #fff; }
.badge.idea { background: rgba(255,255,255,.9); color: #4A4F4B; border: 1px dashed #9E9B93; }
.card-store { color: var(--muted); font-size: 12px; }
.card h3 { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.card-price b { font-size: 16px; font-weight: 800; }
.card-price small { color: var(--mint); font-size: 12px; font-weight: 700; }
.empty-shelf { color: var(--muted); padding: 18px; border: 1px dashed var(--border); border-radius: 12px; }

/* people in the sidebar */
.person-link-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-link small.over { color: var(--over); }
.shelf-person { color: inherit; text-decoration: none; }
.shelf-person:hover { color: var(--accent); }
.tile:hover .tile-name { color: var(--accent); }

/* one person's page */
.back-link { align-self: flex-start; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.back-link::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--text); }
.person-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: -8px; }
.person-head .avatar { font-size: 26px; }
.person-title { flex: 1; min-width: 200px; }
.person-title h1 { margin: 0; font: 500 44px/1.02 var(--serif); letter-spacing: -0.02em; }
.person-title p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.person-head .button.person-add { flex: none; padding: 0 22px; }
.person-budget { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.person-budget dl, .person-about dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px 24px; }
.person-budget dt, .person-about dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.person-budget dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.person-budget dd.big { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.person-budget.over dd.big { color: var(--over); }
.meter.big { height: 8px; border-radius: 4px; margin: 0; gap: 2px; }
.person-budget.over .meter .spent { background: var(--over); }
.person-about { padding: 4px 2px; }
.person-about dd { margin: 4px 0 0; color: var(--text); font-size: 15px; }

/* ---------- new gift panel ---------- */
.drawer {
  flex: 1 0 320px; max-width: 360px; background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -24px 0 48px rgba(0,0,0,.28); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  animation: slide-in .22s ease both;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } }
.drawer-inner { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { margin: 0; font: 500 22px/1.2 var(--serif); }
.icon-button { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-button:hover { background: var(--raised); color: var(--text); }
.drawer .photo { aspect-ratio: 4 / 3; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0 0 8px; }
.field input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; }
.field input:focus { outline: none; border-color: var(--accent); }
.field a { height: 44px; display: flex; align-items: center; color: var(--soft); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field a:hover { color: var(--accent); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { margin: -4px 0 0; color: var(--accent); font-size: 13px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button {
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: transparent;
  color: var(--soft); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.segmented button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.budget { margin: 0; color: var(--soft); }
.budget b { color: var(--text); }
.budget.over b { color: var(--over); }
.warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--over-bg); color: var(--over); font-size: 13px; }
.drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.drawer-actions .button, .drawer-actions .button.primary { flex: 0 0 auto; width: 100%; height: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.button.secondary { border-color: transparent; color: var(--soft); }
.button.secondary:hover { color: var(--text); border-color: var(--border); }
.button {
  height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); background: transparent;
  color: var(--text); font-weight: 600; cursor: pointer;
}
.button.primary { flex: 1; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.button:disabled { opacity: .55; cursor: default; }
.gate .button { padding: 0 22px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.toast.bad { background: var(--over); color: #2a0d0a; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-action { border: 0; background: none; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 2px; }

/* ---------- behind Apple's sign-in window ---------- */
.signin-veil { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(12, 18, 15, .55); backdrop-filter: blur(6px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.signin-card { width: min(420px, 100%); background: #FFFFFF; color: #1D2420; border-radius: 20px; padding: 32px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); font-family: var(--sans); }
.signin-card h2 { font: 600 22px/1.25 var(--sans); letter-spacing: -0.01em; margin: 14px 0 10px; }
.signin-card p { margin: 0 0 24px; color: #4A524D; font-size: 15px; line-height: 1.55; }
.signin-actions { display: flex; flex-direction: column; gap: 10px; }
.signin-btn { height: 48px; border-radius: 12px; border: 1.5px solid #D9D7D1; background: #FFFFFF; color: #1D2420; font: 700 15px/1 var(--sans); cursor: pointer; }
.signin-btn:hover { border-color: #1D2420; }
.signin-btn.primary { background: #000000; border-color: #000000; color: #FFFFFF; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .drawer { position: fixed; right: 0; top: 0; bottom: 0; height: auto; width: min(380px, 100vw); max-width: none; z-index: 10; }
}
@media (max-width: 760px) {
  .side { position: static; height: auto; max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side-brand { padding: 0; }
  .side-group { display: contents; }
  .side-label { display: none; }
  .side-people { display: none; }
  .person-title h1 { font-size: 34px; }
  .person-head .button.person-add { width: 100%; }
  #lists { display: flex; gap: 6px; overflow-x: auto; order: 3; flex-basis: 100%; }
  .list-link { width: auto; white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; }
  .sync { display: none; }
  .paste, .content { padding-left: 16px; padding-right: 16px; }
  .page-head h1 { font-size: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pill-button { padding: 0 14px; }
  .drawer { top: auto; max-height: 88vh; width: 100vw; border-left: 0; border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; }
  .drawer-inner { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ---------- landing page (signed out) ----------
   One spacing scale (8px steps), one button system, one type scale. */
body.landing-mode { background: #FFFFFF; color-scheme: light; }
.landing {
  --l-ink: #1D2420; --l-soft: #4A524D; --l-faint: #8A8F8B; --l-line: #E8E6E1; --l-tint: #F6F4EF;
  --l-green: #1F5A43; --l-red: #B8322A;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  background: #FFFFFF; color: var(--l-ink); font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.landing :focus-visible { outline: 2px solid var(--l-green); outline-offset: 3px; }
.l-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--s4); }

/* buttons */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px; border: 1.5px solid transparent;
  font: 700 16px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.l-btn-primary { background: var(--l-ink); color: #FFFFFF; }
.l-btn-primary:hover { background: #000000; }
.l-btn-secondary { background: #FFFFFF; color: var(--l-ink); border-color: #D9D7D1; }
.l-btn-secondary:hover { border-color: var(--l-ink); }
.l-btn-light { background: #FFFFFF; color: var(--l-green); }
.l-btn-light:hover { background: var(--l-tint); }
.l-btn-sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.landing .apple-button { min-height: 52px; display: inline-flex; align-items: center; }

/* header */
.l-top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--l-line); }
.l-top-row { display: flex; align-items: center; gap: var(--s5); height: 72px; }
.l-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--l-green); text-decoration: none; }
.l-brand img { border-radius: 8px; }
.l-nav { display: flex; gap: var(--s4); margin-left: auto; }
.l-nav a { color: var(--l-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.l-nav a:hover { color: var(--l-ink); }

/* hero */
.l-hero { padding: var(--s7) 0 var(--s7); scroll-margin-top: 72px; }
.l-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6); align-items: center; }
.l-hero h1 { font: 500 clamp(44px, 5.6vw, 68px)/1.02 var(--serif); letter-spacing: -0.03em; margin: 0; max-width: 11ch; }
.l-lede { font-size: 20px; line-height: 1.55; color: var(--l-soft); margin: var(--s3) 0 var(--s5); max-width: 30em; }
.l-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.l-fine { color: var(--l-faint); font-size: 14px; margin: var(--s3) 0 0; }

.l-hero-art { position: relative; padding: 0 0 var(--s6) var(--s3); }
.l-frame { border-radius: 16px; background: #0E1A16; box-shadow: 0 50px 100px -40px rgba(15, 40, 30, .5), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.l-frame-bar { display: flex; gap: 6px; padding: 12px 14px; background: #0B1612; }
.l-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2A3B34; }
.l-frame-body { padding: 20px 24px 28px; color: #EEF2EC; font-size: 12px; line-height: 1.4; }
.l-mini-paste { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 4px 0 14px; border-radius: 999px; background: #14231E; border: 1px solid #2B4138; color: #8FA59A; }
.l-mini-paste b { background: #F2C26B; color: #14201B; border-radius: 999px; padding: 6px 12px; font-size: 11px; }
.l-mini-title { font: 500 24px/1 var(--serif); margin: 20px 0 12px; }
.l-mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.l-mini-tiles div { background: #14231E; border: 1px solid #22352E; border-radius: 9px; padding: 10px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.l-mini-tiles i { width: 14px; height: 14px; border-radius: 50%; }
.l-mini-tiles b { flex-basis: 100%; font-size: 14px; }
.l-mini-tiles s { flex-basis: 100%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #86CFA9 var(--w), #22352E var(--w)); }
.l-mini-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.l-mini-card { display: flex; flex-direction: column; gap: 4px; }
.l-mini-card span { font-weight: 600; }
.l-mini-photo { position: relative; aspect-ratio: 1; border-radius: 9px; background: #FFFFFF; display: grid; place-items: center; margin-bottom: 4px; }
.l-mini-photo svg { width: 58%; fill: none; stroke: #9E9B93; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.l-mini-photo em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #fff; color: #1D2420; box-shadow: 0 0 0 1px #DAD8D2; }
.l-mini-photo em.wrapped { background: #B8322A; color: #fff; box-shadow: none; }
.l-mini-photo em.bought { background: #1F5A43; color: #fff; box-shadow: none; }

/* the iPhone frame used for real app screenshots */
.l-phone {
  width: 100%; aspect-ratio: 390 / 844; border-radius: 15% / 7%; padding: 3.2%;
  background: #121513; box-shadow: 0 0 0 1px #2B2F2C inset, 0 40px 80px -30px rgba(15, 40, 30, .45);
}
.l-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12% / 5.6%; background: #0E1A16; }
.l-hero-phone { position: absolute; right: -16px; bottom: 0; width: 34%; max-width: 210px; }
.l-hero-art .l-float { display: none; }
.l-hero-art.no-phone .l-hero-phone { display: none; }
.l-hero-art.no-phone .l-float { display: flex; }
.l-float { position: absolute; left: 0; bottom: 0; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 20px 44px -14px rgba(15, 40, 30, .35), 0 0 0 1px var(--l-line); }
.l-float-photo { width: 56px; height: 56px; border-radius: 10px; background: var(--l-tint); display: grid; place-items: center; }
.l-float-photo svg { width: 70%; fill: none; stroke: var(--l-red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.l-float small { display: block; color: var(--l-soft); font-size: 12px; line-height: 1.3; }
.l-float strong { display: block; font-size: 15px; line-height: 1.3; }
.l-float span { display: block; font-size: 13px; color: var(--l-green); font-weight: 700; line-height: 1.3; }

/* stores */
.l-stores { border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); padding: var(--s4) 0; }
.l-stores .l-wrap { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.l-stores p { margin: 0; color: var(--l-soft); font-size: 14px; font-weight: 600; }
.l-stores ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s4); flex-wrap: wrap; }
.l-stores li { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #A3A7A4; }

/* sections */
.l-section { padding: var(--s8) 0; scroll-margin-top: 72px; }
.l-section h2, .l-closer h2 { font: 500 clamp(34px, 3.8vw, 48px)/1.08 var(--serif); letter-spacing: -0.025em; margin: 0 0 var(--s5); max-width: 18ch; }
.l-tint { background: var(--l-tint); }
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.l-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--l-green); color: #fff; font-weight: 800; font-size: 16px; margin-bottom: var(--s3); }
.l-steps h3, .l-feature h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 var(--s1); }
.l-steps p, .l-feature p, .l-feature-lead p, .l-app-head p { margin: 0; color: var(--l-soft); max-width: 34em; }

.l-app { padding-top: 0; }
.l-app-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: end; margin-bottom: var(--s6); }
.l-app-head h2 { margin: 0; }
.l-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); padding: 0 var(--s5); }
.l-shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; }
.l-shot .l-phone { max-width: 280px; }
.l-shot:nth-child(2) { transform: translateY(-32px); }
.l-shot figcaption { color: var(--l-soft); font-size: 15px; max-width: 24ch; }
.l-shot figcaption strong { display: block; color: var(--l-ink); font-size: 17px; margin-bottom: 4px; }

.l-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s5); }
.l-feature-lead { grid-column: 1 / -1; }
.l-feature-lead h2 { margin-bottom: var(--s2); }
.l-feature { border-top: 1.5px solid var(--l-ink); padding-top: var(--s3); }

.l-faq h2 { margin-bottom: var(--s4); }
.l-faq details { border-bottom: 1px solid var(--l-line); max-width: 760px; }
.l-faq details:first-of-type { border-top: 1px solid var(--l-line); }
.l-faq summary { cursor: pointer; padding: var(--s3) 0; font-size: 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--l-soft); border-bottom: 2px solid var(--l-soft); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; flex: none; }
.l-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.l-faq details p { margin: 0 0 var(--s3); color: var(--l-soft); max-width: 60ch; }

.l-closer { background: var(--l-green); color: #fff; padding: var(--s7) 0; text-align: center; }
.l-closer h2 { margin: 0 auto var(--s2); }
.l-closer p { margin: 0 0 var(--s4); color: rgba(255,255,255,.8); }

.l-foot { padding: var(--s4) 0 var(--s5); color: var(--l-soft); font-size: 14px; border-top: 1px solid var(--l-line); }
.l-foot-row { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.l-foot .l-brand { font-weight: 700; color: var(--l-ink); }
.l-foot nav { display: flex; gap: var(--s3); }
.l-foot a { color: var(--l-soft); text-decoration: none; }
.l-foot a:hover { color: var(--l-ink); }
.l-copy { margin-left: auto; color: var(--l-faint); }

@media (max-width: 960px) {
  .l-hero { padding: var(--s6) 0; }
  .l-hero-grid, .l-app-head { grid-template-columns: 1fr; gap: var(--s5); }
  .l-steps, .l-features { grid-template-columns: 1fr; gap: var(--s4); }
  .l-section { padding: var(--s7) 0; }
  .l-app { padding-top: 0; }
  .l-nav { display: none; }
  .l-top-row .l-btn { margin-left: auto; }
  .l-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); padding: 0; }
  .l-shot:nth-child(2) { transform: none; }
}
@media (max-width: 600px) {
  .l-wrap { padding: 0 var(--s2); }
  .landing { font-size: 16px; }
  .l-lede { font-size: 18px; }
  .l-actions .l-btn, .l-actions .apple-button { width: 100%; justify-content: center; }
  .l-hero-art { padding-left: 0; }
  .l-hero-phone { right: -8px; width: 38%; }
  .l-frame-body { padding: 14px; }
  .l-mini-tiles div:nth-child(3), .l-mini-card:nth-child(3) { display: none; }
  .l-mini-tiles, .l-mini-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-phones { grid-template-columns: 1fr; gap: var(--s5); }
  .l-shot .l-phone { max-width: 240px; }
  .l-stores .l-wrap { gap: var(--s2); }
  .l-stores ul { gap: var(--s2) var(--s3); }
  .l-copy { margin-left: 0; flex-basis: 100%; }
}
