/* Level Up — sales site. Same brand system as the app: ivory paper, burgundy ink, rose-quartz accent. */
/* Level Up Daily brand: Oxblood #581F36 · Rose #D89AB1 · Blush #F1D8E2 · Porcelain Pink #FAF0F3 · Charcoal #282127 */
:root {
  --paper: #FCF9F6;
  --paper-2: #F4EEE7;
  --blush: #F1D8E2;
  --charcoal: #282127;
  --money: #3F6F66;
  --money-soft: #DCEBE7;
  --card: #FFFFFF;
  --ink: #282127;
  --ink-2: #5E4E58;
  --ink-3: #8E7D87;
  --line: #ECE2D9;
  --head: #581F36;
  --accent: #581F36;
  --accent-soft: #F1D8E2;
  --accent-ink: #581F36;
  --rose: #D89AB1;
  --on-accent: #FAF0F3;
  --butter: #F4EAC9;
  --sage: #DCE6DA;
  --sky: #DDE6F1;
  --lilac: #E9E1F2;
  --apricot: #F8E2D3;
  --harbour: #5880B8;
  --wattle: #C2961F;
  --gum: #6A8F67;
  --device: #3A2D34;
  --shadow: 0 30px 60px -30px rgba(88, 31, 54, .38), 0 12px 24px -16px rgba(40, 33, 39, .18);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px;
  --wrap: 1180px;
  --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1519; --paper-2: #2A1C23; --card: #261C21; --ink: #F5E9EE; --ink-2: #D3BFC8; --ink-3: #9C8792;
    --line: #3C2B33; --head: #F1D8E2; --accent: #D89AB1; --accent-soft: #3E2330; --accent-ink: #F1D8E2; --rose: #D89AB1; --on-accent: #282127; --blush: #3E2330; --money: #8CC2B6; --money-soft: #22332F;
    --butter: #33282A; --sage: #2A2428; --sky: #33222B; --lilac: #30242C; --apricot: #33232A; --device: #0D090B;
    --shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 12px 24px -16px rgba(0,0,0,.5);
    --logo-filter: brightness(0) invert(94%) sepia(8%) saturate(400%) hue-rotate(290deg);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1C1519; --paper-2: #2A1C23; --card: #261C21; --ink: #F5E9EE; --ink-2: #D3BFC8; --ink-3: #9C8792;
  --line: #3C2B33; --head: #F1D8E2; --accent: #D89AB1; --accent-soft: #3E2330; --accent-ink: #F1D8E2; --rose: #D89AB1; --on-accent: #282127; --blush: #3E2330; --money: #8CC2B6; --money-soft: #22332F;
  --butter: #33282A; --sage: #2A2428; --sky: #33222B; --lilac: #30242C; --apricot: #33232A; --device: #0D090B;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 12px 24px -16px rgba(0,0,0,.5);
  --logo-filter: brightness(0) invert(94%) sepia(8%) saturate(400%) hue-rotate(290deg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 48, 'SOFT' 50, 'WONK' 0; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.015em; color: var(--head); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 0; }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: inherit; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
section { padding-block: clamp(64px, 9vw, 120px); }
.stack { display: grid; gap: 18px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; filter: var(--logo-filter); }
footer .brand img { height: 44px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 40px; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 700 1rem var(--sans); padding: 15px 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(58,29,36,.6); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.sm { padding: 10px 18px; font-size: .9rem; }
.btn.block { width: 100%; }
.nav .btn { color: var(--on-accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; }
.hero-copy { display: grid; gap: 24px; max-width: 760px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.hero-note span::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.stage { position: relative; margin-top: 18px; padding-bottom: 6%; }
.stage .laptop { width: 88%; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 23%; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }
.blob.a { width: 46%; aspect-ratio: 1; background: var(--accent-soft); left: 10%; top: 4%; }
.blob.b { width: 30%; aspect-ratio: 1; background: var(--butter); right: 4%; top: 30%; }

/* Device frames */
.laptop { position: relative; max-width: 100%; }
.laptop .screen { background: var(--device); border-radius: 18px 18px 6px 6px; padding: 1.6% 1.6% 1.2%; box-shadow: var(--shadow); }
.laptop .screen img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--paper-2); }
.laptop .base { height: 14px; margin: 0 -5%; background: linear-gradient(var(--line), color-mix(in srgb, var(--line) 60%, var(--ink-3))); border-radius: 0 0 16px 16px; position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 16%; height: 6px; border-radius: 0 0 8px 8px; background: color-mix(in srgb, var(--line) 50%, var(--ink-3)); }
.phone { background: var(--device); border-radius: 13.5% / 6.3%; padding: clamp(3px, .45vw, 6px); box-shadow: var(--shadow); position: relative; max-width: 100%; }
.phone img { border-radius: 12.4% / 5.8%; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--paper-2); }
.phone::before { content: ""; position: absolute; top: 1.6%; left: 50%; transform: translateX(-50%); width: 24%; height: 2%; border-radius: 99px; background: var(--device); z-index: 2; }

/* Marquee of themes */
.themes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; display: block; }

