/* ============================================================
   HackFlow Automation — cream & clay
   ============================================================ */

:root {
  /* palette */
  --cream:      #FAF6EF;
  --cream-2:    #F3ECDF;
  --paper:      #FFFDF9;
  --ink:        #241F1B;
  --ink-2:      #4B433B;
  --muted:      #857A6B;
  --clay:       #BC6A4B;
  --clay-deep:  #9E5238;
  --clay-soft:  #EFD7C8;
  --clay-wash:  #F6E7DD;
  --sage:       #7C8B6F;
  --line:       #E7DECF;
  --line-2:     #DCD1BE;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* form */
  --radius:   16px;
  --radius-lg:22px;
  --shadow-sm: 0 1px 2px rgba(60,42,28,.06), 0 4px 14px rgba(60,42,28,.05);
  --shadow-md: 0 6px 24px rgba(60,42,28,.10), 0 2px 6px rgba(60,42,28,.06);
  --shadow-lg: 0 18px 50px rgba(60,42,28,.16);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--clay-deep); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--ink); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

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

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

/* ---------- buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay-deep); background: var(--clay-wash); }
.btn--sm { --pad-y: .6rem; --pad-x: 1rem; font-size: .92rem; }
.btn--block { width: 100%; }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay-deep); margin-bottom: .9rem;
}
.eyebrow--center { text-align: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand__mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: linear-gradient(150deg, var(--clay), var(--clay-deep));
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand__text { font-size: 1.12rem; letter-spacing: -.01em; }
.brand__thin { font-weight: 500; color: var(--ink-2); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.nav__links a:hover { color: var(--clay-deep); }
.nav__links .btn { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.03; letter-spacing: -.025em;
  margin-bottom: 1.3rem;
}
.hero__title em { font-style: italic; color: var(--clay-deep); font-weight: 500; }
.hero__lede { font-size: 1.18rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.hero__note { font-size: .9rem; color: var(--muted); }

/* fit card */
.fitcard {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-lg);
  position: relative;
}
.fitcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.fitcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.fitcard__tag {
  background: var(--clay-wash); color: var(--clay-deep); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .34rem .7rem; border-radius: 999px;
}
.fitcard__time { color: var(--muted); font-size: .85rem; font-weight: 500; }
.fitcard__title { font-size: 1.6rem; margin-bottom: .5rem; }
.fitcard__sub { color: var(--ink-2); font-size: .98rem; margin-bottom: 1.1rem; }
.fitcard__list { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .55rem; }
.fitcard__list li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: var(--ink-2); }
.fitcard__list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/70% no-repeat;
}
.fitcard__fine { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* trust row */
.trustrow {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.trustrow > span { color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.trustrow ul { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.trustrow li { color: var(--ink-2); font-weight: 600; font-size: 1rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section__title { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
.section__title.center { text-align: center; }
.section__lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin-bottom: 2.5rem; }
.section__lede.center { text-align: center; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* problem / stats */
.problem { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); text-align: center;
}
.stat__num {
  font-family: var(--serif); font-weight: 600; font-size: 3rem; color: var(--clay-deep);
  line-height: 1; margin-bottom: .7rem; letter-spacing: -.02em;
}
.stat__num span { font-size: 1.8rem; }
.stat p { color: var(--ink-2); font-size: .98rem; }

/* what I do / paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.path {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.path--lead { border-color: var(--clay-soft); background: linear-gradient(180deg, var(--paper), var(--clay-wash)); }
.path__badge {
  position: absolute; top: -13px; left: 2rem; background: var(--clay); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.path h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.path p { color: var(--ink-2); margin-bottom: 1.2rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--ink-2); font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px;
  border-radius: 50%; background: var(--clay-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/68% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/68% no-repeat;
}
.path--lead .ticks li::before { background: var(--clay); }
.human-line {
  margin-top: 2.5rem; text-align: center; font-size: 1.25rem; color: var(--ink-2);
  max-width: 52ch; margin-left: auto; margin-right: auto; font-family: var(--serif); font-weight: 400;
}
.human-line strong { color: var(--ink); font-weight: 600; }

/* how it works / ladder band */
.band { background: var(--ink); color: var(--cream); }
.band .eyebrow { color: var(--clay-soft); }
.band .section__title { color: #fff; }
.ladder { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.rung {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 1.5rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 1.6rem 1.8rem;
  transition: background .2s, border-color .2s;
}
.rung:hover { background: rgba(255,255,255,.07); border-color: rgba(188,106,75,.5); }
.rung__price {
  font-family: var(--serif); font-weight: 600; font-size: 2.1rem; color: var(--clay-soft);
  text-align: center; line-height: 1; letter-spacing: -.02em;
}
.rung__price span { font-size: 1.1rem; display: block; margin-top: .2rem; }
.rung__body h3 { color: #fff; font-size: 1.35rem; margin-bottom: .4rem; }
.rung__body p { color: rgba(250,246,239,.78); font-size: 1rem; }
.band__note {
  margin-top: 2rem; text-align: center; color: rgba(250,246,239,.6); font-size: .95rem;
  max-width: 62ch; margin-left: auto; margin-right: auto;
}

/* ============================================================
   FIT CHECK QUIZ
   ============================================================ */
.fitcheck { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.quiz {
  max-width: 720px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.6rem); margin-top: 1rem;
}
.quiz__progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.quiz__bar { flex: 1; height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--clay), var(--clay-deep)); border-radius: 999px; transition: width .35s var(--ease); }
.quiz__count { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.quiz__stage { min-height: 220px; }
.q__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: .6rem; }
.q__title { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: .4rem; }
.q__hint { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.q__options { display: grid; gap: .7rem; }
.opt {
  display: flex; align-items: flex-start; gap: .8rem; text-align: left;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s, transform .1s;
}
.opt:hover { border-color: var(--clay-soft); background: var(--clay-wash); }
.opt[aria-checked="true"] { border-color: var(--clay); background: var(--clay-wash); box-shadow: 0 0 0 3px rgba(188,106,75,.15); }
.opt__dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2);
  margin-top: .15em; position: relative; transition: border-color .15s;
}
.opt[aria-checked="true"] .opt__dot { border-color: var(--clay); }
.opt[aria-checked="true"] .opt__dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--clay);
}
.opt__label { font-size: 1rem; line-height: 1.45; }
/* form fields */
.q__fields { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(188,106,75,.15);
}
.field textarea { resize: vertical; min-height: 84px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.q__privacy { font-size: .82rem; color: var(--muted); margin-top: .3rem; display: flex; gap: .5rem; align-items: flex-start; }
.quiz__controls { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.quiz__controls .btn:only-child { margin-left: auto; }

/* result */
.result { text-align: center; animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result__seal {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--clay-wash); display: grid; place-items: center;
}
.result__seal svg { width: 34px; height: 34px; fill: var(--clay-deep); }
.result__kicker { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result__area { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--clay-deep); margin: .3rem 0 .6rem; }
.result__level { display: inline-flex; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font-weight: 600; font-size: .95rem; margin-bottom: 1.2rem; }
.result__level b { color: var(--clay-deep); }
.result__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); }
.result__msg { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 1.6rem; }
.result__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 1rem; }
.result__soft { font-size: .92rem; color: var(--muted); max-width: 44ch; margin: 0 auto; }
.result__soft b { color: var(--ink-2); }
.result__status { font-size: .85rem; margin-top: 1.2rem; color: var(--sage); font-weight: 600; }
.result__status[data-state="error"] { color: var(--clay-deep); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.photo-frame {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 12px, var(--cream) 12px, var(--cream) 24px);
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-md); color: var(--muted);
}
.photo-frame span { font-family: var(--serif); font-size: 1.4rem; color: var(--ink-2); }
.photo-frame small { display: block; margin-top: .3rem; font-size: .82rem; }
.about__copy p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 1rem; }
.about__copy em { color: var(--clay-deep); font-style: italic; }
.about__copy .btn { margin-top: .6rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--cream), var(--clay-wash)); }
.contact__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contact__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.contact__direct { color: var(--muted); font-size: .95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: 3rem 0 2rem; }
.footer__inner { display: grid; gap: 1.5rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand strong { color: #fff; font-size: 1.05rem; }
.footer__brand p { color: rgba(250,246,239,.6); font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.footer__links a { color: rgba(250,246,239,.8); font-size: .95rem; }
.footer__links a:hover { color: var(--clay-soft); }
.footer__legal { color: rgba(250,246,239,.45); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lede { max-width: none; }
  .fitcard { max-width: 460px; }
  .paths { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .photo-frame { max-width: 340px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: .5rem 0; box-shadow: var(--shadow-md); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .9rem 24px; }
  .nav__links .btn { margin: .5rem 24px; }
  .nav__toggle { display: block; }
  .rung { grid-template-columns: 1fr; gap: .5rem; text-align: left; }
  .rung__price { text-align: left; }
  .field--row { grid-template-columns: 1fr; }
  .quiz__controls .btn { flex: 1; }
}
