/* ============================================================
   Austelle — Design tokens
   Monochrome bone/charcoal palette is a deliberate brand choice
   (matches live austelle.com identity), not a placeholder.
   ============================================================ */
:root {
  --bone: #F6F4F1;
  --paper: #FFFFFF;
  --ink: #1C1C1C;
  --ink-soft: #5E5E5C;
  --ink-faint: #6d6a68;
  --graphite: #6E6C67;
  --stone: #A8A6A0;
  --line: #D5D4D1;
  --line-strong: #CAC9C6;

  --font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --margin: 24px;
  --radius: 0px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-micro: 200ms;
  --dur-transition: 400ms;
}

@media (min-width: 768px) {
  :root { --margin: 88px; }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

/* ============================================================
   Type scale
   ============================================================ */
.display-lg {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 300;
}
@media (min-width: 768px) {
  .display-lg { font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; }
}
.headline-md { font-size: 28px; line-height: 1.2; font-weight: 300; }
@media (min-width: 768px) { .headline-md { font-size: 36px; } }
.body-lg { font-size: 17px; line-height: 1.6; }
@media (min-width: 768px) { .body-lg { font-size: 18px; } }
.body-md { font-size: 15px; line-height: 1.7; }
.label-caps {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}
.text-soft { color: var(--graphite); }

/* ============================================================
   Buttons & form controls
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius);
  font: inherit;
  transition: background-color var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out),
              opacity var(--dur-micro) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.field-error {
  font-size: 13px;
  color: #B3261E;
  min-height: 18px;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 20px;
}
.nav__brand { display: inline-flex; transition: opacity var(--dur-micro) var(--ease-out); }
.nav__brand:hover { opacity: 0.8; }
.nav__logo { width: 180px; height: auto; }
@media (min-width: 768px) { .nav__logo { width: 252px; } }
.nav__cta { padding: 7px 14px; flex-shrink: 0; font-size: 10px; }
.icon-btn {
  background: none;
  border: none;
  color: var(--ink);
  display: inline-flex;
  padding: var(--space-1);
  transition: opacity var(--dur-micro) var(--ease-out);
}
.icon-btn:hover { opacity: 0.7; }

/* ============================================================
   Hero
   ============================================================ */
.hero-wrap { position: relative; }
.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:where(html.js) .hero__media img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms var(--ease-out), transform 1400ms var(--ease-out);
}
.hero__media img.is-loaded { opacity: 1; transform: scale(1); }
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(246, 244, 241, 0.16);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(28,28,28,0.55) 0%, rgba(28,28,28,0.32) 28%, rgba(28,28,28,0.05) 55%, rgba(28,28,28,0) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 var(--margin) var(--space-24);
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  color: var(--bone);
}
.hero__content .body-lg { color: rgba(246,244,241,0.85); }
:where(html.js) .hero__content {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out) 300ms, transform 700ms var(--ease-out) 300ms;
}
.hero__content.is-loaded { opacity: 1; transform: none; }

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

.hero__form-panel {
  border-top: 1px solid var(--line);
  padding: var(--space-8) var(--margin) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.refined-heading {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink);
}
@media (min-width: 768px) { .hero-linebreak { display: none; } }
.field-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
}
.field-row input {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none;
  background: var(--paper);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.field-row input::placeholder { color: var(--ink-faint); }
.field-row input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-cta {
  background: var(--ink);
  color: var(--bone);
  border: none;
  padding: 12px 20px;
  white-space: nowrap;
  transition: opacity var(--dur-micro) var(--ease-out);
}
.btn-cta:hover { opacity: 0.85; }
.hero__form-panel .field-error { min-height: 0; }
.form-microcopy {
  font-size: 13px;
  color: var(--ink-faint);
}

@media (min-width: 1024px) {
  .hero__form-panel {
    position: absolute;
    z-index: 3;
    bottom: calc(var(--space-24) + 44px);
    right: var(--margin);
    width: min(480px, 40vw);
    border-top: none;
    padding: 0;
  }
  .hero__form-panel .refined-heading { color: var(--bone); }
  .hero__form-panel .field-row input { background: rgba(246, 244, 241, 0.75); }
  .hero__form-panel .field-row input::placeholder { color: var(--ink-soft); }
  .hero__form-panel .btn-cta { background: var(--bone); color: var(--ink); }
  .hero__form-panel .form-microcopy { color: rgba(246, 244, 241, 0.65); }
  .hero__form-panel .form-success { background: rgba(246, 244, 241, 0.96); border-color: transparent; }
  .hero__form-panel .field-row input { min-width: 260px; }
  .hero__form-panel :focus-visible { outline-color: var(--bone); }

  :where(html.js) .hero__form-panel {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out) 450ms, transform 700ms var(--ease-out) 450ms;
  }
  .hero__form-panel.is-loaded { opacity: 1; transform: none; }
}

