/* VEKTRA website. Tokens follow the VEKTRA Design System
   (VEKTRA_DESIGN_SYSTEM.md / vektra-tokens.css in Dambit-actual/vektra). */

@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/assets/fonts/playfair-display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/assets/fonts/playfair-display-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --vektra-obsidian: #0A0A0A;
  --vektra-stone: #F8F6F3;
  --vektra-paper: #FEFDFB;
  --vektra-taupe: #C8BDAF;
  --vektra-taupe-deep: #8B7968;
  --vektra-taupe-soft: #E8E0D7;
  --vektra-slate: #6B6B6B;
  --vektra-charcoal: #2A2927;
  --vektra-line: #DED8D1;
  --vektra-muted: #A7A19A;

  --bg: var(--vektra-stone);
  --surface: var(--vektra-paper);
  --text: var(--vektra-obsidian);
  --text-2: #5E5B57;          /* Slate, nudged warmer for AA contrast on Stone */
  --border: var(--vektra-line);
  --accent: var(--vektra-taupe);
  --accent-strong: #7A6A5B;   /* Deep Taupe, darkened for white-on-accent text contrast */
  --accent-text: #66574A;     /* taupe for small text: at least 4.5:1 on every light surface */
  --accent-soft: var(--vektra-taupe-soft);
  --band: #F1EDE8;            /* quiet alternate section surface between Stone and Soft Taupe */

  --ok: #5F7A61;       /* muted sage */
  --warn: #A07A2E;     /* muted ochre */
  --err: #9A4A3C;      /* muted brick */

  --font-ui: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif;
  --font-ed: "Playfair Display", Georgia, serif;

  --r-control: 5px;
  --r-panel: 8px;
  --r-sheet: 2px;
  --shadow-sheet: 0 12px 32px rgba(10, 10, 10, .10);
  --shadow-float: 0 8px 24px rgba(10, 10, 10, .12);
  --shadow-deep: 0 30px 60px -20px rgba(42, 41, 39, .28), 0 12px 24px -12px rgba(42, 41, 39, .16);
  --t-fast: 120ms;
  --t: 180ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --container: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-ui); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--accent-soft); padding: .1em .35em; border-radius: 3px; }
pre { overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: var(--r-control); }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.display { font-family: var(--font-ed); font-weight: 400; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.015em; }
.h2 { font-family: var(--font-ed); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; }
.h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 38em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; white-space: nowrap; }
.tag-live { color: var(--ok); border-color: #B9C7B5; }
.editorial-quote { font-family: var(--font-ed); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; color: var(--vektra-charcoal); margin: 0; }
.editorial-quote + .quote-by { margin-top: 1.25rem; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-2); }
.editorial-quote + .quote-by::before { content: ""; display: block; width: 48px; height: 1px; background: var(--accent-strong); margin-bottom: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-control);
  font: 500 15px/1 var(--font-ui); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #65574A; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: #CFC7BD; }
.btn-secondary:hover { border-color: var(--accent-strong); background: #fff; }
.btn-ghost { background: transparent; color: var(--text); padding: 0 4px; min-height: 36px; text-decoration: underline; text-decoration-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.is-disabled, .btn:disabled { background: var(--accent-soft); color: var(--text-2); cursor: not-allowed; border-color: transparent; }
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.link-arrow::after { content: " →"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- banners ---------- */
.test-banner { background: var(--vektra-charcoal); color: #EDE7DF; font-size: 13px; text-align: center; padding: 8px var(--gutter); }
.test-banner a { color: #fff; }
.pending-note { font-size: 14px; color: var(--text-2); margin-top: .75rem; }
.pending-block { border: 1px dashed var(--accent-strong); background: var(--surface); border-radius: var(--r-panel); padding: 20px 24px; margin: 0 0 2rem; }
.pending-block .eyebrow { margin-bottom: .5rem; }
.pending-block p:last-child { margin: 0; }
.notice { border-left: 3px solid var(--accent-strong); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--r-control) var(--r-control) 0; margin: 0 0 1.5rem; }
.notice-ok { border-left-color: var(--ok); }
.notice-err { border-left-color: var(--err); }
.notice p:last-child { margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248, 246, 243, .96); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.hero-page .site-header:not(.is-scrolled) { background: transparent; }
.hero-page .hero { margin-top: -77px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font: 400 15px var(--font-ui); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--r-control); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent-text); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--text); content: ""; transition: transform var(--t) var(--ease), opacity var(--t); }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform var(--t) var(--ease), visibility 0s linear var(--t); }
  .site-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .hero-page .site-header:has(.site-nav.is-open) { background: var(--bg); }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-link { width: 100%; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 4px; }
  .nav-actions { margin-top: 24px; justify-content: space-between; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 72px; background: var(--bg); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(248,246,243,.94) 0%, rgba(248,246,243,.80) 38%, rgba(248,246,243,.25) 70%, rgba(248,246,243,.1) 100%),
  linear-gradient(180deg, rgba(248,246,243,0) 60%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-copy .display { margin-bottom: 1.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 1.75rem; font-size: 13.5px; color: var(--text-2); }
.hero-meta span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; background: var(--accent-strong); border-radius: 50%; vertical-align: 2px; }
.hero-note { position: absolute; right: 0; bottom: 0; font-family: var(--font-ed); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--text-2); text-align: right; }
.hero-note::after { content: ""; display: block; width: 56px; height: 1px; margin: 10px 0 0 auto; background: var(--accent-strong); }
@media (max-width: 1100px) { .hero-note { display: none; } }
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(248,246,243,.92) 0%, rgba(248,246,243,.82) 55%, var(--bg) 100%); }
}

