/* Telliola site — tokens mirror the desktop app (src/renderer/styles.css) so app and site match. */

@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(../fonts/nunito-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(../fonts/plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(../fonts/plex-sans-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  --t-bg-body: #fbfaf7;
  --t-bg-surface: #ffffff;
  --t-bg-surface-alt: #f8f9fb;
  --t-bg-subtle: #f5f6f9;
  --t-text-primary: #060923;
  --t-text-secondary: #5f6274;
  --t-text-muted: #6c6f81;
  --t-border-subtle: #eeeef1;
  --t-border-default: #dedee1;
  --t-brand: #ff9500;
  --t-brand-deep: #ff6b00;
  --t-brand-text: #b35400;           /* orange that passes AA on light surfaces */
  --t-brand-soft-bg: rgba(255, 149, 0, .12);
  --t-brand-soft-border: rgba(255, 149, 0, .3);
  --t-success-fg: #2d8f34; --t-success-bg: rgba(69, 182, 73, .12); --t-success-border: rgba(69, 182, 73, .3);
  --t-info-fg: #3568a8; --t-info-bg: rgba(80, 130, 200, .12); --t-info-border: rgba(80, 130, 200, .3);
  --t-danger-fg: #cc3333;
  --t-shadow-card: 0 2px 8px rgba(0, 0, 0, .04);
  --t-shadow-lift: 0 18px 50px rgba(120, 60, 0, .12);
  --t-gradient-brand: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  --t-gradient-sunset: linear-gradient(135deg, #ff9500 0%, #ffbb00 100%);
  --t-gradient-text: linear-gradient(135deg, #e07000 0%, #c24400 100%); /* ≥3:1 on light for large text */
  --t-on-brand: #060923;             /* ink on orange: 6.9–8.9:1; white on orange is only 2.2–2.9:1 */
  --t-glow: radial-gradient(60% 60% at 75% 10%, rgba(255, 176, 32, .22) 0%, rgba(255, 149, 0, 0) 70%);
  --rec-red: #dc2a2a;

  --font-ui: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Nunito", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --t-bg-body: #0f1419;
    --t-bg-surface: #1a1f2e;
    --t-bg-surface-alt: #232838;
    --t-bg-subtle: #1a1f2e;
    --t-text-primary: #f0f1f5;
    --t-text-secondary: #a0a3b1;
    --t-text-muted: #7c8296;
    --t-border-subtle: #2a3142;
    --t-border-default: #3a4156;
    --t-brand-text: #ffb347;
    --t-brand-soft-bg: rgba(255, 149, 0, .18);
    --t-brand-soft-border: rgba(255, 149, 0, .4);
    --t-success-fg: #5ecf62; --t-success-bg: rgba(69, 182, 73, .18); --t-success-border: rgba(69, 182, 73, .4);
    --t-info-fg: #8bb6e8; --t-info-bg: rgba(110, 170, 240, .18); --t-info-border: rgba(110, 170, 240, .4);
    --t-danger-fg: #ff6b6b;
    --t-shadow-card: 0 2px 8px rgba(0, 0, 0, .4);
    --t-shadow-lift: 0 18px 50px rgba(0, 0, 0, .45);
    --t-glow: radial-gradient(60% 60% at 75% 10%, rgba(255, 149, 0, .16) 0%, rgba(255, 149, 0, 0) 70%);
    --t-gradient-text: linear-gradient(135deg, #ffb020 0%, #ff8a1f 100%);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--t-bg-body);
  color: var(--t-text-primary);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--t-brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--t-brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-accent); margin: 0; letter-spacing: -.02em; }
h1 { font-weight: 900; font-size: clamp(38px, 6vw, 62px); line-height: 1.04; }
h2 { font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h3 { font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--t-bg-surface); color: var(--t-text-primary); font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 800 12px/16px var(--font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-brand-text); }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--t-text-secondary); }
.muted { color: var(--t-text-secondary); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--t-bg-body) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--t-border-subtle); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--t-text-primary); text-decoration: none; font: 700 14px/20px var(--font-accent); }
.nav a:hover { background: var(--t-brand-soft-bg); color: var(--t-brand-text); }
.nav .lang { color: var(--t-text-secondary); border: 1px solid var(--t-border-default); }
.nav .btn { margin-inline-start: 6px; }
@media (max-width: 760px) {
  .nav .nav-link { display: none; }
  .logo img { height: 30px; }
}
@media (max-width: 400px) {
  .site-head .wrap { gap: 8px; }
  .recap { padding: 18px; }
  .cta-row .btn { width: 100%; }
  .nav .btn { padding: 9px 12px; }
}

