:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --on-primary: #ffffff;
  --soft: #eef2ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --primary: #818cf8;
    --primary-dark: #a5b4fc;
    --soft: #312e81;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); }

.wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.wrap.wide {
  width: min(920px, calc(100% - 32px));
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  max-width: 70%;
  line-height: 1.3;
}

nav a {
  margin-left: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

main { padding: 40px 0 64px; }

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 22px 0 6px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.center { text-align: center; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 16px;
}

.btn:hover { background: var(--primary-dark); }

.btn.secondary {
  background: var(--soft);
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.card p, .answer { margin: 0; color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.tag.free {
  color: #ffffff;
  background: #16a34a;
}

ol, ul { padding-left: 20px; }
li { margin: 6px 0; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .plans { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
}

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.plan-primary {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.plan h3 {
  margin: 0;
  font-size: 18px;
}

.plan-badge {
  align-self: flex-start;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.price {
  margin: 14px 0 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.price-note {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.plan-points {
  margin: 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

.plan-fine {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.plan-cta {
  margin-top: auto;
  text-align: center;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--border);
}

.compare thead th {
  color: var(--muted);
  font-size: 13px;
}

.compare thead th:not(:first-child),
.compare td {
  text-align: center;
}

.mark {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.mark.yes { color: #16a34a; }
.mark.no { color: var(--muted); }

.compare-key {
  font-size: 14px;
  color: var(--muted);
}

.trust {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .trust { grid-template-columns: 1fr 1fr; }
}

.trust li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0;
}

.trust h3 { margin: 0 0 4px; font-size: 16px; }
.trust p { margin: 0; color: var(--muted); font-size: 14px; }

.success {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0 8px;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 64px;
}

.success-mark.is-failed {
  background: #dc2626;
}

.success-mark.is-pending {
  background: #d97706;
  font-size: 28px;
  letter-spacing: 1px;
}

.success h1 {
  margin: 0;
}

.success .lead {
  max-width: 28rem;
  margin: 0;
}

.success .btn.continue {
  margin-top: 8px;
}

/* ===================== Home page ===================== */

.modern {
  --accent-2: #0ea5e9;
  --alt: #f1f5f9;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 30px 60px -20px rgb(15 23 42 / 0.45);
}

@media (prefers-color-scheme: dark) {
  .modern {
    --alt: #111c33;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 0.7);
  }
}

html { scroll-behavior: smooth; }
.modern [id] { scroll-margin-top: 80px; }

.wrap.xl { width: min(1120px, calc(100% - 32px)); }

/* Header */
.modern header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.modern header.site .wrap { padding: 12px 0; }

.modern .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.modern .brand img { border-radius: 8px; }
.modern .brand.small { font-size: 15px; gap: 8px; }

.modern header.site nav { display: flex; gap: 4px; }

.modern header.site nav a {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color .15s, background .15s;
}

.modern header.site nav a:hover { color: var(--text); background: var(--soft); }

.modern header.site nav a.nav-cta { margin-left: 6px; font-weight: 600; white-space: nowrap; color: var(--on-primary); background: var(--primary); }
.modern header.site nav a.nav-cta:hover { background: var(--primary-dark); }

/* Main resets */
.modern main { padding: 0; }
.modern h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background:
    radial-gradient(800px 400px at 85% 10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 55%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 999px;
}

.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.2);
}

.modern h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.modern h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modern .lead { font-size: 19px; max-width: 34rem; margin-bottom: 28px; }

.modern .btn {
  padding: 13px 20px;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}

.modern .btn:hover { transform: translateY(-1px); }
.modern .btn.secondary { box-shadow: none; }
.modern .btn.secondary:hover { background: color-mix(in srgb, var(--soft) 70%, var(--primary) 12%); }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
}

.hero-points li { margin: 0; }
.hero-points span { color: #16a34a; font-weight: 700; margin-right: 4px; }

/* Popup mockup (always dark, like the extension) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.glow {
  position: absolute;
  inset: 10% 15%;
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  filter: blur(60px);
  opacity: .35;
  border-radius: 50%;
}

.mock {
  position: relative;
  width: min(360px, 100%);
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}

.hero-visual:hover .mock { transform: rotate(0); }

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.mock-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.mock-brand img { border-radius: 50%; }

.mock-badge {
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
  background: #312e81;
  border: 1px solid #4338ca;
  padding: 3px 10px;
  border-radius: 999px;
}

.mock-panels { height: 356px; overflow: hidden; }
.mock-panel { padding: 12px; display: grid; gap: 10px; align-content: start; animation: mockIn .25s ease; }
.mock-panel[hidden] { display: none; }
.mock-panel.center { text-align: center; padding-top: 28px; }

@keyframes mockIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.mock-badge.free { color: #cbd5e1; background: transparent; border-color: #475569; }

.mock-cta {
  padding: 9px;
  border-radius: 10px;
  background: #818cf8;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  user-select: none;
}

.mock-alarm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
}

.mock-atime { font-size: 24px; font-weight: 700; line-height: 1.2; }
.mock-alabel { font-size: 13px; color: #94a3b8; }

.mock-switch {
  position: relative;
  width: 40px; height: 22px;
  border-radius: 999px;
  background: #475569;
}

.mock-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ffffff;
}

.mock-switch.on { background: #818cf8; }
.mock-switch.on::after { left: 21px; }

.mock-big {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.mock-laps { list-style: none; margin: 4px 0 0; padding: 0; text-align: left; }

.mock-laps li {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 7px 4px;
  font-size: 13px;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  font-variant-numeric: tabular-nums;
  animation: mockIn .25s ease;
}

.mock-laps li span:last-child { color: #f1f5f9; }

.mock-hms { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: #94a3b8; }
.mock-hms i { font-style: normal; margin-right: 6px; }
.mock-hms span {
  min-width: 36px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
}

.mock-bar { height: 4px; border-radius: 999px; background: #1e293b; overflow: hidden; margin: 6px 0; }
.mock-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #818cf8, #38bdf8); }

.mock-hint { position: absolute; bottom: -34px; width: 100%; text-align: center; margin: 0; font-size: 13px; color: var(--muted); }

.mock-city {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
}

.mock-name { font-size: 14px; color: #94a3b8; }
.mock-name b { color: #f1f5f9; }

.mock-time {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.mock-date { font-size: 12px; color: #94a3b8; }

.mock-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 8px 0 10px;
  text-align: center;
  font-size: 16px;
}

.mock-tabs button {
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}

.mock-tabs button:hover { background: #334155; }
.mock-tabs button:focus-visible { outline: 2px solid #818cf8; outline-offset: -2px; }

.mock-tabs i {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

.mock-tabs [aria-selected="true"] i { color: #818cf8; }

/* First-visit tap hint */
.mock-tabs { position: relative; }

.tap-hand {
  position: absolute;
  top: 22px;
  left: 37.5%;
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.5));
  animation: tapTour 4s ease-in-out infinite, handIn .3s ease;
  transition: opacity .3s;
}

.tap-hand.out { opacity: 0; }

@keyframes handIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes tapTour {
  0%, 8%    { left: 37.5%; transform: translateX(-30%) scale(1); }
  14%       { left: 37.5%; transform: translateX(-30%) scale(.82); }
  22%       { left: 37.5%; transform: translateX(-30%) scale(1); }
  36%, 42%  { left: 62.5%; transform: translateX(-30%) scale(1); }
  48%       { left: 62.5%; transform: translateX(-30%) scale(.82); }
  56%       { left: 62.5%; transform: translateX(-30%) scale(1); }
  70%, 76%  { left: 87.5%; transform: translateX(-30%) scale(1); }
  82%       { left: 87.5%; transform: translateX(-30%) scale(.82); }
  90%, 100% { left: 87.5%; transform: translateX(-30%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tap-hand { animation: none; transform: translateX(-30%); }
}

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 40px; }
.section-head .sub { color: var(--muted); margin: 0; font-size: 17px; }

.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Features */
.features { display: grid; gap: 16px; }

@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.f-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.f-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.f-icon svg { width: 22px; height: 22px; }

.modern .tag { margin: 0; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Split panels */
.split { display: grid; gap: 20px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel h2 { font-size: 24px; }
.panel p { color: var(--muted); margin: 0; }

.p-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  font-size: 22px;
  border-radius: 12px;
  background: var(--soft);
}

.text-link { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: none;
}

@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  margin: 0;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.steps .num {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
}

.steps p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color .2s;
}

.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-weight: 650;
  font-size: 16px;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .2s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 18px; }

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(500px 200px at 100% 0%, rgb(255 255 255 / 0.18), transparent 70%),
    linear-gradient(135deg, #4f46e5, #0ea5e9);
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { margin: 0 0 6px; color: #ffffff; }
.cta-band p { margin: 0; opacity: .9; }

.modern .btn.light {
  background: #ffffff;
  color: #4338ca;
  box-shadow: none;
}

.modern .btn.light:hover { background: #eef2ff; }

/* Footer */
.modern footer.site { padding: 28px 0 36px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.modern footer.site a { color: var(--muted); text-decoration: none; }
.modern footer.site a:hover { color: var(--primary); }
.modern footer .brand { color: var(--text); }

/* Small screens */
@media (max-width: 640px) {
  .modern header.site .wrap { gap: 8px; }
  .modern header.site nav a { padding: 6px 8px; font-size: 13px; }
  .modern .actions .btn { flex: 1 1 auto; text-align: center; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 28px; }
  .mock { transform: none; }
}

/* No room for the nav install button; each page has its own one near the top */
@media (max-width: 520px) {
  .modern header.site nav a.nav-cta { display: none; }
}

/* Phones: brand + nav no longer fit on one row */
@media (max-width: 480px) {
  .modern header.site { position: static; }
  .modern header.site .wrap { flex-wrap: wrap; padding: 10px 0 6px; }
  .modern header.site nav { width: 100%; justify-content: space-between; margin: 0 -8px; width: calc(100% + 16px); }
  .modern .actions .btn { flex-basis: 100%; }
  .hero { padding-top: 32px; }
  .eyebrow { font-size: 12px; }
  .panel, .steps li, .feature { padding: 20px; }
  .faq details { padding: 0 16px; }
  .mock-time { font-size: clamp(22px, 8vw, 30px); }
  .mock-big { font-size: clamp(34px, 13vw, 48px); }
}

/* Very narrow (small phones, folded devices) */
@media (max-width: 340px) {
  .modern header.site nav a { padding: 6px 4px; font-size: 12px; }
  .hero-points { gap: 6px 14px; }
  .mock-tabs i { font-size: 10px; }
  .mock-hms span { min-width: 30px; padding: 4px 6px; }
  .cta-band { padding: 22px; }
}

/* Tablets: give the stacked hero breathing room */
@media (min-width: 641px) and (max-width: 899px) {
  .hero-copy { text-align: center; }
  .modern .lead { margin-inline: auto; }
  .modern .actions, .hero-points { justify-content: center; }
}

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

/* ===================== Shared sub-pages ===================== */

.modern header.site nav a[aria-current="page"] { color: var(--primary); background: var(--soft); }

/* Page hero (pricing, privacy) */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 75%);
}

.page-hero .lead { margin: 0 auto; max-width: 40rem; }
.modern .page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.modern .page-hero h1.long { font-size: clamp(28px, 4vw, 42px); max-width: 44rem; margin-inline: auto; }
.page-hero .chip { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

.section.tight { padding-top: 24px; }

/* Install-first note (pricing, shown when not opened from the extension) */
.install-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 16px;
  background: var(--soft);
}
.install-note[hidden] { display: none; }
.install-note > div { flex: 1 1 320px; }
.install-note p { margin: 0; }
.install-note .install-note-title { margin: 0 0 4px; font-weight: 700; }
.install-note .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .install-note { padding: 18px; }
  .install-note .btn { flex-basis: 100%; text-align: center; }
}

/* Pricing plans */
.modern .plans { gap: 20px; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .modern .plans { grid-template-columns: 1fr 1fr; } }

.modern .plan {
  position: relative;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.modern .plan:hover { transform: translateY(-3px); }

.modern .plan-primary {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
  background:
    radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%),
    var(--card);
}

.modern .plan h3 { font-size: 20px; }
.modern .plan-badge { color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.modern .price { font-size: 56px; }
.modern .price-note { color: var(--text); }

.modern .plan-points { list-style: none; padding: 0; margin: 20px 0; color: var(--text); }
.modern .plan-points li { position: relative; padding-left: 28px; margin: 10px 0; }
.modern .plan-points li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  display: grid; place-items: center;
  width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  color: #16a34a;
  background: rgb(22 163 74 / 0.14);
  border-radius: 50%;
}

.modern .plan-cta { width: 100%; padding: 14px 20px; font-size: 16px; }

/* Compare table */
.modern .compare-wrap { max-width: 860px; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); }
.modern .compare thead th { background: var(--alt); border-top: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.modern .compare tbody th { font-weight: 600; }
.modern .compare td:last-child, .modern .compare thead th:last-child { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.modern .compare-key { text-align: center; margin-top: 14px; }
.modern .trust { max-width: 860px; margin: 0 auto; gap: 16px; }
.modern .trust li { border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }

/* Privacy document */
.doc-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 240px 1fr; } }

.toc {
  display: none;
  position: sticky;
  top: 88px;
  font-size: 14px;
}

@media (min-width: 960px) { .toc { display: block; } }

.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--primary); border-left-color: var(--primary); }

.doc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.modern .doc h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 4px; }
.modern .doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc a { overflow-wrap: anywhere; }
.doc code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--alt); border: 1px solid var(--border); color: var(--text); overflow-wrap: anywhere; }
.doc ul { padding-left: 22px; }
.doc li::marker { color: var(--primary); }

/* Payment status pages */
.status-wrap { padding: 72px 0 96px; }

.status-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 48px);
  box-shadow: var(--shadow-lg);
}

.modern .status-card h1 { font-size: clamp(28px, 5vw, 38px); margin: 20px 0 10px; }
.modern .status-card .lead { font-size: 17px; margin: 0 auto 28px; }
.status-card .actions { justify-content: center; }

.modern .success-mark {
  margin: 0 auto;
  width: 76px; height: 76px; line-height: 76px;
  font-size: 36px;
  box-shadow: 0 0 0 10px rgb(22 163 74 / 0.14);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}

.modern .success-mark.is-failed { box-shadow: 0 0 0 10px rgb(220 38 38 / 0.14); }
.modern .success-mark.is-pending { box-shadow: 0 0 0 10px rgb(217 119 6 / 0.14); }

@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 480px) {
  .page-hero { padding: 36px 0 28px; }
  .modern .plan { padding: 22px; }
  .modern .price { font-size: 48px; }
  .modern .compare th, .modern .compare td { padding: 10px 12px; }
  .status-wrap { padding: 40px 0 56px; }
  .status-card .actions .btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modern .success-mark { animation: none; }
}
