/* Pausea — pausea.app
   Palette follows the app (app/src/constants/palette.ts) but the greys are
   lifted for the web: the app's muted tone measures 4.7:1 on this background,
   which only just clears AA and reads dim over long paragraphs. Body copy here
   is 12.5:1 and secondary text 7.5:1. */

:root {
  --bg: #080b10;
  --bg-raised: #0e1219;
  --card: #141a23;
  --card-hover: #182029;
  --border: #232c38;
  --border-bright: #33404f;

  --text: #f6f9fc; /* headings            ~18:1 */
  --body: #c6d0dc; /* paragraphs          ~12.5:1 */
  --dim: #96a2b2; /* meta, footer        ~7.5:1 */

  --accent: #2dd4a7;
  --accent-soft: #7ef0cd;
  --accent-dim: #0f3a2f;
  --danger: #f0564a;
  --gold: #f4b942;
  --ink: #04120d;

  --max: 900px;
  --narrow: 720px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 140vw);
  height: 75vh;
  background: radial-gradient(ellipse at center, rgba(45, 212, 167, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: var(--narrow);
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.2px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.header-link {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.94rem;
}

.header-link:hover {
  color: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 100px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  transform: translateY(-1px);
}

/* Waiting on Play review: looks like the real CTA, but says so plainly. */
.btn-soon {
  background: var(--accent-dim);
  border-color: rgba(45, 212, 167, 0.3);
  color: var(--accent-soft);
  cursor: default;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.cta-note {
  color: var(--dim);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 8px;
  text-align: center;
}

h1 {
  font-size: clamp(2.2rem, 7.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--text);
}

h1 .hl {
  color: var(--accent);
}

.lede {
  color: var(--body);
  font-size: clamp(1.06rem, 2.6vw, 1.24rem);
  margin: 0 auto 30px;
  max-width: 34rem;
}

.badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent-soft);
  border: 1px solid rgba(45, 212, 167, 0.25);
  border-radius: 100px;
  padding: 6px 15px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- phone mockups, drawn in CSS ---------- */

.screens {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 44px 0 10px;
}

.device {
  width: 236px;
  border: 1px solid var(--border-bright);
  border-radius: 32px;
  padding: 9px;
  background: linear-gradient(180deg, #171e28, #0d121a);
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  flex: 0 0 auto;
}

.device--hero {
  width: 258px;
}

.device-screen {
  background: var(--bg);
  border-radius: 25px;
  padding: 26px 18px 22px;
  min-height: 396px;
}

.device-screen--center {
  text-align: center;
}

.device-label {
  color: var(--dim);
  font-size: 0.78rem;
  text-align: center;
  margin: 12px 0 0;
}

.device-shield {
  font-size: 32px;
  line-height: 1;
}

.device-title {
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.3px;
  margin: 12px 0 6px;
}

.device-sub {
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0 0 16px;
}

.device-count {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.device-btn {
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.device-ghost {
  color: var(--dim);
  font-size: 0.78rem;
  padding-top: 11px;
}

/* in-app list rows for the Today / Blocker mockups */
.mini-h1 {
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.mini-sub {
  color: var(--dim);
  font-size: 0.75rem;
  margin: 2px 0 16px;
}

.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 9px;
}

.mini-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.mini-streak {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-actions {
  display: flex;
  gap: 7px;
}

.mini-btn {
  flex: 1;
  text-align: center;
  border-radius: 100px;
  padding: 7px 0;
  font-size: 0.73rem;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--dim);
}

.mini-btn.on {
  background: var(--accent-dim);
  color: var(--accent);
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--body);
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 3px 9px;
  background: var(--bg-raised);
  color: var(--dim);
}

.pill.block {
  background: rgba(240, 86, 74, 0.14);
  color: var(--danger);
}

/* ---------- sections ---------- */

section {
  padding: 46px 0 10px;
}

h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--dim);
  font-weight: 700;
  margin: 0 0 18px;
}

h2.big {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-transform: none;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 13px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.card--interactive:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 7px;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--body);
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-soft);
  border: 1px solid rgba(45, 212, 167, 0.3);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  margin-top: 1px;
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 580px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.card--pro {
  border-color: rgba(45, 212, 167, 0.35);
  background: linear-gradient(180deg, rgba(45, 212, 167, 0.07), transparent 60%), var(--card);
}

.plan-name {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.price {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  color: var(--text);
}

ul.plain {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--body);
}

ul.plain li {
  padding: 5px 0 5px 26px;
  position: relative;
}

ul.plain li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

details.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

details.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 650;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}

details.faq[open] summary::after {
  content: '−';
}

details.faq summary:hover {
  background: var(--card-hover);
}

details.faq p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--body);
}

/* ---------- closing CTA ---------- */

.cta-panel {
  background: linear-gradient(180deg, rgba(45, 212, 167, 0.09), transparent 70%), var(--card);
  border: 1px solid rgba(45, 212, 167, 0.28);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  margin-top: 20px;
}

.cta-panel h2 {
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.8px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 10px;
}

.cta-panel p {
  color: var(--body);
  max-width: 30rem;
  margin: 0 auto 24px;
}

/* ---------- long-form pages ---------- */

.prose {
  max-width: var(--narrow);
  margin: 0 auto;
}

.prose h1 {
  font-size: clamp(1.9rem, 6vw, 2.3rem);
  margin-bottom: 6px;
}

.prose h2 {
  text-transform: none;
  letter-spacing: -0.3px;
  font-size: 1.28rem;
  color: var(--text);
  margin: 36px 0 12px;
}

.prose p,
.prose li {
  color: var(--body);
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.lead {
  font-size: 1.12rem;
  color: var(--text);
}

.updated {
  color: var(--dim);
  font-size: 0.9rem;
}

code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.87em;
  color: var(--accent-soft);
}

table.legal {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0 10px;
}

table.legal th,
table.legal td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

table.legal th {
  color: var(--text);
  font-weight: 600;
  width: 42%;
}

table.legal td {
  color: var(--body);
}

@media (max-width: 480px) {
  table.legal th,
  table.legal td {
    font-size: 0.93rem;
  }
  table.legal th {
    width: 46%;
  }
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  margin-top: 54px;
  padding: 26px 0 46px;
  color: var(--dim);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--body);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--dim);
}

.footer-legal span {
  white-space: nowrap;
}
