/* ==========================================================================
   Talkuru — website and docs stylesheet
   Editorial and quiet on purpose: serif headlines, warm paper, ink, one accent.
   Violet is used sparingly (links, one button style); mint only means "online".
   Light/dark come from the tokens below; dark follows the device unless the
   visitor picks one (html[data-theme], saved by static/site.js).
   ========================================================================== */

:root {
    --ink: #1B1A2E;
    --violet: #5B3DF5;
    --violet-ink: #4A2FD6;
    --violet-soft: #EEEAFE;
    --mint: #22C493;
    --marker: #F2C94C;

    --bg: #FBFAF6;
    --paper: #F4F1EA;
    --card: #FFFFFF;
    --text: #2B2A3A;
    --muted: #6B6878;
    --line: #E6E1D6;
    --line-strong: #CFC8B8;
    --heading: #1B1A2E;
    --link: #4A2FD6;
    --input: #D2CCBF;
    --shadow: 0 1px 0 rgba(27, 26, 46, .04), 0 10px 30px -18px rgba(27, 26, 46, .35);
    --ok-bg: #E9F7F1; --ok-ink: #0E5E45; --ok-line: #B5E3D2;
    --err-bg: #FCEEEE; --err-ink: #8E1F2C; --err-line: #F1C6CB;
    --warn-bg: #FBF3DE; --warn-ink: #7A4B00;

    --radius: 10px;
    --radius-lg: 14px;
    --container: 1160px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
    --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #14131C; --paper: #1B1A26; --card: #201F2D; --text: #E4E1EA; --muted: #A29FB0; --line: #2E2C3D; --line-strong: #44415A;
        --heading: #F6F3EC; --link: #B3A4FF; --input: #44415A; --violet-soft: rgba(91, 61, 245, .18);
        --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .8);
        --ok-bg: rgba(34, 196, 147, .12); --ok-ink: #8BE6C9; --ok-line: rgba(34, 196, 147, .35);
        --err-bg: rgba(220, 70, 90, .12); --err-ink: #F5A9B4; --err-line: rgba(220, 70, 90, .35);
        --warn-bg: rgba(242, 201, 76, .12); --warn-ink: #F2D27A;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #14131C; --paper: #1B1A26; --card: #201F2D; --text: #E4E1EA; --muted: #A29FB0; --line: #2E2C3D; --line-strong: #44415A;
    --heading: #F6F3EC; --link: #B3A4FF; --input: #44415A; --violet-soft: rgba(91, 61, 245, .18);
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .8);
    --ok-bg: rgba(34, 196, 147, .12); --ok-ink: #8BE6C9; --ok-line: rgba(34, 196, 147, .35);
    --err-bg: rgba(220, 70, 90, .12); --err-ink: #F5A9B4; --err-line: rgba(220, 70, 90, .35);
    --warn-bg: rgba(242, 201, 76, .12); --warn-ink: #F2D27A;
    color-scheme: dark;
}

/* ----- base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--heading); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { color: var(--heading); }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--paper); border: 1px solid var(--line); color: var(--heading); padding: .05em .4em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--marker); color: var(--ink); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__intro { max-width: 640px; margin-bottom: 48px; }
.section__intro p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { font-size: 1em; line-height: 1; display: inline-block; }
/* Hand-drawn underline under one word of a headline */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .42em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--violet); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.1s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--marker) 70%, transparent) 62%); padding: 0 .1em; }

