/* Seamtype site mockups: one set of pages, several visual directions.
   The direction is html[data-theme]: "clarity" (the app's own look),
   "night" (dark hero, product), and three close to the app itself:
   "office" (the app's chrome and canvas), "fluent" (Windows 11), "graphite"
   (a dark title bar over white). */

:root {
  --accent: #0f6cbd;
  --accent-2: #3a93e0;
  --accent-ink: #ffffff;
  --accent-soft: #ebf3fc;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --text: #1b1b1f;
  --muted: #5b6270;
  --line: #e2e6ee;
  --ok: #107c41;
  --bad: #c42b1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
  --head-weight: 700;
  --head-spacing: -0.02em;
  --wrap: 1160px;
  --hero-bg: var(--bg);
  --hero-text: var(--text);
  --hero-muted: var(--muted);
}

html[data-theme="night"] {
  --accent: #2f8cf0;
  --accent-2: #7cc0ff;
  --accent-soft: #e6f1fd;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --text: #0e1525;
  --muted: #56607a;
  --line: #e1e6f0;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --head-weight: 800;
  --head-spacing: -0.03em;
  --hero-bg: radial-gradient(1200px 600px at 70% -10%, #1f5fae 0%, rgba(31, 95, 174, 0) 60%), radial-gradient(900px 500px at 0% 0%, #123a70 0%, rgba(18, 58, 112, 0) 55%), #0a1324;
  --hero-text: #f3f7ff;
  --hero-muted: #a9b8d3;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
html[data-theme="night"] .hero .eyebrow { color: var(--accent-2); }

/* --- buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.hero .btn.ghost { color: var(--hero-text); }
html[data-theme="night"] .hero .btn.ghost { border-color: rgba(255,255,255,.25); }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* --- header -------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
html[data-theme="night"] .top.on-hero { background: rgba(10, 19, 36, .72); border-bottom-color: rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px/1 var(--font-head); letter-spacing: -0.01em; text-decoration: none !important; }
.logo img { width: 30px; height: 30px; }
html[data-theme="night"] .top.on-hero .logo, html[data-theme="night"] .top.on-hero .nav a { color: #e9f0ff; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav a { white-space: nowrap; }
@media (max-width: 1140px) { .top .actions .lang, .top .actions .btn.ghost { display: none; } }
.nav a.on { color: var(--accent); }
.top .actions { display: flex; align-items: center; gap: 12px; }
.lang { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: var(--radius-sm); padding: 7px 10px; font: 14px var(--font); }
html[data-theme="night"] .top.on-hero .lang { color: #e9f0ff; border-color: rgba(255,255,255,.2); }
html[data-theme="night"] .top.on-hero .btn.ghost { color: #e9f0ff; border-color: rgba(255,255,255,.25); }
.menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.menu svg { width: 24px; height: 24px; fill: currentColor; }

/* --- hero ---------------------------------------------------------------- */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 72px 0 80px; overflow: hidden; }
.hero .lead { font-size: 19px; color: var(--hero-muted); max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--hero-muted); padding: 0; margin: 0; list-style: none; }
.hero .facts li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
html[data-theme="night"] .hero .facts li::before { color: #6fd39a; }
html[data-theme="night"] .hero { text-align: center; }
html[data-theme="night"] .hero-grid { grid-template-columns: 1fr; gap: 44px; }
html[data-theme="night"] .hero .lead { margin-left: auto; margin-right: auto; }
html[data-theme="night"] .hero .cta, html[data-theme="night"] .hero .facts { justify-content: center; }
html[data-theme="night"] .hero .demo { max-width: 880px; margin: 0 auto; width: 100%; }
html[data-theme="night"] h1 em { font-style: normal; background: linear-gradient(90deg, #7cc0ff, #c8e3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 em { font-style: normal; color: var(--accent); }

/* --- the before/after demo ---------------------------------------------- */
.demo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; color: var(--text); text-align: left; }
html[data-theme="night"] .demo { border-color: rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(124,192,255,.15); }
.demo .bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 4px 10px; }
.demo .bar b { color: var(--text); font-weight: 600; }
.demo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ba { position: relative; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { width: 100%; height: auto; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .seam { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 0; border-left: 2px dashed var(--accent); }
.ba .grip { position: absolute; top: 50%; left: var(--split, 50%); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; }
.ba .grip svg { width: 20px; height: 20px; fill: #fff; }
.ba .tag { position: absolute; top: 10px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.ba .tag.b { left: 10px; background: rgba(36,36,36,.75); color: #fff; }
.ba .tag.a { right: 10px; background: var(--accent); color: #fff; }
.demo .caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 10px 4px 0; }
.demo .caption .ok { color: var(--ok); font-weight: 600; }

/* --- upload card (tool pages) -------------------------------------------- */
.drop { border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: var(--surface); padding: 38px 24px; text-align: center; color: var(--text); }
html[data-theme="night"] .drop { background: rgba(255,255,255,.04); border-color: rgba(124,192,255,.45); color: var(--hero-text); }
.drop .icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.drop .icon svg { width: 26px; height: 26px; fill: var(--accent); }
.drop p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
html[data-theme="night"] .drop p, html[data-theme="night"] .drop .muted { color: var(--hero-muted); }
.drop .samples { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.drop.over { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.drop.busy { pointer-events: none; }
.drop.busy > :not(.dropbar) { opacity: .45; }
.dropbar { display: none; }
.drop.busy .dropbar { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); margin: 14px auto 0; }
.dropbar span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dropbar i { display: block; height: 100%; width: 0; border-radius: 4px; background: #0f6cbd; transition: width .15s; }
.dropbar b { min-width: 3em; text-align: right; font-size: 14px; }
.drop .dropsay { color: #c42b1c !important; font-weight: 600; }
.drop .dropsay.ask { color: inherit !important; }
.drop .samples a { font-size: 13px; padding: 5px 11px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }

/* --- tool first: the first screen is the drop zone ----------------------- */
.hero.tool { padding: 44px 0 52px; text-align: center; }
.hero.tool h1 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: .35em; }
.hero.tool .lead { margin: 0 auto 26px; font-size: 18px; max-width: 620px; }
.hero.tool .breadcrumbs { margin-bottom: 12px; }
.hero.tool .drop { max-width: 780px; margin: 0 auto; padding: 54px 24px 40px; cursor: pointer; }
.hero.tool .drop:hover { border-color: var(--accent); }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--hero-muted); }
.assure .beta { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
html[data-theme="night"] .assure .beta { color: var(--accent-2); }
.assure li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
html[data-theme="night"] .assure li::before { color: #6fd39a; }
/* the line above every page's title: no font or formatting problems */
.promise { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 9px 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); color: var(--accent); font-size: 17px; font-weight: 700; line-height: 1.35; }
.promise svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.article .promise { font-size: 15px; margin-bottom: 18px; }
html[data-theme="night"] .hero .promise { background: rgba(124,192,255,.16); color: #cfe6ff; }
@media (max-width: 520px) { .promise { font-size: 13.5px; padding: 6px 12px; } }

/* every tool, under the drop zone of a tool page: each to its page */
.toolnav { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1000px; margin: 30px auto 0; }
.toolnav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; white-space: nowrap; text-decoration: none; }
.toolnav a:hover { border-color: var(--accent); text-decoration: none; }
.toolnav a svg { width: 16px; height: 16px; fill: var(--accent); flex: none; }
.toolnav a[aria-current] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
html[data-theme="night"] .toolnav a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--hero-text); }
html[data-theme="night"] .toolnav a svg { fill: var(--accent-2); }
html[data-theme="night"] .toolnav a[aria-current] { background: rgba(124,192,255,.18); border-color: var(--accent-2); color: #fff; }
.tools-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 980px; margin: 0 auto; }
.tools-row .tool-link { padding: 12px 14px; }
.tools-row .tool-link .ic { width: 34px; height: 34px; }
.tools-row .tool-link .ic svg { width: 19px; height: 19px; }
.quiet { max-width: 720px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 15px; }
.quiet a { white-space: nowrap; }
section.thin { padding: 40px 0; }

/* --- sections ------------------------------------------------------------ */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: center; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; fill: var(--accent); }
.tool-link { display: flex; gap: 12px; align-items: center; padding: 16px 18px; color: var(--text); }
.tool-link:hover { border-color: var(--accent); text-decoration: none; }
.tool-link .ic { margin: 0; flex: none; }
.tool-link b { display: block; font-size: 15px; }
.tool-link span { font-size: 13px; color: var(--muted); }

/* the seam motif */
.seamline { height: 0; border-top: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); margin: 0 auto; width: 120px; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 17px/38px var(--font); text-align: center; }

/* how-to: numbered steps, each with a picture of the real editor */
.howto-film { max-width: 760px; margin: 0 auto 56px; }
.howto-film img, .howto img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); background: #fff; }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; gap: 56px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.howto h3 { display: flex; gap: 12px; align-items: baseline; }
.howto h3::before { content: counter(h); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 15px/30px var(--font); text-align: center; transform: translateY(-2px); }
.howto p { margin-left: 42px; }
.howto img { max-width: 620px; justify-self: center; }
.howto li.text { grid-template-columns: 1fr; max-width: 620px; }
kbd { font: 600 12px/1 var(--font); padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--text); }

/* how it works: numbered points beside a picture */
.how { counter-reset: w; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.how li { counter-increment: w; position: relative; padding-left: 44px; }
.how li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 700 14px/27px var(--font); text-align: center; }
.how h3 { font-size: 18px; margin-bottom: 4px; }
.how p { margin: 0; font-size: 15px; }

/* proof strip */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.proof .n { font: var(--head-weight) clamp(34px, 4vw, 48px)/1 var(--font-head); letter-spacing: var(--head-spacing); color: var(--accent); }
.proof .l { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
table.cmp th, table.cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
table.cmp thead th.us { color: var(--accent); }
table.cmp td.us { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); font-weight: 500; }
table.cmp tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--bad); font-weight: 700; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.best .badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.plan .price { font: var(--head-weight) 44px/1 var(--font-head); letter-spacing: var(--head-spacing); margin: 14px 0 4px; }
.plan .price small { font: 500 15px var(--font); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .btn { justify-content: center; }
.passes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pass { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; background: var(--surface); }
.pass b { display: block; font: var(--head-weight) 26px/1.1 var(--font-head); }
.pass span { font-size: 14px; color: var(--muted); }
.draft { display: inline-block; font-size: 12px; font-weight: 700; color: #8a5a00; background: #fff4d6; border: 1px solid #f1d58a; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* article */
.article { max-width: 740px; margin: 0 auto; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); }
.article h2 { font-size: 28px; margin-top: 1.6em; }
.article p, .article li { font-size: 18px; line-height: 1.7; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article .note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 16px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); margin: 24px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.cta-box { margin: 40px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-box h3 { margin: 0 0 4px; font-size: 18px; }
.cta-box p { margin: 0; color: var(--muted); font-size: 15px !important; }
.cta-box .btn { background: transparent; color: var(--text); border-color: var(--line); }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.hero .breadcrumbs { color: var(--hero-muted); }

/* bars of the accuracy test */
.bars { display: grid; gap: 14px; }
.barrow { display: grid; grid-template-columns: 180px 1fr 70px; gap: 14px; align-items: center; font-size: 15px; }
.barrow .track { height: 14px; background: var(--bg-alt); border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.barrow .fill { height: 100%; background: var(--muted); border-radius: 7px; }
.barrow.us .fill { background: var(--accent); }
.barrow .v { text-align: right; font-weight: 700; }
.article .barrow { grid-template-columns: 170px 1fr 100px; }
.article .barrow .v { white-space: nowrap; }

/* download */
.os { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; border-radius: 8px; padding: 9px 16px; font-size: 13px; line-height: 1.2; }
.store b { display: block; font-size: 16px; }
.store svg { width: 24px; height: 24px; fill: #fff; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.specs div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); }
.specs b { display: block; font-size: 22px; font-family: var(--font-head); }
.specs span { font-size: 13px; color: var(--muted); }

/* footer */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; }
html[data-theme="night"] .foot { background: #0a1324; color: #c5d2ea; border-top: 0; }
html[data-theme="night"] .foot a { color: #c5d2ea; }
html[data-theme="night"] .foot .logo { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 7px 0; }
.foot a { color: var(--text); }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
html[data-theme="night"] .foot .legal { border-top-color: rgba(255,255,255,.1); }
.droppw { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.droppw[hidden] { display: none; }
.droppw input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; min-width: 200px; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 14px 18px; background: var(--bg, #fff); color: inherit; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.consent p { margin: 0; flex: 1; font-size: 14px; line-height: 1.4; }
.consent div { display: flex; gap: 8px; flex: none; }
.cookielink { all: unset; cursor: pointer; font: inherit; color: inherit; }
.cookielink:hover { text-decoration: underline; }
@media (max-width: 600px) { .consent { flex-direction: column; align-items: stretch; gap: 10px; } .consent div > * { flex: 1; justify-content: center; text-align: center; } }
.langlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.langlinks a { color: inherit; text-decoration: none; }
.langlinks a:hover { text-decoration: underline; }
.langlinks a[aria-current] { font-weight: 600; }

/* the direction switcher (mockups only) */
.switcher { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; gap: 4px; padding: 5px; background: #1b1b1f; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.3); font: 600 13px/1 "Inter", system-ui, sans-serif; }
.switcher button { white-space: nowrap; border: 0; background: transparent; color: #c9ced8; padding: 9px 12px; border-radius: 8px; cursor: pointer; font: inherit; }
.switcher button.on { background: #fff; color: #111; }
.switcher .label { color: #8b93a3; padding: 9px 6px 9px 8px; }

/* --- phone ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .grid2 { grid-template-columns: 1fr; gap: 36px; }
  .grid3, .plans, .steps, .proof { grid-template-columns: 1fr; }
  .grid4, .passes, .specs, .tools-row { grid-template-columns: repeat(2, 1fr); }
  .howto { gap: 40px; }
  .howto li { grid-template-columns: 1fr; gap: 14px; }
  .howto-film { margin-bottom: 40px; }
  .hero.tool { padding: 28px 0 36px; }
  .hero.tool .drop { padding: 34px 18px 28px; }
  .hero.tool .lead { font-size: 16px; margin-bottom: 20px; }
  /* On a phone the row scrolls sideways: the first screen stays short. */
  .toolnav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 22px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
  .toolnav::-webkit-scrollbar { display: none; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open a { padding: 12px 0; color: var(--text) !important; border-bottom: 1px solid var(--line); }
  .menu { display: block; }
  .top .actions .lang, .top .actions .btn.ghost { display: none; }
  .top .wrap { gap: 12px; }
  .top .actions { margin-left: auto; }
  .top .actions .btn { padding: 9px 13px; font-size: 14px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 56px; }
  .barrow { grid-template-columns: 110px 1fr 54px; font-size: 14px; }
  .switcher { left: 50%; right: auto; transform: translateX(-50%); bottom: 10px; }
  .switcher .label { display: none; }
}
@media (max-width: 520px) {
  .grid4, .passes, .specs { grid-template-columns: 1fr; }
  .tools-row .tool-link span { display: none; }
  .foot .cols { grid-template-columns: 1fr; }
  .hero .lead { font-size: 17px; }
}

/* ===========================================================================
   Directions close to the app. The app is Office/Fluent: grey chrome
   #f3f3f3, a #e6e6e6 canvas under white pages, Office blue #0f6cbd, Segoe UI,
   small radii. Segoe UI is Windows' own font and is not served from here:
   Windows visitors see the app's font, others their system font.
   ======================================================================== */

html[data-theme="office"], html[data-theme="fluent"], html[data-theme="graphite"] {
  --accent: #0f6cbd;
  --accent-2: #115ea3;
  --accent-soft: #ebf3fc;
  --text: #242424;
  --muted: #616161;
  --line: #e0e0e0;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --head-weight: 600;
  --head-spacing: -0.01em;
}

/* --- D · Office: the site looks like the app's window ---------------------- */
html[data-theme="office"] {
  --bg: #ffffff;
  --bg-alt: #f3f3f3;
  --surface: #ffffff;
  --radius: 4px;
  --radius-sm: 4px;
  --shadow: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11);
  --hero-bg: #e6e6e6;
}
html[data-theme="office"] .top { background: #f3f3f3; backdrop-filter: none; border-bottom-color: #e0e0e0; }
html[data-theme="office"] .top .wrap { height: 52px; }
html[data-theme="office"] .nav { gap: 2px; align-self: stretch; }
html[data-theme="office"] .nav a { display: flex; align-items: center; padding: 0 12px; font-size: 14px; border-bottom: 2px solid transparent; text-decoration: none; }
html[data-theme="office"] .nav a:hover { background: #ebebeb; }
html[data-theme="office"] .nav a.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
html[data-theme="office"] h1 { font-size: clamp(30px, 4vw, 42px); }
html[data-theme="office"] .hero.tool .drop { background: #fff; border: 0; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.16); outline: 1.5px dashed #b8c9db; outline-offset: -16px; }
html[data-theme="office"] .drop .icon, html[data-theme="office"] .card .ic { background: transparent; border-radius: 4px; }
html[data-theme="office"] .drop .samples a { border-radius: 4px; background: #f3f3f3; color: var(--text); border: 1px solid #e0e0e0; }
html[data-theme="office"] .btn { padding: 9px 18px; font-weight: 600; }
html[data-theme="office"] .btn.big { padding: 11px 22px; }
html[data-theme="office"] .btn.ghost { background: #fff; border-color: #d1d1d1; }
html[data-theme="office"] .card { box-shadow: none; }
html[data-theme="office"] .tool-link:hover { background: #f5f5f5; border-color: #d1d1d1; }
html[data-theme="office"] .steps li::before { border-radius: 4px; }
html[data-theme="office"] .demo { box-shadow: 0 2px 8px rgba(0,0,0,.16); border: 0; border-radius: 2px; }
html[data-theme="office"] .plan.best, html[data-theme="office"] .plan { box-shadow: none; }
html[data-theme="office"] .foot { background: #f3f3f3; }

/* --- E · Fluent: Windows 11, soft bloom, layered cards --------------------- */
html[data-theme="fluent"] {
  --bg: #fafafa;
  --bg-alt: #f3f3f3;
  --surface: #ffffff;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 4px rgba(0,0,0,.04), 0 8px 16px rgba(0,0,0,.08);
  --hero-bg: radial-gradient(900px 520px at 15% -20%, #d4e6f8 0%, rgba(212,230,248,0) 62%), radial-gradient(800px 520px at 95% -10%, #e6def4 0%, rgba(230,222,244,0) 60%), #f3f3f3;
}
html[data-theme="fluent"] .top { background: rgba(243,243,243,.8); border-bottom-color: rgba(0,0,0,.06); }
html[data-theme="fluent"] .nav a { font-size: 14px; padding: 6px 10px; margin: 0 -6px; border-radius: 4px; text-decoration: none; }
html[data-theme="fluent"] .nav a:hover { background: rgba(0,0,0,.04); }
html[data-theme="fluent"] .nav a.on { background: rgba(0,0,0,.05); color: var(--text); font-weight: 600; }
html[data-theme="fluent"] h1 { font-size: clamp(32px, 4.4vw, 48px); }
html[data-theme="fluent"] .hero.tool .drop { background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(1.2); border: 1px solid rgba(0,0,0,.07); border-radius: 8px; box-shadow: var(--shadow); }
html[data-theme="fluent"] .hero.tool .drop:hover { border-color: rgba(15,108,189,.5); }
html[data-theme="fluent"] .drop .icon { border-radius: 8px; }
html[data-theme="fluent"] .btn.primary { border-bottom-color: rgba(0,0,0,.28); }
html[data-theme="fluent"] .btn.ghost { background: #fff; border-color: rgba(0,0,0,.08); border-bottom-color: rgba(0,0,0,.18); }
html[data-theme="fluent"] .card, html[data-theme="fluent"] .plan, html[data-theme="fluent"] .table-wrap { border-color: rgba(0,0,0,.06); box-shadow: 0 2px 4px rgba(0,0,0,.04); }
html[data-theme="fluent"] .tool-link:hover { border-color: rgba(0,0,0,.1); background: #fdfdfd; box-shadow: var(--shadow); }
html[data-theme="fluent"] section.alt { background: #f3f3f3; }
html[data-theme="fluent"] .steps li::before { border-radius: 8px; }
html[data-theme="fluent"] .foot { background: #f3f3f3; border-top-color: rgba(0,0,0,.06); }

/* --- F · Graphite: a dark title bar over white, restrained ----------------- */
html[data-theme="graphite"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06);
  --head-weight: 700;
  --hero-bg: #ffffff;
}
html[data-theme="graphite"] .top { background: #202020; backdrop-filter: none; border-bottom-color: #202020; }
html[data-theme="graphite"] .top .logo, html[data-theme="graphite"] .top .nav a, html[data-theme="graphite"] .top .menu { color: #f0f0f0; }
html[data-theme="graphite"] .top .nav a.on { color: #fff; box-shadow: inset 0 -2px 0 #4ca0e8; padding-bottom: 4px; }
html[data-theme="graphite"] .top .lang { color: #f0f0f0; border-color: #4a4a4a; }
html[data-theme="graphite"] .top .lang option { color: #242424; }
html[data-theme="graphite"] .hero.tool { border-bottom: 1px solid var(--line); }
html[data-theme="graphite"] .hero.tool .drop { border: 1.5px dashed #a8a8a8; border-radius: 6px; background: #fafafa; }
html[data-theme="graphite"] .hero.tool .drop:hover { border-color: var(--accent); background: #f6f9fd; }
html[data-theme="graphite"] .drop .icon, html[data-theme="graphite"] .card .ic { background: #f0f0f0; border-radius: 6px; }
html[data-theme="graphite"] .drop .icon svg, html[data-theme="graphite"] .card .ic svg { fill: #242424; }
html[data-theme="graphite"] .drop .samples a { background: #fff; border: 1px solid #d1d1d1; color: var(--text); border-radius: 4px; }
html[data-theme="graphite"] .btn.primary { background: #0f6cbd; }
html[data-theme="graphite"] .steps li::before { background: #242424; border-radius: 6px; }
html[data-theme="graphite"] .foot { background: #202020; color: #c8c8c8; border-top: 0; }
html[data-theme="graphite"] .foot a { color: #e0e0e0; }
html[data-theme="graphite"] .foot .logo { color: #fff; }
html[data-theme="graphite"] .foot h4 { color: #9a9a9a; }
html[data-theme="graphite"] .foot .legal { border-top-color: #3a3a3a; color: #9a9a9a; }
@media (max-width: 900px) {
  html[data-theme="graphite"] .nav.open { background: #202020; }
  html[data-theme="graphite"] .nav.open a { color: #f0f0f0 !important; border-bottom-color: #3a3a3a; }
}
@media (max-width: 900px) {
  html[data-theme="office"] .nav.open a, html[data-theme="fluent"] .nav.open a { margin: 0; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .switcher { flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 20px); }
  .switcher button { padding: 8px 9px; }
}
