/* =========================================================
   PravaApp · /blocks · "Clinical Receipt, Editorial Witness"
   --------------------------------------------------------
   Typography: Bricolage Grotesque (display) + Hanken Grotesk
   (body) + IBM Plex Mono (tabular data — timestamps, durations)
   Serif italic (accent). Palette: flat black, warm white,
   dim slate, a single purple sparingly.
   ========================================================= */

:root {
  --bg: #030508;
  --bg-2: #070A12;
  --surface: #0C1018;
  --surface-2: #11151F;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --dim: #8B8FAF;
  --faint: #3A3F5C;
  --muted: rgba(255, 255, 255, 0.55);
  --accent: #6E5AFA;
  --accent-soft: rgba(110, 90, 250, 0.18);
  --accent-glow: rgba(110, 90, 250, 0.38);
  --radius-card: 18px;
  --radius-chip: 999px;
  --nav-h: 66px;
  /* App category tints for visualizations */
  --app-code:   #6E5AFA;
  --app-mail:   #5E8BF7;
  --app-social: #E06E5E;
  --app-chat:   #3BB273;
  --app-phone:  #F2B950;
  --shadow-deep:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --------- Reset & base --------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(110,90,250,0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(110,90,250,0.04), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }
ol, ul { list-style: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------- Atmospheric grain layer --------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --------- Nav --------- */
.blocks-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(3, 5, 8, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: inline-flex; align-items: center; opacity: 0.95; transition: opacity 0.2s; }
.nav-brand:hover { opacity: 1; }
.nav-brand img { height: 22px; width: auto; }
.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  font-size: 0.9rem;
  color: var(--dim);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-chip);
  color: var(--text);
  transition: all 0.2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 540px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* --------- Page shell --------- */
#blocks-page {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px) 120px;
}

/* Timer section fills the first viewport so card stays above the fold at every size */
#timer-section {
  min-height: calc(100svh - var(--nav-h, 66px));
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2.4vh, 28px);
  padding: clamp(10px, 1.8vh, 22px) 0 clamp(14px, 2.4vh, 28px);
  max-width: 1160px;
  margin: 0 auto;
}

/* Two-column editorial layout on wide screens — guarantees above-fold */
@media (min-width: 960px) {
  #timer-section {
    grid-template-columns: minmax(360px, 560px) minmax(420px, 520px);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    justify-items: stretch;
  }
  .fold-headline {
    text-align: left !important;
    justify-self: end;
  }
  .display-heading {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  }
  .timer-card {
    justify-self: start;
    width: 100%;
    max-width: 520px;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .display-heading { font-size: clamp(2.6rem, 3.4vw, 3.6rem); }
}

/* Toggle-able states must actually hide when [hidden] is set */
[hidden] { display: none !important; }

