/* ==========================================================================
   Stat Drop design system. One source for the site, the dashboards and the owner hub
   (emails use the same values, inlined: briefing/email_ui.py).
   Jet black, white, and one flame-orange accent. Archivo throughout.
   ========================================================================== */
:root {
  /* colour: neutrals */
  --black: #000000;
  --ink: #0a0a0a;          /* text on light */
  --ink-2: #262626;        /* pressed / hover on dark buttons */
  --panel: #141414;        /* dark bands */
  --panel-2: #1c1c1c;      /* raised surface on dark */
  --sheet: #ffffff;
  --paper: #f5f5f3;        /* quiet surface on light */
  --paper-2: #ececea;
  --line: #e2e2e0;
  --line-strong: #cfcfcb;
  --line-dark: #2e2e2e;
  --soft: #555555;         /* secondary text on light: 7.4:1 */
  --soft-dark: #b5b5b5;    /* secondary text on black: 10:1 */
  --faint: #8a8a86;        /* non-text marks only */
  /* colour: accent + status (each with an on-dark and a tint version) */
  --flame: #fe5101;
  --flame-hi: #ff6a26;
  --flame-text: #c43e00;   /* flame as small text on white: AA */
  --flame-dark-text: #ff8a4c;
  --flame-soft: #fff1ea;
  --flame-ink: #000000;
  --marker: #ffe6d9;
  --up: #0b7a50;           --up-dark: #4fd69c;     --up-soft: #e3f5ec;
  --warn: #8a5300;         --warn-dark: #f0b64a;   --warn-soft: #fbf3e4;
  --down: #c2312f;         --down-dark: #ff6a5c;   --down-soft: #fdeceb;
  /* type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-2xs: 11.5px; --t-xs: 12.5px; --t-sm: 14px; --t-base: 16px; --t-md: 17px; --t-lg: 20px; --t-xl: 24px;
  --t-2xl: clamp(28px, 2.6vw, 36px); --t-3xl: clamp(34px, 4vw, 56px); --t-4xl: clamp(44px, 6vw, 88px);
  /* spacing (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px; --s-11: 96px;
  /* radius */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-2xl: 34px; --r-pill: 999px;
  /* elevation */
  --sh-1: 0 1px 2px rgba(10, 10, 10, 0.06);
  --sh-2: 0 10px 30px -14px rgba(10, 10, 10, 0.22);
  --sh-pop: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  --sh-flame: 0 50px 140px -70px var(--flame);
  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 180ms;
  --tap: 44px;             /* smallest touch target */
  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.6S3.6 10.2 3.6 15.2a8.4 8.4 0 0 0 16.8 0C20.4 10.2 12 1.6 12 1.6Z' fill='%23fe5101'/%3E%3Cpath d='M6.6 17.4c2.2 0 3-4.4 5.6-4.4s2.8 1.8 5.4-1.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='17.6' cy='11.4' r='1.7' fill='%23000'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-6); }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--flame); color: #000; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .tnum { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

