/* ==========================================================================
   Kindred — landing page styles
   Design tokens live in :root. Change brand colors/fonts there.
   ========================================================================== */

:root {
  /* ---- color ---- */
  --bg:          #FBF8F2;   /* warm ivory page background */
  --surface:     #F4EEE3;   /* warm sand — cards, sections */
  --surface-2:   #EFE6D6;   /* deeper sand — footer, alt sections */
  --ink:         #2A2420;   /* near-black warm text */
  --ink-soft:    #6E6459;   /* muted secondary text */
  --line:        #E3D9C8;   /* hairline borders */

  --honey:       #DE9F4E;   /* primary accent */
  --honey-deep:  #C1832F;   /* primary accent, hover/active */
  --sage:        #7C9473;   /* secondary accent */
  --sage-deep:   #5F7757;   /* secondary accent, hover/active */

  --white:       #FFFFFF;

  /* photo-wall placeholder swatches (stand in for real photos — no images used) */
  --swatch-1: #E7B98C;
  --swatch-2: #93A8B0;
  --swatch-3: #C98A7D;
  --swatch-4: #A8B08A;
  --swatch-5: #D8C79C;

  /* ---- type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* ---- layout ---- */
  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9em;
}

.section-sub {
  max-width: 42ch;
  font-size: 1.05rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--sage-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-container {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: end;
  gap: 4px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-picture {
    align-self: baseline;
    display: block;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .logo-picture {
    height: 24px;
    width: 24px;
    margin-top: 4px;
  }
  .header-row {
    gap: 18px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.8em;
}

/* ---- waitlist form ---- */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--sage-deep);
}
.waitlist-form input[type="email"]::placeholder {
  color: #A69C8D;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
}

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  margin-bottom: 0;
}
.form-note.success { color: var(--sage-deep); font-weight: 600; }
.form-note.error { color: #B4503F; font-weight: 600; }

/* ---- hero photo wall (signature element) ---- */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.photo-wall {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.photo-card {
  position: absolute;
  width: 158px;
  height: 190px;
  background: var(--white);
  border-radius: 4px;
  padding: 10px 10px 30px;
  box-shadow: 0 10px 24px rgba(42, 36, 32, 0.14);
  opacity: 0;
  transform: translateY(14px) rotate(var(--r, 0deg));
  animation: pin-in 0.6s ease forwards;
  animation-delay: var(--d, 0s);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px 30px;
  border-radius: 2px;
  max-width: 158px;
  max-height: 190px;
}

.photo-card .stamp {
  position: absolute;
  bottom: 9px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--honey-deep);
  letter-spacing: 0.02em;
}

.card-1 { top: 0; left: 6%; --r: -6deg; --d: 0.05s; }

.card-2 { top: 6%; left: 42%; --r: 4deg; --d: 0.18s; width: 178px; height: 208px; }

.card-3 { top: 46%; left: 2%; --r: 3deg; --d: 0.3s; }

.card-4 { top: 40%; left: 46%; --r: -4deg; --d: 0.42s; width: 168px; height: 198px; }

.card-5 { top: 68%; left: 20%; --r: -8deg; --d: 0.54s; width: 140px; height: 168px; }

@keyframes pin-in {
  to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
}

.tape {
  position: absolute;
  width: 46px;
  height: 18px;
  background: rgba(224, 199, 156, 0.75);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.tape-1 { top: -4%; left: 12%; transform: rotate(-10deg); }
.tape-2 { top: 3%; left: 48%; transform: rotate(8deg); }

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}
.pin-1 { top: 43%; left: 5%; }

@media (max-width: 900px) {
  .hero-visual { min-height: 360px; }
}
@media (max-width: 560px) {
  .hero-visual { display: none; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 20ch;
}

/* ---- problem / strike list ---- */
.problem {
  background: var(--surface);
}

.strike-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.strike-list li {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px 26px;
}

@media (max-width: 720px) {
  .strike-list li { grid-template-columns: 1fr; gap: 6px; }
}

.strike-list .strike {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--honey-deep);
  text-decoration-thickness: 2px;
  font-size: 0.98rem;
}

.strike-list .fix {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

/* ---- how it works ---- */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--honey-deep);
  margin-bottom: 14px;
}

.step p { font-size: 0.98rem; }

/* ---- features ---- */
.features {
  background: var(--surface);
}

.feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-card h3 { margin-bottom: 0.4em; }
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ---- waitlist CTA ---- */
.waitlist-cta {
  background: var(--ink);
  border-top: none;
}
.waitlist-cta .eyebrow { color: var(--honey); }
.waitlist-cta h2,
.waitlist-cta .section-sub { color: var(--bg); }
.waitlist-cta .section-sub { color: #C9C0B3; }

.waitlist-inner {
  text-align: left;
}

.waitlist-form-large input[type="email"] {
  background: rgba(251, 248, 242, 0.08);
  border-color: rgba(251, 248, 242, 0.25);
  color: var(--bg);
}
.waitlist-form-large input[type="email"]::placeholder { color: #A69C8D; }

.waitlist-cta .btn {
  background: var(--honey);
  color: var(--ink);
}
.waitlist-cta .btn:hover { background: var(--honey-deep); color: var(--white); }

.waitlist-cta .form-note { color: #A69C8D; }
.waitlist-cta .form-note.success { color: var(--sage); }

/* ---- FAQ ---- */
.faq-list {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--sage-deep);
  font-family: var(--font-mono);
}
.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

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

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { margin: 0; }

.privacy {
  margin: 12px;
  background-color: var(--bg);
}