/* Editly website. One stylesheet for the home page, templates, docs and license.
   Shares its look with the Editly CMS: Inter, zinc neutrals, one cobalt accent.
   Light by default, dark when the visitor's system is set to dark. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
}

/* ───────── Tokens ───────── */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --sub: #f6f6f7;
  --line: #ececee;
  --line2: #d9d9de;
  --tx: #18181b;
  --tx2: #3f3f46;
  --mu: #6e6e78;
  --ac: #2457f5;
  --ac-tx: #ffffff;
  --ac-soft: rgba(36, 87, 245, .09);
  --ac-line: rgba(36, 87, 245, .38);
  --ok: #18794e;
  --ok-soft: rgba(24, 121, 78, .1);
  --warn: #9a5b00;
  --warn-soft: rgba(178, 106, 0, .1);
  --err: #c62828;
  --err-soft: rgba(198, 40, 40, .08);
  --on: #ffffff;
  --hdr: rgba(255, 255, 255, .85);
  --code: #f6f6f7;
  --sel: rgba(36, 87, 245, .2);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 40px rgba(0, 0, 0, .12);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Fluid layout tokens: one source of truth for page margin, section rhythm and grid gaps */
  --edge: clamp(18px, 5vw, 88px);      /* horizontal page margin */
  --section: clamp(56px, 8vw, 112px);  /* vertical section padding */
  --gap: clamp(28px, 5vw, 72px);       /* grid gaps */
  --nav-h: clamp(56px, 6vw, 72px);                  /* header height */
  --max: 1320px;                       /* inner content width */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #17171a;
    --sub: #1c1c20;
    --line: #242428;
    --line2: #36363d;
    --tx: #ececef;
    --tx2: #c4c4cc;
    --mu: #9a9aa4;
    --ac: #7b9cff;
    --ac-tx: #0b1020;
    --ac-soft: rgba(123, 156, 255, .16);
    --ac-line: rgba(123, 156, 255, .45);
    --ok: #5fd38d;
    --ok-soft: rgba(95, 211, 141, .12);
    --warn: #f0b44c;
    --warn-soft: rgba(240, 180, 76, .12);
    --err: #ff7b72;
    --err-soft: rgba(255, 123, 114, .12);
    --on: #0e0e10;
    --hdr: rgba(14, 14, 16, .85);
    --code: #131316;
    --sel: rgba(123, 156, 255, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 44px rgba(0, 0, 0, .6);
  }
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%;
  /* the whole rem scale grows gently on big screens: 16px up to 1280, 19px from about 2300 */
  font-size: clamp(16px, .3vw + 12.2px, 19px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--sel); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -.04em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.6vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); }
.w { max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }
section { padding: var(--section) 0; }
.k { font-size: .8125rem; font-weight: 500; color: var(--ac); margin: 0 0 12px; }

/* ───────── Buttons and links ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: clamp(.65rem, .9vw, .9rem) clamp(1rem, 1.5vw, 1.45rem);
  border: 1px solid var(--line2); border-radius: 10px;
  background: transparent; color: var(--tx);
  font: 500 clamp(.9375rem, 1vw, 1.0625rem)/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, filter .15s;
}
.btn:hover { background: var(--sub); }
.btn.p, .btn.dl { background: var(--ac); border-color: var(--ac); color: var(--ac-tx); }
.btn.p:hover, .btn.dl:hover { background: var(--ac); filter: brightness(1.1); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.all span { transition: transform .15s; }
.btn.all:hover span { transform: translateX(3px); }
.lnk { font-weight: 500; text-decoration: none; padding: 10px 4px; }
.lnk:hover { color: var(--ac); }
.lnk span { display: inline-block; transition: transform .15s; }
.lnk:hover span { transform: translateX(3px); }

/* ───────── Header ───────── */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--hdr);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header .w { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); max-width: none; height: var(--nav-h); }
.logo { font-size: clamp(1.125rem, 1.5vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
nav.m { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); margin-left: auto; font-size: clamp(.9375rem, 1vw, 1.0625rem); font-weight: 500; }
nav.m a { text-decoration: none; color: var(--mu); transition: color .15s; }
nav.m a:hover, nav.m a[aria-current] { color: var(--tx); }
nav.m a[aria-current]:not(.btn) { box-shadow: 0 1px 0 currentColor; }
nav.m a.btn, nav.m a.btn:hover { color: var(--ac-tx); }
header .btn { padding: clamp(.5rem, .7vw, .7rem) clamp(.9rem, 1.2vw, 1.2rem); font-size: clamp(.875rem, .95vw, 1rem); }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 10px; color: var(--tx); }
.menu span, .menu span::before { position: absolute; left: 12px; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; content: ""; transition: transform .2s, top .2s; }
.menu span { top: 21px; }
.menu span::before { left: 0; top: 7px; }
header.top.open .menu span { transform: translateY(3.5px) rotate(45deg); }
header.top.open .menu span::before { top: 0; transform: translateY(-3.5px) rotate(-90deg); }