/* composite of the Draft window and the generated sheet */
.stage { position: relative; perspective: 2000px; padding-bottom: 24%; }
.stage-draft { position: relative; z-index: 1; width: 86%; margin-left: auto; margin-right: -4%; transform: rotateY(-9deg); transform-origin: right center; }
.stage-model { position: absolute; z-index: 2; left: -2%; top: 38%; width: 52%; transform: rotateY(9deg); transform-origin: left center; }
.screen-frame { background: #fff; border: 1px solid #D5CEC6; border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-deep); }
.screen-frame img { width: 100%; }
@media (max-width: 960px) { .stage { max-width: 720px; } }
@media (max-width: 560px) { .stage-model, .stage-draft { transform: none; } .stage-draft { width: 100%; margin-right: 0; } .stage-model { width: 62%; left: 0; top: 45%; } .stage { padding-bottom: 30%; } }

.sheet-frame { background: #fff; padding: 1.2%; border-radius: var(--r-sheet); box-shadow: var(--shadow-deep); border: 1px solid #ECE7E1; }
.sheet-frame img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-band { background: var(--band); }
.section-paper { background: var(--surface); }
.section-dark { background: var(--vektra-charcoal); color: #EDE7DF; }
.section-dark .muted, .section-dark .lede { color: #BDB5AB; }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split, .split-even { grid-template-columns: 1fr; gap: 32px; } .section { padding: 72px 0; } }
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--band), var(--bg)); }
.page-head h1 { font-family: var(--font-ed); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3rem); }
.page-head .lede { margin-bottom: 0; }

