/* =====================================================================
   Joukkovaikuttamisen keinot — myyntisivun itsenäinen tyyli.
   Tokenit ja fontit kirjan css/book.css:n :root-lohkosta. Web-natiivi,
   ei B5-print-layoutia. Dokumentaarinen ja hillitty, ei keinotekoista
   kiirettä, ei emojeja. Kansi on koukku, teksti on todiste.
   ===================================================================== */

:root {
  --paper: #f4f1ea;        /* viileä luonnonvalkoinen */
  --ink: #17181c;          /* lähes musta, viileä */
  --accent: #b5321f;       /* eloisa tiilenpunainen (KEINOT-punainen) */
  --accent-dark: #8f2719;
  --accent-2: #2f4858;     /* liuskeensininen, toissijainen */
  --muted: #5f5d57;        /* vaimea */
  --rule: #d6d1c5;         /* ohutviiva */
  --paper-2: #ece8dd;      /* hieman tummempi paperi (kortit) */
  --paper-3: #e7e2d6;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* Kannen ja osanvälilehtien tumma gradientti (sama kuin kirjassa) */
  --dark-grad: linear-gradient(155deg, #141519 0%, #23262e 55%, #3a1d18 105%);

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

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section--narrow { }
.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);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.lead {
  font-size: clamp(19px, 2.4vw, 22px);
  color: var(--ink);
}

/* ---------- Yläpalkki: vain wordmark, ei navia ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: baseline; gap: 12px;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
}
.wordmark .kw { color: var(--accent); }
.wordmark__sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark-grad);
  color: var(--paper);
  padding: 64px 0 72px;
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
.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 18px 50px rgba(0,0,0,0.55);
}
.hero__kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #d98b7e; margin: 0 0 18px;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.04;
  letter-spacing: -0.015em; margin: 0 0 6px;
}
.hero__title .kw { color: var(--accent); }
.hero__sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.6vw, 23px); color: #cfcabf; margin: 0 0 26px;
}
.hero__quote {
  font-family: var(--serif); font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.45; color: var(--paper); margin: 0 0 28px;
  padding-left: 18px; border-left: 3px solid var(--accent);
}
.hero__seals {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #a8a299;
}
.hero__seals span { display: inline-flex; align-items: center; gap: 8px; }
.hero__seals span::before { content: "•"; color: var(--accent); }

/* ---------- 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.01em; text-decoration: none;
  padding: 15px 28px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--paper); border-color: var(--accent-dark); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(244,241,234,0.4); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); border-color: #000; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- 3 lupausta ---------- */
.promises { display: grid; grid-template-columns: 1fr; gap: 24px; }
.promise {
  background: var(--paper-2); 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: var(--accent); margin: 0 0 12px;
}
.promise h3 {
  font-family: var(--display); font-weight: 600; font-size: 21px;
  margin: 0 0 10px; line-height: 1.2;
}
.promise p { margin: 0; font-size: 16.5px; color: #34332e; }

/* ---------- Mitä kirja sisältää: 5 osaa ---------- */
.arc {
  font-family: var(--mono); font-size: clamp(12px, 1.7vw, 15px);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2);
  margin: 0 0 32px;
}
.arc b { color: var(--accent); font-weight: 500; }
.parts { display: block; }
.part {
  padding: 16px 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.16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.part__title { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 4px; }
.part__desc { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Esipuhe ---------- */
.foreword .wrap { max-width: var(--maxw-text); }
.foreword__body { font-size: 19px; line-height: 1.78; }
.foreword__body > p:first-of-type::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);
}
.signoff { font-style: italic; color: var(--muted); text-align: right; margin-top: 28px; }

/* ---------- Sisällysluettelo ---------- */
.toc__part {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  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-2); font-size: 15px; }
.toc__title { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; }
.toc__anchor { margin: 5px 0 0; color: var(--muted); font-style: italic; font-size: 16px; }
.toc__chapter--sample .toc__title::after {
  content: "Näyte"; font-family: var(--mono); font-style: normal;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); background: var(--accent); padding: 2px 7px;
  border-radius: 2px; margin-left: 10px; vertical-align: middle;
}

/* ---------- Tilaus ---------- */
.order { background: var(--paper-2); }
.order__grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start;
}
.price { margin: 0 0 22px; }
.price__now { font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--accent); }
.price__old { font-size: 22px; color: var(--muted); text-decoration: line-through; margin-left: 12px; }
.price__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin: 8px 0 0; }
.includes { list-style: none; padding: 0; margin: 22px 0; }
.includes li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--rule); }
.includes li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
}

/* Lomake */
.order-form {
  background: var(--paper); border: 1px solid var(--rule);
  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 6px; font-size: 22px; }
.field { margin: 0 0 16px; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-family: var(--serif); font-size: 13px; }
.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(--ink);
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 2px;
  background: #fdfcf9;
}
.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; }
.checkrow label { font-family: var(--serif); font-weight: 400; font-size: 15px; color: #34332e; }
.honeypot { position: absolute; left: -5000px; }
.gift-fields { display: none; padding: 16px; margin: 0 0 16px; background: var(--paper-2); border-left: 3px solid var(--accent); }
.gift-fields.is-open { display: block; }
.form-error {
  display: none; background: #f7e3df; border: 1px solid var(--accent);
  color: var(--accent-dark); 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; }

/* ---------- 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; display: flex; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 20px; color: #34332e; margin: 0; max-width: var(--maxw-text); }

/* ---------- Kirjoittajat + ristiinmyynti ---------- */
.authors__bio { font-size: 18px; }
.cross-sell {
  margin-top: 36px; background: var(--dark-grad); color: var(--paper);
  padding: 30px 28px; border-radius: 3px;
  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.5); }
.cross-sell .eyebrow { color: #d98b7e; }
.cross-sell h3 { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0 0 10px; }
.cross-sell p { color: #cfcabf; margin: 0 0 18px; }

/* ---------- Sitaatit / pull-quote ---------- */
blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--accent); font-style: italic; color: #34332e; }
.thesis { font-family: var(--serif); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8b4ab; padding: 40px 0; font-size: 14px; }
.site-footer a { color: #d3cec4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.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: #8a857c; }

/* ---------- Paikkamerkki (käyttäjän toimittama copy) ---------- */
.placeholder {
  border: 1px dashed var(--accent); background: #f7e3df55;
  color: var(--accent-dark); padding: 14px 16px; border-radius: 2px;
  font-family: var(--mono); font-size: 13px; line-height: 1.5;
}
.placeholder::before { content: "TÄYTETTÄVÄ: "; font-weight: 700; letter-spacing: 0.08em; }

/* ---------- 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); color: var(--accent);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 2px; cursor: pointer;
}
.reveal--js .reveal__btn:hover { border-color: var(--accent); background: var(--paper-2); }
.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(--paper)); pointer-events: none;
}

/* ---------- Responsiivisuus ---------- */
@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: 900px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero__cover { order: 1; max-width: 360px; }
  .order__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
