/* Moottorin perustyylit. Värit ja fontit tulevat ohjeet/brandi.json:sta CSS-muuttujina
   (rakenna.py kirjoittaa ne tämän edelle). Sivuston omat tyylit: sivusto/tyylit/*.css. */

:root {
  --bg: #F5F8FA; --surface: #FFFFFF; --surface-2: #EDF2F5; --fg: #15222B; --muted: #56636D; --line: #D5DEE4;
  --brand: #1684B8; --brand-ink: #11689A; --hero-bg: #1684B8; --hero-fg: #FFFFFF; --hero-muted: #D6ECF7;
  --mark: #F4BA6C; --mark-ink: #2A1A06; --ok: #2B7A4B; --bad: #B0392F;
  --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img, video { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--fg); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Yläpalkki */
.topbar { background: var(--hero-bg); color: var(--hero-fg); padding-top: 0.9rem; padding-bottom: 0.3rem; }
.topbar .wrap { display: flex; align-items: center; gap: 0.3rem 2rem; flex-wrap: wrap; }
.brand { color: var(--hero-fg); text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.5rem; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand span { font-size: 0.78rem; color: var(--hero-muted); }
.brand b em { font-style: normal; color: var(--mark); }
.mainnav { display: flex; gap: 0.2rem 1.3rem; overflow-x: auto; min-width: 0; flex: 1 1 auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { color: var(--hero-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.35rem 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--hero-fg); }
.mainnav a[aria-current="page"] { color: var(--hero-fg); border-bottom-color: var(--mark); }
.langsw { display: flex; gap: 0.2rem; margin-left: auto; }
.langsw a { color: var(--hero-muted); text-decoration: none; font-weight: 600; font-size: 0.82rem; padding: 0.2rem 0.45rem; border-radius: 4px; border: 1px solid transparent; }
.langsw a[aria-current="true"] { color: var(--hero-fg); border-color: var(--hero-muted); }

/* Sivun alku */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding-top: 2.2rem; padding-bottom: 3rem; }
.hero .wrap { display: grid; gap: 1rem; }
.hero a { color: var(--hero-fg); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--hero-muted); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700; }
.hero.home h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -0.01em; }
.tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3.2vw, 1.95rem); line-height: 1.25; max-width: 28ch; }
.lead { font-size: 1.1rem; max-width: 64ch; }
/* Kun etusivun h1 on kuvaava lause eikä nimi, se on tagline-kokoinen. */
.hero h1.tagline { font-size: clamp(1.7rem, 4.4vw, 2.75rem); letter-spacing: 0; max-width: 26ch; }
.cta-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }
.cta { display: inline-block; padding: 0.65rem 1.1rem; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.cta.primary, .hero .cta.primary { background: var(--mark); color: var(--mark-ink); }
.cta.ghost, .hero .cta.ghost { border: 1px solid var(--hero-muted); color: var(--hero-fg); }
.cta.plain { background: var(--brand); color: var(--hero-fg); }

/* Osiot */
section { padding-block: 3rem; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 1.8rem; max-width: 66ch; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }
.kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--brand-ink); }
.section-head p { color: var(--muted); }
.prose { display: grid; gap: 0.9rem; max-width: 68ch; }
.prose h2 { font-size: 1.45rem; margin-top: 0.8rem; }
.prose h3 { font-size: 1.15rem; margin-top: 0.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.3rem; }

/* Kortit ja listat */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; display: grid; gap: 0.55rem; align-content: start; }
.card h3 { font-size: 1.05rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .ex { color: var(--fg); }
.card a { font-size: 0.92rem; font-weight: 600; }
.fitlist { list-style: none; padding: 0; display: grid; gap: 0.7rem; max-width: 66ch; }
.fitlist li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.6rem; }
.fitlist li::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--brand); margin-top: 0.6rem; }
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; counter-reset: p; }
.process li { display: grid; gap: 0.5rem; align-content: start; }
.process li::before { counter-increment: p; content: counter(p); font-family: var(--font-display); font-weight: 700; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-ink); border: 1px solid var(--line); }
.process h3 { font-size: 1.1rem; font-weight: 600; }
.process p { color: var(--muted); font-size: 0.96rem; }
.own { margin-top: 2rem; background: var(--surface-2); border-radius: 10px; padding: 1.2rem 1.3rem; display: grid; gap: 0.4rem; max-width: 74ch; }
.own .label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--brand-ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.pair .own { margin-top: 0; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.rule { display: grid; gap: 0.3rem; align-content: start; }
.rule h3 { font-size: 1rem; font-weight: 600; }
.rule p { color: var(--muted); font-size: 0.96rem; }
.note { margin-top: 1.6rem; color: var(--muted); max-width: 74ch; }
.cap { color: var(--muted); font-size: 0.88rem; }
.next { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2rem; font-weight: 600; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table.own-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
.own-table th, .own-table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.own-table thead th { border-top: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.own-table tbody th { font-weight: 600; }

/* Usein kysytyt: <section class="faq"> ja <details>. Sama teksti menee JSON-LD:n FAQPageen. */
.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] > summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brand); }
.faq details > :not(summary) { margin: 0 0 1rem; max-width: 68ch; }
.faq details p { margin: 0 0 0.6rem; }