/* feature strip (under the hero, as in the mock-up) */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(254, 253, 251, .6); }
.feature-strip > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 28px 24px; }
.feature-strip > div + div { border-left: 1px solid var(--border); }
.feature-strip h2 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.feature-strip p { font-size: 14px; color: var(--text-2); margin: 0; }
@media (max-width: 1000px) { .feature-strip { grid-template-columns: 1fr 1fr; } .feature-strip > div:nth-child(3) { border-left: 0; } .feature-strip > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .feature-strip { grid-template-columns: 1fr; } .feature-strip > div + div { border-left: 0; border-top: 1px solid var(--border); } }
.icon-box { width: 48px; height: 48px; border-radius: var(--r-panel); background: var(--accent-soft); display: grid; place-items: center; color: var(--vektra-charcoal); }
.icon-box svg { width: 24px; height: 24px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px; position: relative; }
.step + .step { border-left: 1px solid var(--border); }
.step:first-child { padding-left: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--vektra-charcoal); color: #fff; font-weight: 500; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: 14.5px; }
.step-visual { margin-top: 18px; height: 230px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--border); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.step-visual .step-shot { width: 100%; height: 100%; object-fit: cover; }
.step-visual-panel { align-items: flex-start; background: #F3F1EE; }
.step-visual-panel img { width: 62%; box-shadow: var(--shadow-float); margin-top: 16px; }
.step-visual-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(180deg, rgba(243,241,238,0), #F3F1EE); }

.step-visual .sheet-frame { width: 86%; box-shadow: var(--shadow-float); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 40px; } .step { padding: 0; } .step + .step { border-left: 0; } }

/* result */
.result-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .result-grid { grid-template-columns: 1fr; } }
.sheet-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
@media (max-width: 560px) { .sheet-pair { grid-template-columns: 1fr; } }
.sheet-link { display: block; text-decoration: none; }
.sheet-link figcaption { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.sheet-link:hover .sheet-frame { box-shadow: 0 34px 64px -20px rgba(42, 41, 39, .34), 0 12px 24px -12px rgba(42, 41, 39, .2); }
.sheet-frame { transition: box-shadow var(--t) var(--ease); }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; text-decoration: none; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.product-card:hover { border-color: #CDBFB0; }
.product-card-media { aspect-ratio: 16 / 9; background: var(--band); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.product-card-media img { width: 72%; }
.product-card-media.is-draft img { box-shadow: var(--shadow-float); }
.product-card-media .glyph { width: 88px; opacity: .9; }
.product-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.product-card-body p { color: var(--text-2); font-size: 15px; flex: 1; }
.product-card-body .link-arrow { align-self: flex-start; }

/* features */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border); }
.feature-list > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--border); }
.feature-list > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--border); }
.feature-list h3 { font-size: 17px; font-weight: 500; }
.feature-list p { color: var(--text-2); margin: 0; font-size: 15px; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } .feature-list > div:nth-child(even) { padding-left: 0; border-left: 0; } }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 1.5px solid var(--accent-strong); border-bottom: 1.5px solid var(--accent-strong); transform: rotate(-45deg); }

