/* Plooca website (light)
   Layout: warm off-white paper with white cards; the only dark element is the phone with the live game,
   so the game is the first thing the eye lands on. Mint = Plooca (buttons), deep mint = text links,
   sun = rewards and early access. Every section ends in "Notify me". */
:root {
  color-scheme: light;
  --bg: #F7F5EF;            /* paper */
  --bg-alt: #EEF6F2;        /* faint mint band */
  --surface: #FFFFFF;
  --ink: #0B1724;           /* navy text, 16.6:1 on paper */
  --ink-soft: #52606E;      /* secondary text, 5.9:1 */
  --line: #E4E1D8;
  --navy: #06101C;
  --navy-raised: #0F2D45;
  --mint: #2ED6A3;          /* buttons (navy text on mint 10.3:1) */
  --mint-mark: #249A77;     /* logo and mascot on light (brand "mint on light") */
  --mint-text: #17765B;     /* links and labels, 5.1:1 */
  --sun: #FFC83D;
  --sun-soft: #FFF3D1;
  --amber-text: #9A6400;    /* sun-family text, 4.6:1 */
  --coral-text: #C7364E;    /* errors, 4.7:1 */
  --f-display: 'Poppins', 'Avenir Next', system-ui, sans-serif;
  --f-body: 'Figtree', 'Helvetica Neue', system-ui, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(11, 23, 36, 0.04), 0 8px 24px -12px rgba(11, 23, 36, 0.12);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.08; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.inner { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; }
.eyebrow { font: 700 13px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint-text); }
.eyebrow-sun { color: var(--amber-text); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); max-width: 54ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 26px; font: 700 16px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }
.btn-mint { background: var(--mint); color: var(--navy); box-shadow: 0 6px 16px -8px rgba(36, 154, 119, 0.7); }
.btn-mint:hover { background: #45E0B1; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-raised); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn:disabled { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--mint-text); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(247, 245, 239, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 21; }
.site-head .inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: block; width: 126px; flex: none; text-decoration: none; }
.brand svg { width: 100%; height: auto; display: block; }
.brand-fallback { font: 800 26px/1 var(--f-display); color: var(--ink); }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--mint-text); }

