/* KwotTalk · landing in the D4U Store (capability). Styles only what is inside <main class="kt">;
   the shell (css/shell.css) owns the header, the footer and the phone frame (.sh-phone), which is
   only sized and placed here, never restyled.
   Brand: navy, safety orange, night, container blue, steel and mist (docs/16 and the brand manual).
   Colors come only from css/tokens.css, generated from the app's tokens.json (--kt-<token>, light
   and dark); this file names them for the page. Archivo 800 for the wordmark and headings, the
   system font for text. The logo's bars and lines are the page's motif. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Page color ← app token. Where light and dark take different tokens, the dark ones are below. */
  --kt-bg: var(--kt-surface); --kt-tint: color-mix(in srgb, var(--kt-band-bg) 77%, var(--kt-surface)); --kt-ink: var(--kt-text-primary); --kt-muted: var(--kt-text-secondary);
  --kt-card: var(--kt-surface); --kt-line: var(--kt-separator);
  --kt-navy: var(--kt-brand-ground); --kt-navy-ink: var(--kt-on-brand); --kt-navy-muted: var(--kt-on-brand-secondary);
  --kt-kicker: var(--kt-accent-text); --kt-link: var(--kt-kicker);
  --kt-mark: var(--kt-flag-bg); --kt-band: var(--kt-brand-ground);
  --kt-band-card: color-mix(in srgb, var(--kt-on-brand) 5%, transparent); --kt-band-line: color-mix(in srgb, var(--kt-on-brand) 14%, transparent);
  --kt-shadow: 0 30px 60px -28px color-mix(in srgb, var(--kt-brand-ground) 45%, transparent);

  /* Not from the app: neutral, no token. */
  --web-shadow-ink: #000000;        /* black for shadows in dark mode */

  --kt-brand: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --kt-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kt-bg: var(--kt-background);
    --kt-tint: color-mix(in srgb, var(--kt-surface) 47%, var(--kt-background)); --kt-mark: color-mix(in srgb, var(--kt-accent) 16%, transparent); --kt-band: var(--kt-surface);
    --kt-shadow: 0 30px 60px -28px color-mix(in srgb, var(--web-shadow-ink) 80%, transparent);
  }
}
:root[data-theme="dark"] {
    --kt-bg: var(--kt-background);
    --kt-tint: color-mix(in srgb, var(--kt-surface) 47%, var(--kt-background)); --kt-mark: color-mix(in srgb, var(--kt-accent) 16%, transparent); --kt-band: var(--kt-surface);
    --kt-shadow: 0 30px 60px -28px color-mix(in srgb, var(--web-shadow-ink) 80%, transparent);
}