/* Alatunniste */
.pagefoot { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: 0.88rem; }
.pagefoot .wrap { display: grid; gap: 0.3rem; }

@media (max-width: 900px) {
  .grid3, .process, .rules, .pair { grid-template-columns: minmax(0, 1fr); }
}


@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fontit/inter-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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fontit/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/fontit/montserrat-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: 'Montserrat'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/fontit/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F7F5F8;
  --surface: #FFFFFF;
  --surface-2: #F0EBF1;
  --fg: #221A24;
  --muted: #5E5562;
  --line: #DDD4DF;
  --brand: #583759;
  --brand-ink: #4A2D4B;
  --hero-bg: #583759;
  --hero-fg: #FFFFFF;
  --hero-muted: #E6D8E7;
  --mark: #F4BA6C;
  --mark-ink: #2A1A06;
  --ok: #2B7A4B;
  --bad: #B0392F;
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---- sivusto.css ---- */
/* ai.hdsoft.fi:n omat tyylit: esimerkkien kuvat (raportti, esite, diat, video, tiketit), hinnoittelu ja esimerkkikortit.
   Esimerkkiyrityksen omat värit (--ex-*) ovat tahallaan eri kuin palvelun: niistä näkee, että materiaalit tehdään asiakkaan brändiin. */
:root {
  --give-bg: #FBEBD5;
  --give-ink: #7A4210;
  --hl: #FFE7A8;
  --paper: #FFFFFF;
  --paper-ink: #1E2A26;
  --paper-muted: #5E6B66;
  --ex-brand: #1F5B4A;
  --ex-accent: #D9A441;
  --ex-soft: #E6EFEA;
  --video-sub-bg: rgba(0, 0, 0, 0.72);
  --video-sub-fg: #FFFFFF;
}

/* Etusivun esimerkkikortit */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: 0.35rem; align-content: start; text-decoration: none; color: var(--fg); }
.use:hover { border-color: var(--brand); }
.use b { font-size: 1rem; }
.use span { color: var(--muted); font-size: 0.93rem; }
.use em { font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--brand-ink); }
.also { margin-top: 1.4rem; max-width: 74ch; color: var(--muted); }
.also b { color: var(--fg); }

/* Nykyiset työkalut */
.tools { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.tools li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; display: grid; gap: 0.15rem; }
.tools b { font-size: 0.98rem; }
.tools span { color: var(--muted); font-size: 0.9rem; }

/* Myynti, asiakaspalvelu ja viestintä */
.mini { font-size: 0.85rem; margin: 0; }
.leads { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.leads li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.1rem 0.6rem; align-items: baseline; font-size: 0.9rem; }
.leads li > span:last-child { grid-column: 2; color: var(--muted); font-size: 0.86rem; }
.draft { border-left: 3px solid var(--line); padding-left: 0.7rem; }
.meta { font-size: 0.8rem; color: var(--muted); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.nl { padding-left: 1.1rem; display: grid; gap: 0.2rem; font-size: 0.9rem; }

/* Esimerkkisivu */
.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick a { text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.35rem 0.85rem; color: var(--brand-ink); }
.quick a:hover { border-color: var(--brand); }
.example { scroll-margin-top: 1rem; }
.example .desc { color: var(--muted); max-width: 66ch; }
.sub { margin-top: 1.8rem; display: grid; gap: 1rem; }
.sub h3.small { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--muted); font-family: var(--font-body); }

/* Sinä annat -> saat */
.io { display: grid; grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1.7fr); gap: 1rem 1.2rem; align-items: start; }
.io-col { display: grid; gap: 0.6rem; min-width: 0; }
.io-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--brand-ink); }
.io-arrow { align-self: center; font-size: 1.8rem; color: var(--muted); line-height: 1; padding-top: 1.6rem; }
.give { background: var(--give-bg); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.give .who { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--give-ink); }
.give ul { padding-left: 1.1rem; display: grid; gap: 0.2rem; }
.give .file { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.55rem; justify-self: start; }
.sample { font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); padding: 0.05rem 0.45rem; border-radius: 4px; white-space: nowrap; }