/* Proof strip (facts, not reviews) */
.strip { border-block: 1px solid var(--line); padding-block: 26px; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.strip b { display: block; font: 600 1.6rem/1.1 var(--serif); color: var(--head); }
.strip span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.products.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 1240px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; } }
@media (max-width: 980px) { .products, .products.two { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px; display: grid; gap: 18px; align-content: start; position: relative; }
.pcard.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.pcard .tag { position: absolute; top: -13px; left: 26px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.pcard .thumb { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pcard .thumb.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font: 600 2.6rem/1 var(--serif); color: var(--head); }
.price span { color: var(--ink-2); font-size: .9rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23581F36' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
@media (max-width: 900px) { .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps, .steps.three { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font: italic 600 1.9rem var(--serif); color: var(--rose); }
.step h4 { font-size: 1.15rem; }
.step p { font-size: .95rem; color: var(--ink-2); }

/* Feature tour */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.tour.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tour.flip .tour-copy { order: 2; }
@media (max-width: 860px) { .tour, .tour.flip { grid-template-columns: minmax(0, 1fr); } .tour.flip .tour-copy { order: 0; } }
.tour-copy { display: grid; gap: 18px; }
.tour + .tour { margin-top: clamp(72px, 10vw, 130px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.chip.b { background: var(--butter); color: var(--ink); }
.chip.s { background: var(--sage); color: var(--ink); }
.chip.k { background: var(--sky); color: var(--ink); }
.chip.l { background: var(--lilac); color: var(--ink); }
.pair { position: relative; padding-right: 14%; }
.pair .phone { position: absolute; right: 0; bottom: -8%; width: 28%; }

/* Bands */
.band { background: var(--paper-2); }
.band.blush { background: var(--blush); }
.band.sage { background: var(--sage); }
.band.ink { background: #282127; color: #FAF0F3; }
.band.ox { background: #581F36; color: #FAF0F3; }
.band.ox h2 { color: #FAF0F3; }
.band.ox .btn { background: #FAF0F3; color: #581F36; }
.band.ox .btn.ghost { background: transparent; color: #FAF0F3; box-shadow: inset 0 0 0 1.5px #FAF0F3; }
.band.ink h2, .band.ink h4 { color: #FAF0F3; }
.band.ink .lede, .band.ink .muted { color: #DCD2D6; }
.band.ink h2 em { color: #F1D8E2; }
.band.ink .eyebrow { color: #D89AB1; }


/* Grid of small features */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.tile::before { content: ""; width: 36px; height: 3px; border-radius: 3px; background: var(--rose); margin-bottom: 6px; }
.tile h4 { font-size: 1.15rem; }
.tile p { font-size: .95rem; color: var(--ink-2); }
.band.ink .tile { background: rgba(250,240,243,.07); border-color: rgba(250,240,243,.16); }
.band.ink .tile p { color: #DCD2D6; }


/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot { margin: 0; display: grid; gap: 10px; }
.shot .frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 16 / 10; box-shadow: 0 16px 30px -24px rgba(58,29,36,.5); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot figcaption { font-size: .9rem; color: var(--ink-2); font-weight: 600; }

/* Phones row */
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); margin-top: 44px; align-items: end; }
.phones .phone:nth-child(odd) { transform: translateY(-18px); }
@media (max-width: 760px) { .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } .phones .phone:nth-child(n+4) { display: none; } }

/* Split / compare */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--accent); font-weight: 800; }
.no { color: var(--ink-3); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 36px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); display: grid; gap: 10px; }
.faq ol, .faq ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* Waitlist */
.wait { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 860px) { .wait { grid-template-columns: minmax(0, 1fr); } }
.wait::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: var(--accent-soft); z-index: 0; }
.wait > * { position: relative; z-index: 1; }
form.signup { display: grid; gap: 10px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 220px; min-width: 0; padding: 15px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 1rem var(--sans); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-msg { font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
.form-msg.ok { color: var(--accent-ink); font-weight: 700; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }

/* Page hero for product pages */
.phero { padding-top: clamp(36px, 6vw, 70px); }
.phero .split { align-items: end; }
.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.price-line b { font: 600 2.4rem/1 var(--serif); color: var(--head); }

/* Legal / prose */
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.draft { background: var(--butter); border-radius: 16px; padding: 16px 20px; font-size: .95rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer .wrap > :first-child { grid-column: 1 / -1; } }
footer h5 { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
footer li { overflow-wrap: anywhere; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
.fine { margin-top: 36px; color: var(--ink-3); font-size: .82rem; }

/* Dialog */
dialog { border: 0; border-radius: 26px; padding: 0; max-width: min(460px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(27, 20, 22, .45); backdrop-filter: blur(3px); }
.dlg { padding: 30px; display: grid; gap: 16px; }
.dlg h3 { font-size: 1.7rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.center { text-align: center; justify-items: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
footer .wrap.fine { display: block; }

/* Colour variety: each step / tile gets its own accent from the planner colourways */
.step:nth-child(4n+1)::before { color: var(--rose); }
.step:nth-child(4n+2)::before { color: var(--gum); }
.step:nth-child(4n+3)::before { color: var(--harbour); }
.step:nth-child(4n+4)::before { color: var(--wattle); }
.tile:nth-child(5n+1)::before { background: var(--rose); }
.tile:nth-child(5n+2)::before { background: var(--gum); }
.tile:nth-child(5n+3)::before { background: var(--harbour); }
.tile:nth-child(5n+4)::before { background: var(--wattle); }
.tile:nth-child(5n+5)::before { background: #8A6FB8; }
.chip { color: var(--ink); }
.chip.a { background: var(--apricot); }

/* Money Planner identity: Saltbush green-teal alongside the Oxblood brand */
.theme-money, .pcard.money { --accent: var(--money); --accent-soft: var(--money-soft); --accent-ink: var(--money); --head: var(--charcoal); --on-accent: #FFFFFF; }
:root[data-theme="dark"] .theme-money, :root[data-theme="dark"] .pcard.money { --head: #F5E9EE; --on-accent: #1C1519; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-money, :root:not([data-theme="light"]) .pcard.money { --head: #F5E9EE; --on-accent: #1C1519; } }
.theme-money .ticks li::before, .pcard.money .ticks li::before { background-color: var(--money-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%233F6F66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* iPhone app */
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; }
.app-card img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 18px -10px rgba(40,33,39,.45); }
.app-card h3 { font-size: 1.5rem; }
@media (max-width: 760px) { .app-card { grid-template-columns: auto minmax(0, 1fr); } .app-card .btn { grid-column: 1 / -1; } }
.btn.store { background: var(--charcoal); color: #fff; }
:root[data-theme="dark"] .btn.store { background: #F5E9EE; color: #1C1519; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.store { background: #F5E9EE; color: #1C1519; } }

/* Lifestyle mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 220px); grid-auto-flow: dense; gap: 14px; margin-top: 44px; }
.mosaic figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--paper-2); }
.mosaic figure.tall { grid-row: span 2; }
.mosaic figure.wide { grid-column: span 2; }
.mosaic figure.big { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.35; background: linear-gradient(transparent, rgba(20, 14, 17, .72)); }
.mosaic figcaption small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 3px; font-weight: 700; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; } .mosaic figure.wide { grid-column: span 1; grid-row: span 2; } .mosaic .d-only { display: none; } }

/* Photo + copy split */
.photo-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.photo-split.flip .photo { order: 2; }
@media (max-width: 860px) { .photo-split { grid-template-columns: minmax(0, 1fr); } .photo-split.flip .photo { order: 0; } }
.photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .float { position: absolute; left: 16px; right: 16px; bottom: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 14px 16px; font-size: .9rem; display: grid; gap: 2px; }
.photo .float b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--head); }

/* Closing band with photo */
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 6vw, 72px); align-items: center; }
.close-grid .photo { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .close-grid { grid-template-columns: minmax(0, 1fr); } .close-grid .photo { max-width: 360px; } }

/* The Edit */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fchip { font: 600 .9rem var(--sans); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.issue + .issue { margin-top: 64px; }
.issue-h { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 22px; }
.egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .egrid { grid-template-columns: minmax(0, 1fr); } }
.ecard { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; }
.ecard[hidden] { display: none !important; }
.eimg { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); margin-bottom: 6px; }
.eimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.ecard:hover .eimg img { transform: scale(1.04); }
.ecard h3 { font-size: 1.35rem; }
.emeta { color: var(--ink-3); font-weight: 600; }
.etype { justify-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--blush); color: #581F36; }
.etype.t-recipe { background: var(--sage); color: #2F4A2D; }
.etype.t-workout { background: var(--sky); color: #2A4570; }
.etype.t-picks { background: var(--butter); color: #6A5208; }
.etype.t-note { background: var(--lilac); color: #4B3A73; }
.entry-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 18px; }
.entry-hero .photo { aspect-ratio: 4 / 5; max-height: 560px; }
@media (max-width: 860px) { .entry-hero { grid-template-columns: minmax(0, 1fr); } .entry-hero .photo { max-height: 420px; } }
.addbox { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-top: 6px; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .recipe-grid { grid-template-columns: minmax(0, 1fr); } }
.ing { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.prose h3 { font-size: 1.4rem; }
.prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.session { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 6px; }
.session h4 { font-size: 1.2rem; }
.picks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 860px) { .picks-grid { grid-template-columns: minmax(0, 1fr); } }

/* Product page hero scenes (rendered from the Etsy cover style: etsy/make_web_heroes.py) */
.scene { position: relative; max-width: 620px; width: 100%; justify-self: center; }
.scene img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .scene { max-width: 460px; } }

/* Polaroid day strip (Life page) */
.polas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 22px); margin-top: 40px; }
.pola { margin: 0; background: #fff; padding: 9px 9px 14px; border-radius: 3px; transform: rotate(var(--r)); box-shadow: 0 22px 36px -22px rgba(50, 30, 35, .45); transition: transform .3s ease; }
.pola:hover { transform: rotate(0) translateY(-6px); }
.pola img { display: block; width: 100%; aspect-ratio: 56 / 76; object-fit: cover; }
.pola figcaption { padding: 10px 4px 0; }
.pola b { display: block; font: 500 1.5rem/1 var(--serif); color: #581F36; }
.pola span { display: block; font-size: .9rem; color: #5a4f56; margin-top: 4px; }
@media (max-width: 760px) { .polas { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 18px; } .pola { scroll-snap-align: center; } }

/* Free-download sign-up block */
.wait.lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); }
.lead-img { width: 100%; max-width: 300px; justify-self: center; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(60, 25, 40, .45); transform: rotate(3deg); background: #fff; }
@media (max-width: 860px) { .wait.lead { grid-template-columns: minmax(0, 1fr); } .lead-img { max-width: 220px; } }
