/* ============================================================
   Iron Oak Web, style.css
   Charcoal, warm off-white, burnt orange. Nothing else.
   Space Grotesk display, Inter body. All motion transform/opacity.
   ============================================================ */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #141414;
  --ink-soft: #1d1c1a;
  --paper: #faf8f5;
  --orange: #c96f2e;
  --orange-ink: #9c541e; /* burnt orange dark enough for small text on paper */

  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 44px);
  --sec: clamp(96px, 14vh, 170px);
}

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

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

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

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

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

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

/* ---------- type ---------- */
h1, h2, h3, .foot-big {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 { font-size: clamp(1.9rem, 5.5vw, 3.25rem); max-width: 22ch; text-wrap: balance; }

p { text-wrap: pretty; }

.eyebrow, .kicker, .label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow, .label { color: var(--orange-ink); }

/* recurring thin orange rule: draws in on reveal */
.eyebrow::before, .kicker::before, .label::before,
h2::after { content: none; }

.eyebrow, .kicker, .label { display: flex; align-items: flex-start; gap: 14px; }

.eyebrow::before, .kicker::before, .label::before { margin-top: 0.5em; }

@media (max-width: 480px) {
  .eyebrow, .kicker, .label { font-size: 0.8125rem; letter-spacing: 0.1em; gap: 10px; }
}

.eyebrow::before, .kicker::before, .label::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--orange);
  flex: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease) 0.15s;
}

.js.loaded .eyebrow::before,
.kicker.in-view::before, .label.in-view::before { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px; /* the deliberate rounded element */
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  touch-action: manipulation;
  white-space: nowrap;
  transition: transform 0.12s var(--ease), background-color 0.3s var(--ease);
  will-change: transform;
}

.btn:active { transform: scale(0.96); }

.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #d67c3a; }
}

/* link with drawn underline */
.u-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); }
}

/* ---------- scroll reveals ---------- */
.js [data-r],
.js [data-r-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-r].in-view,
.js [data-r-group].in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(16px, 4vw, 32px);
  background: rgba(20, 20, 20, 0.97);
  color: var(--paper);
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease);
}

.site-head.show { transform: translateY(0); }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.wordmark .mark { width: 24px; height: 24px; flex: none; }

.foot-stamp {
  width: 26px;
  height: 26px;
  margin-top: clamp(56px, 9vh, 96px);
}

.foot-stamp + .foot-small { margin-top: 14px; }

.head-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }

.head-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.head-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .head-link:hover::after { transform: scaleX(1); }
}

/* ============================================================
   1. HERO (asymmetric, left-set, luxury whitespace)
   ============================================================ */
.hero {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-block: clamp(110px, 16vh, 180px) clamp(64px, 9vh, 120px);
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 5rem);
  max-width: 15ch;
  margin-block: 22px 26px;
}

/* line-mask reveal: JS groups words into lines, then animates */
.js.hl-built .hero-title .hl { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

.js.hl-built .hero-title .hli {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--l, 0) * 80ms + 100ms);
  will-change: transform;
}

.js.hl-built.loaded .hero-title .hli { transform: translateY(0); }

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: rgba(20, 20, 20, 0.72);
}

.hero-price {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--orange-ink);
}

.hero-cta { margin-top: 34px; }

.cta-micro {
  margin-top: 12px;
  font-size: 0.875rem;
  color: rgba(20, 20, 20, 0.6);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: clamp(40px, 6vh, 64px);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(20, 20, 20, 0.75);
}

.trust-strip li { display: flex; align-items: center; }

.trust-strip li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  margin-inline: 14px;
}

/* hero load fades */
.js .hero-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms + 120ms);
}

.js.loaded .hero-fade { opacity: 1; transform: translateY(0); }

/* the header/bar sentinel needs real height for reliable observation;
   the negative margin cancels it out of the layout */
#hero-end { height: 1px; margin-top: -1px; }

/* ============================================================
   MARQUEE (one strip only)
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(20, 20, 20, 0.12);
  padding-block: 18px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: 0.02em;
  color: rgba(20, 20, 20, 0.65);
  animation: marq 30s linear infinite;
}

.marquee-track .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* ============================================================
   2. TRADE SELECTOR
   ============================================================ */
