/* Step Ahead In Ten · shared styles for the landing, price and legal pages.
   Radius rule: buttons and inputs are pills (999px); panels 18px; nothing else is rounded.
   z-index scale: header 20, skip link 30. */

:root {
  --paper: #F6F1E7;
  --ink: #20231F;
  --tomato: #E6573E;
  --moss: #65745A;
  --saffron: #E7B84B;

  --page: var(--paper);
  --surface: #FFFDF7;
  --text: var(--ink);
  --muted: #50584C;
  --line: #B8B4A8;
  --soft-moss: #E1E5DA;
  --soft-saffron: #F3E4B3;
  --accent-text: #B83A24;
  --plate-shadow: var(--ink);
  --gutter: 16px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #171A17;
    --surface: #222720;
    --text: #F6F1E7;
    --muted: #C9C9BC;
    --line: #61685C;
    --soft-moss: #30382D;
    --soft-saffron: #413A24;
    --accent-text: #F08A74;
    --plate-shadow: #61685C;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

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

a:hover { text-decoration-color: var(--text); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 8vw, 3.6rem); text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  z-index: 30;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 680px; }

/* Header */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  display: none;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav .nav-cta { display: inline-flex; }

@media (min-width: 768px) {
  .site-nav a { display: inline-flex; }
}

/* Buttons and forms */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--text) 30%, transparent);
}

.button:active { transform: translateY(0); box-shadow: none; }

.button.secondary { background: transparent; color: var(--text); }

.button.compact { min-height: 44px; padding: 8px 16px; font-size: 1rem; }

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

/* Hero: text, then the still life on a full-width shelf. */
.hero { padding: 36px 0 8px; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 40ch; margin: 18px 0 26px; font-size: 1.2rem; color: var(--muted); }
.hero-art { display: block; margin: 36px 0 0; }
.hero-art img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 8px; }
  .hero-art { margin-top: 48px; }
}

/* The promise, marked by the brand's bracket */
.promise { padding: 8px 0 56px; }
.bracketed {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: 26px 40px;
  text-align: center;
}
.bracketed p {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 5.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.bracketed svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--tomato); }

/* Sections */
.section { padding: 64px 0; border-top: 2px solid var(--text); }
.section h2 { max-width: 20ch; margin-bottom: 18px; }
.section-lede { max-width: 58ch; margin-bottom: 32px; }
.prose { max-width: 62ch; }
.prose h2 { margin: 40px 0 12px; font-size: 1.5rem; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* Who it is for: two columns from 860px */
.split { display: grid; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.need-list { list-style: none; margin: 0; padding: 0; }
.need-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.need-list li:last-child { border-bottom: 0; }
.need-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tomato);
}

/* How a day works: day 1 as it arrives on Telegram. Chat bubbles and typing dots after Simi's
   onboarding office (reused read only, D-19); the steps are a real sequence, so numbered. */
/* Phones: heading, the chat, then the steps. Wide screens: steps left, chat right. */
.day-grid { display: flex; flex-direction: column; gap: 0; }
.day-text { display: contents; }
.day-grid h2 { order: 0; }
.day-grid .section-lede { order: 1; }
.day-grid .chat { order: 2; margin-bottom: 32px; }
.day-steps { order: 3; }
.day-note { order: 4; }
@media (min-width: 900px) {
  .day-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .day-text { display: block; }
  .day-grid .chat { margin-bottom: 0; }
}
.day-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: day; }
.day-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.day-steps li::before {
  counter-increment: day;
  content: counter(day);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 700;
}
.day-steps h3 { margin: 3px 0 2px; }
.day-steps p { margin: 0; color: var(--muted); }
.day-note { margin: 24px 0 0; font-weight: 700; }

.chat {
  max-width: 440px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--page);
  box-shadow: 6px 6px 0 var(--plate-shadow);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 2px solid var(--text); background: var(--surface); }
.chat-head svg { width: 28px; height: 28px; flex: none; }
.chat-head p { margin: 0; line-height: 1.25; }
.chat-head b { display: block; font-family: "Fraunces", Georgia, serif; }
.chat-head span { font-size: 0.9rem; color: var(--muted); }
.chat-log { list-style: none; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 90%;
  align-self: flex-start;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.45;
}
.msg[hidden] { display: none; }
.msg.me { align-self: flex-end; border-color: transparent; border-radius: 18px 18px 6px 18px; background: var(--soft-saffron); }
.msg-quote { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--soft-saffron); font-weight: 700; }
.chat-opts { display: grid; gap: 8px; margin-top: 10px; }
.chat-opts button {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--page);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.chat-opts button[aria-pressed="true"] { background: var(--soft-saffron); }
.chat-opts button:disabled { cursor: default; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: tdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-foot { padding: 0 14px; }
.chat figcaption { padding: 12px 14px 14px; font-size: 0.9rem; color: var(--muted); }

/* A look inside day 1: a framed excerpt in the lesson's own styles (lesson.css) */
.inside { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .inside { grid-template-columns: 5fr 7fr; gap: 56px; } }
.lesson-frame {
  padding: 14px 18px 18px;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--plate-shadow);
}
.lesson-frame .strip-parts { margin-bottom: 18px; font-size: 0.95rem; color: var(--muted); }
.lesson-frame .strip-parts li.on, .lesson-frame .strip-parts li.done { color: var(--text); }
.lesson-frame h3 { font-size: 1.35rem; margin-bottom: 4px; }
.lesson-frame .note { margin: 14px 0 0; }

