/* Alex Penny: From Sold to Loyal landing page
   No established brand yet, so the design serves the page's one job: sign-ups.
   Crisp white and navy for B2B credibility; ONE warm accent, kept for the
   call to action and the "Loyal" destination, so the eye goes to the button.
   All pairings meet WCAG AA. Type: Roboto for headings and UI, Lora for body
   copy; both self-hosted (OFL, see fonts/) so the CSP stays self-only. */

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1b2a3a;          /* deep navy: text, headings, dark sections */
  --ink-soft: #4a5a6b;     /* secondary text, labels */
  --accent: #a64b2a;       /* warm terracotta: CTAs and "Loyal" only */
  --accent-dark: #8a3c20;  /* button hover */
  --paper: #ffffff;        /* page background */
  --tint: #f5f3ef;         /* warm-grey alternate sections */
  --line: #e6e2db;

  --font: "Lora", Georgia, "Times New Roman", serif;
  --font-head: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem; border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap.narrow { max-width: 760px; }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-head);
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Header */
.site-header { padding-block: 1.5rem; }
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span {
  display: inline-block;
  margin-left: .25rem;
  padding: .05rem .4rem;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  vertical-align: .15em;
}

/* Hero */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sub { color: var(--ink-soft); max-width: 36rem; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  max-width: 34rem;
}
.signup input {
  flex: 1 1 15rem;
  min-width: 0;
  font: inherit;
  padding: .9rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #8c8478;
  border-radius: var(--radius);
}
.signup input::placeholder { color: #5f6b78; }
.signup input:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.signup button {
  flex: 0 0 auto;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  padding: .9rem 1.4rem;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease;
}
.signup button:hover { background: var(--accent-dark); }
.microcopy { margin-top: .75rem; font-size: .875rem; color: var(--ink-soft); }

/* Journey graphic */
.journey {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 40px -24px rgba(27, 42, 58, .25);
}
.journey-path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 3;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}
.stop circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.stop .n {
  font: 700 14px var(--font-head);
  fill: var(--ink);
  text-anchor: middle;
}
.stop.start circle { fill: var(--ink); stroke: none; }
.stop.end circle { fill: var(--accent); stroke: none; }
.stop text { font: 700 15px var(--font-head); fill: var(--ink); }
.stop.end text { fill: var(--accent); font-size: 18px; }
.note text { font: 600 12px var(--font-head); fill: var(--ink-soft); letter-spacing: .04em; }

/* Problem */
.problem { background: var(--tint); }
.problem p { font-size: 1.125rem; color: var(--ink-soft); }
.problem .hook { color: var(--ink); font-weight: 700; font-size: 1.375rem; line-height: 1.35; }
.problem .kicker { color: var(--ink); font-weight: 700; font-size: 1.25rem; margin-top: 1.5rem; }

/* Days */
.day-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.day-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.day-list li:last-child { border-top-color: var(--accent); }
.day-label {
  font-family: var(--font-head);
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.day-list p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Quote */
.quote { background: var(--ink); color: var(--paper); }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.quote blockquote p::before {
  content: "";
  display: block;
  width: 3rem; height: 4px;
  margin-bottom: 1.5rem;
  background: var(--accent);
  border-radius: 2px;
}
.quote figcaption, .quote cite { display: block; margin-top: 1rem; color: #c9d1da; font-style: normal; }

/* How it works */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}
.steps li { counter-increment: step; color: var(--ink-soft); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}
.steps strong { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: .25rem; }

/* Final CTA */
.final { text-align: center; }
.final .signup { margin-inline: auto; }
.final p { color: var(--ink-soft); font-size: 1.125rem; }
.final .microcopy { font-size: .875rem; }

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .journey { max-width: 440px; }
}
@media (max-width: 600px) {
  .signup button { flex: 1 1 100%; }
}

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