/* ---------- buttons, pills (same shapes as the app) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--t-border-default);
  background: var(--t-bg-surface); color: var(--t-text-primary); text-decoration: none; white-space: nowrap; cursor: pointer;
  font: 800 13px/18px var(--font-accent); letter-spacing: .05em; text-transform: uppercase;
  transition: filter .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--t-brand-soft-bg); border-color: var(--t-brand); color: var(--t-brand-text); text-decoration: none; }
.btn-primary { background: var(--t-gradient-brand); border-color: transparent; color: var(--t-on-brand); box-shadow: 0 2px 6px rgba(255, 107, 0, .30); }
.btn-primary:hover { background: var(--t-gradient-brand); border-color: transparent; color: var(--t-on-brand); filter: brightness(1.08); box-shadow: 0 6px 16px rgba(255, 107, 0, .40); }
.btn-lg { padding: 15px 26px; font-size: 14px; border-radius: 12px; }
.btn-white { background: #fff; border-color: transparent; color: #8a3a00; }
.btn-white:hover { background: #fff7ec; border-color: transparent; color: #8a3a00; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--t-brand-soft-border); background: var(--t-brand-soft-bg); color: var(--t-brand-text); font: 700 13px/18px var(--font-accent); white-space: nowrap; }
.pill-mute { background: var(--t-bg-subtle); border-color: var(--t-border-default); color: var(--t-text-secondary); }
.pill svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; background: var(--t-glow); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { margin: 14px 0 20px; }
.hero h1 em { font-style: normal; background: var(--t-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--t-text-muted); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* sample recap — mirrors the app's summary card */
.recap { position: relative; margin: 0; background: var(--t-bg-surface); border: 1px solid var(--t-border-subtle); border-radius: 20px; box-shadow: var(--t-shadow-lift); padding: 22px; }
.recap::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(160deg, rgba(255, 149, 0, .55), rgba(255, 149, 0, 0) 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.recap-top { display: flex; align-items: center; gap: 12px; }
.recap-top > div:nth-child(2) { min-width: 0; }
.recap-dot { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--t-brand-soft-bg); color: var(--t-brand); }
.recap-dot svg { width: 22px; height: 22px; }
.recap-title { font: 900 18px/22px var(--font-accent); letter-spacing: -.01em; }
.recap-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.recap-meta .pill { font-size: 12px; padding: 2px 9px; }
.recap-tag { margin-inline-start: auto; align-self: flex-start; }
.recap h4 { margin: 18px 0 6px; font: 800 11px/14px var(--font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-text-muted); }
.recap p, .recap li { font-size: 14.5px; line-height: 1.5; }
.recap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recap li { display: flex; gap: 10px; align-items: flex-start; }
.check { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 2px solid var(--t-border-default); }
.owner { display: inline-block; margin-inline-end: 4px; padding: 0 7px; border-radius: 6px; font: 800 12.5px/20px var(--font-accent); background: var(--t-info-bg); color: var(--t-info-fg); }
.owner.you { background: var(--t-brand-soft-bg); color: var(--t-brand-text); }
.speakers { display: flex; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--t-border-default); align-items: center; font-size: 13px; color: var(--t-text-secondary); flex-wrap: wrap; }
.spk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--t-bg-subtle); border: 1px solid var(--t-border-subtle); font: 700 12.5px/18px var(--font-accent); color: var(--t-text-primary); }
.spk i { width: 18px; height: 18px; border-radius: 50%; background: #3568a8; }
.spk.s0 i { background: #ff9500; }
.spk.s2 i { background: #2d8f34; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--t-bg-surface-alt); border-block: 1px solid var(--t-border-subtle); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2 { margin: 10px 0 14px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.card { background: var(--t-bg-surface); border: 1px solid var(--t-border-subtle); border-radius: 16px; box-shadow: var(--t-shadow-card); padding: 26px; }
.step { position: relative; }
.step-num { position: absolute; top: 22px; right: 24px; font: 900 44px/1 var(--font-accent); color: var(--t-border-default); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--t-brand-soft-bg); color: var(--t-brand-text); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--t-text-secondary); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.apps { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.app-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--t-bg-surface); border: 1px solid var(--t-border-subtle); box-shadow: var(--t-shadow-card); font: 800 16px/20px var(--font-accent); }
.app-chip small { font: 600 12.5px/16px var(--font-ui); color: var(--t-text-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features .card { padding: 24px; }
.features .icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; }
.features .icon svg { width: 21px; height: 21px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* privacy band */
.privacy-band { background: #0f1419; color: #f0f1f5; position: relative; overflow: hidden; }
.privacy-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 149, 0, .28), rgba(255, 149, 0, 0)); pointer-events: none; }
.privacy-band .eyebrow { color: #ffb347; }
.privacy-band .lead { color: #a0a3b1; }
.privacy-band a { color: #ffb347; }
.privacy-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p-item { padding: 22px; border-radius: 16px; background: #1a1f2e; border: 1px solid #2a3142; }
.p-item h3 { color: #fff; margin-bottom: 6px; font-size: 18px; }
.p-item p { color: #a0a3b1; font-size: 15px; }
.p-item .icon { background: rgba(255, 149, 0, .18); color: #ffb347; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; }
.p-item .icon svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--t-info-border); background: var(--t-info-bg); color: var(--t-text-primary); }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--t-info-fg); margin-top: 1px; }
.notice p { font-size: 15px; }
.notice + .faq { margin-top: 20px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--t-bg-surface); border: 1px solid var(--t-border-subtle); border-radius: 14px; padding: 0 20px; box-shadow: var(--t-shadow-card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font: 800 17px/1.35 var(--font-accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--t-brand); border-bottom: 2.5px solid var(--t-brand); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--t-text-secondary); }

/* CTA band */
.cta-band { background: var(--t-gradient-brand); color: var(--t-on-brand); border-radius: 28px; padding: 56px 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; bottom: -220px; border-radius: 50%; background: rgba(255, 255, 255, .14); pointer-events: none; }
.cta-band h2 { color: #060923; }
.cta-band p { color: #2a1a08; margin-top: 12px; font-size: 17px; max-width: 36em; }
.cta-band .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 22px; } }

/* ---------- footer ---------- */
.site-foot { padding: 56px 0 40px; border-top: 1px solid var(--t-border-subtle); margin-top: 88px; font-size: 14.5px; color: var(--t-text-secondary); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font: 800 12px/16px var(--font-accent); letter-spacing: .1em; text-transform: uppercase; color: var(--t-text-muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--t-text-primary); text-decoration: none; }
.foot-grid a:hover { color: var(--t-brand-text); text-decoration: underline; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--t-border-subtle); font-size: 13.5px; color: var(--t-text-muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 24px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 10px 0 12px; }
.legal .meta { color: var(--t-text-muted); font-size: 14.5px; margin-bottom: 28px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--t-text-primary); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-inline-start: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .tldr { padding: 22px 24px; border-radius: 16px; background: var(--t-brand-soft-bg); border: 1px solid var(--t-brand-soft-border); }
.legal .tldr ul { margin-bottom: 0; }
.legal .toc { padding: 18px 22px; border-radius: 14px; background: var(--t-bg-surface); border: 1px solid var(--t-border-subtle); margin: 24px 0; }
.legal .toc ol { margin: 6px 0 0; padding-inline-start: 22px; columns: 2; column-gap: 32px; }
.legal .toc li { font-size: 15px; break-inside: avoid; margin: 0 0 4px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--t-border-subtle); border-radius: 14px; background: var(--t-bg-surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--t-border-subtle); line-height: 1.55; }
th { font: 800 12px/16px var(--font-accent); letter-spacing: .08em; text-transform: uppercase; color: var(--t-text-muted); background: var(--t-bg-surface-alt); }
tr:last-child td { border-bottom: 0; }
code { font: 500 .92em/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--t-bg-subtle); border: 1px solid var(--t-border-subtle); overflow-wrap: anywhere; }
.ph { padding: 1px 6px; border-radius: 6px; background: rgba(220, 60, 60, .12); color: var(--t-danger-fg); font-weight: 700; border: 1px dashed currentColor; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 0; background: var(--t-glow); }
.nf img { width: 96px; height: 96px; margin: 0 auto 22px; }
.nf h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 12px; }
.nf .cta-row { justify-content: center; }