.trades { padding-block: var(--sec); }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 1100px) { .chip-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.chip {
  position: relative;
  overflow: hidden;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: -0.01em;
  transition: transform 0.12s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  touch-action: manipulation;
}

.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.chip:active,
.js [data-r-group].in-view > .chip:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--paper); border-color: var(--orange); }
  .chip:hover::before { transform: scaleX(1); }
}

.chip[aria-pressed="true"] {
  color: var(--paper);
  border-color: var(--orange);
}

.chip[aria-pressed="true"]::before { transform: scaleX(1); }

.chip-hint {
  margin-top: 20px;
  color: rgba(20, 20, 20, 0.65);
}

.trade-status[hidden] { display: none; }

.trade-status {
  margin-top: 28px;
  padding: 24px 26px;
  border-left: 2px solid var(--orange);
  background: rgba(201, 111, 46, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.trade-status-text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  max-width: 30ch;
}

/* ============================================================
   3. LONE STAR SHOWCASE (dark act)
   ============================================================ */
.showcase {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sec);
}

.kicker { color: var(--orange); }

.showcase-title {
  margin-block: 20px clamp(40px, 6vh, 72px);
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  max-width: 16ch;
}

.showcase-grid { display: grid; grid-template-columns: 1fr; gap: clamp(44px, 6vw, 96px); }

.frame-wrap { max-width: 400px; }

.device {
  border: 1px solid rgba(250, 248, 245, 0.14);
  border-radius: 20px; /* deliberate rounded element */
  background: var(--ink-soft);
  padding: 10px;
}

.device-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 12px;
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.22);
}

.device-dot:first-child { background: var(--orange); }

.device-url {
  margin-left: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 245, 0.55);
}

.device-screen {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 414 / 780;
  background: var(--ink-soft);
}

.device-shot {
  width: 100%;
  animation: shotpan 22s linear alternate infinite;
  animation-play-state: paused;
  will-change: transform;
}

.frame-wrap.in-view .device-shot { animation-play-state: running; }

@keyframes shotpan {
  from { transform: translateY(0); }
  to   { transform: translateY(-64%); }
}

.btn-frame { width: 100%; margin-top: 16px; }

.frame-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(250, 248, 245, 0.6);
}

.proof-list { display: flex; flex-direction: column; gap: clamp(36px, 5vh, 56px); }

.proof {
  border-top: 1px solid rgba(250, 248, 245, 0.14);
  padding-top: 22px;
  max-width: 46ch;
}

.proof-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 10px;
}

.proof p {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: rgba(250, 248, 245, 0.88);
}

.showcase-close {
  margin-top: clamp(48px, 7vh, 80px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: rgba(250, 248, 245, 0.85);
  max-width: 34ch;
}

/* desktop: pin the frame while proofs pass */
@media (min-width: 960px) {
  /* columns must stretch to full row height or the sticky frame has no track to pin along */
  .showcase-grid { grid-template-columns: minmax(320px, 420px) 1fr; }
  .frame-wrap { position: sticky; top: 84px; }
  .proof-list { padding-top: 4vh; }
  .proof { min-height: 38vh; }
  .proof:last-child { min-height: 0; }
}

/* ============================================================
   4. PROCESS (numbered, horizontal on desktop)
   ============================================================ */
.process { padding-block: var(--sec); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
  margin-top: clamp(40px, 6vh, 64px);
  counter-reset: step;
}

.step { border-left: 2px solid var(--orange); padding-left: 22px; }

.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--orange-ink);
  margin-bottom: 14px;
}

.step h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.01em; }

.step p { color: rgba(20, 20, 20, 0.7); max-width: 34ch; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { border-left: 0; border-top: 2px solid var(--orange); padding-left: 0; padding-top: 22px; }
}

/* ============================================================
   5. PRICING
   ============================================================ */
.pricing { padding-block: var(--sec); }

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(40px, 6vh, 64px);
}

.tier {
  position: relative;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 2px; /* sharp */
  padding: 30px 26px;
  background: #fff;
  transition: opacity 0.7s var(--ease), transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.tier h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.65);
}