body { margin: 0; background: var(--kt-bg); }
.kt { display: block; background: var(--kt-bg); color: var(--kt-ink); font: 400 var(--sh-fs-body)/1.6 var(--kt-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
.kt *, .kt *::before, .kt *::after { box-sizing: border-box; }
.kt img { display: block; max-width: 100%; }
.kt :not(.sh-phone, .sh-tablet) > img { height: auto; }
.kt a { color: var(--kt-link); }
.kt a:focus-visible { outline: 3px solid var(--kt-accent); outline-offset: 3px; border-radius: 6px; }
.kt ul, .kt ol { list-style: none; margin: 0; padding: 0; }
.kt p, .kt figure, .kt blockquote, .kt dl, .kt dd { margin: 0; }
.kt-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
/* Same left edge as the other sections; only the line length is limited. */
.kt-narrow > * { max-width: 760px; }
.kt h1, .kt h2, .kt h3 { margin: 0; font-family: var(--kt-brand); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
.kt h2 { font-size: var(--sh-fs-h2); }
.kt h3 { font-size: var(--sh-fs-h3); letter-spacing: -.015em; line-height: 1.15; }
.kt-kicker { font: 700 var(--sh-fs-label)/1.3 var(--kt-body); letter-spacing: .14em; text-transform: uppercase; color: var(--kt-kicker); }
.kt-lead { font-size: var(--sh-fs-lead); line-height: 1.55; color: var(--kt-muted); max-width: 680px; text-wrap: pretty; }
/* Every section is a full-width band with the same vertical rhythm, alternating white and tint. */
.kt-section { padding: 96px 0; background: var(--kt-bg); }
.kt-tint { background: var(--kt-tint); }
/* The same header in every band, stacked: kicker, heading, then the lead across the whole container
   (no 760 px column leaving an empty space on the right). Size and leading keep the line readable. */
.kt-split { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.kt-split-head { display: flex; flex-direction: column; gap: 14px; }
.kt-split-body { display: flex; flex-direction: column; gap: 16px; }
.kt-split-body .kt-lead { max-width: none; line-height: 1.65; }
.kt-split:last-child { margin-bottom: 0; }
.kt-ico { display: block; width: 26px; height: 26px; flex: none; }
.kt-motif { display: block; width: 100%; height: auto; color: var(--kt-on-brand); }

/* Buttons and status */
.kt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kt .kt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 600 var(--sh-fs-button)/1 var(--kt-body); text-decoration: none; }
.kt .kt-btn--primary { background: var(--kt-accent); color: var(--kt-on-accent); }
.kt .kt-btn--ghost { color: var(--kt-navy-ink); border: 1.5px solid color-mix(in srgb, var(--kt-on-brand) 45%, transparent); }
.kt .kt-btn--ghost:hover { border-color: var(--kt-on-brand); }
.kt-status { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--kt-navy-muted); font-size: var(--sh-fs-small); }
.kt-status span + span::before { content: "·"; margin-right: 14px; color: color-mix(in srgb, var(--kt-on-brand) 40%, transparent); }
.kt-status .kt-pill + span::before { content: none; }
.kt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--kt-on-brand) 30%, transparent); font-weight: 700; font-size: var(--sh-fs-label); color: var(--kt-on-brand); }
.kt-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kt-accent); }

/* Hero: navy ground, the logo's motif in the background, three real screens in the shell frame */
.kt-hero { position: relative; background: var(--kt-navy); color: var(--kt-navy-ink); padding: 72px 0 104px; overflow: hidden; }
.kt-hero-motif { position: absolute; inset: 0; pointer-events: none; opacity: .07; }
.kt-hero-motif .kt-motif { position: absolute; width: 520px; }
.kt-hero-motif .kt-motif:nth-child(1) { right: 22%; top: -150px; width: 380px; }
.kt-hero-motif .kt-motif:nth-child(2) { right: -140px; bottom: -120px; width: 640px; }
.kt-hero-motif .kt-motif:nth-child(3) { display: none; }
.kt-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.kt-hero-text { display: flex; flex-direction: column; gap: 22px; }
.kt-app { display: flex; align-items: center; gap: 14px; }
.kt-app img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--kt-on-brand) 12%, transparent); }
.kt-word { font: 800 var(--sh-fs-h2)/1 var(--kt-brand); letter-spacing: -.02em; white-space: nowrap; }
.kt-word span { color: var(--kt-accent); }
.kt-hero .kt-kicker { color: var(--kt-accent); }
.kt-hero h1 { font-size: var(--sh-fs-display); }
.kt-hero .kt-lead { color: var(--kt-navy-muted); max-width: none; }
.kt-hero-art { display: flex; justify-content: center; align-items: center; padding: 24px 0 40px; --kt-phone: clamp(150px, 15vw, 220px); }
.kt-hero-art .sh-phone { --sh-phone-w: var(--kt-phone); flex: none; }
.kt-hero-art .kt-p1 { transform: translate(18%, 6%) rotate(-6deg); z-index: 1; }
.kt-hero-art .kt-p2 { --sh-phone-w: calc(var(--kt-phone) * 1.12); z-index: 2; }
.kt-hero-art .kt-p3 { transform: translate(-18%, 6%) rotate(6deg); z-index: 1; }

