/* sheets.dropscribe.app
   Same look as dropscribe.app: dark slate, violet, Outfit. Product pictures are drawn in the
   add-on's own light style, so they read as screenshots against the dark page. */

:root {
  --bg: #0B1120;
  --ink: #FFFFFF;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --card: rgba(255, 255, 255, .035);
  --brand: #7C3AED;
  --brand-strong: #6D28D9;
  --violet-300: #C4B5FD;
  --violet-400: #A78BFA;

  /* The add-on's light palette, used inside product pictures. */
  --ui-ink: #0F172A;
  --ui-text: #1E293B;
  --ui-muted: #475569;
  --ui-line: #E2E8F0;
  --ui-line-strong: #CBD5E1;
  --ui-surface: #F8FAFC;
  --ui-surface-2: #F1F5F9;
  --ui-brand-soft: #F5F3FF;
  --ui-brand-tint: #EDE9FE;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(60% 50% at 100% 0, rgba(99, 102, 241, .08), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 3px; border-radius: 6px; }

svg.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ui-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- navigation ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav-in {
  pointer-events: auto; display: flex; align-items: center; gap: 28px;
  width: 100%; max-width: calc(var(--wrap) + 32px); height: 64px; padding: 0 12px 0 20px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
  background: linear-gradient(rgba(20, 28, 46, .92), rgba(11, 17, 32, .92));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 8px 40px -8px rgba(0, 0, 0, .7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 1px 2px rgba(109, 40, 217, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.wordmark b { font-weight: inherit; color: var(--violet-400); }
.product { padding-left: 10px; border-left: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: #CBD5E1; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 16px; font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s, color .15s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)) var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 18px -4px rgba(124, 58, 237, .5), 0 2px 6px -2px rgba(0, 0, 0, .4);
}
.btn-primary:hover { background-color: var(--brand-strong); transform: translateY(-1px); }
.btn-secondary { color: #CBD5E1; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.btn-secondary:hover { color: #fff; background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); }
.btn-light { color: var(--brand-strong); background: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.btn-light:hover { background: var(--ui-brand-soft); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; }
.btn-block { width: 100%; }
/* Before the Marketplace listing exists, install buttons are a calm label, not a dead link. */
.btn.is-soon, .btn.is-soon:hover {
  color: var(--violet-300); background: rgba(124, 58, 237, .14); border: 1px dashed rgba(167, 139, 250, .5);
  box-shadow: none; transform: none; cursor: default;
}
.btn-light.is-soon, .btn-light.is-soon:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); }

/* ---------- hero ---------- */
/* The soft glows behind pictures reach past the page edge; clip them so the page never scrolls sideways. */
.hero, .section { overflow-x: clip; }
.hero { padding-top: 148px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, .35); background: rgba(76, 29, 149, .25);
  color: var(--violet-300); font-size: 14px; font-weight: 500;
}
h1 {
  max-width: 880px; margin: 24px auto 0; color: #fff;
  font-size: clamp(38px, 6.2vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance;
}
h1 em { display: block; font-style: normal; color: var(--violet-400); }
.lead { max-width: 640px; margin: 24px auto 0; color: var(--muted); font-size: clamp(17px, 1.9vw, 19px); line-height: 1.6; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.hero-shot { position: relative; max-width: 1100px; margin: 64px auto 0; container-type: inline-size; }
.hero-shot::before {
  content: ''; position: absolute; inset: -8% -6% 10%; z-index: -1; filter: blur(60px);
  background: radial-gradient(50% 60% at 50% 40%, rgba(124, 58, 237, .45), transparent 70%);
}

.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; text-align: left; }
.assure li { display: flex; gap: 14px; }
.assure-title { color: #fff; font-weight: 600; }
.assure-text { color: var(--muted); font-size: 15px; line-height: 1.5; }

.tile {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: var(--violet-400);
  border: 1px solid rgba(139, 92, 246, .3);
  background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(139, 92, 246, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 18px -6px rgba(139, 92, 246, .45);
}

/* ---------- product picture: sheet + side panel ----------
   Drawn at 1100 design pixels wide. --u is one design pixel, so the picture scales with its
   container like an image. Below 0.8 it stops shrinking and crops to the panel instead. */
.shot {
  position: relative; display: flex; justify-content: flex-end; overflow: hidden;
  border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 120px -40px rgba(124, 58, 237, .7);
}
/* Once the picture is cropped, the sheet fades out at the left instead of being cut mid-word. */
.shot::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: 1; display: none; width: 64px; background: linear-gradient(90deg, #fff 10%, rgba(255, 255, 255, 0)); }
@container (max-width: 879px) { .shot::before { display: block; } }
.shot-scale {
  --u: clamp(.8px, calc(100cqw / 1100), 1px);
  --f11: calc(11 * var(--u)); --f12: calc(12 * var(--u)); --f13: calc(13 * var(--u)); --f14: calc(14 * var(--u));
  flex: none; width: calc(1100 * var(--u));
}
.win { display: flex; height: calc(560 * var(--u)); color: var(--ui-text); text-align: left; line-height: 1.5; }

.sheet { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.sheet-top { display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(52 * var(--u)); padding: 0 calc(16 * var(--u)); border-bottom: 1px solid var(--ui-line); }
.sheet-icon { display: grid; place-items: center; flex: none; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(6 * var(--u)); background: #059669; color: #fff; }
.sheet-icon svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.sheet-name { font-size: var(--f14); font-weight: 500; line-height: 1.2; color: var(--ui-ink); }
.sheet-menu { display: flex; gap: calc(12 * var(--u)); font-size: var(--f12); line-height: 1.3; color: var(--ui-muted); }
.sheet-menu b { font-weight: 500; color: var(--brand-strong); }

.cells { flex: 1; overflow: hidden; font-size: var(--f12); font-variant-numeric: tabular-nums; }
.r {
  display: grid; height: calc(31 * var(--u)); border-bottom: 1px solid var(--ui-line);
  grid-template-columns: calc(40 * var(--u)) calc(150 * var(--u)) calc(240 * var(--u)) calc(150 * var(--u)) calc(150 * var(--u)) calc(70 * var(--u));
}
.r > * { display: flex; align-items: center; gap: calc(7 * var(--u)); min-width: 0; padding: 0 calc(10 * var(--u)); border-right: 1px solid var(--ui-line); white-space: nowrap; overflow: hidden; }
.r > :first-child { justify-content: center; padding: 0; background: var(--ui-surface); color: var(--ui-muted); font-size: var(--f11); }
.r.letters { height: calc(24 * var(--u)); background: var(--ui-surface); color: var(--ui-muted); font-size: var(--f11); }
.r.letters > * { justify-content: center; }
.r.head { font-weight: 600; color: var(--ui-ink); }
.r .num { justify-content: flex-end; }
.r.total { font-weight: 600; color: var(--ui-ink); }
.r.total .num { background: var(--ui-brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand); }
.cdot { flex: none; width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; }
/* Google Calendar's own colours. Classes, not style attributes, so the page needs no inline styles. */
.cal-work { background: #7986CB; }
.cal-client { background: #33B679; }
.cal-team { background: #F4511E; }
.cal-holiday { background: #0B8043; }

.sheet-tabs { display: flex; align-items: stretch; gap: calc(2 * var(--u)); height: calc(36 * var(--u)); padding: 0 calc(12 * var(--u)); border-top: 1px solid var(--ui-line); background: var(--ui-surface); font-size: var(--f12); color: var(--ui-muted); }
.sheet-tabs span { display: flex; align-items: center; padding: 0 calc(14 * var(--u)); }
.sheet-tabs .on { background: #fff; color: var(--brand-strong); font-weight: 500; box-shadow: inset 0 -2px 0 var(--brand); }

.panel { flex: none; width: calc(300 * var(--u)); display: flex; flex-direction: column; border-left: 1px solid var(--ui-line-strong); background: #fff; font-size: var(--f13); }
.p-chrome { display: flex; align-items: center; justify-content: space-between; flex: none; height: calc(40 * var(--u)); padding: 0 calc(14 * var(--u)); border-bottom: 1px solid var(--ui-line); font-weight: 500; color: var(--ui-ink); }
.p-chrome svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--ui-muted); }
.p-top { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); }
.p-mark { display: grid; place-items: center; flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(9 * var(--u)); color: #fff; background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.p-mark svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.p-title { font-size: var(--f14); font-weight: 600; line-height: 1.25; color: var(--ui-ink); }
.p-sub { font-size: var(--f12); line-height: 1.3; color: var(--ui-muted); }
.p-btn { display: flex; align-items: center; height: calc(28 * var(--u)); margin-left: auto; padding: 0 calc(10 * var(--u)); border: 1px solid var(--ui-line-strong); border-radius: calc(7 * var(--u)); font-size: var(--f12); font-weight: 500; color: var(--ui-ink); }
.p-seg { display: grid; grid-template-columns: 1fr 1fr; gap: calc(2 * var(--u)); margin: 0 calc(16 * var(--u)); padding: calc(3 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--ui-surface-2); }
.p-seg span { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(8 * var(--u)); font-weight: 500; color: var(--ui-muted); }
.p-seg svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.p-seg .on { background: #fff; color: var(--ui-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .14), 0 0 0 1px rgba(15, 23, 42, .04); }
.p-body { flex: 1; min-height: 0; padding: calc(4 * var(--u)) calc(16 * var(--u)) 0; overflow: hidden; }
.p-label { display: flex; align-items: center; justify-content: space-between; margin: calc(14 * var(--u)) 0 calc(6 * var(--u)); font-size: var(--f11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-muted); }
.p-label small { font-size: var(--f12); font-weight: 400; letter-spacing: 0; text-transform: none; }
.p-cals { padding: calc(4 * var(--u)); border: 1px solid var(--ui-line); border-radius: calc(10 * var(--u)); }
.p-cal { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(6 * var(--u)) calc(8 * var(--u)); border-radius: calc(7 * var(--u)); }
.p-cal.on { background: var(--ui-brand-soft); }
.p-check { display: grid; place-items: center; flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border: 1.5px solid #94A3B8; border-radius: calc(4 * var(--u)); color: #fff; }
.p-check svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); stroke-width: 3; }
.p-cal.on .p-check { border-color: var(--brand); background: var(--brand); }
.p-dot { flex: none; width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; }
.p-chips { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6 * var(--u)); }
.p-chip { display: flex; align-items: center; justify-content: center; height: calc(32 * var(--u)); border: 1px solid var(--ui-line-strong); border-radius: calc(8 * var(--u)); font-weight: 500; }
.p-chip.on { border-color: var(--brand); background: var(--ui-brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand); }
.p-readout { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); padding: calc(7 * var(--u)) calc(10 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--ui-surface); font-weight: 500; color: var(--ui-ink); }
.p-readout svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--ui-muted); }
.p-readout u { margin-left: auto; font-size: var(--f12); color: var(--brand-strong); text-underline-offset: 2px; }
.p-bar { flex: none; padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); border-top: 1px solid var(--ui-line); box-shadow: 0 -8px 16px -14px rgba(15, 23, 42, .35); }
.p-summary { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-bottom: calc(8 * var(--u)); font-size: var(--f12); color: var(--ui-muted); }
.p-summary svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.p-go {
  display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(10 * var(--u));
  color: #fff; font-weight: 600;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)) var(--brand);
  box-shadow: 0 1px 2px rgba(109, 40, 217, .4), 0 6px 14px -6px rgba(124, 58, 237, .6);
}
.p-go svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.ruled { border-top: 1px solid rgba(255, 255, 255, .05); }
.head { max-width: 720px; }
.head.center { margin-inline: auto; text-align: center; }
.eyebrow { color: var(--violet-400); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin-top: 12px; color: #fff; font-size: clamp(30px, 4.2vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.sub { margin-top: 16px; color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 72px; margin-top: 88px; }
.feature.flip .feature-text { order: 2; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--text); font-size: 13px; font-weight: 500;
}
.tag svg { color: var(--violet-400); }
.pro { padding: 2px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h3 { color: #fff; font-size: 20px; font-weight: 600; line-height: 1.3; }
.feature h3 { margin-top: 18px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
.feature-text > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: flex; gap: 12px; color: var(--text); }
.ticks svg { margin-top: 4px; color: var(--violet-400); }
.good-for { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.good-for dt { margin-right: 4px; color: var(--muted); font-size: 14px; }
.good-for dd { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(139, 92, 246, .12); color: var(--violet-300); font-size: 14px; font-weight: 500; }

/* A container, so each picture drops columns by its own width, not the window's. */
.figure { position: relative; container-type: inline-size; }
.figure::before {
  content: ''; position: absolute; inset: 6% -4%; z-index: -1; filter: blur(50px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 58, 237, .32), transparent 70%);
}
.ui {
  overflow: hidden; border-radius: 16px; background: #fff; color: var(--ui-text); font-size: 13px; line-height: 1.5; text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .85);
}
.ui-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--ui-line); background: var(--ui-surface); color: var(--ui-ink); font-weight: 500; }
.ui-bar svg { color: var(--ui-muted); }
.ui-bar small { margin-left: auto; color: var(--ui-muted); font-size: 12px; font-weight: 400; }
.ui table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui th, .ui td { height: 36px; padding: 0 12px; border-bottom: 1px solid var(--ui-line); border-right: 1px solid var(--ui-line); text-align: left; white-space: nowrap; }
.ui th:last-child, .ui td:last-child { border-right: 0; }
.ui th { color: var(--ui-ink); font-weight: 600; }
.ui .num { text-align: right; }
/* The title column takes whatever width is left and shortens with "…" rather than push the table wider. */
.ui .title { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ui tr.dim td { background: var(--ui-surface); }
.ui tr.total td { color: var(--ui-ink); font-weight: 600; }
.ui tr.total .num { background: var(--ui-brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #F0FDF4; color: #166534; font-size: 12px; font-weight: 500; box-shadow: inset 0 0 0 1px #BBF7D0; }
.ui-foot { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; background: var(--ui-surface); color: var(--ui-muted); }
.ui-foot svg { margin-top: 2px; }
.ui-foot.ok { background: #F0FDF4; color: #166534; font-weight: 500; }
.only-sm { display: none; }
@container (max-width: 600px) { .hide-md { display: none; } }
@container (max-width: 450px) {
  .hide-sm { display: none; }
  .only-sm { display: inline; }
  .ui { font-size: 12px; }
  .ui th, .ui td { padding: 0 9px; }
}

.refresh { padding: 18px; }
.refresh-row { display: flex; align-items: center; gap: 12px; }
.refresh-title { display: flex; align-items: center; gap: 8px; color: var(--ui-ink); font-size: 15px; font-weight: 600; }
.refresh-title .pro { background: var(--ui-brand-tint); color: var(--brand-strong); }
.refresh-desc { color: var(--ui-muted); }
.switch { position: relative; flex: none; width: 40px; height: 22px; margin-left: auto; border-radius: 999px; background: var(--brand); }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .3); }
.refresh-when { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ui-line); }
.select { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--ui-line-strong); border-radius: 8px; color: var(--ui-ink); font-weight: 500; }
.select svg { color: var(--ui-muted); }
.refresh-last { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: #F0FDF4; color: #166534; box-shadow: inset 0 0 0 1px #BBF7D0; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, .5); background: rgba(124, 58, 237, .16); color: var(--violet-300); font-weight: 600;
}
.card p { margin-top: 8px; color: var(--muted); }
.card .path { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.5; }
.path span[aria-hidden] { margin: 0 3px; color: var(--violet-400); }

.help { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; margin-top: 24px; }
.ref { padding: 0; overflow: hidden; }
.ref-head { padding: 24px 28px 18px; }
.ref table { width: 100%; border-collapse: collapse; }
.ref th, .ref td { padding: 12px 28px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ref th { width: 34%; color: #fff; font-weight: 500; white-space: nowrap; }
.ref td { color: var(--muted); }
.ref th small { display: block; color: var(--violet-400); font-size: 12px; font-weight: 500; }
.ref-note { padding: 16px 28px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.ref-note b { color: var(--text); font-weight: 500; }
.asides { display: grid; gap: 24px; }
.aside { display: flex; flex-direction: column; align-items: flex-start; }
.aside .tile { margin-bottom: 20px; }
.aside .btn { margin-top: auto; }
.aside p:has(+ .btn) { margin-bottom: 24px; }

/* ---------- privacy ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { padding: 24px; }
.fact .tile { margin-bottom: 16px; }
.fact h3 { font-size: 17px; }
.fact p { font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--violet-300); font-weight: 500; text-decoration: none; }
.link:hover { color: #fff; }
.link svg { transition: transform .15s; }
.link:hover svg { transform: translateX(3px); }
.head .link { margin-top: 24px; }

.perms { margin-top: 24px; padding: 0; overflow: hidden; }
.perms h3 { padding: 24px 28px 18px; }
.perms table { width: 100%; border-collapse: collapse; }
.perms th, .perms td { padding: 14px 28px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.perms thead th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.perms tbody th { width: 38%; color: #fff; font-weight: 500; }
.perms td { color: var(--muted); }

/* ---------- pricing ---------- */
.billing { display: flex; justify-content: center; margin-top: 32px; }
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05); }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.toggle button:hover { color: #fff; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ui-ink); }
.toggle small { padding: 1px 7px; border-radius: 999px; background: rgba(124, 58, 237, .2); color: var(--violet-300); font-size: 11px; font-weight: 600; }
.toggle button[aria-pressed="true"] small { background: var(--ui-brand-tint); color: var(--brand-strong); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 32px auto 0; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.plan.is-pro { border-color: rgba(139, 92, 246, .55); background: linear-gradient(180deg, rgba(124, 58, 237, .2), rgba(124, 58, 237, .04)); box-shadow: 0 30px 70px -40px rgba(124, 58, 237, .9); }
.plan-name { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 600; }
.plan-name span { padding: 3px 10px; border-radius: 999px; background: rgba(124, 58, 237, .3); color: var(--violet-300); font-size: 12px; font-weight: 600; }
.plan-for { margin-top: 4px; color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; color: #fff; font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.price-note { min-height: 44px; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan .ticks { margin: 20px 0 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.plan .ticks b { color: #fff; font-weight: 600; }
.plan-cta { margin-top: auto; }
.plan-alt { min-height: 24px; margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.plan-alt a { color: var(--violet-300); font-weight: 500; }
.plan-alt a:hover { color: #fff; }
.fine { max-width: 680px; margin: 28px auto 0; color: var(--muted); font-size: 14px; text-align: center; text-wrap: pretty; }
.fine a { color: var(--violet-300); }

/* ---------- questions ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .15s, background .15s; }
.faq details[open] { border-color: rgba(139, 92, 246, .4); background: rgba(124, 58, 237, .07); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: #fff; font-size: 17px; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--violet-400); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--violet-300); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.head .contact { margin-top: 28px; }

/* ---------- closing ---------- */
.cta {
  padding: 72px 32px; border-radius: 28px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #8B5CF6 0%, #6D28D9 48%, #4C1D95 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 40px 80px -40px rgba(124, 58, 237, .9);
}
.cta h2 { margin-top: 0; }
.cta p { margin: 14px 0 30px; color: rgba(255, 255, 255, .88); font-size: 18px; }

.foot { padding: 56px 0 40px; border-top: 1px solid rgba(255, 255, 255, .05); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 40px; }
.foot-about { max-width: 340px; margin-top: 16px; }
.foot h2 { margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.foot li + li { margin-top: 10px; }
.foot a { text-decoration: none; transition: color .15s; }
.foot a:hover { color: #fff; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13px; line-height: 1.7; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- privacy and terms pages ---------- */
.doc { max-width: 760px; margin-inline: auto; padding: 152px 0 96px; }
.doc h1 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 46px); text-align: left; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc .summary { margin-top: 32px; padding: 24px 28px; border: 1px solid rgba(139, 92, 246, .4); border-radius: 20px; background: rgba(124, 58, 237, .08); }
.doc .summary h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; }
.doc h2 { margin-top: 48px; font-size: 24px; letter-spacing: -.01em; }
.doc h3 { margin-top: 28px; font-size: 17px; }
.doc p, .doc ul { margin-top: 14px; color: #CBD5E1; }
.doc ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.doc li::marker { color: var(--violet-400); }
.doc a { color: var(--violet-300); text-underline-offset: 2px; }
.doc a:hover { color: #fff; }
.doc b { color: #fff; font-weight: 600; }
.doc-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table th { color: #fff; font-weight: 500; background: var(--card); }
.doc-table td { color: #CBD5E1; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  :root { --section: 80px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .feature, .split, .help { grid-template-columns: minmax(0, 1fr); }
  .feature { gap: 40px; margin-top: 72px; }
  .feature.flip .feature-text { order: 0; }
  .split { gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .assure { grid-template-columns: 1fr; gap: 20px; max-width: 460px; margin-inline: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .perms thead { display: none; }
  .perms th, .perms td, .ref th, .ref td { display: block; padding-inline: 20px; }
  .perms tbody th, .ref th { width: auto; padding-bottom: 2px; white-space: normal; }
  .perms td, .ref td { padding-top: 0; border-top: 0; }
  .perms h3, .ref-head, .ref-note { padding-inline: 20px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 64px; }
  html { scroll-padding-top: 88px; }
  .nav { top: 10px; padding: 0 10px; }
  .nav-in { height: 56px; padding: 0 8px 0 14px; }
  .product { display: none; }
  .hero { padding-top: 116px; }
  .hero-cta .btn { width: 100%; }
  .hero-shot { margin-top: 48px; }
  .facts { grid-template-columns: 1fr; }
  .card, .plan { padding: 24px; }
  .ref, .perms { padding: 0; }
  .faq summary { padding: 16px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; }
  .cta { padding: 48px 20px; border-radius: 22px; }
  .cta .btn { width: 100%; white-space: normal; height: auto; min-height: 52px; padding-block: 12px; line-height: 1.3; }
  .doc { padding: 116px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
