/* =====================================================================
   Aivopesu — myyntisivun itsenäinen tyyli.
   »Vapautettu arkisto« -iho: tumma petroli-musta, kuulustelulampun amber,
   manila-lukukortit. Tokenit ja fontit kirjan css/book.css:n :root-lohkosta
   (Oswald / Spectral / Courier Prime). Sama luokkasanasto kuin sisarkirjojen
   myyntisivuilla, mutta tumma teema. Ei keinotekoista kiirettä, ei emojeja.
   ===================================================================== */

:root {
  --paper: #f1ece0;        /* lämmin manila (lukukortit) */
  --paper-2: #e7e0d0;
  --ink: #14191c;          /* viileä lähes-musta (sensuuripalkki) */

  --bg: #0f1518;           /* sivun pohja */
  --bg-2: #131f24;         /* nostetut osiot */
  --surface: #16242b;      /* kortit */
  --surface-2: #1b2e35;    /* nostetut kortit / inputit reuna */

  --accent: #b07d2b;       /* kuulustelulampun amber (kannen ydinväri) */
  --accent-bright: #d59a3e;/* kirkkaampi amber pienelle tekstille tummalla */
  --accent-2: #21474e;     /* syvä petrolinsininen */
  --accent-2-bright: #4d8893;

  --text: #e9e3d5;         /* leipäteksti tummalla */
  --text-strong: #f4f1ea;  /* otsikot */
  --muted: #9aa39d;        /* vaimea */
  --rule: rgba(244,241,234,0.12);
  --rule-strong: rgba(244,241,234,0.22);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", ui-monospace, "Courier New", monospace;

  /* Kannen ja osanvälilehtien tumma gradientti (sama kuin kirjassa) */
  --dark-grad: linear-gradient(155deg, #0e1519 0%, #15242b 55%, #1d3a40 105%);
  /* Arkistopisteverkko (sama motiivi kuin osanvälit) */
  --dots: repeating-radial-gradient(circle at 82% 18%, transparent 0 30px, rgba(176,125,43,0.045) 30px 32px);

  --maxw: 1080px;
  --maxw-text: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-bright); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; border-top: 1px solid var(--rule); position: relative; }
.section:first-of-type { border-top: 0; }
.section--narrow .wrap { max-width: var(--maxw-text); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--text-strong);
  margin: 0 0 24px;
}
.lead { font-size: clamp(19px, 2.4vw, 22px); color: var(--text); }

/* ---------- Yläpalkki: vain wordmark, ei navia ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: #0c1215;
  position: sticky; top: 0; z-index: 50;
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: baseline; gap: 14px;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.16em; color: var(--text-strong); text-decoration: none;
  text-transform: uppercase;
}
.wordmark__sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark-grad), var(--bg);
  color: var(--text-strong);
  padding: 70px 0 78px;
  position: relative;
  overflow: hidden;
}
.hero::before {  /* konsentriset renkaat: kannen hypnoosiväreily */
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 620px; height: 620px; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(176,125,43,0.07) 26px 28px);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle, #000 0%, transparent 68%);
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.hero__cover { order: -1; margin: 0 auto; max-width: 320px; width: 100%; }
.hero__cover img {
  width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(176,125,43,0.25),
              0 0 70px rgba(176,125,43,0.14);
}
.hero__kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent-bright); margin: 0 0 18px;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(46px, 9vw, 84px); line-height: 0.98;
  letter-spacing: 0.02em; margin: 0 0 8px; text-transform: uppercase;
  color: #fff;
}
.hero__sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.6vw, 23px); color: #cdd4cf; margin: 0 0 26px;
}
.hero__quote {
  font-family: var(--serif); font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5; color: var(--text-strong); margin: 0 0 30px;
  padding-left: 20px; border-left: 3px solid var(--accent);
}
.hero__seals {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.hero__seals span { display: inline-flex; align-items: center; gap: 8px; }
.hero__seals span::before { content: "■"; color: var(--accent); font-size: 9px; }

/* ---------- Painikkeet ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 16px; letter-spacing: 0.03em; text-decoration: none;
  padding: 15px 28px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-transform: uppercase;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #14110b; border-color: #d59a3e; }
.btn--accent:hover { background: var(--accent-bright); }
.btn--ghost { background: transparent; color: var(--text-strong); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn--dark { background: var(--accent-2); color: var(--text-strong); border-color: #2d5b63; }
.btn--dark:hover { background: var(--accent-2-bright); color: #0d1417; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Ennakko-urgenssipalkki ---------- */
.offer-strip {
  background:
    linear-gradient(0deg, rgba(176,125,43,0.14), rgba(176,125,43,0.14)),
    var(--bg-2);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.offer-strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding-top: 18px; padding-bottom: 18px;
}
.offer-strip__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #14110b; background: var(--accent);
  padding: 5px 12px; border-radius: 2px; font-weight: 700; white-space: nowrap;
}
.offer-strip__text {
  margin: 0; flex: 1 1 320px; font-size: 16px; color: var(--text-strong);
  font-family: var(--serif);
}
.offer-strip__cta {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none;
  color: #14110b; background: var(--accent); padding: 12px 22px; border-radius: 2px;
  border: 1px solid #d59a3e; white-space: nowrap;
}
.offer-strip__cta:hover { background: var(--accent-bright); }