/* ───────── Home: hero ───────── */
.hero { padding: var(--section) 0 clamp(16px, 2.5vw, 40px); text-align: center; }
.hero h1 { max-width: 12em; margin: 0 auto; }
.hero p.l { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.55; color: var(--mu); max-width: 32em; margin: clamp(20px, 2.4vw, 32px) auto clamp(24px, 3vw, 44px); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.fine { font-size: .875rem; color: var(--mu); margin: 20px 0 0; }

/* The editor, as a small interactive demo */
.demo {
  position: relative; max-width: clamp(660px, 62vw, 1080px); margin: clamp(44px, 6vw, 88px) auto 0; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.demo .bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--mu); }
.demo .bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); box-shadow: 14px 0 0 var(--line2), 28px 0 0 var(--line2); margin-right: 36px; }
.demo .pg { padding: clamp(36px, 5vw, 72px) clamp(24px, 4.4vw, 72px) clamp(112px, 10vw, 156px); background: #fafaf7; color: #1b211e; }
.demo .pg small { display: block; font-size: .8125rem; font-weight: 500; color: #2c5a4b; }
.demo .pg h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -.035em; margin: 20px 0 14px; color: #1b211e; }
.demo .pg p { margin: 0; color: #5d6862; max-width: 30em; }
.ed { position: relative; outline: 2px dashed rgba(36, 87, 245, .38); outline-offset: 5px; border-radius: 2px; transition: outline-color .15s; }
.ed:hover { outline-style: solid; }
.ed:focus { outline: 2px solid #2457f5; }
.ed::before { content: attr(data-id); position: absolute; top: -28px; left: -2px; font: 500 11px/1 var(--font); letter-spacing: 0; color: #2457f5; background: #fff; border: 1px solid rgba(36, 87, 245, .38); border-radius: 6px; padding: 4px 7px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.ed:hover::before, .ed:focus::before { opacity: 1; }

/* The floating toolbar, shared by the home demo and the docs */
.tbar {
  display: inline-flex; align-items: center; gap: 1px; height: 44px; padding: 0 6px;
  background: var(--hdr); color: var(--tx);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: .8125rem; white-space: nowrap; max-width: 100%;
}
.demo .tbar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 24px); }
.tbar svg { flex: none; max-width: none; }
.tbar .ti { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 8px; color: var(--mu); font-size: .9375rem; }
.tbar .ti b { font-weight: 700; }
.tbar .ti svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbar .ti.t { font-size: .8125rem; font-weight: 500; padding: 0 8px; display: inline-flex; gap: 4px; }
.tbar .ti.t svg { width: 12px; height: 12px; }
.tbar .sel { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--sub); border-radius: 8px; font-weight: 500; }
.tbar .sel svg { width: 12px; height: 12px; fill: none; stroke: var(--mu); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tbar .swatch { width: 18px; height: 18px; margin: 0 6px; border-radius: 50%; background: #ff0000; border: 2px solid var(--line2); }
.tbar .brand { padding: 0 10px 0 6px; font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
.tbar .brand em, .doc-title em { font-style: normal; font-weight: 500; color: var(--mu); }
.tbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; flex: none; }
.tbar .s { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--mu); font-weight: 500; }
.tbar .s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.demo[data-state="dirty"] .s::before { background: var(--warn); }
.demo[data-state="saved"] .s::before { background: var(--ac); }
.demo[data-state="published"] .s::before { background: var(--ok); }
.tbar button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--mu); font: 500 .8125rem var(--font); cursor: pointer; transition: background .12s, color .12s; }
.tbar button:hover:not(:disabled) { background: var(--sub); color: var(--tx); }
.tbar button:disabled { opacity: .45; cursor: default; }
.tbar button.pub, .tbar .go { background: var(--ac); color: var(--ac-tx); margin-left: 2px; }
.tbar button.pub:hover:not(:disabled) { background: var(--ac); color: var(--ac-tx); filter: brightness(1.08); }
.tbar .go { display: grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 500; }

/* ───────── Home: sections ───────── */
#why h2, #how h2, #templates h2, .price h2 { text-align: center; margin-left: auto; margin-right: auto; }
.sub { font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: var(--mu); max-width: 34em; margin: 14px auto 0; text-align: center; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.col h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); margin: 0 0 16px; }
.chk { list-style: none; margin: 0; padding: 0; }
.chk li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); }
.chk li:first-child { border-top-color: var(--line2); }
.chk li::before { content: "✓"; position: absolute; left: 2px; top: 12px; color: var(--ac); font-weight: 600; }