.screen { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 0.92rem; }
.screen-bar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; padding: 0.5rem 0.85rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.screen-body { padding: 1rem; display: grid; gap: 0.9rem; }
.msg { padding: 0.6rem 0.8rem; border-radius: 10px; max-width: 94%; }
.msg.you { background: var(--give-bg); justify-self: end; border-bottom-right-radius: 3px; }
.msg.claude { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 3px; }
.msg b { display: block; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }

/* Raportti */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.7rem; display: grid; gap: 0.1rem; }
.kpi span { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.kpi strong { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--ok); }
.kpi em.flat { color: var(--muted); }
.chart { display: grid; gap: 0.25rem; }
.chart svg { width: 100%; height: auto; display: block; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.2rem; }
.cols2 h4 { font-size: 0.85rem; margin-bottom: 0.35rem; }
.cols2 ul { padding-left: 1.05rem; display: grid; gap: 0.35rem; font-size: 0.88rem; }

/* Tekoälyhaun vastaus */
.ask .q { font-weight: 600; }
.ask .a { background: var(--surface-2); border-radius: 8px; padding: 0.7rem 0.85rem; font-size: 0.92rem; }
.miss { color: var(--bad); font-weight: 600; font-size: 0.9rem; }

/* Ennen ja jälkeen */
.diff { display: grid; gap: 0.5rem; }
.diff .row { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; font-size: 0.9rem; }
.diff .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.diff .old { color: var(--muted); text-decoration: line-through; }
mark { background: var(--hl); color: var(--fg); padding: 0 0.15rem; border-radius: 3px; }
.checks { list-style: none; padding: 0; display: grid; gap: 0.4rem; font-size: 0.88rem; }
.checks li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.45rem; }
.checks svg { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; }
.btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn { font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--hero-fg); }

/* Vaiheet */
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; counter-reset: f; margin-bottom: 1.4rem; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 0.95rem; display: grid; gap: 0.3rem; align-content: start; font-size: 0.93rem; }
.flow li::before { counter-increment: f; content: counter(f); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--brand-ink); }
.flow li span { color: var(--muted); font-size: 0.85rem; }

/* Tiketit */
.tickets { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.tl-list { list-style: none; padding: 0; display: grid; }
.tl-list li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 0.7rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.tl-list li:first-child { border-top: 0; padding-top: 0; }
.tl-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket .view { font-weight: 600; color: var(--brand-ink); text-decoration: underline; }
.ticket .warn { color: var(--bad); }

/* Asiakaspolku */
.journey td:first-child { font-weight: 500; }
.state { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--surface-2); color: var(--brand-ink); white-space: nowrap; }
.state.hot { background: var(--give-bg); color: var(--give-ink); }

/* Hinnoittelu */
.prices { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; display: grid; gap: 0.8rem; align-content: start; }
.price:first-child { border-color: var(--brand); border-width: 2px; }
.amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.amount small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--muted); }
.incl { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.incl li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.4rem; }
.incl li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pnote { color: var(--muted); font-size: 0.92rem; }
.tiers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.tiers li { padding: 1.2rem 1.3rem; display: grid; gap: 0.4rem; align-content: start; border-left: 1px solid var(--line); }
.tiers li:first-child { border-left: 0; }
.tiers h3 { font-size: 1.05rem; font-weight: 600; }
.tiers p { color: var(--muted); font-size: 0.95rem; }

