/* Readprint — home page styles.
   Simple and restrained, in the spirit of a clean single-product launch page:
   stacked, centred beats — one short serif heading, one visual, generous
   whitespace. Two fonts only: Newsreader serif titles + Hanken Grotesk
   everywhere else. The reading print is binary (filled / empty), like the app. */

:root { --font-serif: "Newsreader", Georgia, "Times New Roman", serif; }

.serif-display {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(54px, 8.2vw, 116px); line-height: .98; letter-spacing: -.02em; color: var(--ink);
}
.serif-display em { font-style: italic; font-weight: 500; color: var(--green-ink); position: relative; display: inline-block; }
.uline { position: absolute; left: -1%; right: -1%; bottom: -.12em; width: 102%; height: .32em; overflow: visible; }
.uline path { stroke: var(--green); stroke-dasharray: 340; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .uline path { stroke-dashoffset: 340; animation: udraw 1.05s var(--ease) .5s forwards; }
}
@keyframes udraw { to { stroke-dashoffset: 0; } }
.serif-h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.018em; color: var(--ink);
}
.hero-sub { font-family: var(--font-body); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); }
/* Centred column. align-items:center alone sizes children to their max-content
   width (which overflows a narrow phone), so every child is capped to the rail
   width — headings then wrap, and the card/badges stay centred and on-screen. */
.hero .wrap, .closing .wrap, .beat .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .wrap > *, .closing .wrap > *, .beat .wrap > * { max-width: 100%; min-width: 0; }

/* ── HERO ── */
.hero { padding: clamp(128px, 17vh, 196px) 0 clamp(80px, 11vh, 132px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero-sub { margin-top: 24px; max-width: 40ch; }
.hero-actions { margin-top: clamp(30px, 4vw, 42px); }
.hero-shot { margin-top: clamp(56px, 8vw, 104px); position: relative; animation: heroShotIn 1s var(--ease) .15s both; }
.hero-shot::before {
  content: ""; position: absolute; left: 50%; top: 4%; translate: -50% 0;
  width: 120%; height: 90%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--green-cont), transparent 72%); opacity: .8;
}
.hero-shot device-frame { position: relative; z-index: 1; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .dvc { animation: floaty 7s ease-in-out infinite; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* device eases up into view on load (preloaded image, so no late pop) */
@keyframes heroShotIn { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }

/* ── beats ── */
.beat { padding: clamp(100px, 14vw, 184px) 0; }
.beat.soft { background: var(--bg-soft); }
.beat .serif-h2 { margin-bottom: clamp(48px, 6vw, 76px); }

/* ── print card (the signature graphic) ── */
.print-card {
  position: relative; width: min(620px, 100%); margin-inline: auto; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 50px 90px -54px rgba(13,13,17,.3); text-align: left;
}
.print-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.pc-title { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.pc-year { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink-3); }
.print-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink-3); gap: 14px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend-sw { width: 11px; height: 11px; border-radius: 3px; }
.legend-sw.off { background: var(--bg-soft-2); } .legend-sw.on { background: var(--green); }
.pc-fill {
  border: none; background: var(--green); color: #fff; font-family: var(--font-body); font-weight: 700;
  font-size: 13.5px; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer;
  transition: transform .16s var(--ease), background .2s;
}
.pc-fill:hover { transform: translateY(-1px); background: var(--green-press); }
.pc-fill.done { background: var(--bg-soft-2); color: var(--ink-2); cursor: default; transform: none; }

.reading-print {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(7px, 1.1vw, 13px); width: 100%;
}
.reading-print .cell { aspect-ratio: 1; border-radius: clamp(5px, .8vw, 9px); background: var(--bg-soft-2); transition: background .3s var(--ease), transform .18s var(--ease); }
.reading-print .cell.on:hover { transform: scale(1.18); }
.reading-print .cell.future { background: var(--bg-soft); }
.reading-print .cell.today { background: var(--bg); box-shadow: inset 0 0 0 1.6px var(--green); animation: todayPulse 1.9s var(--ease) infinite; }
@keyframes todayPulse { 0%,100% { box-shadow: inset 0 0 0 1.6px var(--green); } 50% { box-shadow: inset 0 0 0 1.6px var(--green), 0 0 0 4px var(--green-cont); } }

/* ── closing ── */
.closing { padding: clamp(120px, 17vh, 220px) 0 clamp(128px, 19vh, 230px); }
.closing-h2 { font-size: clamp(52px, 8.4vw, 116px); }
.closing .hero-sub { margin-top: 22px; max-width: 38ch; }
.closing .hero-actions { margin-top: clamp(34px, 4vw, 46px); }

.burst-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }

/* phones: the display serifs are locked at their min above; scale them down so
   the titles wrap comfortably and never push the page wider than the screen. */
@media (max-width: 560px) {
  .serif-display, .closing-h2 { font-size: clamp(38px, 13vw, 64px); }
  .serif-h2 { font-size: clamp(30px, 9vw, 52px); }
}