/* --------- Fold 1 headline --------- */
.fold-headline {
  text-align: center;
  margin: 0;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.eyebrow {
  display: inline-block;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  margin-bottom: clamp(12px, 1.8vh, 18px);
}
.display-heading {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.display-heading em {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: -0.01em;
}

/* --------- Timer card --------- */
.timer-card {
  position: relative;
  margin: 0 auto;
  max-width: 580px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  animation: card-reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.timer-card::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.timer-card__inner {
  position: relative;
  padding: clamp(22px, 3.5vw, 36px) clamp(22px, 4.5vw, 40px) clamp(22px, 3.5vw, 32px);
  z-index: 1;
}

/* --------- Notification permission banner --------- */
.notif-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: rgba(242, 185, 80, 0.08);
  border: 1px solid rgba(242, 185, 80, 0.28);
  border-radius: 12px;
  color: var(--text);
  animation: fade-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.notif-banner[data-variant="denied"] {
  background: rgba(224, 110, 94, 0.08);
  border-color: rgba(224, 110, 94, 0.3);
}
.notif-banner__icon {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(242, 185, 80, 0.14);
  color: #F2B950;
}
.notif-banner[data-variant="denied"] .notif-banner__icon {
  background: rgba(224, 110, 94, 0.14);
  color: #E06E5E;
}
.notif-banner__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notif-banner__title {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.notif-banner__text {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}
.notif-banner__action {
  padding: 8px 16px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: #F2B950;
  border: 1px solid #F2B950;
  border-radius: var(--radius-chip);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.notif-banner__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(242, 185, 80, 0.6);
}
/* Hide during post-run states — receipt has its own layout */
#timer-card[data-state="consolidating"] .notif-banner,
#timer-card[data-state="receipt"] .notif-banner { display: none !important; }

@media (max-width: 540px) {
  .notif-banner { grid-template-columns: auto 1fr; padding: 10px 12px; }
  .notif-banner__action { grid-column: 1 / -1; justify-self: start; padding: 6px 14px; }
  .notif-banner__text { font-size: 0.8rem; }
}

/* Perforated receipt-style bottom edge */
.timer-card__perf {
  position: relative;
  height: 14px;
  background-image: radial-gradient(circle at 7px 14px, var(--bg) 5px, transparent 6px);
  background-size: 14px 14px;
  background-repeat: repeat-x;
  border-top: 1px dashed var(--border-strong);
  opacity: 0.9;
}

/* --------- Kind tabs --------- */
.kind-tabs {
  display: inline-flex;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  width: max-content;
}
.timer-card__inner > .kind-tabs { display: flex; }
#timer-card[data-state="running"] .kind-tabs,
#timer-card[data-state="consolidating"] .kind-tabs,
#timer-card[data-state="receipt"] .kind-tabs { display: none; }

.kind-tab {
  padding: 10px 22px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  border-radius: var(--radius-chip);
  transition: all 0.25s;
}
.kind-tab[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.kind-tab:not([aria-selected="true"]):hover { color: var(--text); }

/* --------- Duration chips --------- */
.duration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
#timer-card[data-state="running"] .duration-chips,
#timer-card[data-state="consolidating"] .duration-chips,
#timer-card[data-state="receipt"] .duration-chips { display: none; }

.duration-chip {
  padding: 10px 18px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  transition: all 0.2s;
}
.duration-chip:hover { color: var(--text); border-color: var(--border-strong); }
.duration-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(110, 90, 250, 0.08);
}

/* --------- Name field --------- */
.name-field { display: block; margin-bottom: 14px; }
#block-name {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
#block-name::placeholder { color: var(--faint); }
#block-name:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(110, 90, 250, 0.06);
  box-shadow: 0 0 0 4px rgba(110, 90, 250, 0.1);
}
#timer-card[data-state="running"] .name-field,
#timer-card[data-state="consolidating"] .name-field,
#timer-card[data-state="receipt"] .name-field { display: none; }

/* --------- Primary pill button --------- */
.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius-chip);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.primary-pill::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(110,90,250,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.primary-pill:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(110, 90, 250, 0.45); }
.primary-pill:hover::before { transform: translateX(100%); }
.primary-pill:active { transform: translateY(0); }
.primary-pill__arrow { transition: transform 0.2s; }
.primary-pill:hover .primary-pill__arrow { transform: translateX(4px); }
#timer-card[data-state="running"] #start-btn,
#timer-card[data-state="consolidating"] #start-btn,
#timer-card[data-state="receipt"] #start-btn { display: none; }

.idle-note {
  margin-top: 12px;
  text-align: center;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}
#timer-card[data-state="running"] .idle-note,
#timer-card[data-state="consolidating"] .idle-note,
#timer-card[data-state="receipt"] .idle-note { display: none; }

/* --------- Running state --------- */
.running-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 3vw, 24px) 0 8px;
}
.running-label {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.countdown {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
  text-shadow: 0 0 60px rgba(110, 90, 250, 0.12);
}
.progress-track {
  width: 100%;
  max-width: 420px;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-line {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #B8A9FF);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.25s linear;
}
.live-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(110, 90, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 90, 250, 0); }
}
.secondary-text {
  padding: 10px 24px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  transition: all 0.2s;
}
.secondary-text:hover { color: var(--text); border-color: var(--border-strong); }