/* ---------- 3 lupausta ---------- */
.promises { display: grid; grid-template-columns: 1fr; gap: 22px; }
.promise {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 3px solid var(--accent); padding: 28px 26px; border-radius: 2px;
}
.promise__num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: #14110b; background: var(--accent); display: inline-block;
  padding: 2px 9px; border-radius: 2px; margin: 0 0 14px; font-weight: 700;
}
.promise h3 {
  font-family: var(--display); font-weight: 600; font-size: 22px;
  margin: 0 0 10px; line-height: 1.2; color: var(--text-strong);
}
.promise p { margin: 0; font-size: 16.5px; color: var(--text); }

/* ---------- F.E.A.R. ---------- */
.section--fear { background: var(--bg-2); background-image: var(--dots); }
.fear__lead { max-width: 760px; margin: 0 0 34px; color: #cdd4cf; }
.fear { display: grid; grid-template-columns: 1fr; gap: 18px; }
.fear__card {
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 2px; padding: 24px 22px; position: relative;
}
.fear__letter {
  font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1;
  color: var(--accent); border: 2px solid var(--accent); border-radius: 3px;
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fear__en {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-bright); margin: 0 0 2px;
}
.fear__card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 8px; color: var(--text-strong); }
.fear__card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Rakenne: 7 osaa ---------- */
.arc {
  font-family: var(--mono); font-size: clamp(11px, 1.7vw, 14px);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2-bright);
  margin: 0 0 30px;
}
.arc b { color: var(--accent-bright); font-weight: 400; }
.parts { display: block; }
.part { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.part:first-child { padding-top: 0; }
.part__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-bright); margin: 0 0 6px;
}
.part__title { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 5px; color: var(--text-strong); }
.part__desc { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Esipuhe: manila-lukukortti (vapautettu dokumentti) ---------- */
.foreword .wrap { max-width: var(--maxw-text); }
.foreword__body {
  background: var(--paper); color: var(--ink);
  font-size: 18px; line-height: 1.78;
  padding: 40px 38px; border-radius: 2px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.foreword__body .first-letter::first-letter {
  font-family: var(--display); font-weight: 700; float: left;
  font-size: 3.4em; line-height: 0.82; padding: 6px 10px 0 0; color: var(--accent);
}
.foreword__body p { margin: 0 0 16px; }
.teach-h2 {
  font-family: var(--display); font-weight: 600; font-size: 19px;
  color: var(--accent-2); margin: 26px 0 8px;
}
.signoff { font-style: italic; color: #6b675d; text-align: right; margin-top: 24px; }

/* ---------- Sisällysluettelo ---------- */
.toc__part {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-bright);
  margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.toc__part:first-child { margin-top: 0; }
.toc__chapter {
  display: grid; grid-template-columns: 2.4em 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.toc__num { font-family: var(--mono); color: var(--accent-bright); font-size: 15px; font-weight: 700; }
.toc__title { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; color: var(--text-strong); }
.toc__anchor { margin: 5px 0 0; color: var(--muted); font-style: italic; font-size: 16px; }

/* ---------- Tilaus ---------- */
.order { background: var(--bg-2); background-image: var(--dots); }
.order__grid { display: grid; grid-template-columns: 1fr; gap: 38px; align-items: start; }

.price__offer {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright);
  border: 1.5px solid var(--accent); padding: 6px 12px; border-radius: 2px;
  margin: 0 0 16px; transform: rotate(-1.5deg); font-weight: 700;
}
.price { margin: 0 0 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price__now { font-family: var(--display); font-weight: 700; font-size: 52px; color: var(--accent-bright); line-height: 1; }
.price__old { font-size: 22px; color: var(--muted); text-decoration: line-through; }
.price__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2-bright); margin: 0 0 4px; }
.includes { list-style: none; padding: 0; margin: 22px 0; }
.includes li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px dashed var(--rule); color: var(--text); font-size: 16px; }
.includes li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px;
  background: var(--accent); border-radius: 50%;
}