/* ----- buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--primary, .btn--accent, .btn--dark { background: var(--ink); color: #FBFAF6; }
.btn--primary:hover, .btn--accent:hover, .btn--dark:hover { background: #2E2C48; color: #fff; }
:root[data-theme="dark"] .btn--primary, :root[data-theme="dark"] .btn--accent, :root[data-theme="dark"] .btn--dark { background: #F6F3EC; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary, :root:not([data-theme="light"]) .btn--accent, :root:not([data-theme="light"]) .btn--dark { background: #F6F3EC; color: var(--ink); } }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--heading); color: var(--heading); }
.btn--light { background: #FBFAF6; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline-light { background: transparent; color: #FBFAF6; border-color: rgba(251, 250, 246, .4); }
.btn--outline-light:hover { border-color: #FBFAF6; color: #fff; }
.btn--danger { background: #A8243A; color: #fff; }
.btn--lg { padding: 16px 26px; font-size: 1.04rem; }
.btn--small { padding: 9px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }
.text-link { font-weight: 600; color: var(--heading); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { border-color: var(--heading); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--heading); text-decoration: none; }
.link-arrow .ic { transition: transform .2s; font-size: .85em; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ----- header ------------------------------------------------------------------- */
.announce { background: var(--ink); color: #FBFAF6; text-align: center; font-size: .92rem; padding: 9px 16px; }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand__dark { display: none !important; }
:root[data-theme="dark"] .brand__light { display: none !important; }
:root[data-theme="dark"] .brand__dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__light { display: none !important; } :root:not([data-theme="light"]) .brand__dark { display: block !important; } }
.nav__menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font-size: .97rem; }
.nav__links a:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--line-strong); }
.nav__links a[aria-current="page"] { color: var(--heading); font-weight: 600; text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__cta { margin-left: 10px; }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--heading); cursor: pointer; font-size: 16px; }
.ic--sun { display: none !important; }
:root[data-theme="dark"] .ic--moon { display: none !important; }
:root[data-theme="dark"] .ic--sun { display: inline-block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic--moon { display: none !important; } :root:not([data-theme="light"]) .ic--sun { display: inline-block !important; } }
.nav__check, .nav__toggle { display: none; }
@media (max-width: 940px) {
    .nav__toggle { display: inline-grid; }
    .nav__menu { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 24px 22px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
    .nav__check:checked ~ .nav__menu { display: flex; }
    .nav__links { flex-direction: column; }
    .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav__cta { margin: 10px 0 0; }
    .nav__tools { margin-left: auto; }
}

/* ----- hero ------------------------------------------------------------------- */
.hero { padding: 64px 0 88px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero__note { margin-top: 18px; color: var(--muted); font-size: .93rem; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 40px; } }

/* The console "screenshot" drawn in HTML */
.shot { position: relative; }
.window { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: .86rem; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window__bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); font-family: var(--mono); }
.console { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 360px; }
.console__list { border-right: 1px solid var(--line); }
.console__head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.console__head b { font-family: var(--serif); font-size: 1.05rem; color: var(--heading); }
.console__head span { color: var(--muted); font-size: .78rem; }
.vtable { width: 100%; border-collapse: collapse; }
.vtable th { text-align: left; font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid var(--line); }
.vtable td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.vtable tr.is-active td { background: var(--violet-soft); }
.vtable td small { display: block; color: var(--muted); font-size: .76rem; }
.vtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(34, 196, 147, .6); animation: breathe 2.4s ease-out infinite; }
@keyframes breathe { 0% { box-shadow: 0 0 0 0 rgba(34, 196, 147, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34, 196, 147, 0); } }
.console__chat { display: flex; flex-direction: column; }
.console__chat .console__head b { font-family: var(--sans); font-size: .9rem; }
.thread { flex: 1; display: grid; gap: 9px; align-content: end; padding: 14px; background: var(--paper); }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; line-height: 1.4; opacity: 0; transform: translateY(6px); animation: arrive .45s ease-out forwards; animation-delay: calc(var(--n, 0) * 1.2s + .6s); }
.msg--them { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--us { justify-self: end; background: var(--ink); color: #FBFAF6; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .msg--us { background: #F6F3EC; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg--us { background: #F6F3EC; color: var(--ink); } }
.msg--typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: dots 1.3s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; }
.msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes arrive { to { opacity: 1; transform: none; } }
@keyframes dots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: .9; } }
.composer { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
/* Hand-drawn annotation next to the screenshot */
.note { position: absolute; font: italic 1.02rem/1.25 var(--serif); color: var(--violet); display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.note svg { flex: none; overflow: visible; }
.note path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note--a { left: -14px; top: -46px; }
.note--b { right: 8px; bottom: -54px; flex-direction: row-reverse; text-align: right; }
@media (max-width: 980px) { .note { display: none; } }
@media (max-width: 640px) { .console { grid-template-columns: 1fr; } .console__list { border-right: 0; border-bottom: 1px solid var(--line); } .vtable th:nth-child(3), .vtable td:nth-child(3) { display: none; } }

/* ----- "works with" line ---------------------------------------------------------- */
.works { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.works__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; color: var(--muted); }
.works__row b { color: var(--heading); font-weight: 600; margin-right: 6px; }
.works__row span { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.works__row .ic { color: var(--muted); }

/* ----- numbered feature stories ---------------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.story:first-child { border-top: 0; padding-top: 0; }
.story--flip .story__text { order: 2; }
.story__num { font: italic 600 1.05rem var(--serif); color: var(--violet); display: block; margin-bottom: 10px; }
.story__text p { color: var(--muted); font-size: 1.08rem; max-width: 480px; }
.story__visual { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; } .story--flip .story__text { order: 0; } }
.trail { list-style: none; margin: 0; padding: 0; display: grid; }
.trail li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.trail li:last-child { border-bottom: 0; }
.trail time { font: 600 .9rem var(--mono); color: var(--muted); }
.trail b { color: var(--heading); font-weight: 600; }
.trail small { display: block; color: var(--muted); }
.clock { display: flex; align-items: baseline; gap: 10px; }
.clock b { font: 700 3.4rem/1 var(--serif); color: var(--heading); font-variant-numeric: tabular-nums; }
.clock span { color: var(--muted); }
.visits { display: flex; gap: 6px; margin-top: 20px; }
.visits i { flex: 1; height: 34px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.visits i.on { background: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .visits i.on { background: #F6F3EC; border-color: #F6F3EC; }
.visits-caption { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; margin-top: 8px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.file .ic { font-size: 22px; color: var(--violet); }
.file b { display: block; color: var(--heading); }
.file small { color: var(--muted); }

/* ----- plain feature list ---------------------------------------------------------- */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.feature-list h3 { font-size: 1.12rem; margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.feature-list h3 .ic { color: var(--violet); font-size: .95rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ----- steps ------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { border-top: 2px solid var(--heading); padding-top: 18px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: italic 600 1rem var(--serif); color: var(--violet); margin-bottom: 8px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ----- pricing ------------------------------------------------------------------- */
.plans { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); overflow: hidden; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-left: 1px solid var(--line); }
.plan:first-child { border-left: 0; }
.plan--featured { background: var(--paper); }
.plan__badge { align-self: flex-start; font: italic 600 .92rem var(--serif); color: var(--violet); }
.plan h3 { margin: 0; font-size: 1.45rem; }
.plan__for { color: var(--muted); margin: 0; font-size: .96rem; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.plan__price b { font: 700 2.5rem/1 var(--serif); color: var(--heading); }
.plan__price span { color: var(--muted); font-size: .92rem; }
.plan__price--quote b { font-size: 1.6rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plan { border-left: 0; border-top: 1px solid var(--line); } .plan:first-child { border-top: 0; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .97rem; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 1px; font-size: .82em; color: var(--mint); }

/* ----- FAQ ------------------------------------------------------------------------- */
.faq { max-width: 820px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 1.18rem/1.4 var(--serif); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f067"; font-family: FontAwesome; font-size: .8rem; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: -6px 0 22px; max-width: 680px; }

/* ----- closing call to action -------------------------------------------------------- */
.cta { background: var(--ink); color: #E4E1EA; border-radius: 16px; padding: 64px 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta h2 { color: #FBFAF6; margin: 0 0 10px; }
.cta p { color: #B9B5C8; margin: 0; font-size: 1.1rem; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 44px 28px; } .cta .btn-row { justify-content: flex-start; } }

/* ----- inner page header -------------------------------------------------------------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); max-width: 820px; margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 1.16rem; max-width: 640px; margin: 0; }

/* ----- prose ------------------------------------------------------------------------- */
.prose { max-width: 720px; font-size: 1.06rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 3px solid var(--violet); font: italic 1.3rem/1.5 var(--serif); color: var(--heading); }
.callout { border-radius: var(--radius); padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); margin: 0 0 1.5em; }
.callout--warn { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.split { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.notfound { padding: 40px 0 72px; }
.notfound__code { font: italic 700 clamp(4rem, 12vw, 7rem)/1 var(--serif); color: var(--violet); margin-bottom: 8px; }

/* ----- forms ------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 6px; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--card); border: 1px solid var(--input); border-radius: 8px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--heading); box-shadow: 0 0 0 3px var(--violet-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); }
.form label.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.field-error { color: var(--err-ink); font-size: .88rem; margin: 6px 0 0; }
.field-hint { font-size: .86rem; color: var(--muted); font-weight: 400; margin: 6px 0 0; }
.field-hint.is-ok { color: var(--ok-ink); }
.field-hint.is-bad { color: var(--err-ink); }
.input-suffix { display: flex; }
.form .input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-suffix span { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--input); border-left: 0; border-radius: 0 8px 8px 0; background: var(--paper); color: var(--muted); font-size: .92rem; white-space: nowrap; }
.alert { border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid; }
.alert--ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.alert--err { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.alert form { margin-top: 10px; }
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { color: var(--violet); margin-top: 4px; }
.contact-list strong { display: block; }

/* ----- account pages ------------------------------------------------------------------ */
.auth-wrap { padding: 56px 0 88px; background: var(--paper); border-bottom: 1px solid var(--line); }
.auth-card { max-width: 470px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; }
.auth-card h1 { font-size: 2rem; margin: 0 0 6px; }
.auth-card .btn--lg { width: 100%; }
.dash { padding: 40px 0 88px; }
.dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash__head h1 { margin: 0; font-size: 2.2rem; }
.dash-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: 1.45fr 1fr; align-items: start; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel h2 { font-size: 1.35rem; margin: 0 0 10px; }
.panel + .panel { margin-top: 22px; }
.panel details summary { cursor: pointer; font-weight: 600; color: var(--heading); margin: 6px 0; }
.snippet { margin: 0; background: #1B1A2E; color: #E9E4FF; border-radius: 10px; padding: 16px 18px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }
.snippet-wrap { display: grid; gap: 12px; margin-bottom: 14px; }
.snippet-wrap .btn { justify-self: start; }
.site-list { list-style: none; margin: 0 0 14px; padding: 0; }
.site-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.site-list form { margin: 0; }
dl.facts { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 8px 16px; margin: 0 0 18px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; color: var(--heading); font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; padding: 5px 12px; font-size: .88rem; font-weight: 600; background: var(--ok-bg); color: var(--ok-ink); }
.status-pill--warn { background: var(--warn-bg); color: var(--warn-ink); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form > div { flex: 1 1 220px; }
.banner-staff { background: var(--warn-bg); color: var(--warn-ink); text-align: center; padding: 9px 16px; font-weight: 600; }

/* ----- footer ------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--paper); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-h { font: 600 .82rem var(--sans); letter-spacing: .04em; color: var(--muted); margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .ic { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-bottom a { color: var(--muted); }
.socials { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); color: var(--heading); }

/* ----- cookie notice ---------------------------------------------------------------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; }
.cookie p { margin: 0; font-size: .92rem; flex: 1 1 260px; }

/* ----- scroll reveal (subtle) ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ----- docs ---------------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 44px 24px 88px; max-width: 1160px; margin: 0 auto; }
.docs-side { position: sticky; top: 98px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.docs-side h2 { font: 600 .82rem var(--sans); letter-spacing: .04em; color: var(--muted); margin: 24px 0 8px; }
.docs-side h2:first-child { margin-top: 0; }
.docs-side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-side a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: .96rem; }
.docs-side a:hover { color: var(--heading); border-left-color: var(--line-strong); }
.docs-side a[aria-current="page"] { color: var(--heading); font-weight: 600; border-left-color: var(--violet); }
.docs-main { max-width: 760px; }
.docs-main h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); }
.docs-main h2 { font-size: 1.55rem; margin-top: 1.8em; }
.docs-main ol.howto { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.docs-main ol.howto > li { counter-increment: s; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); }
.docs-main ol.howto > li::before { content: counter(s); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--serif); color: var(--heading); border: 1.5px solid var(--heading); }
.docs-cards { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 20px 0; border-top: 1px solid var(--line); }
.docs-card { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--heading); text-decoration: none; font-weight: 600; }
.docs-card:hover { color: var(--violet); }
.docs-card .ic { color: var(--muted); width: 18px; text-align: center; }
.docs-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.eyebrow { display: block; font: italic 600 1rem var(--serif); color: var(--violet); margin-bottom: 8px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; } .docs-side { position: static; max-height: none; } }

/* ----- reduced motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .msg { opacity: 1; transform: none; }
    .scribble path { stroke-dashoffset: 0; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ----- sign-up page ---------------------------------------------------------------- */
.signup { padding: 56px 0 96px; }
.signup__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; }
.signup__main h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 12px; }
.signup__main .lead { margin-bottom: 32px; }
.signup__form { gap: 26px; max-width: 560px; }
.signup__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.signup__form legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font: 600 1.15rem var(--serif); color: var(--heading); width: 100%; }
.signup__form legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signup__form legend span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--heading); font: 700 .85rem var(--serif); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form input::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
.form input[aria-invalid="true"] { border-color: var(--err-ink); background: var(--err-bg); }
.field-error { display: flex; gap: 6px; align-items: baseline; }
.field-hint .ic { margin-right: 4px; }
.pw { position: relative; }
.form .pw input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.pw__toggle:hover { color: var(--heading); background: var(--paper); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background .25s; }
.meter[data-score="1"] i:nth-child(-n+1) { background: #D9534F; }
.meter[data-score="2"] i:nth-child(-n+2) { background: var(--marker); }
.meter[data-score="3"] i:nth-child(-n+3) { background: #7CC47F; }
.meter[data-score="4"] i { background: var(--mint); }
.signup__form label.check span { font-size: .96rem; }
.signup__submit { width: 100%; justify-content: center; }
.signup__submit[aria-busy="true"] { opacity: .8; cursor: progress; }
.signup__submit[aria-busy="true"] .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.signup__login { text-align: center; margin: 0; }

.signup__aside { position: sticky; top: 104px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: grid; gap: 28px; }
.preview__label { display: block; font: italic .98rem var(--serif); color: var(--muted); margin-bottom: 12px; }
.preview__widget { background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); max-width: 360px; }
.preview__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #F4F1EA; }
.preview__head strong { display: block; color: #FBFAF6; font-size: .98rem; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__head span { font-size: .8rem; color: #C9C5D6; }
.preview__head .online { width: 7px; height: 7px; margin-right: 6px; }
.preview__av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #F4F1EA; color: var(--ink); font: 700 1rem var(--serif); }
:root[data-theme="dark"] .preview__head { background: #2A2840; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .preview__head { background: #2A2840; } }
.preview__body { display: grid; gap: 8px; padding: 16px; background: var(--paper); font-size: .9rem; }
.preview__body .msg { opacity: 1; transform: none; animation: none; }
.preview__foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.preview__foot b { color: var(--heading); font-weight: 600; font-family: var(--mono); font-size: .78rem; }
.aside-block h2 { font-size: 1.15rem; margin-bottom: 12px; }
.next { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 10px; }
.next li { counter-increment: n; position: relative; padding-left: 34px; color: var(--text); }
.next li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem var(--serif); border: 1.5px solid var(--line-strong); color: var(--heading); }
.aside-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.aside-note .ic { color: var(--heading); margin-right: 4px; }
@media (max-width: 960px) {
    .signup__grid { grid-template-columns: 1fr; gap: 40px; }
    .signup__aside { position: static; }
}

/* ----- illustrations (hand-drawn line art, About page) ------------------------------ */
.about-hero { padding: 64px 0 80px; }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.about-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
@media (max-width: 900px) { .about-hero__grid { grid-template-columns: 1fr; gap: 32px; } }
.illo { display: block; width: 100%; height: auto; overflow: visible; }
.illo--wide { max-width: 1000px; margin: 8px auto 0; }
.illo--spot { width: 120px; height: 100px; margin-bottom: 18px; }
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.belief h3 { margin-bottom: 8px; }
.belief p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .beliefs { grid-template-columns: 1fr; gap: 36px; } }

/* strokes and fills (fills come after .ink so "fill-card ink" keeps its fill) */
.illo .ink { fill: none; stroke: var(--heading); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illo .soft { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.illo .soft-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.illo .sketch { fill: none; stroke: var(--line-strong); stroke-width: 9; stroke-linecap: round; }
.illo .accent { fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.illo .dashed { stroke-dasharray: 7 8; }
.illo .paper-stroke { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.illo .fill-card { fill: var(--card); }
.illo .fill-paper { fill: var(--paper); }
.illo .fill-ink { fill: var(--heading); }
.illo .fill-violet { fill: var(--violet); }
.illo .fill-mint { fill: var(--mint); }
.illo .paper-dot { fill: #fff; }
.illo .dot { fill: var(--bg); animation: dots 1.3s infinite; }
.illo .t { font: 500 13px var(--sans); fill: var(--text); }
.illo .t--light { fill: var(--bg); }
.illo .fa-t { font-family: FontAwesome; font-size: 20px; text-anchor: middle; fill: var(--heading); }
.illo .fa-t--light { fill: #fff; font-size: 22px; }
.illo .fa-t--mint { fill: var(--mint); }
.illo .label { font: 700 17px var(--serif); text-anchor: middle; fill: var(--heading); }
.illo .label--accent { fill: var(--violet); }
.illo .time { font: 12px var(--mono); text-anchor: middle; fill: var(--muted); }
.illo .note-t { font: italic 17px var(--serif); fill: var(--violet); }
.illo .note-t--muted { fill: var(--muted); }

/* motion: lines draw in, pieces pop in one after another */
.js .reveal .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .reveal.is-in .draw { animation: draw-in 1.5s ease-out forwards; animation-delay: calc(var(--n, 0) * .22s); }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
.js .reveal .pop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(8px) scale(.94); }
.js .reveal.is-in .pop { animation: pop-in .55s cubic-bezier(.2, .9, .3, 1.25) forwards; animation-delay: calc(var(--n, 0) * .4s + .5s); }
@keyframes pop-in { to { opacity: 1; transform: none; } }
.js .reveal .leave { opacity: 0; transition: opacity 1s ease 2.8s; }
.js .reveal.is-in .leave { opacity: 1; }
.illo .ring { fill: none; stroke: var(--mint); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.illo .hand { transform-box: view-box; transform-origin: 60px 56px; animation: sweep 5s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(120deg); } }
.illo .rock { transform-box: view-box; transform-origin: 60px 30px; animation: rock 4s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
    .js .reveal .draw { stroke-dashoffset: 0; }
    .js .reveal .pop, .js .reveal .leave { opacity: 1; transform: none; }
    .illo .hand, .illo .rock, .illo .ring { animation: none; }
}
.visit-list { display: none; list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.visit-list::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-strong); }
.visit-list li { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 0; }
.visit-list span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--heading); color: var(--heading); z-index: 1; }
.visit-list b { font: 700 1.08rem var(--serif); color: var(--heading); }
.visit-list time { font: .85rem var(--mono); color: var(--muted); }
.visit-list em { grid-column: 2 / -1; font: italic .95rem var(--serif); color: var(--muted); }
.visit-list .is-hello span { background: var(--violet); border-color: var(--violet); color: #fff; }
.visit-list .is-hello b { color: var(--violet); }
.visit-list .is-stay span { color: var(--mint); }
@media (max-width: 700px) { .illo--wide { display: none; } .visit-list { display: block; } }
