/* Tidybite website. Same palette as the extension; no external fonts or scripts. */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #e3e6ea;
  --text: #161b22;
  --muted: #5d6673;
  --subtle: #8a93a0;
  --brand: #1d2a3a;
  --brand-2: #26374b;
  --on-brand: #ffffff;
  --on-brand-muted: rgba(255, 255, 255, 0.72);
  --accent: #e5651a;
  --accent-hover: #cf5810;
  --accent-text: #c25311;
  --accent-soft: #fdf0e7;
  --keep: #1f8a5b;
  --keep-soft: #e7f5ee;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.08), 0 24px 60px rgba(16, 24, 40, 0.18);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1b1e24;
    --surface-2: #20242b;
    --border: #2c3139;
    --text: #e8eaee;
    --muted: #9aa3ae;
    --subtle: #6b7480;
    --brand: #0f1a27;
    --brand-2: #17263a;
    --accent: #f07a30;
    --accent-hover: #f58f4f;
    --accent-text: #f59a5f;
    --accent-soft: rgba(240, 122, 48, 0.14);
    --keep: #34b27a;
    --keep-soft: rgba(52, 178, 122, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 1rem/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px rgba(229, 101, 26, 0.32); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--on-brand); border-color: rgba(255, 255, 255, 0.2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--subtle); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ===== Header ===== */