/* ============================================================
   Sections / reveal-on-scroll
   ============================================================ */
.section { padding-block: var(--space-32); }
.section--bordered { border-top: 1px solid var(--line); }
.section--tight { padding-bottom: var(--space-32); padding-top: 0; }
@media (max-width: 767px) {
  .section--tight-top { padding-top: var(--space-16); }
}

/* Hidden only once JS confirms it can reveal them again (see inline script
   in <head>) — content must stay visible if JS fails to load. */
:where(html.js) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Four reasons list
   ============================================================ */
.reasons-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}
@media (min-width: 1024px) {
  .reasons-split { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-24); align-items: start; }
}
.section-heading {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
}
@media (min-width: 768px) { .section-heading { font-size: 28px; } }
.reasons-split__heading {
  max-width: 32ch;
  margin-bottom: 0;
}
.reasons-split__media {
  display: none;
}
@media (min-width: 1024px) {
  .reasons-split__media {
    display: block;
    position: sticky;
    top: 0;
    height: 640px;
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
  }
}
.reasons-split__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reasons-list__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-12);
  align-items: center;
}
.reasons-list__item + .reasons-list__item { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .reasons-list__item { grid-template-columns: 64px 1fr; gap: var(--space-8); padding-block: var(--space-8); }
}
.reasons-list__num {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.item-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.reasons-list__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.reasons-list__body p { max-width: 58ch; }

.how-it-works {
  margin-top: 80px;
}
@media (min-width: 768px) { .how-it-works { margin-top: 100px; } }
.how-it-works__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.how-it-works__body p { max-width: 58ch; }
.how-it-works__body strong { color: var(--ink); }
.payoff-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

.about-candle { margin-top: 112px; }
@media (min-width: 768px) { .about-candle { margin-top: 100px; } }
.spec-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.spec-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.spec-list__icon {
  font-size: 17px;
  color: var(--stone);
  flex-shrink: 0;
}

/* ============================================================
   CTA reasons grid
   ============================================================ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: repeat(4, 1fr); } }
.cta-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--line);
  background: var(--paper);
}
.cta-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-16); display: flex; flex-direction: column; gap: var(--space-3); }

/* ============================================================
   Waitlist
   ============================================================ */
.waitlist {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}
.waitlist .form-microcopy { margin-top: calc(var(--space-8) * -1); }
.waitlist__copy { max-width: 560px; display: flex; flex-direction: column; gap: var(--space-4); }
.waitlist__heading {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink);
}
@media (min-width: 768px) { .waitlist__heading { font-size: 32px; } }
.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  width: 100%;
  max-width: 700px;
}
.form-success {
  display: none;
  padding: var(--space-6);
  border: 1px solid var(--line);
  background: var(--paper);
}
.form-success.is-visible { display: block; }
.waitlist__success { max-width: 460px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--bone);
  margin-top: auto;
}
.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-24);
}
@media (min-width: 768px) {
  .footer__grid { position: relative; flex-direction: row; align-items: center; justify-content: flex-start; }
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
@media (min-width: 768px) { .footer__brand { align-items: flex-start; } }
.footer__logo { width: 120px; height: auto; }
.footer__social { display: flex; gap: var(--space-6); align-items: center; }
@media (min-width: 768px) {
  .footer__social {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.footer__social .icon-btn svg { width: 26px; height: 26px; }
.footer .icon-btn { color: var(--bone); }
.footer :focus-visible { outline-color: var(--bone); }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
}