/* --------- Consolidating --------- */
.consolidating-state {
  padding: 60px 0;
  text-align: center;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--dim);
}
.dots span {
  display: inline-block;
  opacity: 0.3;
  animation: blink 1.4s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* =========================================================
   RECEIPT — Editorial thermal-paper aesthetic
   "Bloomberg terminal goes to therapy."
   Hairlines, not boxes. Monospaced where numbers live,
   italic Bricolage where feelings live. One shared gutter.
   ========================================================= */
.receipt-state { animation: fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.receipt-card {
  --rule: 1px dashed rgba(255, 255, 255, 0.10);
  --rule-faint: 1px dashed rgba(255, 255, 255, 0.06);
  --section-y: clamp(16px, 3vh, 22px);
  padding: 0;
}
.receipt-card > * { animation: fade-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.receipt-card > *:nth-child(1) { animation-delay: 0.00s; }
.receipt-card > *:nth-child(2) { animation-delay: 0.05s; }
.receipt-card > *:nth-child(3) { animation-delay: 0.10s; }
.receipt-card > *:nth-child(4) { animation-delay: 0.15s; }
.receipt-card > *:nth-child(5) { animation-delay: 0.20s; }
.receipt-card > *:nth-child(6) { animation-delay: 0.25s; }
.receipt-card > *:nth-child(7) { animation-delay: 0.30s; }
@media (prefers-reduced-motion: reduce) {
  .receipt-card > * { animation: none; }
}

/* ---- Stamp: tiny running head like a real receipt ---- */
.receipt-stamp {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.receipt-stamp__rule {
  height: 0;
  border-top: var(--rule);
  opacity: 0.7;
}
.receipt-stamp__num {
  color: var(--muted);
  letter-spacing: 0.2em;
}
.receipt-stamp__num sup { font-size: 0.72em; letter-spacing: 0; margin-right: 1px; }

/* ---- Heading: kind / optional name / recorded-at timestamp ---- */
.receipt-heading {
  padding: 14px 0 var(--section-y);
  margin: 0 0 var(--section-y);
  text-align: center;
  border-bottom: var(--rule);
}
.receipt-heading__kind {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.receipt-heading__name {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 4.2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 10px 0 2px;
  padding: 0 8px;
  word-break: break-word;
}
.receipt-heading__meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* ---- Timeline — the receipt hero for focus blocks ---- */
.receipt-timeline {
  padding: 0 0 var(--section-y);
  margin: 0 0 var(--section-y);
  border-bottom: var(--rule);
}
.timeline-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.timeline-title {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.timeline-stats {
  display: inline-flex;
  gap: 14px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14px, 1fr));
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.timeline-cell {
  height: 56px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease;
}
.timeline-cell:hover { transform: scaleY(1.05); }
.timeline-cell--in {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(110, 90, 250, 0.18);
}
.timeline-cell--mixed {
  background: var(--accent-soft);
  border-color: rgba(110, 90, 250, 0.45);
}
.timeline-cell--away {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
}
.legend-item .dot--in { background: var(--accent); }
.legend-item .dot--away { background: transparent; border: 1px dashed var(--border-strong); }
.timeline-footnote {
  margin: 14px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.timeline-footnote em {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  color: var(--text);
  margin-right: 4px;
}

/* ---- Break composition — no box, centered editorial stack ---- */
.break-composition {
  padding: 4px 0 var(--section-y);
  margin: 0 0 var(--section-y);
  text-align: center;
  border-bottom: var(--rule);
}
.break-breath {
  width: clamp(120px, 26vw, 150px);
  height: clamp(120px, 26vw, 150px);
  margin: 0 auto 14px;
  color: var(--accent);
  filter: drop-shadow(0 0 24px rgba(110, 90, 250, 0.25));
  display: block;
}
.break-breath__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.5;
  transform-origin: 100px 100px;
  animation: break-breathe 5s ease-in-out infinite;
}
.break-breath__ring--outer { animation-delay: 0s; opacity: 0.32; }
.break-breath__ring--mid   { animation-delay: 0.3s; opacity: 0.5; }
.break-breath__ring--inner { animation-delay: 0.6s; opacity: 0.75; }
.break-breath__dot {
  fill: currentColor;
  transform-origin: 100px 100px;
  animation: break-breathe-dot 5s ease-in-out infinite;
}
@keyframes break-breathe {
  0%, 100% { transform: scale(0.92); opacity: var(--r-op, 0.5); }
  50%      { transform: scale(1.05); opacity: 1; }
}
@keyframes break-breathe-dot {
  0%, 100% { transform: scale(0.8); opacity: 0.8; }
  50%      { transform: scale(1.2); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .break-breath__ring, .break-breath__dot { animation: none; }
}
.break-affirmation {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 4px auto 18px;
  max-width: 22ch;
}
.break-duration-line {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}
.break-duration-line__glyph { color: var(--accent); font-size: 0.9rem; letter-spacing: 0; }

/* ---- Departures — dashed rule toggle, receipt-line items ---- */
.receipt-departures {
  padding: 0 0 var(--section-y);
  margin: 0 0 var(--section-y);
  background: transparent;
  border: 0;
  border-bottom: var(--rule);
  border-radius: 0;
}
.receipt-departures summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  user-select: none;
}
.receipt-departures summary::-webkit-details-marker { display: none; }
.receipt-departures summary:hover { color: var(--muted); }
.receipt-departures__toggle {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 200ms ease, background 200ms ease;
}
.receipt-departures[open] .receipt-departures__toggle {
  background: rgba(255,255,255,0.04);
  transform: rotate(45deg);
}
.receipt-departures ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.receipt-departures li {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  border-bottom: var(--rule-faint);
}
.receipt-departures li:last-child { border-bottom: 0; }
.receipt-departures li .arrow { color: var(--dim); }
.receipt-departures li .dur {
  justify-self: end;
  color: var(--dim);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* ---- Rating — always center-stacked, generous stars ---- */
.receipt-rating {
  padding: 0 0 var(--section-y);
  margin: 0 0 var(--section-y);
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.receipt-rating__prompt {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.18rem);
  color: var(--text);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
  max-width: 26ch;
}
.receipt-rating__stars {
  display: inline-flex;
  gap: 6px;
  margin: 0;
}
.receipt-rating__stars .star {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font-size: 1.85rem;
  line-height: 1;
  color: rgba(200, 200, 220, 0.22);
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1),
              color 140ms ease,
              text-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.receipt-rating__stars .star:hover,
.receipt-rating__stars .star:focus-visible {
  transform: translateY(-2px) scale(1.1);
  outline: none;
}
.receipt-rating__stars .star:focus-visible { color: var(--accent); }
.receipt-rating__stars .star--on {
  color: #F2B950;
  text-shadow: 0 0 16px rgba(242, 185, 80, 0.38);
}
.receipt-rating__caption {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
  min-height: 1em;
  max-width: 30ch;
}

/* ---- Upgrade aside — one italic sentence, right-arrow link ---- */
.receipt-upgrade {
  padding: 0 0 var(--section-y);
  margin: 0 0 var(--section-y);
  border-bottom: var(--rule);
  display: grid;
  gap: 8px;
  text-align: center;
}
.receipt-upgrade__eyebrow {
  display: inline-block;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.receipt-upgrade__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 48ch;
  margin-inline: auto;
}
.receipt-upgrade__body em {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  color: var(--text);
}
.receipt-upgrade__link {
  display: inline-block;
  margin-left: 6px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
  transition: color 160ms ease, letter-spacing 200ms ease;
}
.receipt-upgrade__link span { display: inline-block; transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.receipt-upgrade__link:hover { color: #9689FF; }
.receipt-upgrade__link:hover span { transform: translateX(3px); }

/* ---- CTAs — primary as the only button. Secondary actions
   are receipt-footer text links with animated hairlines.
   Primary always claims its own row so it never wraps. ---- */
.receipt-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "share signup"
    "restart restart";
  gap: 4px 16px;
  align-items: stretch;
  padding-top: 4px;
}
.receipt-cta-ghost     { grid-area: share; }
.receipt-cta-secondary { grid-area: signup; }
.receipt-cta-primary   { grid-area: restart; margin-top: 14px; }

.receipt-cta-ghost,
.receipt-cta-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 4px 16px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 180ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.receipt-cta-ghost::after,
.receipt-cta-secondary::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 6px;
  height: 1px;
  background: var(--border-strong);
  transition: background 220ms ease, left 280ms cubic-bezier(0.2, 0.8, 0.2, 1), right 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.receipt-cta-ghost:hover,
.receipt-cta-ghost:focus-visible,
.receipt-cta-secondary:hover,
.receipt-cta-secondary:focus-visible {
  color: var(--text);
  outline: none;
}
.receipt-cta-ghost:hover::after,
.receipt-cta-ghost:focus-visible::after,
.receipt-cta-secondary:hover::after,
.receipt-cta-secondary:focus-visible::after {
  background: var(--text);
  left: 4%;
  right: 4%;
}
.receipt-cta-ghost[data-busy="1"] { opacity: 0.55; pointer-events: none; }
.receipt-cta-ghost__icon {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.8;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
}
.receipt-cta-ghost:hover .receipt-cta-ghost__icon,
.receipt-cta-ghost:focus-visible .receipt-cta-ghost__icon {
  transform: translate(1px, -1px);
  opacity: 1;
}

.receipt-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 22px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius-chip);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 260ms ease;
}
.receipt-cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(110, 90, 250, 0.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.receipt-cta-primary__label {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
}
.receipt-cta-primary:hover,
.receipt-cta-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -16px rgba(110, 90, 250, 0.6);
  outline: none;
}
.receipt-cta-primary:hover::before,
.receipt-cta-primary:focus-visible::before { transform: translateX(120%); }

/* --------- History block (label + strip) --------- */
.history-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-strong);
}
.history-block__label {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.history-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-chip);
  cursor: pointer;
  transition: all 0.2s;
}
.history-pill::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--faint);
}
.history-pill--focus::before { background: var(--accent); }
.history-pill--break::before { background: transparent; border: 1px dashed var(--border-strong); }
.history-pill:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* =========================================================
   Fold 2+ editorial sections
   ========================================================= */
