/* Trade As Planned — theme, 30-09-2026.
   Chosen by ChatGPT among three /seivarianti variants: variant 2 (Impeccable, "signed contract, two inks")
   as structure and type, with variant 1's dark Telegram chat, plus five changes (a no-bot line in the hero,
   a proof excerpt in the first screen, red only for a real deviation, numbers in the reading face, fixed
   phone order). Loaded after site.css, whose layout primitives it overrides. Motion follows apple-design:
   feedback on press, only opacity and transform, nothing loops, reduced motion = instant. */

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/librefranklin-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: "Libre Franklin"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/librefranklin-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/assets/fonts/besley-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: "Besley"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/assets/fonts/besley-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Besley"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/besley-italic-latin.woff2) format("woff2"); }

/* ---------- tokens: light ---------- */
:root {
  --ground: #ffffff;
  --panel: #f3f5f8;
  --paper: #ffffff;
  --ink: #0f1420;
  --ink-2: #394150;
  --ink-3: #5a6372;
  --line: #d6dbe2;
  --line-2: #e8ebf0;
  --rule: #0f1420;
  --accent: #1f3aa6;
  --accent-press: #172d86;
  --accent-soft: rgba(31, 58, 166, 0.08);
  --select: #d8dffa;
  --bad: #b3261e;
  --bad-soft: rgba(179, 38, 30, 0.08);
  --shadow: 0 1px 2px rgba(15, 20, 32, 0.06), 0 10px 28px rgba(15, 20, 32, 0.08);
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Besley", Georgia, "Times New Roman", serif;
  --mono: var(--sans);
  --device: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* the session is a screen: Telegram night, the same in both themes */
  --screen: #0e1621;
  --screen-edge: #0e1621;
  --screen-bubble: #182533;
  --screen-out: #2b5278;
  --screen-ink: #f1f4f7;
  --screen-dim: #8da2b5;
  --screen-red: #ff7b7b;
  --field: #1f3aa6;
  --field-ink: #ffffff;
  --field-ink-2: #dfe5ff;
  --r-control: 4px;
  --r-screen: 20px;
  --r-bubble: 16px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

/* ---------- tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0b0f17;
    --panel: #121824;
    --paper: #161d2a;
    --ink: #eceff4;
    --ink-2: #b9c1cd;
    --ink-3: #8e98a7;
    --line: #283142;
    --line-2: #1d2432;
    --rule: #d5dbe4;
    --accent: #9db0ff;
    --accent-press: #b9c7ff;
    --accent-soft: rgba(157, 176, 255, 0.12);
    --select: #2c3b78;
    --bad: #ff8a7d;
    --bad-soft: rgba(255, 138, 125, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.45);
    --screen-edge: #2a3850;
    --field: #16235c;
    --field-ink: #eef1ff;
    --field-ink-2: #c4ccf2;
  }
}

/* ---------- base ---------- */
html { scrollbar-color: var(--ink-3) var(--ground); }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; padding-inline: var(--gutter);
  font-kerning: normal; text-rendering: optimizeLegibility;
}
::selection { background: var(--select); color: var(--ink); }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fig { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- header (shared with the builder) ---------- */
.site-head { padding-block: 10px; gap: 2px 28px; border-bottom: 1px solid var(--line); }
.brand {
  min-height: 48px; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 21px;
  letter-spacing: -0.012em; line-height: 1.1;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { gap: 0 26px; font-size: 16px; font-weight: 500; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: transparent;
  transition: color 0.15s ease-out, text-decoration-color 0.15s ease-out;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- page grid ---------- */
.page {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 96px);
  padding-block: clamp(36px, 5vw, 64px) 0;
}

/* ---------- title block ---------- */
.hero { gap: 0; max-width: none; align-content: start; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 9.4vw, 64px); line-height: 1.02;
  letter-spacing: -0.022em; color: var(--ink); text-wrap: balance;
}
.hero .audience {
  margin: 22px 0 0; padding-top: 16px; border-top: 2px solid var(--rule);
  font-size: clamp(18px, 1.5vw, 20px); font-weight: 600; line-height: 1.35; color: var(--ink);
}
.hero p:not(.audience):not(.trustline) {
  margin-top: 10px; max-width: 34em; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55;
  color: var(--ink-2); text-wrap: pretty;
}
.hero .actions { margin-top: 30px; gap: 14px 22px; }
.hero .note { font-size: 15px; line-height: 1.45; color: var(--ink-3); max-width: 22em; }
.hero .trustline {
  margin: 22px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.trustline span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.trustline span::before {
  content: ""; flex: none; width: 15px; height: 15px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn {
  min-height: 52px; padding: 13px 24px; border-radius: var(--r-control);
  font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: 0;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 100ms ease-out;
}
.btn:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn:active { transform: translateY(1px); }
.btn.ghost:hover { background: var(--accent-soft); }

/* ---------- the proof, in the first screen ---------- */
.proof {
  display: grid; gap: 10px 32px; align-items: center;
  background: var(--screen); border: 1px solid var(--screen-edge); border-radius: var(--r-screen);
  padding: 18px 16px;
}
.proof .msg { max-width: 640px; margin: 0; }
.proof .caption {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--screen-dim);
}
@media (min-width: 760px) {
  .proof { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding: 22px 28px; }
}

/* ---------- section titles ---------- */
.section-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(27px, 2.5vw, 34px); line-height: 1.12;
  letter-spacing: -0.012em; margin: 0 0 8px; padding-top: 18px; border-top: 2px solid var(--rule);
}

/* ---------- the three articles ---------- */
.steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
.step {
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 20px 0 22px; gap: 6px;
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step .n {
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.step h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); }
.step p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

/* ---------- the session: copy + screen ---------- */
.split { gap: 28px clamp(40px, 6vw, 96px); }
.split .copy .section-title { margin-bottom: 16px; }
.split .copy p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 34em; margin: 0 0 14px; text-wrap: pretty; }
.split .copy p:last-child { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

.chat {
  font-family: var(--device); color: var(--screen-ink); background: var(--screen);
  border: 1px solid var(--screen-edge); border-radius: 24px; box-shadow: none;
  padding: 20px 16px 24px; gap: 8px;
}
.chat .label {
  justify-self: center; text-align: center; max-width: 92%;
  font-family: var(--device); font-size: 13px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0; text-transform: none; color: #dfe7ef;
  background: rgba(255, 255, 255, 0.08); border-radius: 13px; padding: 4px 12px; margin: 0 0 8px;
}
.msg {
  position: relative; justify-self: start; max-width: min(86%, 460px);
  background: var(--screen-bubble); color: var(--screen-ink);
  border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 5px; padding: 8px 13px 23px;
  font-family: var(--device); font-size: 16px; line-height: 1.42;
}
.msg .t {
  position: absolute; right: 11px; bottom: 6px; margin: 0;
  font-family: var(--device); font-size: 12px; line-height: 1; color: var(--screen-dim);
  font-variant-numeric: tabular-nums;
}
.msg strong { font-weight: 600; }
.msg.red { border: 1.5px solid var(--screen-red); }
.msg.red strong { color: var(--screen-red); }
.msg.me {
  justify-self: end; background: var(--screen-out); color: #ffffff; border: 0;
  border-radius: var(--r-bubble) var(--r-bubble) 5px var(--r-bubble); padding: 8px 13px;
}
.pill {
  font-family: var(--device); font-size: 13px; line-height: 1.5; padding: 3px 10px; margin: 9px 6px 0 0;
  border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.09); color: #cbd7e3;
}
@media (prefers-color-scheme: dark) {
  .chat, .proof { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.45); }
}

