/* Marigold Lane: an App Store "Today" page with one thing of our own, the marigold toran strung over the top. */
:root {
  --bg: #f2f4f8;
  --bg-a: #dfeaf6;
  --bg-b: #f6e6ea;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #8e8e93;
  --line: rgba(60, 60, 67, 0.12);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.18);
  --marigold: #ff9f0a;
  --marigold-ink: #c46a00;
  --marigold-deep: #f08300;
  --get-bg: rgba(118, 118, 128, 0.12);
  --shadow-card: 0 18px 50px -20px rgba(20, 30, 60, 0.35), 0 2px 8px rgba(20, 30, 60, 0.06);
  --shadow-icon: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-l: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --page: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-a: #0b1220;
    --bg-b: #1a0f14;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #8e8e93;
    --line: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-2: rgba(118, 118, 128, 0.32);
    --marigold-ink: #ffb340;
    --get-bg: rgba(118, 118, 128, 0.24);
    --shadow-card: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(1200px 700px at 0% -10%, var(--bg-a), transparent 70%),
    radial-gradient(1100px 800px at 100% 110%, var(--bg-b), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---- the toran: marigolds strung across the top, swaying a little ---- */
.toran { position: absolute; inset: 0 0 auto 0; height: 70px; pointer-events: none; overflow: hidden; z-index: 0; }
.toran svg { width: 100%; height: 100%; }
.toran .strand { transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
.toran .strand.b { animation-duration: 9s; animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(-0.35deg); } 50% { transform: rotate(0.35deg); } }
@media (prefers-reduced-motion: reduce) { .toran .strand { animation: none; } }

/* ---- header ---- */
.top { position: relative; padding-top: 64px; }
.top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }
h1.title { margin: 2px 0 0; font-size: clamp(34px, 6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h1.title .mark { display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.12em; vertical-align: 0.04em; }
.actions { display: flex; gap: 10px; align-items: center; padding-bottom: 4px; }
.pill-dark { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; transition: transform .15s ease; }
.pill-dark:hover { transform: scale(1.03); }
.round { width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); display: grid; place-items: center; }
.round svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .pill-dark span.long { display: none; } }

/* ---- featured carousel ---- */
.featured { margin-top: 22px; position: relative; z-index: 1; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 26px; margin: 0 -2px; }
.rail::-webkit-scrollbar { display: none; }
.feature { flex: 0 0 100%; scroll-snap-align: center; position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16 / 10; background: #111; color: #fff; isolation: isolate; }
@media (max-width: 700px) { .feature { aspect-ratio: 4 / 5; } }
.feature video, .feature img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 38%, rgba(0,0,0,0) 60%); }
.feature .copy { position: absolute; top: 24px; left: 26px; right: 26px; }
.feature .copy .eyebrow { color: rgba(255,255,255,.82); }
.feature h2 { margin: 6px 0 6px; font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; max-width: 640px; text-wrap: balance; }
.feature p { margin: 0; font-size: 17px; color: rgba(255,255,255,.88); max-width: 560px; }
.feature .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: rgba(40, 32, 28, 0.38); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6); }
.feature .bar .icon { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--shadow-icon); }
.feature .bar .name { font-weight: 600; font-size: 17px; }
.feature .bar .sub { font-size: 13px; color: rgba(255,255,255,.75); }
.feature .bar .grow { flex: 1; min-width: 0; }
.feature .bar .grow > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.get-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.get-col small { font-size: 11px; color: rgba(255,255,255,.75); }
.get-white { height: 32px; min-width: 74px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--marigold-ink); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: -8px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--fill-2); transition: width .25s ease, background .25s ease; }
.dots i.on { width: 22px; background: var(--ink); }
.drop-no { position: absolute; top: 20px; right: 20px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: rgba(255, 255, 255, 0.16); border: 1.5px solid rgba(255,255,255,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 9px; font-weight: 700; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; transform: rotate(8deg); }
.drop-no b { display: block; font-size: 22px; letter-spacing: -0.02em; }

/* ---- sections ---- */
.section { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.section h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.section .lede { margin: 4px 0 0; color: var(--ink-2); font-size: 17px; }
.list { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 16px; }
.row > a:first-child { padding: 12px 0; }
.row .body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; align-self: stretch; }
.row + .row .body { border-top: 1px solid var(--line); }
.icon-l { width: 84px; height: 84px; border-radius: 19px; box-shadow: var(--shadow-icon); flex: none; object-fit: cover; }
@media (max-width: 520px) { .icon-l { width: 68px; height: 68px; border-radius: 15px; } }
.row .grow { flex: 1; min-width: 0; }
.row .name { font-size: 19px; font-weight: 500; }
.row .sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 12px; color: var(--marigold-ink); font-weight: 600; margin-top: 2px; }
.get { height: 32px; min-width: 74px; padding: 0 16px; border-radius: 999px; background: var(--get-bg); color: var(--marigold-ink); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease; }
.get:hover { background: var(--fill-2); }
.get-col.dark small { color: var(--ink-3); }