.bridge-band {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px;
  margin: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.bridge-band::before, .bridge-band::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
}
.bridge-band::before { top: -1px; }
.bridge-band::after { bottom: -1px; }
.bridge-quote {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 680px;
  margin: 0 auto 16px;
}
.bridge-sub {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dim);
}

.content-section { margin: clamp(56px, 8vw, 96px) 0; }

/* Breadcrumb (visible) */
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px) 0;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--dim);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: "›";
  color: rgba(255,255,255,0.25);
  margin-right: 2px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed transparent; transition: color 120ms, border-color 120ms; }
.breadcrumb a:hover { color: var(--text); border-bottom-color: rgba(255,255,255,0.3); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

/* Pomodoro Technique explainer — keyword-rich educational section */
.pomo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  max-width: 1040px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .pomo-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.pomo-copy p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; font-size: 1rem; }
.pomo-copy p:last-child { margin-bottom: 0; }
.pomo-link-row { padding-top: 6px; }
.pomo-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(110, 90, 250, 0.35);
  transition: color 120ms ease, border-color 120ms ease;
}
.pomo-link:hover { color: var(--text); border-bottom-color: var(--text); }

.pomo-card {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(110,90,250,0.06), rgba(110,90,250,0.01));
  border: 1px solid rgba(110, 90, 250, 0.2);
  border-radius: 14px;
}
.pomo-card h3 {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin: 0 0 14px;
}
.pomo-steps { counter-reset: step; padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pomo-steps li {
  position: relative;
  padding-left: 36px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
  counter-increment: step;
}
.pomo-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 90, 250, 0.14);
  border: 1px solid rgba(110, 90, 250, 0.32);
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 400;
}
.pomo-steps strong { color: var(--text); font-weight: 500; }
.section-kicker {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.content-section h2 {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 720px;
}
.content-section p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
  max-width: 640px;
  font-size: 1.02rem;
}
.content-section p.emphasis {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  color: var(--text);
  font-size: 1.6rem;
  margin-top: 20px;
}
.content-section .note {
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-strong);
  border-radius: 4px;
}

