/* Ask Lisbeth: one-page site. Reference implementation of the approved design.
   Layout is intrinsic (flex-wrap, auto-fit grids, clamp()); there are no media queries.
   Every value here is taken from the approved design. Do not round or "normalise" them. */

:root {
  /* Colour */
  --paper: #F7F2EA;       /* page background */
  --sand: #EFE7DA;        /* alternate section background */
  --card: #FFFDF9;        /* cards, panels */
  --well: #F3EDE3;        /* inset boxes inside cards */
  --ink: #1F1C18;         /* headings, primary text (15.2:1 on paper) */
  --ink-body: #2E2924;    /* body copy */
  --ink-soft: #4D463E;    /* secondary text (8.3:1 on paper) */
  --line: #DDD3C3;        /* card borders */
  --line-soft: #E6DDCF;   /* dividers inside the example reply */
  --dash: #B9AE9C;        /* dashed border of the "Already clicked" note */
  --pine: #1E5A52;        /* the accent: buttons, links, numbers (white text 8.0:1) */
  --pine-dark: #164640;   /* hover */
  --pine-deep: #123F39;   /* text on pine tint */
  --pine-tint: #DCE9E3;   /* pills, copied state, illustration ground */
  --ai-bg: #F6E7C6;       /* AI tag */
  --ai-ink: #3D2E10;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Literata', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
}

h1, h2, h3, p, figure, ol, ul { margin: 0; }
img { display: block; max-width: 100%; }
svg { flex: none; }

a { color: var(--pine); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }

a:focus-visible,
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-pine a:focus-visible,
.on-pine button:focus-visible { outline-color: var(--card); }