.how { background: var(--sub); border-block: 1px solid var(--line); }
.how .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.how .step { min-width: 0; display: block; }
.how .step b { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 10px; background: var(--ac-soft); color: var(--ac); font-size: .875rem; font-weight: 600; }
.how .step h3 { margin-bottom: 6px; }
.how .step p { color: var(--mu); margin: 0; }
.how .step pre { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--code); color: var(--tx); font-size: .8125rem; line-height: 1.7; overflow: auto; }
.how .step pre i { font-style: normal; background: var(--ac-soft); color: var(--ac); padding: 0 4px; border-radius: 4px; }
.how .step code { font-size: .85em; background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(24px, 2.6vw, 40px); margin-top: clamp(36px, 4vw, 64px); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card[hidden] { display: none; }
.card .im { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sub); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover .im { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .im img, .card .im svg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card h3 { margin: 18px 0 4px; }
.card .c { font-size: .875rem; color: var(--mu); }
.card p { font-size: .9375rem; color: var(--mu); margin: 10px 0 16px; }
.card .a { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card .ls { display: flex; flex-direction: column; gap: 2px; }
.card .ls a.t { font-size: .9375rem; font-weight: 500; color: var(--ac); text-decoration: none; }
.card .ls a.t:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .btn.dl { white-space: nowrap; padding: .6rem 1rem; }
.free { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .6875rem; font-weight: 600; vertical-align: 3px; letter-spacing: .01em; }
.more { text-align: center; margin-top: 56px; }

.price .plans.one { max-width: clamp(420px, 34vw, 560px); margin: clamp(36px, 4vw, 64px) auto 0; }
.plan { display: flex; flex-direction: column; align-items: center; padding: clamp(32px, 3.4vw, 52px) clamp(24px, 3vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.plan .pl { display: contents; }
.plan .pl h3 { display: none; }
.plan .amt { order: 1; font-size: clamp(3.5rem, 5vw, 5.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 0 0 8px; }
.plan .amt small { margin-left: 6px; font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--mu); }
.plan .pn { order: 2; margin: 0 auto 28px; max-width: 24em; color: var(--mu); }
.plan ul { order: 3; list-style: none; margin: 0 0 32px; padding: 0; text-align: left; align-self: stretch; }
.plan li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: .9375rem; }
.plan li::before { content: "✓"; position: absolute; left: 2px; top: 10px; color: var(--ok); font-weight: 600; }
.plan .btn { order: 4; align-self: stretch; background: var(--ac); border-color: var(--ac); color: var(--ac-tx); }
.plan .btn:hover { background: var(--ac); filter: brightness(1.1); }
.plan .lnk { order: 5; align-self: center; margin-top: 10px; font-size: .9375rem; color: var(--mu); }
.plan .lnk:hover { color: var(--ac); }

.fq { display: grid; grid-template-columns: 1fr 1.7fr; gap: var(--gap); align-items: start; }
.fq .fh { position: sticky; top: calc(var(--nav-h) + 32px); }
.fq .fh p { margin: 14px 0 0; color: var(--mu); }
.fq a, .faq p a { color: var(--ac); text-underline-offset: 3px; }
details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mu); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
summary:hover { color: var(--ac); }
details p { margin: 0 0 20px; color: var(--mu); }

/* ───────── Footer ───────── */
footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 64px); font-size: .9375rem; }
footer .w.fg { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3vw, 40px) var(--gap); align-items: start; }
footer .fb p { margin: 10px 0 0; max-width: 24em; color: var(--mu); }
footer .fc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
footer .fc h4 { margin: 0 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
footer .fc a { display: block; padding: 4px 0; color: var(--mu); text-decoration: none; transition: color .15s; }
footer .fc a:hover { color: var(--tx); }
footer .fbot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mu); font-size: .875rem; }
footer .fbot .r { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
footer .fbot .r a { display: block; line-height: 0; }
footer .fbot .r img { height: 35px; width: auto; }

/* ───────── Page head, templates, template detail ───────── */
.ph { padding: var(--section) 0 clamp(28px, 3.5vw, 52px); }
.ph h1 { font-size: clamp(2.25rem, 5.4vw, 4.75rem); }
.ph p { margin: 16px 0 0; max-width: 36em; font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: var(--mu); }
.ph p a { color: var(--ac); text-underline-offset: 3px; }
.ph p.k { margin: 0 0 12px; font-size: .8125rem; }
.ph + section { padding-top: 24px; }
.ph + section .grid { margin-top: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chips button { padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--tx); font: 500 .875rem var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.chips button:hover { background: var(--sub); }
.chips button.on { background: var(--ac); border-color: var(--ac); color: var(--ac-tx); }

.dt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); padding-top: 16px; padding-bottom: var(--section); }
.dt .acts { justify-content: flex-start; }
.dt .acts + h3 { margin-top: 32px; }
.dt ul { padding-left: 20px; color: var(--tx2); }
.dt li { margin: 8px 0; }
.dt li a { color: var(--ac); text-underline-offset: 3px; }
.shot { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sub); }
.shot svg, .shot .lg { position: absolute; inset: 0; width: 100%; }
.shot .lg { height: auto; transition: transform .9s; }
.shot.rd:hover .lg { transform: translateY(calc(var(--dist) * -1)); transition-duration: var(--dur); }
.shot small { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; padding: 5px 12px; border-radius: 999px; background: var(--tx); color: var(--bg); font-size: .75rem; font-weight: 500; pointer-events: none; }
.box { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--sub); }
.box h3 { font-size: 1.1rem; }
.box p { margin: 8px 0 0; font-size: .9375rem; color: var(--tx2); }
.box a { color: var(--ac); text-underline-offset: 3px; }