/* ---- backing (per-game jars) ---- */
.jars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.jar { background: var(--card); border-radius: var(--radius-l); padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 14px; }
.jar .head { display: flex; gap: 12px; align-items: center; }
.jar .head img { width: 48px; height: 48px; border-radius: 11px; box-shadow: var(--shadow-icon); }
.jar .head .name { font-weight: 600; }
.jar .head .sub { font-size: 13px; color: var(--ink-2); }
.meter { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--marigold), var(--marigold-deep)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.meter-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.meter-label b { color: var(--ink); font-weight: 600; }
.tips { display: flex; gap: 8px; flex-wrap: wrap; }
.tip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: 15px; transition: background .15s ease, transform .15s ease; }
.tip:hover { background: var(--fill-2); }
.tip.main { background: var(--marigold); color: #fff; }
.tip.main:hover { background: var(--marigold-deep); }
.tip:active { transform: scale(.97); }
.jar .why { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ---- club ---- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.tier { background: var(--card); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); position: relative; }
.tier.featured { outline: 2px solid var(--marigold); box-shadow: 0 16px 40px -18px rgba(242, 160, 36, .55); }
.tier .badge { position: absolute; top: -11px; left: 24px; background: var(--marigold); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tier .tname { font-size: 15px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.tier .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.tier .price span { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.tier .blurb { color: var(--ink-2); margin: 0; }
.tier ul { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 9px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 15px; }
.tier li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--marigold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.join { height: 46px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 17px; transition: transform .15s ease; }
.tier.featured .join { background: var(--marigold); color: #fff; }
.join:hover { transform: scale(1.015); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.fine a { color: var(--marigold-ink); }

/* ---- notify ---- */
.notify { margin-top: 18px; background: var(--card); border-radius: var(--radius-l); padding: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.notify .grow { flex: 1 1 260px; }
.notify b { font-size: 19px; }
.notify p { margin: 2px 0 0; color: var(--ink-2); }
.field { display: flex; gap: 8px; flex: 1 1 320px; }
.field input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--marigold); box-shadow: 0 0 0 4px rgba(242,160,36,.18); }
.field button { height: 44px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; }
.ok { color: #1f9d55; font-weight: 600; }

/* ---- footer ---- */
footer { margin: 56px 0 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 22px; position: relative; z-index: 1; }
footer a:hover { color: var(--ink); }
footer .grow { flex: 1; }

/* ---- product page ---- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--marigold-ink); font-size: 17px; margin-top: 64px; position: relative; z-index: 1; }
.back svg { width: 12px; height: 20px; }
.product-head { display: flex; gap: 22px; align-items: center; margin-top: 18px; position: relative; z-index: 1; }
.product-head .icon-xl { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); flex: none; object-fit: cover; }
@media (max-width: 560px) { .product-head .icon-xl { width: 104px; height: 104px; border-radius: 23px; } }
.product-head h1 { margin: 0; font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.product-head .subtitle { color: var(--ink-2); font-size: 17px; margin-top: 2px; }
.product-head .ctas { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.get-big { height: 34px; min-width: 84px; padding: 0 20px; border-radius: 999px; background: var(--marigold); color: #fff; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--marigold-ink); background: var(--get-bg); }
.icon-btn svg { width: 18px; height: 18px; }
.info-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; text-align: center; }
.info-strip > div + div { border-left: 1px solid var(--line); }
.info-strip .k { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.info-strip .v { font-size: 20px; font-weight: 700; color: var(--ink-2); margin: 3px 0 1px; }
.info-strip .s { font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) { .info-strip { grid-template-columns: repeat(3, 1fr); } .info-strip > div:nth-child(n+4) { display: none; } }
.media { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 0 8px; scrollbar-width: thin; }
.media > * { flex: 0 0 min(78%, 640px); scroll-snap-align: start; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #111; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.desc { font-size: 17px; line-height: 1.5; max-width: 760px; }
.desc p { margin: 0 0 12px; }
.desc.clamped { max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { color: var(--marigold-ink); font-size: 17px; }
.feat { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.feat li { display: flex; gap: 10px; }
.feat li::before { content: "✿"; color: var(--marigold); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 14px; }
.kv > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-right: 24px; }
.kv .k { color: var(--ink-2); }
.dl-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.dl-sheet.open { display: flex; }
.dl-sheet .panel { width: min(520px, 100%); background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px 28px; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .dl-sheet { align-items: center; } .dl-sheet .panel { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.dl-sheet h4 { margin: 0 0 4px; font-size: 20px; }
.dl-sheet .opt { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-sheet .opt small { display: block; color: var(--ink-2); }
.dl-sheet .opt.off { opacity: .45; pointer-events: none; }

/* ---- petals (tip thank-you) ---- */
.petal { position: fixed; top: -20px; width: 14px; height: 14px; border-radius: 60% 0 60% 0; background: var(--marigold); z-index: 80; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 90; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

@media (max-width: 700px) { .drop-no { top: auto; bottom: 96px; right: 16px; width: 54px; height: 54px; } .drop-no b { font-size: 19px; } }


/* Discord row under the notify card */
.discord-row { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius-l); background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s ease; }
.discord-row:hover { transform: translateY(-1px); }
.discord-row .dc { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #5865f2; flex: none; }
.discord-row .dc svg { width: 26px; height: 26px; }
.discord-row b { display: block; font-size: 17px; }
.discord-row small { color: var(--ink-2); font-size: 14px; }

/* sections fade up as they come into view */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; translate: 0 0; }
/* the page itself arrives: title, then the featured rail */
.top-row, .featured { animation: arrive .9s cubic-bezier(.16,1,.3,1) both; }
.featured { animation-delay: .12s; }
@keyframes arrive { from { opacity: 0; translate: 0 18px; } }
/* list icons and Get buttons respond like App Store rows */
.icon-l, .feature .bar .icon { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.row:hover .icon-l { transform: scale(1.05) rotate(-2deg); }
.get:active, .get-white:active, .get-big:active { transform: scale(.94); }
.feature { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
.feature:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } .top-row, .featured { animation: none; } }