.prompt {
  padding: 14px;
  border: 2px solid var(--tomato);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tomato) 10%, var(--surface));
}
.prompt p { margin: 0 0 12px; font-weight: 700; }
.prompt .copy-status { margin: 8px 0 0; font-weight: 400; font-size: 0.95rem; min-height: 1.4em; }

/* The first path, drawn: a line climbs five steps to day 120 and keeps going, dashed. */
.path-figure { margin: 8px 0 0; max-width: 760px; }
.path-line { width: 100%; height: auto; overflow: visible; }
.path-line .tread { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.path-line .onward { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.path-line .nodes circle { fill: var(--page); stroke: var(--text); stroke-width: 4; }
.goal-flag { fill: var(--tomato); }
.traveller { display: none; fill: var(--tomato); }
.path-stages { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.path-stages li { padding: 10px 14px; border-radius: 12px; background: var(--soft-moss); }
.path-stages .days { display: block; font-size: 0.95rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.path-stages strong { font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; }
.path-stages .goal { background: var(--ink); color: var(--paper); }
.path-stages .goal .days { color: var(--saffron); }
.path-stages .after { background: transparent; border: 2px dashed var(--muted); }
.path-example { max-width: 60ch; margin: 28px 0 0; }
@media (min-width: 860px) {
  .path-stages { grid-template-columns: repeat(6, 1fr); text-align: center; }
  .path-stages li { padding: 10px 8px; }
  .path-stages strong { font-size: 1rem; }
}

/* The one orchestrated moment: the line draws once, a mark climbs it to the flag, then the
   stages appear. Line drawing after Simi's website scroll drawings, the travelling mark after its
   process animation (both reused read only, D-19). Transform, opacity and stroke only. */
.will-draw .tread { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.45,.05,.25,1); }
.will-draw.is-in .tread { stroke-dashoffset: 0; }
.will-draw .traveller { display: inline; opacity: 0; }
.will-draw.is-in .traveller { opacity: 1; }
.will-draw .nodes circle, .will-draw .goal-flag, .will-draw .onward, .will-draw .path-stages li { opacity: 0; transition: opacity 0.4s ease; }
.will-draw.is-in .nodes circle, .will-draw.is-in .goal-flag, .will-draw.is-in .onward, .will-draw.is-in .path-stages li { opacity: 1; }
.will-draw.is-in .nodes circle:nth-child(1), .will-draw.is-in .path-stages li:nth-child(1) { transition-delay: 0.2s; }
.will-draw.is-in .nodes circle:nth-child(2), .will-draw.is-in .path-stages li:nth-child(2) { transition-delay: 0.5s; }
.will-draw.is-in .nodes circle:nth-child(3), .will-draw.is-in .path-stages li:nth-child(3) { transition-delay: 0.8s; }
.will-draw.is-in .nodes circle:nth-child(4), .will-draw.is-in .path-stages li:nth-child(4) { transition-delay: 1.05s; }
.will-draw.is-in .goal-flag, .will-draw.is-in .path-stages li:nth-child(5) { transition-delay: 1.5s; }
.will-draw.is-in .onward, .will-draw.is-in .path-stages li:nth-child(6) { transition-delay: 1.9s; }

/* The weekly note, as a message in the same chat */
.weekly { background: var(--soft-moss); }
.weekly-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .weekly-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.chat-solo { box-shadow: none; }
.chat-solo .msg { max-width: 100%; }
.msg-list span { display: block; position: relative; margin-top: 6px; padding-left: 18px; }
.msg-list span::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }

/* Free lessons: a manual's contents list */
.contents { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.contents li { border-bottom: 1px solid var(--line); }
.contents li:first-child { border-top: 1px solid var(--line); }
.contents a {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  text-decoration: none;
}
.contents .num { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.contents .title { font-size: 1.15rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contents .free { font-size: 0.95rem; color: var(--muted); }

/* Price */
.price-card {
  max-width: 520px;
  padding: 28px 24px;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
}
.price { font-family: "Fraunces", Georgia, serif; font-size: 3rem; font-weight: 700; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 1.1rem; color: var(--muted); margin: 6px 0 12px; }
.price-card ul { margin: 0 0 18px; padding-left: 1.2em; }
.price-card li { margin-bottom: 6px; }
.price-note { font-size: 1rem; color: var(--muted); margin: 0; }
.price-more { margin-top: 40px; }

/* Join form */
.join { background: var(--soft-saffron); border-top: 2px solid var(--text); padding: 56px 0; }
.join h2 { margin-bottom: 14px; }
.join form { max-width: 520px; margin-top: 20px; }
.join label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-help { font-size: 1rem; margin: 10px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 700; }
.form-status.error { color: var(--accent-text); }
.join-next { margin: 14px 0 0; }

/* Questions */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; max-width: 62ch; }

/* Legal and inner pages */
.page-head { padding: 40px 0 8px; }
.page-head p { color: var(--muted); margin-top: 12px; }
.page-body { padding: 24px 0 64px; }

/* Footer */
.site-footer { border-top: 2px solid var(--text); padding: 36px 0 48px; font-size: 1rem; }
.footer-grid { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.small { font-size: 0.95rem; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
