/* Patchwork landing page. Its own sheet, so the Z4P home page styles stay untouched.
   System fonts only: the site makes no external font requests. */
:root {
  color-scheme: light dark;
  --paper: #ebe3d4;
  --band: #f6f0e5;
  --card: #fffbf4;
  --ink: #2a2320;
  --soft-ink: #574a41;
  --accent: #a3472f;
  --accent-deep: #7c3321;
  --on-accent: #ffffff;
  --accent-text: #933f29;
  --sage: #56734f;
  --gold: #a5791f;
  --stitch: rgba(58, 44, 36, 0.3);
  --line: rgba(58, 44, 36, 0.16);
  --bezel: #2d2522;
  --shadow: 0 1px 2px rgba(60, 40, 25, 0.1), 0 10px 30px rgba(60, 40, 25, 0.13);
  --focus: #1f5fae;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --linen: url("/assets/patchwork/linen.webp");
  --bullet: url("/assets/patchwork/star.webp");
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1819;
    --band: #252021;
    --card: #2e2729;
    --ink: #f6ede1;
    --soft-ink: #d6c9ba;
    --accent: #e58f72;
    --accent-deep: #b86a51;
    --on-accent: #1c1415;
    --accent-text: #f0a58b;
    --sage: #9cc091;
    --gold: #e0b75c;
    --stitch: rgba(246, 237, 225, 0.28);
    --line: rgba(246, 237, 225, 0.14);
    --bezel: #0f0c0d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --focus: #8fc2ff;
    --linen: none;
    --bullet: url("/assets/patchwork/star-gold.webp");
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper) var(--linen) 0 0 / 512px 512px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 14px 20px; background: var(--ink); color: var(--paper); border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.kicker { font-size: 0.8em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; min-height: 48px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow); }
.top nav { display: flex; align-items: center; gap: 8px; }
.nav-link { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 14px; font-size: 1.05rem; font-weight: 600; text-decoration: none; border-radius: 999px; }
.nav-link:hover { text-decoration: underline; }
.nav-play { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 24px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.nav-play:hover { background: var(--accent-deep); color: #fff; }

/* The big button */
.play-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 68px; padding: 12px 36px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 1.3rem; font-weight: 700; text-decoration: none; letter-spacing: 0.005em;
  box-shadow: 0 4px 0 var(--accent-deep), 0 12px 26px rgba(122, 50, 30, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.play-button::after { content: ""; position: absolute; inset: 6px; border: 2px dashed currentColor; border-radius: inherit; opacity: 0.45; pointer-events: none; }
.play-button span { font-size: 1.4em; line-height: 1; }
.play-button:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-deep), 0 8px 20px rgba(122, 50, 30, 0.22); }
.play-button:focus-visible { outline: 4px solid var(--focus); outline-offset: 5px; border-radius: 999px; }

/* Store badges, or the coming-soon line */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.badge-link { display: inline-block; border-radius: 9px; }
.badge-apple { height: 54px; width: auto; }
/* Google's PNG carries its own clear space; pull it back in so the two badges line up. */
.badge-google { height: 80px; width: auto; margin: -13px 0 -13px -13px; }
.finale .badge-apple { height: 60px; }
.finale .badge-google { height: 89px; margin: -15px 0 -15px -15px; }
.stores-soon { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 2px dashed var(--stitch); border-radius: 999px; font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--soft-ink); background: color-mix(in srgb, var(--card) 70%, transparent); }
.stores-soon-mark { color: var(--gold); font-size: 1.1em; }

/* Hero */
.hero { display: grid; gap: 40px; padding-block: 28px 64px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.9vw, 4.35rem); letter-spacing: -0.015em; margin-bottom: 22px; }
.lead { font-size: 1.15em; color: var(--soft-ink); max-width: 34em; }
.hero-actions { margin-top: 32px; display: grid; justify-items: start; gap: 14px; }
.play-note { font-size: 1rem; color: var(--soft-ink); padding-left: 6px; }
.hero-stores { margin-top: 30px; display: grid; justify-items: start; gap: 12px; }
.platforms { font-size: 1rem; color: var(--soft-ink); padding-left: 6px; }
.hero-art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.02; }
.hero-picture { position: absolute; right: 0; top: 3%; width: 76%; border-radius: 22px; transform: rotate(4deg); box-shadow: var(--shadow); }
.hero-phone { position: absolute; left: 3%; bottom: 0; width: 45%; transform: rotate(-4deg); }
.hero-star { position: absolute; right: 3%; bottom: 4%; width: 19%; transform: rotate(12deg); filter: drop-shadow(0 6px 10px rgba(40, 20, 30, 0.25)); }
.hero-star img { width: 100%; }

/* Phone frames around real screenshots */
.phone { border: 7px solid var(--bezel); border-radius: 13% / 6%; background: var(--bezel); box-shadow: var(--shadow); overflow: hidden; }
.phone img { width: 100%; border-radius: 10.5% / 4.9%; }
.hero-phone { border-width: 9px; }