/* The idea: a diagram, clearly not a screenshot, from a sentence to the items */
.kt-flow { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.15fr); gap: 0; align-items: stretch; }
.kt-say, .kt-quote { border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.kt-say { background: var(--kt-navy); color: var(--kt-on-brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kt-on-brand) 10%, transparent); }
.kt-quote { background: var(--kt-card); border: 2px dashed var(--kt-line); }
.kt-flow-label { font: 700 var(--sh-fs-label)/1.3 var(--kt-body); letter-spacing: .14em; text-transform: uppercase; color: var(--kt-accent); }
.kt-quote .kt-flow-label { color: var(--kt-kicker); }
.kt-say-wave { display: flex; align-items: center; gap: 5px; height: 48px; color: var(--kt-on-brand); }
.kt-say-wave span { display: block; width: 5px; border-radius: 3px; background: currentColor; opacity: .85; }
.kt-say-wave span:nth-child(3n) { background: var(--kt-accent); opacity: 1; }
.kt-say-wave .h2 { height: 20%; } .kt-say-wave .h3 { height: 30%; } .kt-say-wave .h4 { height: 40%; } .kt-say-wave .h5 { height: 50%; }
.kt-say-wave .h6 { height: 60%; } .kt-say-wave .h7 { height: 70%; } .kt-say-wave .h8 { height: 80%; } .kt-say-wave .h9 { height: 90%; } .kt-say-wave .h10 { height: 100%; }
.kt-say-text { font: 400 var(--sh-fs-lead)/1.55 var(--kt-body); color: var(--kt-on-brand); }
.kt-say-text mark { background: color-mix(in srgb, var(--kt-accent) 22%, transparent); color: var(--kt-on-brand); border-radius: 6px; padding: 0 4px; box-shadow: inset 0 -2px 0 var(--kt-accent); }
.kt-flow-arrow { position: relative; display: grid; place-items: center; padding: 0 12px; }
.kt-flow-arrow::before { content: ""; position: absolute; left: 12px; right: 22px; top: 50%; height: 3px; background: repeating-linear-gradient(90deg, var(--kt-accent) 0 10px, transparent 10px 16px); }
.kt-flow-arrow::after { content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; border-top: 3px solid var(--kt-accent); border-right: 3px solid var(--kt-accent); transform: translateY(-50%) rotate(45deg); }
.kt-flow-arrow span { position: relative; z-index: 1; padding: 6px 10px; border-radius: 12px; background: var(--kt-tint); color: var(--kt-ink); font-size: var(--sh-fs-label); font-weight: 700; line-height: 1.3; text-align: center; }
.kt-quote-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.kt-quote-meta div { display: flex; flex-direction: column; gap: 2px; }
.kt-quote-meta dt { font-size: var(--sh-fs-label); color: var(--kt-muted); }
.kt-quote-meta dd { font-weight: 700; }
/* Items table: every cell padded; highlighted rows are rounded and sit inside the card's padding;
   numbers right-aligned with tabular figures; header, rows and subtotal share the same columns. */
.kt-items { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin: -6px 0; font-size: var(--sh-fs-body); font-variant-numeric: tabular-nums; }
.kt-items th, .kt-items td { padding: 11px 14px; text-align: right; }
.kt-items th:first-child, .kt-items td:first-child { text-align: left; }
.kt-items thead th { padding-top: 4px; padding-bottom: 4px; font-size: var(--sh-fs-label); font-weight: 600; color: var(--kt-muted); }
.kt-items tbody td { background: var(--kt-mark); }
.kt-items tbody td:first-child { font-weight: 600; border-radius: 12px 0 0 12px; }
.kt-items tbody td:last-child { border-radius: 0 12px 12px 0; }
.kt-items td:not(:first-child), .kt-items th:not(:first-child) { white-space: nowrap; }
.kt-items tfoot th, .kt-items tfoot td { padding-top: 14px; border-top: 1px solid var(--kt-line); font: 800 var(--sh-fs-h3)/1.2 var(--kt-brand); }
.kt-items tfoot td { color: var(--kt-kicker); }
.kt-flow figcaption { grid-column: 1 / -1; margin-top: 32px; font-size: var(--sh-fs-small); color: var(--kt-muted); }

/* The challenge */
.kt-split-body .kt-lead:only-child { color: var(--kt-ink); }