/* Lomake */
.order-form {
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--accent); border-radius: 2px; padding: 28px 26px;
}
.order-form h3 { font-family: var(--display); font-weight: 700; margin: 0 0 8px; font-size: 23px; color: var(--text-strong); text-transform: uppercase; letter-spacing: 0.02em; }
.field { margin: 0 0 16px; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: 14px; margin: 0 0 6px; color: var(--text-strong); letter-spacing: 0.02em; }
.field .hint { font-weight: 400; color: var(--muted); font-family: var(--serif); font-size: 13px; text-transform: none; letter-spacing: 0; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field textarea {
  width: 100%; font-family: var(--serif); font-size: 16px; color: var(--text-strong);
  padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: #0e1519;
}
.field input::placeholder, .field textarea::placeholder { color: #6c736f; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field textarea { min-height: 90px; resize: vertical; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; }
.checkrow input { margin-top: 5px; accent-color: var(--accent); }
.checkrow label { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--text); }
.honeypot { position: absolute; left: -5000px; }
.gift-fields { display: none; padding: 16px; margin: 0 0 16px; background: var(--bg-2); border-left: 3px solid var(--accent); }
.gift-fields.is-open { display: block; }
.form-error {
  display: none; background: rgba(176,49,31,0.16); border: 1px solid #c0533f;
  color: #f0b9ad; padding: 12px 14px; border-radius: 2px; margin: 0 0 16px; font-size: 15px;
}
.form-error.is-visible { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.order .form-note strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display);
  font-weight: 600; font-size: 19px; color: var(--text-strong);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent-bright); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 20px; color: var(--text); margin: 0; max-width: var(--maxw-text); }

/* ---------- Ristiinmyynti ---------- */
.cross-sell {
  margin-top: 8px; background: var(--dark-grad); color: var(--text-strong);
  padding: 30px 28px; border-radius: 3px; border: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center; justify-items: center; text-align: center;
}
.cross-sell__cover { width: 160px; border-radius: 3px; box-shadow: 0 12px 32px rgba(0,0,0,0.55); }
.cross-sell .eyebrow { color: var(--accent-bright); }
.cross-sell h3 { font-family: var(--display); font-weight: 700; font-size: 25px; margin: 0 0 10px; }
.cross-sell p { color: #cdd4cf; margin: 0 0 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0f12; color: #8e948f; padding: 42px 0; font-size: 14px; border-top: 1px solid var(--rule); }
.site-footer a { color: #c2bdb2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--accent-bright); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__cred { font-family: var(--serif); font-style: italic; color: #6f756f; }

/* ---------- Reveal (esipuhe, sisällys): collapse vain JS:llä ---------- */
.reveal__btn { display: none; }
.reveal--js .reveal__btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: none; border: 1px solid var(--rule-strong); color: var(--accent-bright);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 2px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.03em;
}
.reveal--js .reveal__btn:hover { border-color: var(--accent); background: rgba(176,125,43,0.08); }
.reveal__chev { font-size: 12px; line-height: 1; }
.reveal--js:not(.is-open) .reveal__more { position: relative; max-height: 3.4em; overflow: hidden; }
.reveal--js:not(.is-open) .reveal__more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
/* Esipuheen reveal-fade manilaan (lukukortti), ei sivun pohjaan */
.foreword .reveal--js:not(.is-open) .reveal__more::after {
  background: linear-gradient(transparent, var(--paper));
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsiivisuus ---------- */
@media (min-width: 640px) {
  .fear { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .cross-sell { grid-template-columns: auto 1fr; gap: 30px; justify-items: start; text-align: left; }
}
@media (min-width: 720px) {
  .promises { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .fear { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { grid-template-columns: 1.12fr 0.88fr; gap: 56px; }
  .hero__cover { order: 1; max-width: 370px; }
  .order__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
