/* ==========================================================================
   Redhaven Properties — redhavenproperties.com — Everyday Cinema
   ========================================================================== */

/* Own fonts (SIL OFL 1.1 — licences in /fonts) — nothing loaded from third parties */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/public-sans-latin-wght-normal.woff2') format('woff2');
}

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

:root {
  /* Colour — warm paper and clay, kept deliberately away from the usual SaaS blue */
  --ink:       #1b1513;
  --ink-soft:  #6a5f59;
  --paper:     #fffdfb;
  --surface:   #f7f1ec;
  --line:      #e7ddd5;
  --night:     #241a16;
  --night-2:   #37261f;

  /* ACTION — every CTA is this colour and nothing else is.
     Buttons print --ink on top, so it has to stay light: #ee8259 on #1b1513
     measures about 5.6:1. --action-dark is the one safe on white (5.3:1). */
  --action:      #ee8259;
  --action-dark: #b8502c;
  --action-soft: #fdf1ec;

  --urgent:    #c3453c;
  --go:        #2f7d5f;

  --w-read:    760px;
  --w-wide:    1140px;
  --r:         6px;        /* square-ish: the other sites in this market are all pills */

  --sans:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--sans);
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--action); color: var(--ink); }

:focus-visible { outline: 3px solid var(--action-dark); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--w-read); margin-inline: auto; padding-inline: 22px; }
.wrap--wide { max-width: var(--w-wide); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Type ===== */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--action-dark);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--action);
}

.section-head { margin-bottom: 46px; max-width: 640px; }
.section-head h2 { margin-top: 16px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; }
.section-head--mid { margin-inline: auto; text-align: center; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding: 18px 34px;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn--primary {
  background: var(--action);
  color: var(--ink);
  box-shadow: 0 3px 0 0 var(--action-dark);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 0 var(--action-dark); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--action-dark); }

.btn--block { display: flex; width: 100%; }

.btn__note { display: block; margin-top: 14px; font-size: 0.86rem; color: var(--ink-soft); }

.cta-band { background: var(--surface); padding: 46px 22px; text-align: center; border-block: 1px solid var(--line); }
.cta-band .btn { max-width: 440px; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Announcement bar ===== */

.topbar {
  background: var(--night);
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-size: 0.84rem;
  padding: 11px 18px;
  letter-spacing: 0.01em;
}
.topbar strong { color: var(--action); font-weight: 600; }

/* ===== Hero — left aligned, unlike the centred layouts everywhere else ===== */

.hero { padding: 58px 0 10px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  margin-bottom: 38px;
}
.brand svg { flex-shrink: 0; }

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--action-dark); }

.hero__sub { font-size: 1.14rem; color: var(--ink-soft); max-width: 600px; margin-bottom: 32px; }

.hero__media {
  margin: 36px 0 32px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -34px rgba(27,21,19,0.6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--go); flex-shrink: 0; }

/* ===== Price anchor ===== */

.anchor { background: var(--surface); border-block: 1px solid var(--line); padding: 46px 22px; text-align: center; }
.anchor__was { font-size: 0.95rem; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--urgent); }
.anchor__now { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); margin: 8px 0 6px; }
.anchor__now span { color: var(--action-dark); }
.anchor__note { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Countdown ===== */

.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.countdown__cell { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); min-width: 68px; padding: 10px 6px; }
.countdown__num { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.countdown__lbl { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 5px; }

/* ===== Problem ===== */

.pain { padding: 74px 0; }
.pain__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pain__card { background: var(--paper); padding: 28px 24px; }
.pain__card h3 { font-size: 1.04rem; margin-bottom: 10px; }
.pain__card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ===== The idea ===== */

.method { background: var(--night); color: rgba(255,255,255,0.78); padding: 78px 0; }
.method h2 { color: #fff; }
.method .eyebrow { color: var(--action); border-bottom-color: var(--action); }
.method__body p { margin-bottom: 20px; font-size: 1.02rem; }
.method__body strong { color: #fff; }

.method blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--action);
  background: var(--night-2);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.45;
  color: #fff;
}

.method__pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-top: 38px; }
.method__pillar b { display: block; font-family: var(--display); color: var(--action); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.method__pillar span { font-size: 0.92rem; }

/* ===== Curriculum — numbered track, no photo per day ===== */

.curriculum { padding: 78px 0; }

.weeks { display: grid; gap: 34px; }

.week__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.week__n { font-family: var(--display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--action-dark); }
.week__title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }

.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.day { background: var(--paper); padding: 24px 22px; display: flex; gap: 16px; }
.day__n {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--action-dark);
  background: var(--action-soft);
  border-radius: var(--r);
  padding: 4px 9px;
  height: fit-content;
}
.day h3 { font-size: 1.02rem; margin-bottom: 9px; }
.day p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.day__do { font-size: 0.88rem; color: var(--ink); display: block; padding-top: 10px; border-top: 1px dashed var(--line); }
.day__do b { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--action-dark); display: block; margin-bottom: 3px; }

/* ===== Proof / plain talk ===== */

.proof { background: var(--surface); border-block: 1px solid var(--line); padding: 74px 0; }

.honest p { color: var(--ink-soft); margin-bottom: 20px; }
.honest em { font-style: normal; font-weight: 600; color: var(--ink); }
.honest__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; margin: 30px 0; }
.honest__item { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--action); border-radius: 0 var(--r) var(--r) 0; padding: 22px 24px; }
.honest__item b { display: block; font-family: var(--display); margin-bottom: 8px; }
.honest__item span { font-size: 0.92rem; color: var(--ink-soft); }
.honest__close { font-weight: 600; color: var(--ink); }