/* ---- wordmark and top bar ---- */
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark::before { content: ""; width: 1.4em; height: 1.4em; background: var(--logo) center / contain no-repeat; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; flex-wrap: wrap; }
.top nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; flex: 1 1 200px; }
.top nav a, .top a.quiet { color: var(--soft-dark); text-decoration: none; padding: 10px 0; font-size: 14px; }
.top nav a:hover, .top a.quiet:hover { color: #fff; }
.top .right { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex: 1 1 200px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid currentColor; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: inherit; font-weight: 700; font-size: var(--t-base); letter-spacing: -0.005em; line-height: 1.1;
  cursor: pointer; white-space: nowrap; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent;
  background: var(--ink); color: #fff; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 0 var(--s-6); min-height: 48px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn.go { background: var(--flame); color: var(--flame-ink); }
.btn.go:hover { background: var(--flame-hi); box-shadow: 0 8px 24px -10px rgba(254, 81, 1, 0.7); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--paper-2); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.line:hover { background: var(--paper); border-color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.danger-btn, .btn.danger { background: var(--down); color: #fff; }
.btn.small { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--t-sm); }
.btn.lg, .btn.big-btn { min-height: 60px; padding: 0 var(--s-7); font-size: 18px; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- fields ---- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  flex: 1; min-width: 0; font: inherit; font-size: var(--t-base); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 18px; min-height: 48px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
textarea { border-radius: var(--r-md); padding: 12px 16px; }
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(254, 81, 1, 0.22); }
input[aria-invalid="true"] { border-color: var(--down); }
input::placeholder, textarea::placeholder { color: #737370; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.hint { font-size: var(--t-sm); color: var(--soft); margin-top: 10px; }
.msg { margin-top: 14px; font-size: 15px; padding: 12px 16px; border-radius: var(--r-sm); line-height: 1.45; }
.msg.bad { background: var(--down-soft); color: #8a1c14; }
.msg.good { background: var(--up-soft); color: #0b5a3a; }
.trap { position: absolute; left: -9999px; }
.up { color: var(--up); font-weight: 700; }
.down { color: var(--down); font-weight: 700; }

/* ---- hero ---- */
.hero-band { background: var(--black); color: #fff; overflow: hidden; }
.hero-band .wordmark { color: #fff; }
.hero-words { padding-top: 32px; font-weight: 500; font-size: clamp(44px, 7.4vw, 112px); line-height: 0.98; letter-spacing: -0.04em; max-width: 13em; }
.hero-words em { font-style: normal; color: var(--flame); }
.hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; align-items: start; margin-top: 44px; }
.hero .lede { font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; max-width: 19em; }
.hero .pitch { padding-bottom: 56px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--soft-dark); max-width: 30em; }

/* sign-up: a white pill that grows into a card as the steps open */
.signup { margin-top: 32px; background: #fff; color: var(--ink); border-radius: 30px; padding: 6px; max-width: 500px; }
.signup label, .signup legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.signup > #form-body > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup fieldset { border: 0; padding: 0; margin: 0; }
.signup .row { display: flex; gap: 6px; flex-wrap: wrap; }
.signup .row input { background: transparent; border: 0; flex: 1 1 200px; }
.signup .row .btn { flex: 1 0 auto; }
.signup .hint, .signup .msg { margin: 10px 14px 8px; }
.signup .hint { display: none; }
.step { margin: 8px 14px 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.step input[type="email"] { width: 100%; }
.step .btn.go { width: 100%; margin-top: 12px; }
.step .hint { display: block; margin: 10px 0 0; }
.league-name { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 12px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.teams label { margin: 0; font-weight: 500; font-size: 15px; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; overflow-wrap: anywhere; }
.teams input { position: absolute; opacity: 0; pointer-events: none; }
.teams label:hover { border-color: var(--ink); }
.teams label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.teams label:has(input:focus-visible) { outline: 3px solid var(--flame); outline-offset: 2px; }
.done { padding: 20px 20px 22px; }
.done h2 { font-size: 28px; letter-spacing: -0.035em; }
.done p { margin-top: 10px; color: var(--soft); line-height: 1.5; }
.done-badge, .done-card .done-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px !important; padding: 4px 11px; border-radius: var(--r-pill); background: var(--up-soft); color: #0b5a3a !important; font-size: var(--t-xs); font-weight: 700; }
.done-actions { margin-top: 18px !important; }
.done-actions .btn { width: 100%; }

/* the sample email in a phone, standing at the bottom of the hero */
.phone-col { display: flex; flex-direction: column; align-items: center; align-self: end; }
.phone { width: min(100%, 410px); border: 10px solid #1c1c1c; border-bottom: 0; border-radius: 50px 50px 0 0; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line-dark), 0 -20px 120px -20px #7a2a06; }
.phone-screen { position: relative; height: 620px; overflow: hidden; background: var(--paper); }
.phone iframe { display: block; width: calc(100% / var(--s, 1)); height: calc(100% / var(--s, 1)); border: 0; background: var(--paper); transform: scale(var(--s, 1)); transform-origin: 0 0; }
.proof { justify-self: end; width: 100%; max-width: 320px; padding-bottom: 56px; }
.proof .big { font-weight: 500; font-size: 120px; line-height: 0.85; letter-spacing: -0.045em; font-variant-numeric: proportional-nums; color: var(--flame); }
.proof p { margin-top: 16px; font-size: 17px; line-height: 1.45; }
.proof p span { color: var(--soft-dark); }
.proof .pair { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proof .pair b { display: block; white-space: nowrap; font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.035em; }
.proof .pair small { display: block; margin-top: 8px; font-size: 14px; color: var(--soft-dark); }

/* ---- sections ---- */
.band { padding: 120px 0; }
.band.tint { background: var(--paper); }
.band.dark { background: var(--panel); color: #fff; }
.band.black { background: var(--black); color: #fff; }
.band h2 { font-weight: 500; font-size: clamp(40px, 4.8vw, 68px); line-height: 0.98; letter-spacing: -0.035em; max-width: 12em; }
.band .intro { color: var(--soft); font-size: 19px; max-width: 30em; margin-top: 22px; }
.band.dark .intro, .band.black .intro { color: var(--soft-dark); }
.split { display: flex; flex-wrap: wrap; gap: 48px 96px; align-items: flex-start; }
.split > .lead { flex: 1 1 400px; max-width: 560px; }
.split > .body { flex: 1.3 1 480px; min-width: 0; }

.sheet { margin-top: 8px; }
.sheet .line { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.sheet .what { font-weight: 700; }
.sheet .eg { color: var(--soft); }
mark { background: none; color: var(--ink); font-weight: 700; }

.deal { border: 1px solid var(--line-dark); border-radius: 28px; padding: 32px; }
.deal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deal small { display: block; font-size: 14px; color: var(--soft-dark); margin-bottom: 10px; }
.deal .p { display: flex; justify-content: space-between; border: 1px solid var(--line-dark); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-weight: 600; }
.deal .p span { color: var(--soft-dark); font-weight: 400; }
.deal .p.in { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
.deal .p.in span { color: var(--ink); }
.deal .grade { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.deal .letter { font-weight: 500; font-size: 150px; line-height: 0.8; letter-spacing: -0.04em; color: var(--flame); }
.deal .grade div { flex: 1 1 240px; }
.deal .grade b { display: block; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.deal .grade p { margin-top: 8px; color: var(--soft-dark); }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding: 20px 0 32px; }
.steps li::before { content: counter(s); display: block; font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.05em; margin-bottom: 28px; }
.steps h3 { font-size: 22px; letter-spacing: -0.015em; font-weight: 700; }
.steps p { color: var(--soft); margin-top: 8px; max-width: 22em; }

.price { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.price .tag { font-weight: 500; font-size: clamp(88px, 13vw, 190px); line-height: 0.85; letter-spacing: -0.05em; }
.price .tag small { display: block; font-weight: 400; font-size: 20px; line-height: 1.5; color: var(--soft-dark); letter-spacing: 0; margin-top: 22px; }
.price .btn { min-height: 68px; padding: 0 38px; font-size: 19px; }

.faq { flex: 2 1 560px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); margin-top: 12px; max-width: 38em; }

footer { font-size: 14px; color: var(--soft); display: flex; gap: 24px; flex-wrap: wrap; padding: 28px 0 48px; border-top: 1px solid var(--line); }
footer.site { display: block; background: var(--panel); color: var(--soft-dark); border: 0; padding: 0; overflow: hidden; }
footer.site .row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; padding-top: var(--s-8); font-size: var(--t-sm); }
footer.site a { color: var(--soft-dark); text-underline-offset: 3px; }
footer.site a:hover { color: #fff; }
footer.site .giant { margin: 28px 0 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; white-space: nowrap; font-stretch: 125%; font-weight: 800; font-size: min(12.4vw, 190px); line-height: 0.86; letter-spacing: -0.03em; color: #fff; }
footer.site .giant i { font-style: normal; color: var(--flame); }

/* ---- small pages: confirm, unsubscribe, privacy, terms ---- */
.notice { max-width: 660px; margin: 0 auto; padding: 40px 24px 96px; }
.notice h1 { font-weight: 500; font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.035em; margin: 56px 0 20px; }
.notice h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 36px 0 8px; }
.notice p, .notice li { color: var(--soft); margin-top: 12px; }
.notice .btn { margin-top: 20px; }
.draft { background: var(--marker); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-size: 15px; margin-top: 16px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero .pitch, .proof { padding-bottom: 0; }
  .proof { justify-self: start; }
  .phone-col { order: 3; margin-top: 16px; }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 80px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .top nav:not(.tabs) { order: 3; flex: 1 1 100%; gap: 22px; padding-top: 4px; }
  .top nav:not(.tabs) a { padding: 6px 0; }
  .app-top { gap: 12px; }
  .app-top .tabs { flex: 1 1 auto; justify-content: flex-end; }
  .sheet .line { grid-template-columns: 1fr; gap: 4px; }
  .deal { padding: 22px; }
  .deal .cols { grid-template-columns: 1fr; }
  .deal .letter { font-size: 110px; }
  .teams { grid-template-columns: 1fr; }
  .proof .big { font-size: 96px; }
}
@media (max-width: 560px) {
  .top .right .quiet { display: none; }
  .pill { white-space: nowrap; }
}

.sample-link { display: none; }
@media (max-width: 1180px) {
  .phone-screen { height: 520px; }
  .phone iframe { pointer-events: none; }
  .sample-link { display: inline-flex; align-items: center; min-height: 48px; margin: 18px 0 8px; padding: 0 22px; border: 1px solid #fff; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
  .hero .pitch { padding-bottom: 8px; }
  .proof { padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .hero-words br { display: none; }
  .phone-screen { height: 440px; }
  .hero { gap: 36px; margin-top: 28px; }
}

@media (max-width: 560px) {
  .phone-col { margin-top: 0; align-items: center; }
  .phone { width: min(100%, 330px); border-width: 8px; border-radius: 40px 40px 0 0; }
  .phone-screen { height: 420px; }
  .sample-link { justify-content: center; margin: 18px 0 0; }
  .hero-band { padding-bottom: 48px; }
}

/* On phones and tablets the sample email reads itself: it scrolls slowly inside the frame (app.js),
   and tapping anywhere on it opens the full email. Nothing to get your thumb stuck in. */
.phone { position: relative; }
.phone-tap { display: none; }
@media (max-width: 1180px) {
  .phone-tap { display: block; position: absolute; inset: 0; z-index: 1; }
  .phone-tap:focus-visible { outline: 3px solid var(--flame); outline-offset: -3px; }
}

/* Guided tour under the phone: a caption for the part of the email on screen, and buttons to jump to each part. */
.tour { width: min(100%, 410px); margin-top: 18px; }
.tour-caption { min-height: 3em; font-size: 16px; line-height: 1.45; color: #fff; }
.tour-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tour-chips button { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: transparent; border: 1px solid #5a5a5a; border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; }
.tour-chips button:hover { border-color: #fff; }
.tour-chips button[aria-pressed="true"] { background: var(--flame); border-color: var(--flame); color: #0b0b0b; }
.tour-chips button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .tour { width: min(100%, 330px); } .tour-caption { font-size: 15px; } }

/* ======================================================================
   First screen: one line, the 7am lock screen, one action.
   ====================================================================== */
.hook { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; padding: 36px 0 96px; }
.hook .hero-words { padding-top: 0; max-width: 8.5em; font-size: clamp(52px, 6.8vw, 108px); font-weight: 600; font-stretch: 90%; line-height: 0.93; letter-spacing: -0.045em; }
.hook .lede { margin-top: 24px; max-width: 28em; font-size: 19px; line-height: 1.5; color: var(--soft-dark); }
.hook .signup { margin-top: 30px; }
.hook .fine { margin-top: 14px; font-size: 14px; color: var(--soft-dark); }

/* second screen: the whole email, toured */
.showcase { padding: 76px 0 0; border-top: 1px solid var(--line-dark); }
.show-h { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.04em; }
.show-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-top: 44px; }
.show-grid .phone-col { order: 0; margin-top: 0; }
.show-grid .proof { justify-self: start; align-self: center; max-width: 360px; }

@media (max-width: 900px) {
  .hook { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 12px 0 64px; }
  .show-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .show-grid .proof { padding-bottom: 8px; }
  .showcase { padding-top: 56px; }
}
@media (max-width: 560px) {
  .hero-band:not(.app-band) .top nav, .hero-band:not(.app-band) .top .right { display: none; }
  .hero-band:not(.app-band) .top { padding: 20px 0 8px; }
  .hook .hero-words { font-size: 48px; }
  .hook .lede { margin-top: 18px; font-size: 17px; }
  .hook .signup { margin-top: 24px; }
}

/* layout of the first screen: headline + sign-up on the left, lock screen on the right;
   on phones the lock screen sits between the headline and the sign-up so it's seen first */
.hook { grid-template-areas: "head demo" "body demo"; grid-template-rows: auto 1fr; row-gap: 0; }
.hook .hero-words { grid-area: head; align-self: end; }
.hook .hook-body { grid-area: body; align-self: start; }
.hook .grader { grid-area: demo; }
@media (max-width: 900px) {
  .hook { grid-template-areas: "head" "body" "demo"; grid-template-rows: auto; row-gap: 28px; }
  .hook .lede { margin-top: 4px; }
}

/* ---- the email's contents, next to the phone ---- */
.tour-chips { list-style: none; padding: 0; }
.tour-chips li { display: contents; }
.tour-chips .t-long, .tour-chips .t-desc { display: none; }
.tour-intro { display: none; }
.tour-note { margin-top: 14px; font-size: 13px; color: var(--soft-dark); }
.tour-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.tour-cta .sample-link { display: inline-flex; margin: 0; }
@media (max-width: 900px) {
  .show-grid .tour { width: min(100%, 410px); justify-self: center; margin-top: -20px; }
  .tour-cta .btn { flex: 1 1 auto; }
}
@media (min-width: 901px) {
  .show-grid { align-items: center; }
  .show-grid .tour { width: 100%; max-width: 520px; margin-top: 0; }
  .tour-intro { display: block; font-size: 18px; line-height: 1.45; color: var(--soft-dark); }
  .tour .tour-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); min-height: 0; }
  .tour-chips { display: block; margin: 22px 0 0; border-bottom: 1px solid var(--line-dark); }
  .tour-chips li { display: block; }
  .tour-chips button { display: block; width: 100%; min-height: 0; text-align: left; border: 0; border-top: 1px solid var(--line-dark); border-radius: 0;
    padding: 18px 0 18px 20px; background: transparent; color: #fff; position: relative; opacity: 0.8; transition: opacity 0.25s; }
  .tour-chips button:hover { opacity: 0.95; border-color: var(--line-dark); }
  .tour-chips button[aria-pressed="true"] { opacity: 1; background: transparent; color: #fff; border-color: var(--line-dark); }
  .tour-chips button::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: transparent; }
  .tour-chips button[aria-pressed="true"]::before { background: var(--flame); }
  .tour-chips .t-short { display: none; }
  .tour-chips .t-long { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
  .tour-chips .t-desc { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--soft-dark); }
  .tour-cta { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .tour-chips button { transition: none; } }
/* phones: the tour lines up exactly with the phone frame above it */
@media (max-width: 560px) {
  .show-grid { justify-items: center; }
  .show-grid .phone-col, .show-grid .tour { width: min(100%, 330px); }
  .show-grid .phone { width: 100%; }
  .show-grid .tour { margin-top: -16px; }
  .tour-cta { flex-direction: column; align-items: stretch; }
  .tour-cta .btn, .tour-cta .sample-link { width: 100%; justify-content: center; }
}

/* ---- player look-up section ---- */
.lookup { display: grid; gap: 16px; }
.lk-card { border: 1px solid var(--line); border-radius: 26px; padding: 26px; background: #fff; }
.lk-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lk-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 180px; margin-top: 18px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.lk-bars span { position: relative; display: block; height: calc(var(--h) / 76 * 100%); min-height: 24px; border-radius: 10px 10px 3px 3px; background: #d4d4cf; }
.lk-bars span.hi { background: var(--ink); }
.lk-bars b { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.lk-bars span.hi b { color: #fff; }
.lk-key { margin-top: 12px; font-size: 14px; color: var(--soft); }
.lk-why { margin-top: 4px; font-size: 15px; color: var(--soft); }
.lk-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lk-cmp div { background: var(--paper); border-radius: 16px; padding: 14px; }
.lk-cmp small { display: block; font-size: 13px; color: var(--soft); }
.lk-cmp b { display: block; margin-top: 4px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.lk-cmp b.down { color: var(--down); }
@media (max-width: 560px) {
  .lk-card { padding: 20px; border-radius: 22px; }
  .lk-bars { gap: 6px; height: 150px; }
  .lk-bars b { font-size: 12px; top: 6px; }
  .lk-cmp b { font-size: 24px; }
}

/* ---- two plans ---- */
.price-h { font-size: clamp(40px, 5.4vw, 76px); font-weight: 600; letter-spacing: -0.04em; max-width: 14em; }
.price-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.pp { border: 1px solid var(--line-dark); border-radius: 28px; padding: 32px; }
.pp.pro { background: #fff; color: var(--ink); border-color: #fff; }
.pp h3 { font-size: 22px; font-weight: 600; }
.pp-price { margin-top: 14px; font-size: 18px; color: var(--soft-dark); }
.pp.pro .pp-price, .pp.pro .pp-season { color: var(--soft); }
.pp-price b { font-size: 72px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: #fff; margin-right: 6px; }
.pp.pro .pp-price b { color: var(--flame); }
.pp-season { margin-top: 4px; font-size: 16px; color: var(--soft-dark); }
.pp ul { margin: 22px 0 0; padding: 0; list-style: none; }
.pp li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line-dark); position: relative; }
.pp.pro li { border-top-color: var(--line); }
.pp li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--flame); border-bottom: 2.5px solid var(--flame); transform: rotate(-45deg); }
.pp-cta { margin-top: 32px; }
.pp-cta .btn { min-height: 60px; padding: 0 34px; font-size: 18px; }
@media (max-width: 760px) {
  .price-plans { grid-template-columns: minmax(0, 1fr); }
  .pp { padding: 24px; border-radius: 24px; }
  .pp-price b { font-size: 56px; }
  .pp-cta .btn { width: 100%; }
}

/* ======================================================================
   The hero demo: the trade grader on three example trades.
   One dark card with the flame glow; the letters are the loud part.
   ====================================================================== */
.grader { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 36px; color: #fff;
  background: radial-gradient(120% 70% at 85% -10%, rgba(254, 81, 1, 0.55) 0%, rgba(254, 81, 1, 0.12) 38%, transparent 62%), #0d0d0d;
  box-shadow: 0 0 0 1px #2e2e2e, 0 50px 140px -60px var(--flame); }
.gr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.gr-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.gr-picks { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.gr-picks button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--soft-dark);
  font: 600 14px/1 var(--body); cursor: pointer; transition: background 0.2s, color 0.2s; }
.gr-picks button:hover { color: #fff; }
.gr-picks button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.gr-swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.gr-side { padding: 16px; border-radius: 20px; border: 1px solid var(--line-dark); min-width: 0; }
.gr-side.in { background: #fff; color: var(--ink); border-color: #fff; }
.gr-side small { display: block; font-size: 13px; color: var(--soft-dark); }
.gr-side.in small, .gr-side.in span { color: var(--soft); }
.gr-side b { display: block; margin-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.gr-side span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--soft-dark); }
.gr-arrow { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--flame); color: #000; }

.gr-grades { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.gr-grade { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.gr-grade small { display: block; font-size: 13px; color: var(--soft-dark); }
.gr-grade p { margin-top: 2px; font-size: 15px; line-height: 1.35; }
.gr-letter { flex: none; font-size: 112px; font-weight: 600; font-stretch: 85%; line-height: 0.82; letter-spacing: -0.05em; }
#gr-theirs .gr-letter { font-size: 112px; }
.gr-grade[data-tone="good"] .gr-letter { color: var(--flame); }
.gr-grade[data-tone="even"] .gr-letter { color: #fff; }
.gr-grade[data-tone="bad"] .gr-letter { color: #ff6a5c; }
#gr-theirs[data-tone="good"] .gr-letter { color: #fff; }

.gr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-dark); }
.gr-facts div { padding: 14px 12px 0 0; }
.gr-facts div + div { padding-left: 14px; border-left: 1px solid var(--line-dark); }
.gr-facts dt { font-size: 13px; color: var(--soft-dark); }
.gr-facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.gr-facts dd.up { color: #4fd69c; }
.gr-facts dd.down { color: #ff6a5c; }
.gr-why { font-size: 15px; line-height: 1.5; color: #e2e2e0; }
.gr-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

/* the change: letters drop in when you pick another trade */
@media (prefers-reduced-motion: no-preference) {
  .grader.swap .gr-letter, .grader.swap .gr-side b, .grader.swap .gr-facts dd { animation: gr-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .grader.swap #gr-theirs .gr-letter { animation-delay: 0.08s; animation-fill-mode: backwards; }
}
@keyframes gr-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .grader { padding: 18px; gap: 14px; border-radius: 28px; }
  .gr-head h2 { font-size: 18px; }
  .gr-picks { display: flex; width: 100%; }
  .gr-picks button { flex: 1; padding: 0 8px; font-size: 13.5px; }
  .gr-swap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gr-arrow { justify-self: center; margin: -10px 0; position: relative; z-index: 1; width: 34px; height: 34px; transform: rotate(90deg); }
  .gr-side { padding: 13px 14px; border-radius: 16px; }
  .gr-side b { font-size: 18px; margin-top: 2px; }
  .gr-side span { font-size: 13px; margin-top: 2px; }
  .gr-grades { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .gr-grade { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 18px; }
  .gr-letter { font-size: 72px; }
  #gr-theirs .gr-letter { font-size: 72px; }
  .gr-grade p { font-size: 14px; }
  .gr-facts dd { font-size: 15px; white-space: nowrap; }
  .gr-facts div + div { padding-left: 10px; }
  .gr-why { font-size: 14px; }
}

/* ---- trades band: when to make the trade ---- */
.timing-card { border: 1px solid var(--line-dark); border-radius: 28px; padding: 30px; }
.tc-trade { font-size: 14px; color: var(--soft-dark); }
.tc-verdict { margin-top: 8px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tc-reasons { list-style: none; margin: 24px 0 0; padding: 0; }
.tc-reasons li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-dark); line-height: 1.45; }
.tc-reasons span { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tc-reasons [data-tone="now"] span { background: var(--flame); color: #000; }
.tc-reasons [data-tone="wait"] span { background: #fff; color: var(--ink); }
.tc-key { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 15px; color: var(--soft-dark); }
@media (max-width: 760px) {
  .timing-card { padding: 22px; border-radius: 24px; }
  .tc-reasons li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* sign-in link: in the header's right side on desktop, on its own on phones (where the rest of the header hides) */
.signin-m { display: none; }
@media (max-width: 560px) {
  .hero-band:not(.app-band) .top { flex-wrap: nowrap; }
  .signin-m { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
}

/* ---- private leagues: connect with the two ESPN codes ---- */
.private { margin-top: 14px; padding: 20px; border-radius: 22px; background: #fff; color: var(--ink); text-align: left; }
.pv-h { font-size: 16px; }
.pv-phone { display: none; margin-top: 8px; font-size: 14.5px; color: var(--soft); }
.pv-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: pv; display: grid; gap: 12px; }
.pv-steps li { counter-increment: pv; position: relative; padding-left: 38px; font-size: 15px; line-height: 1.45; }
.pv-steps li::before { content: counter(pv); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pv-steps span { font-weight: 600; }
.pv-steps small { display: block; color: var(--soft); font-size: 13.5px; }
.pv-steps a:not(.pv-bm) { color: var(--ink); }
.pv-bm { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 8px 16px; border-radius: 999px; background: var(--flame); color: #000; font-weight: 800; font-size: 14.5px; text-decoration: none; cursor: grab; }
.pv-bm::before { content: ""; width: 1.1em; height: 1.1em; background: var(--logo) center / contain no-repeat; filter: brightness(0); }
.pv-manual { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pv-manual summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.pv-manual ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.pv-fields { display: grid; gap: 10px; margin-top: 14px; }
.pv-fields label { display: grid; gap: 6px; margin: 0; font-weight: 600; font-size: 14px; }
.pv-fields input { width: 100%; background: var(--paper); font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.pv-fields .btn { justify-self: start; }
.pv-safe { margin-top: 14px; font-size: 13px; color: var(--soft); line-height: 1.5; }
@media (hover: none) and (pointer: coarse) {
  .pv-phone { display: block; }
  .pv-steps, .pv-manual { display: none; }
}


/* ==========================================================================
   Shared components (used by the dashboards, the owner hub and the website's own pages)
   ========================================================================== */
/* badges: status pills */
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; background: var(--paper-2); color: var(--ink); }
.badge.flame { background: var(--flame); color: #000; }
.badge.up { background: var(--up-soft); color: #0b5a3a; }
.badge.warn { background: var(--warn-soft); color: #6b4000; }
.badge.down { background: var(--down-soft); color: #8a1c14; }
.badge.dark { background: var(--ink); color: #fff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* grade badges: A+ to F, one colour per letter band */
.grade { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding: 0 0.35em; border-radius: 0.5em;
  font-weight: 800; font-stretch: 90%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: lining-nums; }
.grade.A { background: var(--flame); color: #000; }
.grade.B { background: #ffc9ad; color: #3a1300; }
.grade.C { background: var(--paper-2); color: var(--ink); }
.grade.D, .grade.F { background: var(--ink); color: #fff; }

/* trend arrows */
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trend::before { content: ""; width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.trend.up { color: var(--up); } .trend.up::before { border-bottom: 6px solid currentColor; }
.trend.down { color: var(--down); } .trend.down::before { border-top: 6px solid currentColor; }
.trend.flat { color: var(--soft); } .trend.flat::before { width: 8px; border: 0; border-top: 2px solid currentColor; }

/* stat boxes: label, big number, note */
.stat { min-width: 0; }
.stat dt, .stat .stat-label { font-size: var(--t-xs); font-weight: 600; color: var(--soft); letter-spacing: 0.005em; }
.stat dd, .stat .stat-value { margin: 4px 0 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .stat-note, .stat dd small { display: block; margin-top: 4px; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0; color: var(--soft); }

/* loading: a quiet shimmer bar, and an empty state */
.skeleton { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--r-sm); min-height: 16px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: shimmer 1.4s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-7) var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--soft); }
.empty b { color: var(--ink); font-size: var(--t-md); }

/* spinner for busy buttons */
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Pages the website builds itself (worker page()): black band, white card, a way forward.
   ========================================================================== */
body.pg { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.pg-top { background: radial-gradient(70% 120% at 90% -30%, rgba(254, 81, 1, 0.42) 0%, rgba(254, 81, 1, 0.08) 45%, transparent 70%), var(--black); color: #fff; padding: 0 var(--s-5) 120px; }
.pg-bar { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.pg-bar .wordmark { color: #fff; }
.pg-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--r-pill); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--t-sm); transition: background var(--dur) var(--ease); }
.pg-link:hover { background: rgba(255, 255, 255, 0.1); }
.pg-main { flex: 1; padding: 0 var(--s-4); margin-top: -96px; }
.pg-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--r-xl); padding: var(--s-8) var(--s-8) var(--s-8); box-shadow: 0 0 0 1px var(--line), var(--sh-pop); }
.pg-card h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
.pg-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: var(--s-4); }
.pg-mark.bad { background: var(--down-soft); color: var(--down); }
.pg-body { margin-top: var(--s-4); }
.pg-body p, .pg-body li { color: var(--soft); margin-top: var(--s-3); line-height: 1.55; }
.pg-body p:first-child { margin-top: 0; }
.pg-body strong { color: var(--ink); }
.pg-body .btn { margin-top: var(--s-2); }
.pg-body .hint { font-size: var(--t-sm); }
.pg-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6) !important; }
.pg-actions .btn { margin-top: 0; }
.pg-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); padding: var(--s-8) var(--s-5) var(--s-7); font-size: var(--t-xs); color: var(--soft); }
.pg-foot a { color: var(--soft); }
.pg-foot a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .pg-top { padding-bottom: 104px; }
  .pg-bar { min-height: 64px; }
  .pg-card { padding: var(--s-6) var(--s-5) var(--s-6); border-radius: var(--r-lg); }
  .pg-actions .btn { flex: 1 1 100%; }
}

/* ---- the phone looks like a real phone: status bar, the mail app's header, and the 7am notification ---- */
.phone { --ph-bg: #f2f2ef; --ph-ink: #0a0a0a; --ph-soft: #5c5c5c; --ph-line: #e2e2de; isolation: isolate; }
@media (prefers-color-scheme: dark) { .phone { --ph-bg: #0b0b0b; --ph-ink: #f2f2ef; --ph-soft: #a8a8a8; --ph-line: #262626; } }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 4px 26px 0 30px; background: var(--ph-bg); color: var(--ph-ink); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.ph-icons { display: inline-flex; align-items: center; gap: 5px; }
.ph-icons svg { fill: currentColor; }
.ph-mail { padding: 6px 18px 10px; background: var(--ph-bg); color: var(--ph-ink); border-bottom: 1px solid var(--ph-line); }
.ph-from { display: flex; align-items: center; gap: 10px; }
.ph-from b { font-size: 15px; font-weight: 700; }
.ph-from small { margin-left: 4px; font-size: 13px; color: var(--ph-soft); }
.ph-subj { margin-top: 6px; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.ph-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.6S3.6 10.2 3.6 15.2a8.4 8.4 0 0 0 16.8 0C20.4 10.2 12 1.6 12 1.6Z' fill='%23fe5101'/%3E%3Cpath d='M6.6 17.4c2.2 0 3-4.4 5.6-4.4s2.8 1.8 5.4-1.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 62% no-repeat; box-shadow: inset 0 0 0 1px #2e2e2e; }

/* the notification drops in once, when the phone first comes into view (app.js adds .is-in, then .is-out) */
.ph-notif { position: absolute; z-index: 2; left: 10px; right: 10px; top: 50px; display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 22px;
  background: rgba(30, 30, 30, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: #fff;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(-130%) scale(0.96); pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.35s; }
.ph-notif.is-in { opacity: 1; transform: none; }
.ph-notif.is-out { opacity: 0; transform: translateY(-40%) scale(0.92); transition: transform 0.45s ease-in, opacity 0.35s ease-in; }
.pn-body { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.pn-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #c9c9c9; }
.pn-top b { font-weight: 600; }
.pn-title { font-weight: 700; }
.pn-text { color: #e6e6e6; }

/* jump to a part: the email nudges that part with a flame ring (inside the frame, app.js) */
@media (prefers-reduced-motion: reduce) { .ph-notif { transition: none; } }
@media (max-width: 560px) {
  .ph-status { height: 38px; padding: 2px 20px 0 24px; font-size: 14px; }
  .ph-island { top: 8px; width: 78px; height: 22px; margin-left: -39px; }
  .ph-mail { padding: 4px 14px 8px; }
  .ph-from b { font-size: 14px; }
  .ph-subj { font-size: 12.5px; }
  .ph-icon { width: 26px; height: 26px; border-radius: 7px; }
  .ph-notif { top: 42px; left: 7px; right: 7px; padding: 10px 12px; border-radius: 18px; }
  .pn-body { font-size: 12.5px; }
}

/* it's an email, so the alert is your mail app's new-email notification, and the sender has a round avatar */
.ph-avatar { border-radius: 50%; }
.ph-mailapp { flex: none; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(#5ab0ff, #1a73e8) center / cover;
  position: relative; }
.ph-mailapp::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='6.5' width='16' height='11' rx='2' fill='%23fff'/%3E%3Cpath d='M4.6 7.4 12 13l7.4-5.6' fill='none' stroke='%231a73e8' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 78% no-repeat; }
.pn-subj { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.pn-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #d6d6d6; }
@media (max-width: 560px) { .ph-mailapp { width: 26px; height: 26px; border-radius: 7px; } }
