/* ============================================================
   CLEARLY — Landing Pages
   Visual direction: warm cream / neutral palette + coral accent,
   full-bleed hero photo with a soft warm overlay, white CLEARLY
   wordmark top-left, left-aligned elegant serif headline, clean
   coral button. Tone + spacing follow LandingPage.jpg.
   Shared by the main page and the A/B variants.
   ============================================================ */

:root {
  /* Warm neutral palette + coral accent */
  --coral:       #db6a4d;   /* accent: rules, icon circles */
  --coral-btn:   #c5563c;   /* button (deeper, for white-text contrast) */
  --coral-press: #ad4830;   /* button hover */

  --ink:    #2c241f;        /* headings — warm near-black */
  --body:   #524740;        /* body text — warm taupe */
  --muted:  #8a7b6f;        /* secondary text */

  --cream:  #f6efe4;        /* primary section background */
  --cream-2:#f4e7da;        /* warm coral-cream band */
  --paper:  #fffdf9;        /* cards / footer */
  --line:   #e8dcca;        /* hairlines */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.35rem, 5vw, 4.5rem);
  --radius: 4px;

  /* Hero: soft warm overlay + photo. Default is a warm placeholder
     gradient; set --hero-bg to url('../assets/hero.jpg') for a photo. */
  --hero-scrim:
    linear-gradient(90deg, rgba(28,18,12,.60) 0%, rgba(28,18,12,.40) 40%, rgba(28,18,12,.16) 70%, rgba(28,18,12,.06) 100%),
    linear-gradient(0deg, rgba(18,11,7,.24), rgba(18,11,7,.24));
  --hero-bg: url('hero.jpg');
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-btn); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -0.005em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Button ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--coral-btn);
  border: 0;
  border-radius: var(--radius);
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 10px -3px rgba(150,60,35,.5);
}
.btn:hover { background: var(--coral-press); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 2px; }

.rule { width: 66px; height: 3px; background: var(--coral); border: 0; margin: 0; border-radius: 3px; }
.rule--center { margin-inline: auto; }

/* ============================================================
   HERO  (full-bleed photo + soft warm overlay, left text)
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  background-image: var(--hero-scrim), var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(580px, 84vh, 780px);
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}
.hero-brand { position: absolute; top: clamp(1.6rem, 3vw, 2.4rem); left: 0; width: 100%; }
.wordmark {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.wordmark { display: inline-block; }
.brand-logo { height: clamp(45px, 5.5vw, 60px); width: auto; display: block; margin-left: clamp(0.5rem, 1.5vw, 1.25rem); filter: drop-shadow(0 3px 16px rgba(12,7,4,.6)) drop-shadow(0 1px 3px rgba(12,7,4,.5)); }
.hero-inner { max-width: 35rem; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: 1.06;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(30,18,12,.28);
}
.hero .rule { margin-bottom: 1.6rem; }
.hero-lead {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  color: #fff;
  margin: 0 0 0.55rem;
  line-height: 1.5;
  font-weight: 600;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin: 0 0 2rem;
  max-width: 30rem;
}
.hero .btn { box-shadow: 0 6px 22px -6px rgba(40,20,12,.55); }

/* ============================================================
   WHY CLEARLY  (cream, coral-circle icons, 2-col)
   ============================================================ */
.why { background: var(--cream); padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); }
.section-head .rule { margin: 0 auto 1.3rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.8vw, 3.1rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }

.value-grid { display: grid; grid-template-columns: 1fr; max-width: 1000px; margin-inline: auto; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.value:last-child { border-bottom: 0; }
.value-icon-wrap { width: 56px; height: 56px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(180,70,40,.6); }
.value-icon { width: 28px; height: 28px; color: #fff; }
.value h3 { font-size: 1.34rem; color: var(--ink); }
.value h3::after { content: ""; display: block; width: 36px; height: 2px; background: var(--coral); margin: 0.55rem 0 0.7rem; border-radius: 2px; }
.value p { margin: 0; color: var(--body); }

/* ============================================================
   FOUNDING / WAITLIST band (warm coral-cream + form card)
   ============================================================ */
.founding { background: var(--cream-2); padding: clamp(3rem, 7vw, 5rem) 0; }
.founding-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.founding-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin-bottom: 0.9rem; }
.founding-copy p { margin: 0 0 0.7rem; color: var(--body); font-size: 1.1rem; }
.founding-copy .accent { font-weight: 700; color: var(--ink); }

.capture { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 24px 60px -34px rgba(80,40,20,.45); }
.capture .field { margin-bottom: 0.85rem; }
.capture label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.32rem; }
.optional { font-weight: 400; letter-spacing: 0; text-transform: none; color: #b3a597; }
.capture input { width: 100%; font-family: var(--sans); font-size: 1.0625rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.78rem 0.9rem; transition: border-color .15s ease, box-shadow .15s ease; }
.capture input::placeholder { color: #a99c8e; }
.capture input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(219,106,77,.22); }
.capture .btn { margin-top: 0.45rem; }
.reassure { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--muted); text-align: center; }
.form-success { display: none; text-align: center; padding: 0.5rem 0.25rem; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.form-success p { margin: 0; color: var(--muted); }
.is-sent .capture-form { display: none; }
.is-sent .form-success { display: block; }
.form-error { margin: 0.85rem 0 0; padding: 0.7rem 0.85rem; font-size: 0.9rem; line-height: 1.45; color: #8a3018; background: #fbeae3; border: 1px solid var(--coral); border-left-width: 4px; border-radius: var(--radius); }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============================================================
   FOOTER (warm, minimal)
   ============================================================ */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 2.75rem 0; text-align: center; }
.footer-mark { font-family: var(--sans); font-weight: 800; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ink); font-size: 1rem; }
.footer-logo { height: 46px; width: auto; margin: 0 auto 0.6rem; display: block; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--coral-btn); margin: 0.5rem 0 1rem; font-size: 1.1rem; }
.footer-line { font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 760px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value { padding: 2.2rem clamp(1.5rem, 3vw, 2.8rem); }
  .value:nth-child(odd) { border-right: 1px solid var(--line); }
  .value:nth-last-child(1), .value:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .founding-grid { grid-template-columns: 1.05fr 0.95fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
  .reveal.d1 { animation-delay: .07s; }
  .reveal.d2 { animation-delay: .15s; }
  .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