/* pricing */
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 36px; box-shadow: var(--shadow-sheet); }
.price-card .h3 { margin-bottom: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.price-amount { font-family: var(--font-ed); font-size: 3.4rem; line-height: 1; }
.price-period { color: var(--text-2); }
.price-fine { font-size: 13.5px; color: var(--text-2); margin-bottom: 24px; }
.price-card .check-list { margin: 24px 0; }
.price-card .actions .btn { flex: 1; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; }
.plan-card .actions { margin-top: auto; padding-top: 20px; }
.plan-disclosure { color: var(--text-2); font-size: 14.5px; margin: 12px 0 0; }
.check-list.two-col { columns: 2 280px; column-gap: 40px; }
.check-list.two-col li { break-inside: avoid; }
.key-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.activation-key { background: #fff; border: 1px solid var(--border); border-radius: var(--r-control); padding: 12px 16px; font: 500 17px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.install-list { list-style: none; padding: 0; margin: 16px 0 0; }
.install-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.pay-frame { min-height: 480px; }
.pricing-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .pricing-layout { grid-template-columns: 1fr; } }
.trial-timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--accent); }
.trial-timeline li { position: relative; padding: 0 0 26px 26px; }
.trial-timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent-strong); }
.trial-timeline li:last-child { padding-bottom: 0; }
.trial-timeline strong { display: block; font-weight: 500; }
.trial-timeline span { color: var(--text-2); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px; border-right: 1.5px solid var(--accent-strong); border-bottom: 1.5px solid var(--accent-strong); transform: rotate(45deg); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > div { padding: 0 0 20px; color: var(--text-2); max-width: 46em; }
.faq details > div p:last-child { margin: 0; }

/* cards and panels */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 24px; text-decoration: none; transition: border-color var(--t) var(--ease); }
a.card:hover { border-color: #CDBFB0; }
.card h3 { font-size: 17px; font-weight: 500; margin: 14px 0 6px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list > li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; font-weight: 500; color: var(--accent-text); background: var(--surface); }
.steps-list > li strong { font-weight: 500; }
.kbd { font-weight: 500; }
.menu-path { font-weight: 500; white-space: nowrap; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; font-size: 13px; color: var(--text-2); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 400 16px var(--font-ui); color: var(--text);
  background: #fff; border: 1px solid #D4CCC2; border-radius: var(--r-control);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6A5B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(200, 189, 175, .45); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { display: block; color: var(--err); font-size: 13px; margin-top: 5px; }
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.inline-form .form-status { flex-basis: 100%; margin-top: 0; }
.section-dark .notice { background: #34322F; color: #EDE7DF; }
.inline-form .field { flex: 1; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }

/* ---------- store ---------- */
.store-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 100px; }
.summary h2 { font-size: 18px; font-weight: 500; }
.line-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.line-item:first-of-type { border-top: 1px solid var(--border); }
.line-item .name { font-weight: 500; }
.line-item .meta { font-size: 13.5px; color: var(--text-2); }
.totals { margin: 16px 0 20px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 18px; font-weight: 500; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.remove-link { background: none; border: 0; padding: 0; color: var(--text-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13.5px; }
.empty-state { text-align: center; padding: 64px 24px; }
.test-pay { max-width: 560px; margin: 0 auto; }
.test-pay .panel { border-style: dashed; border-color: var(--accent-strong); }
.licence-block { margin: 16px 0 0; }
.licence-text { background: #fff; border: 1px solid var(--border); border-radius: var(--r-control); padding: 16px; font: 12.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre; overflow-x: auto; margin: 12px 0; }
.licence-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.licence-head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.status-dot.ok::before { background: var(--ok); }
.status-dot.err::before { background: var(--err); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--accent-soft); border-top-color: var(--accent-strong); border-radius: 50%; animation: spin 800ms linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- prose / docs ---------- */
.prose { max-width: 46em; }
.prose h2 { font-family: var(--font-ed); font-weight: 400; font-size: 1.8rem; margin-top: 2.2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.15rem; font-weight: 500; margin-top: 1.8em; scroll-margin-top: 100px; }
.prose h1 { font-family: var(--font-ed); font-weight: 400; font-size: 2.1rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--border); }
.prose li { margin-bottom: .35em; }
.prose li > ul, .prose li > ol { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 1.25em 0 1.75em; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 500; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--band); padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-head { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; line-height: 1.4; }
.footer-note { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.footer-brand img { width: 140px; }
.footer-publisher { font-size: 13px; letter-spacing: .06em; color: var(--text-2); margin: 10px 0 18px; }
.footer-line { font-family: var(--font-ed); font-style: italic; color: var(--text-2); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.footer-base p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }
.cta-band .h2 { margin-bottom: .4em; }
.req-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); }
.req-list > div { padding: 20px 22px; }
.req-list > div + div { border-left: 1px solid var(--border); }
.req-list dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.req-list dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .req-list { grid-template-columns: 1fr; } .req-list > div + div { border-left: 0; border-top: 1px solid var(--border); } }
.glyph-lg { width: 120px; margin-bottom: 28px; }
.dev-page { padding: 40px 0; }
.dev-page table { background: var(--surface); }
.dev-page pre { background: #fff; border: 1px solid var(--border); padding: 16px; white-space: pre-wrap; font-size: 13px; }

/* utilities (the CSP forbids inline style attributes) */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.actions-center { justify-content: center; }
.center { text-align: center; }
.m0 { margin: 0; }
.center-block { margin-left: auto; margin-right: auto; }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.how-head .section-head { margin-bottom: 0; }
.step:last-child { padding-right: 0; }
.checkbox .field-error { grid-column: 1 / -1; margin-top: 0; }

/* quiet product-family band (future products, never competing with Draft) */
.family { border-top: 1px solid var(--border); }
.family-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.family .eyebrow { font-size: 12px; margin: 0 0 6px; line-height: 1.4; }
.family-line { color: var(--text-2); margin: 0; max-width: 34em; }
.family-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.family-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-control); text-decoration: none; font-size: 15px; background: var(--surface); }
.family-list a:hover { border-color: #CDBFB0; }
.page-head .actions { margin-top: 28px; }
.notice-future { border-left-color: var(--accent); }
.image-preview-trigger { cursor: zoom-in; }
.image-viewer { border: 0; padding: 48px 24px 20px; background: #181818; color: #fff; width: min(96vw, 1600px); max-width: 96vw; max-height: 94vh; border-radius: 8px; }
.image-viewer::backdrop { background: rgba(0,0,0,.8); }
.image-viewer img { display: block; margin: auto; max-width: 100%; max-height: 76vh; width: auto; object-fit: contain; }
.image-viewer p { margin: 12px 0 0; text-align: center; font-size: 14px; }
.image-viewer-close { position: absolute; top: 0; right: 4px; width: 44px; height: 44px; background: transparent; border: 0; color: #fff; font-size: 32px; cursor: pointer; }