/* hero */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero h1 { font-size: clamp(52px, 8.4vw, 104px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.platforms { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.platforms .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px var(--sun-soft); }
.stage { display: grid; justify-items: center; gap: 14px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.phone { width: min(380px, 100%); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #22384F, #0A1420); box-shadow: 0 0 0 1px rgba(11, 23, 36, 0.2), 0 40px 70px -30px rgba(11, 23, 36, 0.55), 0 20px 50px -20px rgba(46, 214, 163, 0.35); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #060a14; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.poster { display: none; position: absolute; inset: 0; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 38%, #12304A, #060a14 70%); color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.poster-face { width: 62%; display: block; }
.poster-face svg { width: 100%; height: auto; display: block; }
.poster-title { font: 800 30px/1 var(--f-display); }
.poster-sub { color: #93A9BF; font-size: 16px; margin-bottom: 8px; }
.stage-hint { font-size: 14px; color: var(--ink-soft); }

/* sections */
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.games, .early { padding-block: clamp(64px, 8vw, 110px); }
.habit { padding-block: clamp(64px, 8vw, 110px); background: var(--bg-alt); border-block: 1px solid #DCEDE5; }
.studio { padding-block: clamp(64px, 8vw, 110px); background: var(--surface); border-top: 1px solid var(--line); }

/* game cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto 1fr auto; min-width: 0; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(11, 23, 36, 0.04), 0 16px 32px -14px rgba(11, 23, 36, 0.2); }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.card .done { font-size: 14.5px; font-weight: 700; color: var(--mint-text); }
.icon { width: 64px; height: 64px; border-radius: 16px; display: block; overflow: hidden; flex: none; box-shadow: 0 4px 10px -4px rgba(11, 23, 36, 0.35); }
.icon svg { width: 100%; height: 100%; display: block; }
.chip { font: 700 11.5px/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.chip-mint { background: #DFF5EC; color: var(--mint-text); }
.chip-sun { background: var(--sun-soft); color: var(--amber-text); }
.chip-soft { background: #EFEDE6; color: var(--ink-soft); }

/* habit */
.habit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.face-stage { display: grid; justify-items: center; gap: 18px; }
.face { width: min(340px, 80%); }
.face svg { width: 100%; height: auto; display: block; overflow: visible; }
.face-line { font: 700 22px/1.2 var(--f-display); color: var(--ink); min-height: 1.2em; text-align: center; transition: opacity .2s; }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--ink-soft); font-size: 16px; cursor: default; transition: border-color .2s; }
.pillars li b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.pillars li:hover, .pillars li.on { border-color: var(--mint-mark); }

/* early access */
.early-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.early-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--mint), var(--sun)); }
.early-copy { display: grid; gap: 14px; }
.signup { display: grid; gap: 16px; }
.pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s; }
.pick span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #B9B5AA; background: #fff; }
.pick input:checked + span { background: #DFF5EC; border-color: var(--mint-mark); }
.pick input:checked + span::before { background: var(--mint-mark); border-color: var(--mint-mark); box-shadow: inset 0 0 0 3px #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input, .nudge-form input { flex: 1 1 220px; min-width: 0; padding: 15px 18px; border-radius: 999px; border: 1.5px solid #CFCBBF; background: #fff; color: var(--ink); font: 500 16px var(--f-body); }
.row input:focus, .nudge-form input:focus { border-color: var(--navy); outline: none; }
.form-msg { min-height: 1.4em; font-size: 15px; color: var(--ink-soft); }
.form-msg.ok { color: var(--mint-text); font-weight: 600; }
.form-msg.err { color: var(--coral-text); }

.consent { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.consent a { color: var(--mint-text); font-weight: 600; }

/* analytics choice: small card bottom-left on desktop, full-width bar on phones */
.consent-bar { position: fixed; z-index: 40; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(11, 23, 36, 0.35); display: grid; gap: 12px; font-size: 14.5px; color: var(--ink-soft); }
.consent-bar a { color: var(--mint-text); font-weight: 600; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.studio-copy { display: grid; gap: 16px; color: var(--ink-soft); font-size: 18px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px 28px; align-items: center; }
.foot-tag { font: 600 16px var(--f-display); color: var(--mint-text); }
.foot-nav { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; color: var(--ink-soft); }
.foot-nav a:hover { color: var(--ink); }
.copy { font-size: 14px; color: var(--ink-soft); }

/* sticky early-access bar (phones) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }

/* full-screen player (phones) */
.overlay { position: fixed; inset: 0; z-index: 60; background: #060a14; }
.overlay iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.overlay-close { position: absolute; z-index: 2; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(232, 240, 247, 0.16); color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); }

/* in-game nudge: bottom-right card on desktop, bottom sheet on phones (above the full-screen player) */
.nudge { position: fixed; z-index: 70; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); background: var(--surface); border-radius: 24px; padding: 20px; box-shadow: 0 24px 60px -20px rgba(11, 23, 36, 0.45), 0 0 0 1px rgba(11, 23, 36, 0.06); display: grid; gap: 14px; animation: rise .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.nudge-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1EFE8; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.nudge-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding-right: 30px; }
.nudge-icon { width: 52px; height: 52px; border-radius: 13px; overflow: hidden; display: block; }
.nudge-icon svg { width: 100%; height: 100%; display: block; }
.nudge-title { font: 700 18px/1.25 var(--f-display); }
.nudge-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
.nudge-form { display: flex; gap: 8px; flex-wrap: wrap; }
.nudge-form input { padding: 12px 16px; font-size: 15px; }
.nudge-stores { display: flex; gap: 8px; flex-wrap: wrap; }
.nudge .form-msg:empty { display: none; }
.nudge-keep { justify-self: center; background: none; border: 0; color: var(--ink-soft); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 4px; }

/* responsive */
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero-grid, .habit-grid, .studio-grid, .early-card { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .site-head .btn { margin-left: auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .face { width: min(280px, 70%); }
  .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(300px, 100%); }
  .nudge { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .consent-bar { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (hover: none) and (pointer: coarse) {
  .screen iframe { display: none; }
  .poster { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