/* What we built: pieces with icons, then the real screens in a row */
.kt-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kt-piece { background: var(--kt-tint); border: 1px solid var(--kt-line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.kt-piece-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--kt-accent); color: var(--kt-on-accent); }
.kt-piece p { color: var(--kt-muted); }
.kt .kt-piece .kt-platforms { margin-top: auto; font-size: var(--sh-fs-small); font-weight: 700; color: var(--kt-ink); }
.kt-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; justify-items: center; }
.kt-screen { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.kt-screen .sh-phone { --sh-phone-w: 240px; margin-bottom: 40px; } /* clear of the frame's shadow */
.kt-screen p { color: var(--kt-muted); font-size: var(--sh-fs-small); line-height: 1.5; max-width: 260px; }

/* What we did: one clean row of tags */
.kt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-tag { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--kt-ink); font-weight: 700; font-size: var(--sh-fs-label); white-space: nowrap; }

/* Highlights: the dark band, numbered, with the logo's motif */
.kt-band { position: relative; background: var(--kt-band); color: var(--kt-on-brand); overflow: hidden; }
.kt-band-motif { position: absolute; right: -80px; top: 40px; width: 420px; opacity: .08; pointer-events: none; }
.kt-band .kt-wrap { position: relative; }
.kt-band .kt-kicker { color: var(--kt-accent); }
.kt-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kt-highlight { border: 1px solid var(--kt-band-line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; background: var(--kt-band-card); }
.kt-highlight p { color: var(--kt-navy-muted); }
.kt-highlight-top { display: flex; justify-content: space-between; align-items: center; color: var(--kt-accent); }
.kt-highlight-top span { font: 800 var(--sh-fs-label)/1 var(--kt-brand); letter-spacing: .04em; }

/* Close: one orange block, one action */
.kt-close .kt-wrap { background: var(--kt-accent); color: var(--kt-on-accent); border-radius: 36px; padding: 56px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.kt-close h2 { max-width: 640px; }
.kt-close p { margin-top: 12px; font-size: var(--sh-fs-lead); max-width: 560px; }
.kt .kt-close .kt-btn { background: var(--kt-brand-ground); color: var(--kt-on-brand); }
.kt .kt-close .kt-btn:hover { background: color-mix(in srgb, var(--kt-on-brand) 10%, var(--kt-brand-ground)); }
.kt-close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kt .kt-close .kt-btn--on-accent { background: transparent; color: var(--kt-on-accent); box-shadow: inset 0 0 0 2px var(--kt-on-accent); }
.kt .kt-close .kt-btn--on-accent:hover { background: color-mix(in srgb, var(--kt-on-accent) 14%, transparent); }

/* Narrow screens */
@media (max-width: 900px) {
  .kt-hero-in { grid-template-columns: 1fr; }
  .kt-hero-art { --kt-phone: clamp(110px, 28vw, 190px); }
  .kt-flow { grid-template-columns: 1fr; }
  .kt-flow-arrow { min-height: 92px; }
  .kt-flow-arrow::before { left: 50%; right: auto; top: 10px; bottom: 22px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--kt-accent) 0 10px, transparent 10px 16px); }
  .kt-flow-arrow::after { left: 50%; right: auto; top: auto; bottom: 10px; transform: translateX(-50%) rotate(135deg); }
  .kt-pieces, .kt-highlights { grid-template-columns: 1fr; }
  .kt-screens { gap: 12px; }
  .kt-screen .sh-phone { --sh-phone-w: clamp(96px, 28vw, 220px); margin-bottom: 24px; }
  .kt-screen p { display: none; }
  .kt-section { padding: 64px 0; }
  .kt-split { margin-bottom: 36px; }
  .kt-close .kt-wrap { padding: 36px 26px; }
}
@media (max-width: 480px) {
  .kt-hero-motif { opacity: .04; }
  .kt-hero-motif .kt-motif:nth-child(1) { display: none; }
  .kt-status span + span::before { content: none; }
  .kt-say, .kt-quote { padding: 22px; border-radius: 22px; }
  .kt-items th, .kt-items td { padding: 10px 10px; }
  .kt-items .kt-col-price { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .kt .kt-btn { transition: background-color .2s, border-color .2s; }
}
.kt-band .kt-lead, .kt-band .kt-split-body .kt-lead:only-child { color: var(--kt-navy-muted); }