/* ───────── Docs and license ───────── */
.docwrap { display: grid; grid-template-columns: clamp(200px, 15vw, 270px) minmax(0, 1fr); gap: var(--gap); padding-top: clamp(40px, 4vw, 64px); padding-bottom: var(--section); align-items: start; }
.toc { border-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding-right: 8px; font-size: .9rem; }
.toc summary { display: none; }
.toc .tg { margin-bottom: 24px; }
.toc .tl { margin: 0 0 8px; font-size: .8125rem; font-weight: 600; color: var(--tx); }
.toc a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); color: var(--mu); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--tx); }
.toc a.on { color: var(--ac); border-left-color: var(--ac); font-weight: 500; }
.doc .content { max-width: clamp(740px, 54vw, 940px); min-width: 0; }
.doc-header { padding-bottom: 40px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.doc-eyebrow { margin-bottom: 14px; font-size: .8125rem; font-weight: 500; color: var(--ac); }
.doc-title { margin: 0 0 20px; font-size: clamp(2.5rem, 5.6vw, 4.75rem); letter-spacing: -.04em; line-height: 1.02; }
.doc-desc { max-width: 34em; margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.55; color: var(--tx2); }
.version-badge { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 24px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--sub); font-size: .8125rem; font-weight: 500; color: var(--mu); }
.version-badge span { color: var(--tx); }
.doc section.section { padding: 0; margin-bottom: clamp(64px, 6vw, 96px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.section-anchor { display: none; }
.section-label { margin-bottom: 8px; font-size: .8125rem; font-weight: 500; color: var(--ac); }
.section-title { margin: 0 0 20px; font-size: clamp(1.75rem, 3.4vw, 2.9rem); }
.doc h3 { margin: 44px 0 12px; font-size: 1.35rem; }
.doc h4 { margin: 24px 0 6px; font-size: 1.0625rem; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.72; color: var(--tx2); }
.doc p { margin: 0 0 16px; }
.doc strong { color: var(--tx); font-weight: 600; }
.doc p a, .doc li a, .doc td a { color: var(--ac); text-underline-offset: 3px; }
.doc ul, .doc ol { list-style: none; padding: 0; margin: 0 0 20px; }
.doc li { position: relative; padding: 4px 0 4px 26px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.doc ol { counter-reset: ol; }
.doc ol li::before { content: counter(ol); counter-increment: ol; position: absolute; left: 0; top: 4px; font-weight: 600; color: var(--ac); }
.doc code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--sub); color: var(--tx); font-size: .85em; }
.doc pre { margin: 16px 0 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: auto; }
.doc pre code { padding: 0; border: 0; background: none; font-size: .8125rem; line-height: 1.75; }
.code-label { display: block; width: max-content; margin: 18px 0 -1px; padding: 4px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--sub); color: var(--mu); font-size: .75rem; font-weight: 500; }
.code-label + pre { margin-top: 0; border-top-left-radius: 0; }
.doc kbd { padding: 2px 7px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--tx); font-size: .8rem; font-weight: 500; }
.doc em { font-style: italic; }
.doc .doc-title em { font-style: normal; }