/* Testimonial grid, ready for when there are real students with permission */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.quote p { font-size: 0.95rem; margin-bottom: 16px; }
.quote__who { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Fit / not fit ===== */

.fit { padding: 74px 0; }
.fit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.fit__card { border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.fit__card--yes { border-top: 3px solid var(--go); }
.fit__card--no { border-top: 3px solid var(--urgent); background: var(--surface); }
.fit__card h3 { margin-bottom: 18px; }
.fit__card li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 0.93rem; color: var(--ink-soft); }
.fit__card li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.fit__card--yes li::before { content: '✓'; color: var(--go); }
.fit__card--no li::before { content: '✕'; color: var(--urgent); }

/* ===== Pricing ===== */

.pricing { background: var(--night); color: rgba(255,255,255,0.78); padding: 78px 0; }
.pricing h2 { color: #fff; }
.pricing .eyebrow { color: var(--action); border-bottom-color: var(--action); }
.pricing .section-head p { color: rgba(255,255,255,0.62); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 16px; align-items: stretch; }

.plan {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--best { outline: 3px solid var(--action); }
.plan__flag {
  position: absolute; top: -12px; left: 20px;
  background: var(--action); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.plan__tier { font-family: var(--display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.plan__price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1.1; margin: 10px 0 2px; }
.plan__price sup { font-size: 1.05rem; top: -0.85rem; }
.plan__once { font-size: 0.8rem; color: var(--ink-soft); }
.plan__for { font-size: 0.87rem; color: var(--ink-soft); margin: 14px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan__feats { flex: 1; margin-bottom: 22px; }
.plan__feats li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 0.84rem; color: var(--ink-soft); }
.plan__feats li::before { content: '→'; position: absolute; left: 0; color: var(--action-dark); font-weight: 700; }
.plan__feats li strong { color: var(--ink); font-weight: 600; }
.plan .btn { padding: 14px 16px; font-size: 0.94rem; }

.guarantee {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--night-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 26px 28px;
  margin-top: 34px;
}
.guarantee svg { flex-shrink: 0; color: var(--action); }
.guarantee h4 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.guarantee p { font-size: 0.9rem; }

@media (max-width: 620px) { .guarantee { flex-direction: column; gap: 12px; } }

/* ===== FAQ ===== */

.faq { padding: 74px 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: 20px 40px 20px 0; cursor: pointer; list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 6px; top: 27px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--action-dark); border-bottom: 2px solid var(--action-dark);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq__item p { color: var(--ink-soft); font-size: 0.95rem; padding-bottom: 22px; max-width: 660px; }

/* ===== Final CTA ===== */

.final { background: var(--surface); border-top: 1px solid var(--line); padding: 78px 22px; text-align: center; }
.final h2 { margin-bottom: 16px; }
.final p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 30px; }
.final .btn { max-width: 440px; width: 100%; }

/* ===== Footer ===== */

.foot { background: var(--night); color: rgba(255,255,255,0.6); padding: 46px 22px 54px; text-align: center; font-size: 0.86rem; }
.foot a { color: rgba(255,255,255,0.85); }
.foot a:hover { color: var(--action); text-decoration: underline; }
.foot__brand { font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 6px; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 20px 0; }
.foot__legal { max-width: 720px; margin: 24px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.76rem; line-height: 1.6; color: rgba(255,255,255,0.45); }
.foot__legal p + p { margin-top: 10px; }

/* ===== Inner pages (legal / thank you) ===== */

.doc { max-width: 720px; margin-inline: auto; padding: 54px 22px 72px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 6px; }
.doc__date { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 34px; }
.doc h2 { font-size: 1.12rem; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 24px; margin-bottom: 18px; }
.doc ul li { margin-bottom: 7px; }
.doc__back { display: inline-block; font-size: 0.86rem; color: var(--action-dark); font-weight: 600; margin-bottom: 26px; }
.doc__back:hover { text-decoration: underline; }

.done { min-height: 72vh; display: grid; place-items: center; padding: 52px 22px; background: var(--surface); }
.done__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 42px 36px; max-width: 580px; text-align: center; }
.done__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--go); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.done__card h1 { font-size: 1.85rem; margin-bottom: 14px; }
.done__card p { color: var(--ink-soft); margin-bottom: 12px; font-size: 0.96rem; }
.done__alert { background: var(--action-soft); border-left: 3px solid var(--action); border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px; text-align: left; font-size: 0.92rem; }
.done__steps { text-align: left; background: var(--surface); border-radius: var(--r); padding: 22px 24px; margin: 22px 0; }
.done__steps h2 { font-size: 1rem; margin-bottom: 12px; }
.done__steps ol { list-style: decimal; padding-left: 20px; }
.done__steps li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }

/* ===== Sticky bar (mobile) ===== */

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -12px rgba(27,21,19,0.4);
  padding: 11px 16px;
  transform: translateY(105%);
  transition: transform 0.22s ease;
}
.stickybar.is-on { transform: translateY(0); }
.stickybar__price b { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: block; line-height: 1.1; }
.stickybar__price span { font-size: 0.7rem; color: var(--ink-soft); }
.stickybar .btn { padding: 13px 22px; font-size: 0.93rem; flex: 1; max-width: 230px; }

@media (max-width: 860px) {
  .stickybar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ===== Utilities ===== */

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