/* Esite ja diat esimerkkiyrityksen brändissä */
.pages { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.a4 { width: min(100%, 250px); aspect-ratio: 210 / 297; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; overflow: hidden; font-size: 9.5px; line-height: 1.4; }
.a4 .band { background: var(--ex-brand); color: var(--paper); padding: 10px 12px; display: grid; gap: 4px; }
.a4 .logo { font-weight: 700; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ex-accent); }
.a4 .ttl { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.15; }
.a4 .img { flex: 0 0 26%; background: linear-gradient(135deg, var(--ex-soft), var(--ex-accent)); display: grid; place-items: center; color: var(--ex-brand); font-weight: 600; font-size: 8px; }
.a4 .in { padding: 10px 12px; display: grid; gap: 7px; align-content: start; flex: 1; }
.a4 .boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.a4 .boxes div { background: var(--ex-soft); border-radius: 3px; padding: 5px; font-size: 8px; }
.a4 .boxes b { display: block; color: var(--ex-brand); font-size: 8.5px; }
.a4 h5 { margin: 0; font-family: var(--font-display); color: var(--ex-brand); font-size: 10.5px; }
.a4 table { width: 100%; border-collapse: collapse; font-size: 8.5px; }
.a4 td { padding: 3px 0; border-bottom: 1px solid var(--ex-soft); }
.a4 td:last-child { text-align: right; font-weight: 600; }
.a4 .foot { margin-top: auto; background: var(--ex-soft); padding: 7px 12px; font-size: 8px; color: var(--paper-muted); }
.slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.slide { aspect-ratio: 16 / 9; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); padding: 7% 8% 9%; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; font-size: 8.5px; line-height: 1.35; }
.slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5%; background: var(--ex-brand); }
.slide h5 { margin: 0; font-family: var(--font-display); color: var(--ex-brand); font-size: 11px; line-height: 1.2; }
.slide.cover { background: var(--ex-brand); color: var(--paper); justify-content: center; }
.slide.cover h5 { color: var(--paper); font-size: 13px; }
.slide.cover::after { background: var(--ex-accent); }
.slide .subt { color: var(--ex-accent); font-weight: 600; }
.slide ul { padding-left: 11px; display: grid; gap: 2px; }
.slide .tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-top: 4px; }
.slide .tl div { border-top: 3px solid var(--ex-accent); padding-top: 3px; font-size: 7.5px; }
.slide .tl b { display: block; color: var(--ex-brand); }
.slide .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.slide .three div { background: var(--ex-soft); border-radius: 3px; padding: 4px; font-size: 7.5px; }
.slide .bars { display: flex; align-items: flex-end; gap: 6px; height: 45%; margin-top: 2px; }
.slide .bars div { flex: 1; background: var(--ex-brand); border-radius: 2px 2px 0 0; }
.slide .bars div.hi { background: var(--ex-accent); }
.slide .num { color: var(--paper-muted); font-size: 7px; position: absolute; right: 6%; bottom: 8%; }

/* Video */
.vids { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: flex-start; }
.vidcol { display: grid; gap: 0.45rem; flex: 1 1 260px; min-width: 0; }
.vidcol.narrow { flex: 0 0 150px; }
.vid16 { aspect-ratio: 16 / 9; position: relative; background: var(--ex-soft); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--paper-ink); }
.vlogo { position: absolute; top: 6%; left: 4%; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); background: var(--ex-brand); padding: 2px 6px; border-radius: 3px; }
.vapp { position: absolute; left: 18%; right: 18%; top: 20%; bottom: 26%; background: var(--paper); border-radius: 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); padding: 5% 6%; display: grid; gap: 6px; align-content: start; }
.vapp i { display: block; height: 6px; border-radius: 3px; background: var(--ex-soft); }
.vapp i.short { width: 60%; }
.vapp b { justify-self: start; font-size: 9px; background: var(--ex-brand); color: var(--paper); padding: 3px 8px; border-radius: 4px; }
.vsub { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6%; background: var(--video-sub-bg); color: var(--video-sub-fg); font-size: 10px; line-height: 1.3; padding: 3px 8px; border-radius: 3px; width: max-content; max-width: 92%; text-align: center; }
.vprog { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.vprog span { display: block; height: 100%; background: var(--ex-accent); }
.chapters { list-style: none; padding: 0; display: grid; gap: 2px; font-size: 0.85rem; }
.chapters span { display: inline-block; width: 2.6rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vid9 { aspect-ratio: 9 / 16; position: relative; background: var(--ex-brand); color: var(--paper); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 12%; }
.vid9 .vlogo { background: var(--ex-accent); color: var(--ex-brand); }
.vid9 b { font-family: var(--font-display); font-size: 15px; line-height: 1.15; }
.vid9 .vcta { align-self: flex-start; background: var(--ex-accent); color: var(--ex-brand); font-weight: 700; font-size: 10px; padding: 4px 9px; border-radius: 4px; }
.vid9 .vsub { bottom: 7%; width: 84%; }

@media (max-width: 900px) {
  .uses, .prices, .tickets, .docs { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tiers li { border-left: 0; border-top: 1px solid var(--line); }
  .tiers li:first-child { border-top: 0; }
  .io { grid-template-columns: minmax(0, 1fr); }
  .io-arrow { transform: rotate(90deg); justify-self: start; padding: 0 0 0 0.6rem; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .slide .tl span { display: none; }
  .tl-list li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