.tier-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-block: 10px 14px;
}

.tier > p:last-child { font-size: 0.9875rem; color: rgba(20, 20, 20, 0.7); }

.tier-featured {
  border: 2px solid var(--orange);
  box-shadow: 0 18px 40px -24px rgba(20, 20, 20, 0.35);
}

.tier-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  /* extra specificity: the group-reveal rule also sets transform and must lose to hover */
  .tier:hover,
  .js [data-r-group].in-view > .tier:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
  }
}

@media (min-width: 700px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1100px) {
  .tier-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  /* pre-elevation via margin, not transform, so it survives the reveal rule */
  .tier-featured { margin-top: -6px; }
}

.pricing-foot {
  margin-top: 28px;
  font-size: 0.9875rem;
  color: rgba(20, 20, 20, 0.7);
  max-width: 62ch;
}

.pricing-cta { margin-top: 30px; }

/* ============================================================
   6. PROMISES (dark, editorial list)
   ============================================================ */
.promises {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sec);
}

.promise-list { margin-top: clamp(36px, 5vh, 56px); }

.promise-list li {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  padding-block: clamp(22px, 3.5vh, 34px);
  border-top: 1px solid rgba(250, 248, 245, 0.15);
  max-width: 26ch;
  text-wrap: balance;
}

.promise-list li:last-child { border-bottom: 1px solid rgba(250, 248, 245, 0.15); }

/* ============================================================
   7. ABOUT (asymmetric photo + body)
   ============================================================ */
.about { padding-block: var(--sec); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-photo img {
  width: 100%;
  max-width: 340px;
  border-radius: 2px;
  border-bottom: 3px solid var(--orange);
}

.about-body h2 { margin-bottom: 22px; }

.about-body > p { max-width: 56ch; color: rgba(20, 20, 20, 0.78); }

.about-line {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 820px) {
  .about-grid { grid-template-columns: minmax(240px, 340px) 1fr; }
}

/* ============================================================
   8. FAQ (narrow accordion)
   ============================================================ */
.faq { padding-block: var(--sec); padding-top: 0; }

.faq-wrap { max-width: 760px; margin-inline: auto; }

.faq-list { margin-top: clamp(32px, 5vh, 52px); }

.faq-list details { border-bottom: 1px solid rgba(20, 20, 20, 0.16); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-mark {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: var(--orange);
  transition: transform 0.4s var(--ease);
}

.faq-mark::after { transform: rotate(90deg); }

.faq-list details[open] .faq-mark::after { transform: rotate(0deg); }

.faq-list details p {
  padding-bottom: 22px;
  color: rgba(20, 20, 20, 0.72);
  max-width: 58ch;
}

/* ============================================================
   9. FINAL CTA + FOOTER (the oversized editorial moment)
   ============================================================ */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sec) clamp(48px, 7vh, 80px);
}

.foot-big {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  max-width: 13ch;
  text-wrap: balance;
}

.foot-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: clamp(32px, 5vh, 52px);
}

.foot-mail { color: rgba(250, 248, 245, 0.8); font-size: 1rem; }

.foot-small {
  margin-top: clamp(56px, 9vh, 96px);
  font-size: 0.875rem;
  color: rgba(250, 248, 245, 0.55);
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 20, 20, 0.97);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}

.cta-bar.show { transform: translateY(0); }

.cta-bar-btn { width: 100%; min-height: 48px; }

.cta-bar-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(250, 248, 245, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid rgba(250, 248, 245, 0.25);
  border-radius: 50%;
  transition: transform 0.12s var(--ease);
}

.cta-bar-close:active { transform: scale(0.96); }

body.bar-open { padding-bottom: 80px; }

@media (min-width: 720px) { .cta-bar { display: none; } body.bar-open { padding-bottom: 0; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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;
    transition-delay: 0ms !important;
  }

  .marquee { display: none; }

  .device-shot { animation: none; }

  .js [data-r], .js [data-r-group] > *,
  .js .hero-fade,
  .js.hl-built .hero-title .hli {
    opacity: 1;
    transform: none;
  }

  .eyebrow::before, .kicker::before, .label::before { transform: scaleX(1); }
}
