/* Landing, privacy and terms: Apple product-page restraint. The extension's tokens (src/options/theme.css):
   system font, one tint, grouped background with white cards, light and dark.
   Contrast on --card / --bg: label 16.83/15.08 (dark 12.80/15.63), secondary 5.99/5.37 (dark 6.30/7.69),
   tint 5.57/4.99 (dark 4.92/6.01), white on the tint button 5.57 (dark fill 5.04). */
:root {
  color-scheme: light dark;
  --bg: #f2f2f7; --card: #ffffff; --fg: #1d1d1f; --muted: #636366; --line: #d1d1d6;
  --accent: #0066cc; --accent-fill: #0066cc; --accent-hover: #0058b0; --accent-fg: #ffffff; --accent-soft: #e8f1fb;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1c1e; --card: #2c2c2e; --fg: #f5f5f7; --muted: #aeaeb2; --line: #3d3d41; --accent: #409cff; --accent-fill: #0a6ed1; --accent-hover: #0a63bc; --accent-soft: #17304d; --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06); }
}
@media (prefers-contrast: more) { :root { --muted: #3a3a3c; --line: #8e8e93; } }
@media (prefers-contrast: more) and (prefers-color-scheme: dark) { :root { --muted: #d1d1d6; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 88px; }
header { display: flex; align-items: center; gap: 10px; margin-bottom: 64px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-fill); display: grid; place-items: center; color: #fff; }
.logo svg { width: 17px; height: 17px; }
header a { color: inherit; text-decoration: none; font-weight: 600; font-size: 17px; }

h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; text-wrap: balance; }
h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 72px 0 12px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
p, li { color: var(--fg); }
.muted { color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; text-underline-offset: 3px; } }
ul { padding-left: 22px; }
li + li { margin-top: 4px; }
.card { background: var(--card); border-radius: 18px; padding: 20px 22px; margin: 24px 0; box-shadow: var(--shadow); }

.lead { font-size: 21px; line-height: 1.45; color: var(--muted); margin: 0 0 16px; max-width: 34em; }
.note { font-size: 15px; color: var(--muted); margin: 0 0 28px; max-width: 40em; }

/* features: one inset grouped list */
.features { list-style: none; padding: 0; margin: 20px 0; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.features li { position: relative; margin: 0; padding: 16px 22px; }
.features li + li::before { content: ""; position: absolute; top: 0; left: 22px; right: 0; height: 1px; background: var(--line); }
.features strong { display: block; font-weight: 600; margin-bottom: 2px; }

.placeholder { border-radius: 18px; padding: 32px 20px; text-align: center; color: var(--muted); background: var(--card); box-shadow: var(--shadow); }
.video-slot { aspect-ratio: 16 / 9; display: grid; place-items: center; }

/* plans: grouped cards */
.plans { display: grid; gap: 16px; margin: 24px 0; }
.plan { display: flex; flex-direction: column; align-items: flex-start; background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.plan h3 { margin: 0; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 6px 0 2px; line-height: 1.15; }
.price small { font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan p { margin: 4px 0 18px; color: var(--muted); font-size: 15px; }
.plan .btn { margin-top: auto; }

/* Apple product-page buttons: filled capsule, and a tinted capsule for the secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-fg); font-weight: 500; font-size: 17px; line-height: 24px; text-decoration: none; transition: background-color 120ms ease; }
@media (hover: hover) { .btn:hover { background: var(--accent-hover); text-decoration: none; } .btn.secondary:hover { background: var(--accent-soft); color: var(--accent); filter: brightness(0.96); } }
.btn:active { filter: brightness(0.92); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

footer { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (hover: hover) { footer a:hover { color: var(--fg); } }

@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { header { margin-bottom: 40px; } h2 { margin-top: 56px; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