/* Bands and section heads */
.band { position: relative; background: var(--band); padding-block: 76px; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--stitch); }
.band::before { top: 10px; }
.band::after { bottom: 10px; }
.section-head { max-width: 44rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
.section-lead { margin-top: 16px; font-size: 1.08em; color: var(--soft-ink); }

/* How it plays */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--card); border-radius: 24px; padding: 30px 28px 32px; box-shadow: var(--shadow); }
.step::after { content: ""; position: absolute; inset: 9px; border: 2px dashed var(--stitch); border-radius: 17px; pointer-events: none; }
.step img, .step-thread { width: 96px; height: 96px; margin-bottom: 18px; padding: 14px; border-radius: 50%; background: #f2e7d5; box-shadow: inset 0 0 0 2px rgba(58, 44, 36, 0.12); }
.step-thread circle { fill: none; stroke: #56734f; stroke-width: 9; stroke-dasharray: 16 10; stroke-linecap: round; }
.step-thread path { fill: none; stroke: #56734f; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.step-number { position: absolute; top: 24px; right: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--stitch); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--accent-text); }
.step h3 { font-size: 1.45rem; margin-bottom: 10px; padding-right: 8px; }
.step p { color: var(--soft-ink); }
.how-note { margin-top: 30px; font-size: 1.05em; max-width: 44rem; }

/* Pictures */
.pictures, .collections { padding-block: 84px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.gallery img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.gallery span { display: block; margin-top: 10px; font-family: var(--serif); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.screens .phone { max-width: 300px; margin-inline: auto; }
.screens p { margin-top: 16px; font-size: 1rem; line-height: 1.5; color: var(--soft-ink); }
.screens strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.18rem; margin-bottom: 2px; }

/* Collections */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 14px; }
.shelf img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.shelf span { display: block; margin-top: 10px; font-size: 1rem; font-weight: 600; line-height: 1.3; }

/* Free and Club */
.plan-grid { display: grid; gap: 22px; }
.plan { position: relative; background: var(--card); border-radius: 26px; padding: 34px 28px 36px; box-shadow: var(--shadow); }
.plan::after { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--stitch); border-radius: 18px; pointer-events: none; }
.plan-club { outline: 3px solid var(--accent); outline-offset: -3px; }
.plan h3 { font-size: 1.8rem; }
.plan-price { margin-top: 10px; font-size: 1.08rem; color: var(--soft-ink); }
.plan-price strong { color: var(--ink); }
.ticks { margin-top: 22px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 40px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 26px; height: 26px; background: var(--bullet) center / contain no-repeat; }
.plan-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 22px; font-weight: 700; color: var(--accent-text); }
.plan-cta span { font-size: 1.3em; line-height: 1; }
.plan-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--soft-ink); }

/* Calm and privacy */
.calm { padding-block: 84px; }
.calm-grid { display: grid; gap: 22px; }
.calm-card { background: var(--card); border-radius: 26px; padding: 32px 28px; box-shadow: var(--shadow); border-left: 8px solid var(--sage); }
.calm-card:last-child { border-left-color: var(--gold); }
.calm-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.calm-card p:not(.kicker) { color: var(--soft-ink); }
.calm-card a { color: var(--ink); font-weight: 600; }

/* Finale */
.finale { background: var(--band); padding-block: 80px 88px; position: relative; }
.finale::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 2px dashed var(--stitch); }
.finale-inner { display: grid; justify-items: center; text-align: center; gap: 26px; }
.finale-inner > img { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); }
.finale h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); max-width: 16em; }
.finale .stores { justify-content: center; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 34px 44px; }
.foot .brand { font-size: 1.3rem; }
.foot .brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 6px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 12px; font-weight: 600; font-size: 1.05rem; }
.made { width: 100%; font-size: 1rem; color: var(--soft-ink); }
.made a { font-weight: 600; color: var(--ink); }

@media (max-width: 639px) {
  .nav-link { display: none; }
  .brand { font-size: 1.4rem; }
  .brand img { width: 42px; height: 42px; }
  .play-button { width: 100%; }
  .hero-actions { justify-items: stretch; }
  .band { padding-block: 60px; }
  .pictures, .collections, .calm { padding-block: 64px; }
  .step, .plan, .calm-card { padding-inline: 22px; }
  .foot nav { margin-left: -12px; }
}
@media (max-width: 379px) {
  .play-button { padding-inline: 20px; font-size: 1.2rem; }
  .top nav { gap: 4px; }
  .nav-play { padding-inline: 18px; }
  .stores-soon { padding-inline: 16px; font-size: 0.98rem; }
  .step-number { width: 42px; height: 42px; font-size: 1.25rem; top: 22px; right: 20px; }
  .step h3 { font-size: 1.32rem; }
}
@media (min-width: 640px) {
  .wrap { width: min(1180px, 100% - 64px); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; align-items: start; padding-right: 84px; }
  .step img, .step-thread { grid-row: span 2; margin-bottom: 0; }
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
  .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; }
  .calm-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .screens { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .plan-grid { grid-template-columns: 1fr 1.1fr; gap: 28px; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 40px 96px; }
  .hero-art { max-width: none; }
  .band { padding-block: 96px; }
  .pictures, .collections, .calm { padding-block: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