/* Keeps an email address on one line (never split at its hyphen), but still lets it break on very narrow screens. */
.keep-together { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Wordmark ---------- */
.wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
.wordmark-ask { font-style: italic; font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand .wordmark { font-size: 22px; }

.usp-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.usp {
  display: flex; align-items: center; gap: 6px;
  background: var(--pine-tint); color: var(--pine-deep);
  font-size: 16px; font-weight: 700; line-height: 1.2;
  padding: 7px 14px 7px 10px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px;
}
.hero-main { flex: 1 1 520px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem); line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-intro {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); line-height: 1.45;
  color: var(--ink-body); max-width: 32ch; text-wrap: pretty;
}

/* Reporting card (launch) and pre-launch card */
.report-card {
  margin-top: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 18px 40px -28px rgba(31, 28, 24, 0.45);
}
.report-card--prelaunch { padding: 20px; box-shadow: none; }

.address-block { display: flex; flex-direction: column; gap: 2px; }
.address-label { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.address {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.005em;
  color: var(--ink); -webkit-user-select: all; user-select: all; overflow-wrap: anywhere;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Copy button. Two labels live inside; .is-copied swaps them. Border is always 2px so nothing shifts. */
.btn-copy {
  flex: 1 1 170px; min-height: 52px; padding: 0 18px;
  border: 2px solid transparent; border-radius: 12px;
  background: var(--pine); color: var(--white);
  font: 700 17px/1.2 var(--font-body);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.btn-copy:hover { background: var(--pine-dark); }
.btn-copy .label { display: inline-flex; align-items: center; gap: 8px; }
.btn-copy .label--copied { display: none; }
.btn-copy.is-copied .label--idle { display: none; }
.btn-copy.is-copied .label--copied { display: inline-flex; }
.btn-copy.is-copied,
.btn-copy.is-copied:hover { background: var(--pine-tint); border-color: var(--pine); color: var(--pine-deep); }

/* Variant on the pine closing band */
.btn-copy--on-pine { background: var(--card); color: var(--pine); }
.btn-copy--on-pine:hover { background: var(--pine-tint); }
.btn-copy--on-pine.is-copied,
.btn-copy--on-pine.is-copied:hover { background: var(--pine-dark); border-color: var(--card); color: var(--card); }

/* Without JavaScript the copy buttons cannot work: hide them, the address stays selectable. */
.no-js .btn-copy { display: none; }

.copy-status {
  font-size: 16px; line-height: 1.45; color: var(--pine-deep);
  background: var(--pine-tint); border-radius: 10px; padding: 10px 12px;
}
.copy-status:empty { display: none; }

.ai-note { display: flex; align-items: flex-start; gap: 10px; }
.ai-tag {
  flex: none; margin-top: 2px; padding: 2px 9px; border-radius: 999px;
  background: var(--ai-bg); color: var(--ai-ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
}
.ai-note-text { font-size: 16px; line-height: 1.45; }

.howto { background: var(--well); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.howto-title { font-size: 16px; font-weight: 700; }
.howto-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.4; }
.howto-steps li { display: flex; align-items: center; gap: 10px; }
.dot-number {
  flex: none; width: 24px; height: 24px; border-radius: 12px;
  background: var(--pine); color: var(--white);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.howto-note { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

/* Pre-launch card content */
.status-pill {
  align-self: flex-start; display: flex; align-items: center; gap: 8px;
  background: var(--pine-tint); color: var(--pine-deep);
  font-size: 15px; font-weight: 700; padding: 6px 14px 6px 10px; border-radius: 999px;
}
.prelaunch-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.prelaunch-text { font-size: 17px; line-height: 1.5; color: var(--ink-body); }
.well { background: var(--well); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.well-title { font-size: 16px; font-weight: 700; }
.well-text { font-size: 16px; line-height: 1.45; }

/* Portrait */
.hero-figure { flex: 1 1 320px; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.bubble {
  align-self: flex-start; max-width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.35;
}
.hero-figure img { width: 100%; height: auto; }

/* ---------- Generic sections ---------- */
.section { padding: 56px var(--gutter); }
.section--sand { background: var(--sand); }
.section--example { padding: 64px var(--gutter); }
.section-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
}
.section-lead { font-size: 18px; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px;
}
.step { background: var(--card); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-number {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--pine); color: var(--white);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.step-text { font-size: 17px; line-height: 1.5; color: var(--ink-body); }

.already {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--card); border: 2px dashed var(--dash); border-radius: 20px; padding: 20px 22px;
}
.already img { flex: none; width: 52px; height: 52px; }
.already { flex-wrap: wrap; } /* on very narrow screens the avatar moves above the text */
.already-body { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.already-title { font-size: 19px; font-weight: 700; line-height: 1.35; }
.already-text { font-size: 17px; line-height: 1.5; color: var(--ink-body); }

/* ---------- Example ---------- */
.example-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.example-in { flex: 1 1 300px; max-width: 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.example-out { flex: 2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.col-label { font-size: 15px; font-weight: 700; color: var(--ink-soft); }

.inbound { background: var(--sand); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.fiction-tag {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  border: 1px solid #A89C89; border-radius: 999px; padding: 2px 10px;
}
.inbound-meta { font-size: 15px; line-height: 1.5; color: var(--ink-soft); display: flex; flex-direction: column; }
.inbound-meta strong { color: var(--ink); }
.inbound-body { font-size: 16px; line-height: 1.5; }
.dead-link {
  align-self: flex-start; font-size: 14px; color: var(--ink-soft);
  background: #E3DACB; border-radius: 8px; padding: 4px 10px; text-decoration: line-through;
}
.inbound-note { font-size: 13px; color: var(--ink-soft); }

.reply {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 18px 40px -30px rgba(31, 28, 24, 0.5);
}
.reply-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.reply-head img { width: 44px; height: 44px; }
.reply-from { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; }
.reply-name { font-size: 16px; font-weight: 700; }
.reply-subject { font-size: 14px; color: var(--ink-soft); }
.ai-badge {
  font-size: 13px; font-weight: 700; background: var(--ai-bg); color: var(--ai-ink);
  padding: 4px 10px; border-radius: 999px;
}
.reply-part { display: flex; flex-direction: column; gap: 4px; }
.reply-part--first { gap: 6px; }
.reply-part + .reply-part { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow--pine { color: var(--pine); }
.reply-action { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.reply-text { font-size: 17px; line-height: 1.5; }
.reply-footer {
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
  background: var(--well); border-radius: 12px; padding: 10px 14px;
}

/* ---------- AI and privacy ---------- */
.facts {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px;
}
.fact { background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.fact-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.fact-text { font-size: 16px; line-height: 1.5; color: var(--ink-body); }

.privacy-contact {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.privacy-contact-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; min-width: 0; }
.privacy-label { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.privacy-address { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.privacy-note { flex: 2 1 320px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Closing band ---------- */
.cta { background: var(--pine); color: var(--card); padding: 56px var(--gutter); }
.cta-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.cta-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 360px; min-width: 0; }
.cta-text--prelaunch { flex: 0 1 auto; }
.cta-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 1.45rem + 1vw, 2.25rem); line-height: 1.2;
}
.cta-address {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 700;
  -webkit-user-select: all; user-select: all; overflow-wrap: anywhere;
}
.cta-note { font-size: 16px; color: var(--pine-tint); }
.cta-text--prelaunch .cta-note { font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 380px; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand .wordmark { font-size: 19px; }
.footer-note { font-size: 15px; color: var(--ink-soft); }
.footer-link { font-size: 15px; min-height: 44px; display: flex; align-items: center; }