/* =========================================================
   Gap compare visual — shows what a tab sees vs what PravaApp sees
   ========================================================= */
.gap-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 32px 0 36px;
}
.gap-compare__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 0;
}
.gap-compare__card--full {
  background: linear-gradient(180deg, rgba(110, 90, 250, 0.09), rgba(110, 90, 250, 0.02));
  border-color: rgba(110, 90, 250, 0.28);
  box-shadow: 0 20px 60px -30px rgba(110, 90, 250, 0.4);
}
.gap-compare__label {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.gap-compare__timeline {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.gc-cell {
  height: 30px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.gc-cell--in {
  background: var(--accent);
  border-color: var(--accent);
}
.gc-cell--away {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}
.gc-cell--code   { background: var(--app-code);   border-color: var(--app-code); }
.gc-cell--mail   { background: var(--app-mail);   border-color: var(--app-mail); }
.gc-cell--social { background: var(--app-social); border-color: var(--app-social); }
.gc-cell--chat   { background: var(--app-chat);   border-color: var(--app-chat); }
.gc-cell--phone  { background: var(--app-phone);  border-color: var(--app-phone); }

.gap-compare__legend,
.gap-compare__apps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0;
  margin: 0;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.gap-compare__legend li,
.gap-compare__apps li { display: inline-flex; align-items: center; gap: 6px; }
.gc-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--accent);
}
.gc-dot--in     { background: var(--accent); }
.gc-dot--away   { background: transparent; border: 1px dashed var(--border-strong); }
.gc-dot--code   { background: var(--app-code); }
.gc-dot--mail   { background: var(--app-mail); }
.gc-dot--social { background: var(--app-social); }
.gc-dot--chat   { background: var(--app-chat); }
.gc-dot--phone  { background: var(--app-phone); }

.gap-compare__stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.gap-compare__rating {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.gap-compare__rating-num {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.gap-compare__rating-suffix {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
}
.gap-compare__coach {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gap-compare__coach-tag {
  align-self: start;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid rgba(110, 90, 250, 0.4);
  border-radius: 999px;
}
.gap-compare__coach-text {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.35;
}
.gap-compare__caption {
  margin-top: auto;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.4;
}
.gap-compare__arrow {
  align-self: center;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.6rem;
  color: var(--dim);
}
@media (max-width: 780px) {
  .gap-compare { grid-template-columns: 1fr; gap: 14px; }
  .gap-compare__arrow { transform: rotate(90deg); justify-self: center; font-size: 1.3rem; }
  .gc-cell { height: 26px; }
}

.kinds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.kind-card {
  position: relative;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
}
.kind-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }

/* Kind card preview (visual at top of each card) */
.kind-card__preview {
  position: relative;
  height: 90px;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.kp-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.kp-cell {
  height: 20px;
  border-radius: 3px;
  border: 1px solid currentColor;
  opacity: 0.9;
}
.kp-cell--code   { background: var(--app-code);   color: var(--app-code); }
.kp-cell--mail   { background: var(--app-mail);   color: var(--app-mail); }
.kp-cell--social { background: var(--app-social); color: var(--app-social); }
.kp-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.kp-score-num {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1;
}
.kp-score-suffix {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.kp-break {
  width: 100%;
  height: 36px;
  color: var(--accent);
}
.kp-offline {
  width: 100%;
  height: 42px;
  color: var(--dim);
}

.kp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  align-self: flex-start;
}
.kp-badge--rest { color: var(--accent); border-color: rgba(110, 90, 250, 0.4); }

.kind-card__mark {
  display: inline-block;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.kind-card h3 {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.kind-card p { font-size: 0.96rem; color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.kind-card .note { margin-top: 14px; font-size: 0.82rem; }

.steps {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 18px 22px 18px 64px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.65;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px; top: 18px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.steps strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

#faq { max-width: 760px; }
#faq details {
  padding: 18px 22px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}
#faq details[open] {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}
#faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 32px;
  line-height: 1.4;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.3rem;
  color: var(--dim);
  transition: transform 0.3s, color 0.2s;
  line-height: 1;
}
#faq details[open] summary::after {
  content: "–";
  color: var(--accent);
}
#faq details p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.final-band {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 48px);
  margin: clamp(72px, 10vw, 120px) 0 48px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(110,90,250,0.12), transparent 70%),
    linear-gradient(180deg, rgba(110,90,250,0.04), transparent);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.final-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% -40%, rgba(110,90,250,0.3), transparent 50%);
  pointer-events: none;
}
.final-eyebrow {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.final-band p:not(.final-eyebrow) {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 32px;
  letter-spacing: -0.01em;
}
.final-band .primary-pill {
  display: inline-flex;
  width: auto;
  min-width: 260px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   Footer
   ========================================================= */
.blocks-footer {
  position: relative;
  z-index: 2;
  padding: 64px clamp(20px, 4vw, 48px) 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand { padding-right: 32px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 18px; opacity: 0.85; }
.footer-tagline {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--dim);
  line-height: 1.55;
  max-width: 280px;
}
.footer-col h4 {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.94rem;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-rule {
  max-width: 1200px;
  margin: 48px auto 24px;
  height: 1px;
  background: var(--border);
}
.footer-meta {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.footer-lang { display: inline-flex; gap: 12px; }
.footer-lang a {
  color: var(--faint);
  transition: color 0.2s;
  letter-spacing: 0.2em;
}
.footer-lang a:hover { color: var(--text); }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-meta { flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================================================
   Page-load choreography
   ========================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes card-reveal {
  0%   { opacity: 0; transform: translateY(24px) scale(0.985); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
#blocks-page > section:not(#timer-section) {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}
#bridge { animation-delay: 0.55s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #blocks-page > section:not(#timer-section) { opacity: 1; transform: none; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 540px) {
  .blocks-nav { padding: 12px 16px; }
  #blocks-page { padding: 0 16px 96px; }
  #timer-section { gap: clamp(14px, 2.2vh, 24px); padding: clamp(8px, 1.8vh, 18px) 0 clamp(16px, 3vh, 28px); }
  .eyebrow { margin-bottom: 10px; font-size: 0.7rem; padding: 4px 11px; }
  .display-heading { font-size: clamp(1.75rem, 7.5vw, 2.4rem); }
  .countdown { font-size: clamp(4rem, 18vw, 6rem); }
  .timer-card__inner { padding: 22px 20px; }
  .kind-tabs { margin-bottom: 12px; }
  .duration-chips { gap: 6px; margin-bottom: 12px; }
  .duration-chip { padding: 9px 14px; font-size: 0.82rem; }
  .name-field { margin-bottom: 12px; }
  .primary-pill { padding: 14px 22px; font-size: 0.96rem; }
  .idle-note { margin-top: 10px; }
}

/* =========================================================
   Short-viewport override (landscape phones, low laptops)
   Placed LAST so it overrides base and mobile rules.
   ========================================================= */
@media (max-height: 680px) {
  #timer-section {
    gap: clamp(6px, 1vh, 12px);
    padding: 4px 0 8px;
  }
  .eyebrow { display: none; }
  .display-heading { font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.18; }
  .timer-card__inner { padding: 14px 20px 16px; }
  .kind-tabs { margin-bottom: 8px; }
  .duration-chips { margin-bottom: 8px; }
  .name-field { margin-bottom: 8px; }
  #block-name { padding: 10px 14px; font-size: 0.9rem; }
  .primary-pill { padding: 12px 20px; font-size: 0.92rem; }
  .idle-note { margin-top: 6px; font-size: 0.66rem; }
  .kind-tab { padding: 7px 16px; font-size: 0.74rem; }
  .duration-chip { padding: 7px 13px; font-size: 0.78rem; }
}
