/* fraso.app: Direction A, "The box" (website/DESIGN.md). Nothing loads from other sites. */
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #2457c5;        /* Selection Blue: the box, the bubble, the action */
  --blue-ink: #1d4aa8;
  --blue-soft: #e3ebfb;
  --paper: #ffffff;
  --mist: #eef2f7;        /* Feed Mist: the thread's backdrop */
  --line: #e3e8ee;
  --field: #c9d3df;
  --ink: #18202b;
  --text-2: #39434f;
  --muted: #5a6675;
  --proof: #0b7a57;       /* Proof Green: checks and sources (5.3:1) */
  --amber: #a85f00;       /* Caution Amber: "likely a scam" (4.9:1) */
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 19px; font-weight: 700; text-decoration: none; }
.logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: #fff; }
.logo svg { width: 22px; height: 22px; }
.header-link { display: flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 500; text-decoration: none; }
.header-link:hover { text-decoration: underline; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(16px, 3vw, 40px) clamp(56px, 7vw, 104px); }
.hero-text { flex: 1 1 420px; min-width: 0; max-width: 560px; }
h1 { margin: 0 0 20px; font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.lead { max-width: 34em; margin: 0 0 28px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue-ink); }
.button[disabled] { opacity: .6; cursor: default; }
.status, .small { margin: 0; color: var(--muted); font-size: 15px; }

/* the demo: a thread, the box, the bubble, the goals, the reply */
.demo { flex: 1 1 400px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feed { display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 2.4vw, 28px); border-radius: 24px; background: var(--mist); }
.post { padding: 14px 16px; border-radius: 14px; background: #fff; }
.post p { margin: 0; font-size: 16px; }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 15px; }
.who .time { color: var(--muted); font-size: 14px; }
.avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #d9e1ec; color: var(--text-2); font-size: 14px; font-weight: 700; }
.avatar.warm { background: #e6ded3; }
.target { position: relative; margin: 6px 0 10px 26px; }
.box { position: absolute; inset: -8px; border: 2.5px dashed var(--blue); border-radius: 16px; pointer-events: none; clip-path: inset(0 0 0 0 round 16px); transition: clip-path 750ms cubic-bezier(.2, .7, .2, 1); }
.bubble { position: absolute; right: -20px; bottom: -22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(36, 87, 197, .35); transition: opacity 300ms ease, transform 350ms cubic-bezier(.3, 1.4, .5, 1); }
.bubble svg { width: 22px; height: 22px; }
.goals { display: flex; flex-wrap: wrap; gap: 8px; transition: opacity 350ms ease, transform 350ms ease; }
.goal { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 999px; background: #fff; font-size: 15px; }
.goal.on { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 500; }
.goal.check { border-color: var(--proof); color: var(--proof); font-weight: 500; }
.reply { padding: 16px; border-radius: 14px; background: #fff; transition: opacity 450ms ease, transform 450ms ease; }
.reply p { margin: 0 0 10px; font-size: 16px; }
.reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.copy { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); font-size: 15px; font-weight: 500; }
.replay { align-self: flex-end; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 15px; cursor: pointer; }
.replay:hover { text-decoration: underline; }
/* the one orchestrated moment: only when main.js sets data-stage (no script = the finished picture) */
.demo[data-stage="0"] .box { clip-path: inset(0 100% 100% 0 round 16px); }
.demo[data-stage="0"] .bubble, .demo[data-stage="1"] .bubble { opacity: 0; transform: scale(.4); }
.demo[data-stage="0"] .goals, .demo[data-stage="1"] .goals, .demo[data-stage="2"] .goals { opacity: 0; transform: translateY(8px); }
.demo[data-stage="0"] .reply, .demo[data-stage="1"] .reply, .demo[data-stage="2"] .reply, .demo[data-stage="3"] .reply { opacity: 0; transform: translateY(10px); }

/* reply, check, explain */
.band { border-top: 1px solid var(--line); }
.section { padding-block: clamp(56px, 7vw, 96px); }
h2 { margin: 0 0 clamp(32px, 4vw, 56px); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.jobs { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.job { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 64px); }
.job-text { flex: 1 1 300px; min-width: 0; max-width: 440px; }
h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.job-text p { margin: 0; color: var(--text-2); }
.example { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--mist); }
.picked { padding: 6px; border: 2px dashed var(--blue); border-radius: 14px; }
.picked .post { padding: 12px 14px; border-radius: 10px; }
.picked .name { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.result { padding: 14px; border-radius: 12px; background: #fff; }
.result p { margin: 0; font-size: 16px; }
.result .caption { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.result .verdict { margin: 0 0 6px; color: var(--amber); font-weight: 700; }
.result .sources { margin: 8px 0 0; color: var(--proof); font-size: 14px; }

/* the promise */
.promise { background: var(--mist); }
.promise .wrap { display: flex; flex-direction: column; gap: 6px; }
.promise p { margin: 0; font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.promise p:last-child { color: var(--blue); }

/* join the test */
.join { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.join-text { flex: 1 1 320px; min-width: 0; max-width: 460px; }
.join-text h2 { margin-bottom: 12px; }
.join-text p { margin: 0; color: var(--text-2); }
.contact { position: relative; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea { min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 132px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0; font-size: 16px; font-weight: 500; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-block: 14px 30px; color: var(--muted); font-size: 15px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* text pages: Impressum, privacy, sent, 404 */
.text-page { max-width: 720px; padding-block: 8px clamp(48px, 6vw, 80px); }
.text-page h1 { font-size: clamp(32px, 4vw, 44px); }
.text-page h2 { margin: 32px 0 10px; font-size: 22px; letter-spacing: 0; }
.text-page p, .text-page address { margin: 0 0 12px; font-style: normal; }
.text-page .small { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .box, .bubble, .goals, .reply { transition: none; }
}