.callout { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0; padding: 16px 18px; border-radius: 14px; background: var(--ac-soft); }
.callout-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--ac); color: var(--ac-tx); font-size: .75rem; font-weight: 700; }
.doc .callout p { margin: 0; color: var(--tx); font-size: 1rem; line-height: 1.6; }
.callout.tip { background: var(--ok-soft); }
.callout.tip .callout-icon { background: var(--ok); color: var(--on); }
.callout.warn { background: var(--warn-soft); }
.callout.warn .callout-icon { background: var(--warn); color: var(--on); }
.callout.danger { background: var(--err-soft); }
.callout.danger .callout-icon { background: var(--err); color: var(--on); }

.doc table { display: block; width: 100%; margin: 18px 0 26px; overflow-x: auto; border-collapse: collapse; font-size: .9375rem; }
.doc th { padding: 10px 14px; border-bottom: 1px solid var(--line2); text-align: left; font-size: .8125rem; font-weight: 600; color: var(--mu); white-space: nowrap; }
.doc td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--tx2); font-size: .9375rem; line-height: 1.55; }
.doc tr:last-child td { border-bottom: 0; }
.doc td code { font-size: .8em; }
.doc td:has(kbd) { white-space: nowrap; }
.doc td.yes, .doc td.no, .doc td.lim { font-weight: 500; white-space: nowrap; }
.doc td.yes { color: var(--ok); }
.doc td.no { color: var(--err); }
.doc td.lim { color: var(--warn); }

.steps { margin: 22px 0; }
.step { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 22px; }
.step-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-top: 2px; border-radius: 10px; background: var(--ac-soft); color: var(--ac); font-size: .8125rem; font-weight: 600; }
.step-content h4 { margin: 0 0 4px; }
.doc .step-content p { margin: 0; font-size: 1rem; }