.nav {
  position: sticky; top: 0; z-index: 10; color: var(--on-brand);
  background: rgba(29, 42, 58, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled { background: rgba(23, 34, 48, 0.86); border-bottom-color: rgba(255, 255, 255, 0.07); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
@media (prefers-color-scheme: dark) { .nav { background: rgba(15, 26, 39, 0.78); } .nav.is-scrolled { background: rgba(12, 20, 30, 0.88); } }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
/* The dark band behind the bar: on the home page the hero slides up under it,
   on the other pages their dark header does. */
.nav { margin-bottom: -68px; }
.hero { padding-top: 140px !important; }
.doc-head { padding-top: 124px !important; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--on-brand); font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; justify-self: start; }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }
.nav-links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.nav-links a { color: var(--on-brand-muted); font-weight: 550; font-size: 0.92rem; padding: 7px 14px; border-radius: 999px; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-links a:hover, .nav-links a.is-current { color: var(--on-brand); background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.nav .btn { justify-self: end; min-height: 40px; padding: 0 16px; font-size: 0.92rem; gap: 8px; }
.nav .btn svg { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .nav .wrap { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-2), transparent 60%), var(--brand); color: var(--on-brand); padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #ffb27d; display: block; text-wrap: balance; }
.hero-lede { margin-top: 20px; font-size: 1.15rem; color: var(--on-brand-muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--on-brand-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: '✓'; color: #5fd39a; margin-right: 6px; font-weight: 700; }
.hero-mark { width: 76px; height: 76px; margin-bottom: 22px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
}

/* The product, shown under a browser toolbar */
.stage { position: relative; align-self: end; display: flex; justify-content: center; }
.browser {
  width: 100%; max-width: 500px; border-radius: 14px 14px 0 0;
  background: #eef0f3; box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.04), var(--shadow-lg);
  padding-bottom: 0; overflow: hidden;
}
@media (prefers-color-scheme: dark) { .browser { background: #2a2e35; } }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d1d5db; display: block; }
.dots i:first-child { background: #f87171; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }
.address { flex: 1; height: 30px; border-radius: 8px; background: #fff; color: #5d6673; font-size: 0.85rem; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
@media (prefers-color-scheme: dark) { .address { background: #1b1e24; color: #9aa3ae; } }
.address svg { width: 12px; height: 12px; }
.ext-btn { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(229, 101, 26, 0.14); position: relative; }
.ext-btn img { width: 20px; height: 20px; }
.popup-wrap { display: flex; justify-content: flex-end; padding: 0 14px; }
.popup-shot { width: 300px; border-radius: 12px 12px 0 0; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); }
@media (max-width: 420px) { .popup-shot { width: 100%; } }

/* ===== Sections ===== */
section { padding: 96px 0; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.section-head { max-width: 40rem; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

.browsers { padding: 28px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.browsers .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; color: var(--muted); font-size: 0.95rem; }
.browsers b { color: var(--text); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.pill-row { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pill { font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.pill.is-delete { background: var(--brand); color: #fff; border-color: transparent; }
.pill.is-restart { background: #fbf2dd; color: #8a5a06; border-color: #f2dfae; }
.pill.is-keep { background: var(--keep); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.is-delete { background: #4a5b70; } .pill.is-restart { background: rgba(224, 163, 58, 0.16); color: #f0c46a; border-color: transparent; } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Spotlights */
.spot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot.is-flipped .spot-media { order: -1; }
.spot h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; }
.spot p.lede { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--keep-soft); }
.checks li::after { content: ''; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--keep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.spot-media { display: flex; justify-content: center; }
.shot { border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.shot-popup { width: 330px; }
.pro-tag { display: inline-block; vertical-align: 6px; margin-left: 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 6px; background: var(--accent); color: #fff; }
@media (max-width: 900px) { .spot .wrap { grid-template-columns: 1fr; gap: 40px; } .spot.is-flipped .spot-media { order: 0; } }

/* Pricing */
.pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { border: 1px solid var(--border); border-radius: 20px; padding: 32px; background: var(--bg); display: flex; flex-direction: column; }
.plan.is-pro { background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan h3 { font-size: 1.25rem; }
.plan .sub { color: var(--muted); margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.price b { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.92rem; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--keep); font-weight: 800; }
.plan li.is-pro::before { color: var(--accent-text); }
.badge { position: absolute; top: -13px; right: 24px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.billing {
  --i: 1; position: relative; align-self: flex-start; display: grid; grid-template-columns: repeat(3, auto);
  padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 18px;
}
.billing-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: var(--brand);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) { .billing-thumb { background: #4a5b70; } }
.billing button {
  position: relative; z-index: 1; border: 0; background: none; padding: 8px 14px; border-radius: 9px;
  font: 600 0.88rem/1 var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 0.25s ease;
}
.billing button[aria-pressed='true'] { color: #fff; }
/* Without JavaScript there's no thumb, so the chosen button gets the fill. */
html:not(.js) .billing button[aria-pressed='true'] { background: var(--brand); }
.billing .save { font-size: 0.72rem; margin-left: 4px; color: inherit; opacity: 0.85; }
.price b, .price span, .price-note { display: inline-block; }
.is-swapping .price b, .is-swapping .price span, .is-swapping .price-note { animation: tb-swap 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes tb-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fine { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 28px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--subtle); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Final call to action */
.final { text-align: center; background: var(--brand); color: var(--on-brand); }
.final h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.final p { margin: 16px auto 32px; color: var(--on-brand-muted); max-width: 32rem; font-size: 1.1rem; }
.final img { width: 64px; height: 64px; margin: 0 auto 20px; }

/* Footer */
footer { padding: 48px 0; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--muted); }
footer .tracker-free { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--subtle); }

/* Legal pages */
.doc-head { background: radial-gradient(900px 380px at 80% -20%, var(--brand-2), transparent 60%), var(--brand); color: var(--on-brand); padding: 64px 0 0; text-align: center; }
.doc-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb27d; margin-bottom: 12px; }
.doc-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; }
.doc-lede { margin: 14px auto 0; max-width: 38rem; color: var(--on-brand-muted); font-size: 1.08rem; }
.doc-meta { margin-top: 18px; }
.doc-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--on-brand); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.doc-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 34px auto 0; padding: 0 8px; }
.doc-tabs a { padding: 12px 18px; color: var(--on-brand-muted); font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid transparent; }
.doc-tabs a:hover { color: var(--on-brand); text-decoration: none; }
.doc-tabs a[aria-current='page'] { color: var(--on-brand); border-bottom-color: var(--accent); }
.doc-layout { max-width: 1080px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc-layout.is-single { grid-template-columns: 1fr; max-width: 860px; }
.doc-toc { position: sticky; top: 96px; font-size: 0.9rem; }
.doc-toc p { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.doc-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); }
.doc-toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--subtle); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 44px 48px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.doc h2 { font-size: 1.3rem; margin: 40px 0 12px; scroll-margin-top: 96px; }
.doc h2:first-child, .glance + h2 { margin-top: 0; }
.doc p, .doc li { color: var(--muted); line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.doc strong { color: var(--text); }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.glance div { padding: 18px; border-radius: 14px; background: var(--keep-soft); }
.glance b { display: block; color: var(--text); margin-bottom: 4px; }
.glance span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc th { width: 32%; color: var(--text); font-weight: 600; background: var(--surface-2); }
.doc td { color: var(--muted); line-height: 1.7; }
.doc tr:first-child th { border-top-left-radius: 10px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .doc-toc { display: none; }
  .doc { padding: 28px 22px; border-radius: 16px; }
  .glance { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .doc th, .doc td { display: block; width: 100%; }
  .doc th { padding: 14px 14px 4px; border-bottom: 0; background: none; }
  .doc td { padding: 0 14px 14px; }
}

/* ===== The cookie takes a bite (home page) ===== */
.cookie-anim { overflow: visible; }
.cookie-anim .bite-c { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: tb-chomp 0.42s cubic-bezier(0.3, 1.4, 0.5, 1) forwards; }
.cookie-anim .bite-c.c1 { animation-delay: 0.55s; }
.cookie-anim .bite-c.c2 { animation-delay: 0.75s; }
.cookie-anim .crumb { opacity: 0; transform-box: fill-box; transform-origin: center; animation: tb-crumb 0.7s cubic-bezier(0.25, 0.7, 0.35, 1) forwards; }
.cookie-anim .crumb:nth-of-type(1) { animation-delay: 0.85s; }
.cookie-anim .crumb:nth-of-type(2) { animation-delay: 0.95s; }
.cookie-anim .crumb:nth-of-type(3) { animation-delay: 1.05s; }
.cookie-anim .body { transform-box: fill-box; transform-origin: 50% 60%; animation: tb-nudge 0.5s ease-out 0.55s, tb-float 6s ease-in-out 1.8s infinite; }
@keyframes tb-chomp { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tb-crumb { from { opacity: 0; transform: translate(-6px, -14px) rotate(-30deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes tb-nudge { 0% { transform: rotate(0); } 35% { transform: rotate(-5deg) scale(0.97); } 100% { transform: rotate(0); } }
@keyframes tb-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  .cookie-anim .bite-c, .cookie-anim .crumb, .cookie-anim .body { animation: none; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* (inline styles are blocked by the site's CSP) */
.spot.is-tight { padding-top: 0; }
.final p a { color: #ffb27d; }
.logo.is-foot { color: inherit; }

/* ===== Motion ===== */
/* Sections fade up as they scroll into view (only once JavaScript is running). */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].d1 { transition-delay: 0.08s; }
.js [data-reveal].d2 { transition-delay: 0.16s; }
.js [data-reveal].d3 { transition-delay: 0.24s; }
.js [data-reveal].d4 { transition-delay: 0.32s; }
.js [data-reveal].d5 { transition-delay: 0.4s; }

/* Hero: copy and browser glide in on load; the extension button pulses once. */
.hero-copy > * { animation: tb-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy > h1 { animation-delay: 0.08s; }
.hero-copy > .hero-lede { animation-delay: 0.16s; }
.hero-copy > .hero-cta { animation-delay: 0.24s; }
.hero-copy > .hero-note { animation-delay: 0.32s; }
.stage .browser { animation: tb-rise-far 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.ext-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 11px; border: 2px solid rgba(229, 101, 26, 0.7); opacity: 0; animation: tb-ping 1.4s ease-out 1.3s 2; }
@keyframes tb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tb-rise-far { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes tb-ping { 0% { opacity: 0.9; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* Hover: cards lift a little. */
.step, .plan, .shot { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.step:hover, .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), background-color 0.3s ease; }
.feature:hover .ico { transform: translateY(-3px) rotate(-6deg); }
.shot:hover { transform: translateY(-4px); }
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .stage .browser, .ext-btn::after { animation: none; }
  .is-swapping .price b, .is-swapping .price span, .is-swapping .price-note { animation: none; }
  .billing-thumb { transition: none; }
  .step:hover, .plan:hover, .shot:hover, .feature:hover .ico { transform: none; }
}

/* Languages */
.langs { padding-top: 0; }
.lang-list { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lang-list li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.2s ease; }
.lang-list li:hover { transform: translateY(-3px); border-color: var(--accent); }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final p.final-q { margin: 28px auto 0; font-size: 1rem; }

.doc-head .wrap > p:not(.doc-lede) { margin-top: 12px; color: var(--on-brand-muted); }
main > .doc { max-width: 760px; margin: 48px auto; }