/* ---------- what it will never do ---------- */
[aria-labelledby="never-h"] { display: grid; gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
.never { grid-template-columns: minmax(0, 1fr); gap: 0; }
.never li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0 20px;
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
}
.never li strong {
  display: block; margin: 0; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.3;
  color: var(--ink);
}

/* ---------- closing field ---------- */
.closing {
  background: var(--field); color: var(--field-ink); border: 0; border-radius: 0;
  padding: clamp(48px, 8vw, 104px) 0; gap: 18px; justify-items: start;
  box-shadow: 0 0 0 100vmax var(--field); clip-path: inset(0 -100vmax);
}
.closing .line {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--field-ink); max-width: 13em; text-wrap: balance;
}
.closing p { color: var(--field-ink-2); font-size: 18px; line-height: 1.55; max-width: 32em; }
.closing .btn { background: var(--field-ink); border-color: var(--field-ink); color: var(--field); }
.closing .btn:hover { background: var(--field-ink-2); border-color: var(--field-ink-2); }
.closing :focus-visible { outline-color: var(--field-ink); }

/* ---------- footer (shared with the builder) ---------- */
.site-foot { gap: 6px; padding-block: 28px 48px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.site-foot strong { color: var(--ink); font-weight: 600; }
.page:has(> .closing:last-child) + .site-foot { margin-top: 0; border-top: 0; }

/* ---------- widths ---------- */
@media (max-width: 640px) {
  .site-nav { margin-left: 0; width: 100%; }
  .hero .actions { display: grid; justify-items: stretch; }
  .hero .btn, .closing .btn { justify-content: center; }
  .closing { justify-items: stretch; }
  .chat, .proof { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; }
}
@media (min-width: 720px) and (max-width: 1079px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .step, .step:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  [aria-labelledby="never-h"] { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .never li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 32px; }
  .never li:first-child { border-top: 2px solid var(--rule); }
  .closing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .closing .line { grid-row: 1 / span 2; align-self: start; }
  .closing p, .closing .btn { grid-column: 2; }
}
@media (min-width: 1080px) {
  .page { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .page > * { grid-column: 1 / -1; }
  .page > .hero { grid-column: 1; grid-row: 1; }
  .page > .proof { grid-column: 1; grid-row: 2; align-self: start; margin-top: calc(36px - clamp(64px, 8vw, 104px)); }
  .page > #how-it-works { grid-column: 2; grid-row: 1 / span 2; }
  .hero h1 { font-size: clamp(56px, 4.6vw, 68px); }
}

/* ---------- motion: the example session plays once, in order ---------- */
/* The messages are visible by default; home.js arms them only when the chat is still below the fold
   and the visitor has not asked for reduced motion. */
.chat.is-armed .msg { opacity: 0; transform: translateY(6px); }
.chat.is-armed.is-in .msg {
  opacity: 1; transform: none;
  transition: opacity 150ms ease-out, transform 150ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 420ms);
}
/* the red ring draws last, once its bubble is in */
.chat.is-armed .msg.red { border-color: transparent; }
.chat.is-armed.is-in .msg.red {
  border-color: var(--screen-red);
  transition: opacity 150ms ease-out, transform 150ms var(--ease-out), border-color 220ms ease-out;
  transition-delay: calc(var(--i, 0) * 420ms), calc(var(--i, 0) * 420ms), calc(var(--i, 0) * 420ms + 260ms);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .site-nav a { transition: none; }
  .btn:active { transform: none; }
  .chat.is-armed .msg, .chat.is-armed.is-in .msg { opacity: 1; transform: none; transition: none; }
  .chat.is-armed .msg.red { border-color: var(--screen-red); }
}