.file-tree { margin: 18px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: auto; font: 500 .8125rem/2 var(--mono); color: var(--tx); }
.file-tree .dir { color: var(--ac); }
.file-tree .comment { color: var(--mu); }
.file-tree .indent1 { padding-left: 22px; }
.file-tree .indent2 { padding-left: 44px; }
.file-tree .indent3 { padding-left: 66px; }

.toolbar-ref { margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.toolbar-preview { display: flex; justify-content: center; padding: 28px 16px; background: var(--sub); overflow-x: auto; }
.toolbar-table table { margin: 0; border-top: 1px solid var(--line); }
.toolbar-table td:first-child { color: var(--tx); font-weight: 500; white-space: nowrap; }
.shotfig { margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sub); }
.shotfig img { width: 100%; height: auto; }
.shotfig figcaption { padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface); color: var(--mu); font-size: .8125rem; }

.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sub); color: var(--mu); font-size: .75rem; font-weight: 500; vertical-align: middle; letter-spacing: 0; }
.b-user { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.b-dev { border-color: transparent; background: var(--ac-soft); color: var(--ac); }
.divider { height: 1px; margin: 56px 0 40px; background: var(--line); }

.legal .lead { margin-bottom: 8px; font-size: 1.2rem; line-height: 1.7; color: var(--tx2); }
.legal .gl { margin: 36px 0 14px; }
.legal .note { margin: 14px 0 44px; font-size: .9375rem; color: var(--mu); }
.legal .section { margin-bottom: 52px; }
.legal .section-title { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.legal .section-title .n { min-width: 1.7em; color: var(--ac); font-weight: 600; }
.legal .glance th:first-child, .legal .glance td:first-child { width: 32%; color: var(--tx); font-weight: 500; }
.legal .glance th { white-space: normal; }
.doc ol.al { counter-reset: al; }
.doc ol.al li { padding-left: 40px; }
.doc ol.al li::before { content: "(" counter(al, lower-alpha) ")"; counter-increment: al; top: 5px; font-size: .9375rem; }

/* ───────── Smaller screens ───────── */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 68px 0; }
  .hero { padding: 56px 0 16px; }
  .demo { margin-top: 44px; }
  .demo .pg { padding: 36px 24px 112px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 40px; }
  .how .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fq { grid-template-columns: 1fr; gap: 24px; }
  .fq .fh { position: static; }
  .dt { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid { gap: 40px 24px; }
  .plan { padding: 32px 24px; }
  footer .w.fg { grid-template-columns: 1fr; }
  .menu { display: block; }
  header .w { gap: 12px; }
  nav.m { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px var(--edge) 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.0625rem; }
  header.top.open nav.m { display: flex; }
  nav.m a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--tx); box-shadow: none !important; }
  nav.m a.btn { margin-top: 18px; padding: .85rem 1rem; font-size: 1rem; }
  .docwrap { display: block; padding-top: 28px; }
  .toc { position: static; max-height: none; margin-bottom: 36px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
  .toc summary { display: flex; padding: 14px 18px; cursor: pointer; font-size: .9375rem; font-weight: 500; color: var(--tx); }
  .toc summary::after { color: var(--mu); }
  .toc[open] summary { border-bottom: 1px solid var(--line); }
  .toc .tg { margin: 0; padding: 14px 18px 0; }
  .toc .tg:last-child { padding-bottom: 14px; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .tbar .dec { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Two plans: Personal and Pro */
.price .plans.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: min(960px, 100%); margin: clamp(36px, 4vw, 64px) auto 0; }
.plans.two .plan .pl h3 { display: block; order: 0; margin: 0 0 14px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; color: var(--ac); }
.plans.two .plan .amt { font-size: clamp(3rem, 4.2vw, 4.5rem); }
.plans.two .plan .pn { max-width: 22em; }
.plans.two .plan.feat { border-color: var(--ac); }
@media (max-width: 820px) { .price .plans.two { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.plans.two .plan ul { flex: 1; }
@media (max-width: 600px) {
  .legal .glance { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal .glance table { min-width: 520px; }
  .legal .glance th, .legal .glance td { padding: 10px 8px; font-size: .8125rem; }
  .legal .glance th:first-child, .legal .glance td:first-child { width: 24%; }
}
