/* ==========================================================================
   T-Forward Alpine — public marketing page
   ========================================================================== */

body.landing-body { display: block; padding: 0; }

/* ------------------------------------------------------- public header --- */

.site-header {
  position: sticky; top: 0; z-index: 900;
  padding: 16px 24px;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.site-header.stuck {
  background: rgba(7, 13, 18, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--card-border);
}
.site-header-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.nav-link {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text-muted); text-decoration: none; padding: 9px 14px;
  border-radius: var(--r-sm); transition: color 0.18s, background 0.18s;
}
.site-nav a.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
/* Duplicated auth links; the header carries them on desktop. */
.site-nav .nav-auth { display: none; }
.site-auth { display: flex; align-items: center; gap: 10px; }
.site-auth .signin {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none; padding: 10px 16px;
  border-radius: var(--r-md); transition: background 0.18s;
}
.site-auth .signin:hover { background: rgba(255, 255, 255, 0.07); }
.site-auth .signup {
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: #fff; text-decoration: none; padding: 10px 20px; border-radius: var(--r-md);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3); transition: all 0.2s; white-space: nowrap;
}
.site-auth .signup:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45); }

/* The full label by default; a short one once space is tight. Declared here,
   BEFORE the media queries that flip them — source order decides between rules
   of equal specificity, and having this last silently hid both. */
.signup .cta-long { display: inline; }
.signup .cta-short { display: none; }

.nav-toggle {
  display: none; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border); border-radius: var(--r-sm);
  color: var(--text); padding: 8px 10px; cursor: pointer;
}
@media (max-width: 1040px) {
  .site-header { padding: 14px 18px; }
  .site-header-inner { gap: 12px; }
  .site-nav { gap: 2px; }
  .site-nav a.nav-link { padding: 8px 10px; font-size: 13.5px; }
  .site-auth { gap: 8px; }
  .site-auth .signin { padding: 9px 12px; font-size: 13.5px; }
  .site-auth .signup { padding: 9px 16px; font-size: 13.5px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    /* Opaque: at 97% the hero showed through and the menu was hard to read. */
    background: #070d12;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 12px 24px 18px; gap: 2px;
  }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .site-header-inner { position: static; }

  /* In the dropdown, set apart from the page links. */
  .site-nav.open .nav-auth {
    display: block;
    color: var(--text);
    font-weight: 700;
  }
  .site-nav.open .nav-auth:first-of-type {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
  }

  /* "Create account" is too long once the menu button joins the row. */
  .signup .cta-long { display: none; }
  .signup .cta-short { display: inline; }
}

/*
 * The tagline is wider than the brand name, so below this the header cannot
 * hold it alongside both auth links, the primary button and the menu control.
 * Sign in drops out of the header — the dropdown still carries it — because
 * the tagline is what gives the header a voice, and the button is the action
 * most visitors actually want. Returning users pay one extra tap.
 */
/*
 * With the tagline present, the brand block is ~160px wide and the header
 * genuinely runs out of room below 400px — measured, not guessed. Sign in
 * moves to the dropdown there rather than being crushed against the tagline.
 * Above 400px everything sits together with at least 20px of clear space.
 */
@media (max-width: 399px) {
  .site-auth .signin { display: none; }
}

@media (max-width: 520px) {
  /*
   * Note `span.brand-tag`, matching the selector in theme.css. Written as
   * `.brand-text .brand-tag` this rule LOST on specificity despite loading
   * later, the tagline stayed visible, and the brand block stayed ~210px wide
   * — which is what pushed the menu button off the right edge of the screen.
   */
  /* Kept, not hidden — it says something now. Sized down to fit. */
  .brand-text span.brand-tag { display: block; font-size: 7.5px; letter-spacing: 0.2px; }
  .site-header { padding: 12px 14px; }
  .site-header-inner { gap: 14px; }

  /* Nothing in the header may grow past its content or refuse to give ground. */
  .site-auth { flex: none; gap: 6px; }
  /*
   * flex: none, NOT min-width: 0. Allowing the brand to shrink below its
   * content let the nowrap tagline overflow silently and sit underneath
   * "Sign in" — the header measured as fitting while visibly colliding.
   */
  .brand { flex: none; }
  .site-auth .signin { padding: 9px 4px; font-size: 12.5px; }
  .site-auth .signup { padding: 9px 14px; font-size: 13px; }
  .nav-toggle { padding: 7px 9px; }
}

/* ----------------------------------------------------------------- hero -- */

/* scroll-margin keeps an anchored section clear of the sticky header when
   someone jumps to it from the nav. */
.section { padding: 0 24px; position: relative; z-index: 1; scroll-margin-top: 92px; }
.section-inner { max-width: 1240px; margin: 0 auto; }

.hero { padding-top: 56px; padding-bottom: 40px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px; color: var(--aspen-gold);
  background: rgba(245, 158, 11, 0.09); border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 30px; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px); font-weight: 900;
  line-height: 1.06; letter-spacing: -0.5px; margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 20%, #7dd3fc 65%, #5eead4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede {
  font-size: clamp(16px, 1.8vw, 19px); color: var(--text-muted);
  line-height: 1.65; max-width: 560px; margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn-primary, .hero-cta .btn-ghost { padding: 14px 28px; font-size: 15px; }

.hero-points { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-points li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14.5px; color: var(--text-muted); line-height: 1.55;
}
.hero-points svg { color: var(--spruce); flex: none; margin-top: 3px; }
.hero-points strong { color: var(--text); font-weight: 600; }

/* Framed studio card sitting beside the hero copy. */
.hero-studio {
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-card);
}

/* -------------------------------------------------------------- trustbar - */

.trustbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  padding: 28px 24px; margin: 48px auto 0; max-width: 1000px;
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}
.trustbar div {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-muted); font-family: var(--font-ui); font-weight: 600;
}
.trustbar svg { color: var(--spruce); flex: none; }

/* ------------------------------------------------------------- sections -- */

.section-pad { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 700px) { .section-pad { padding-top: 60px; padding-bottom: 60px; } }

.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 40px); font-weight: 800;
  line-height: 1.18; color: #fff; margin-bottom: 14px; letter-spacing: -0.2px;
}
.section-head p { font-size: 16px; color: var(--text-muted); line-height: 1.65; }
.section-kicker {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px; color: var(--spruce);
  margin-bottom: 12px; display: block;
}

/* -------------------------------------------------------------- feature -- */

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.feature-card:hover {
  transform: translateY(-3px); border-color: var(--card-border-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: rgba(13, 148, 136, 0.13); border: 1px solid rgba(13, 148, 136, 0.28);
  color: var(--spruce-bright);
}
.feature-icon.gold { background: rgba(245, 158, 11, 0.11); border-color: rgba(245, 158, 11, 0.28); color: var(--aspen-gold); }
.feature-icon.sky { background: rgba(56, 189, 248, 0.11); border-color: rgba(56, 189, 248, 0.28); color: var(--sky-blue); }
.feature-card h3 {
  font-family: var(--font-ui); font-size: 17px; font-weight: 700;
  color: #fff; margin-bottom: 9px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---------------------------------------------------------------- steps -- */

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.step {
  position: relative; padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
}
.step-num {
  font-family: var(--font-display); font-size: 40px; font-weight: 900;
  line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--spruce) 0%, var(--aspen-gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.step h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ------------------------------------------------------------ comparison - */

.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.compare-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-lg); padding: 28px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.compare-card.highlight {
  border-color: rgba(13, 148, 136, 0.42);
  box-shadow: 0 0 40px rgba(13, 148, 136, 0.12);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.07) 0%, var(--card-bg) 45%);
}
.compare-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.compare-tag {
  font-family: var(--font-ui); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  background: rgba(13, 148, 136, 0.2); color: var(--spruce-bright);
  border: 1px solid rgba(13, 148, 136, 0.4); border-radius: 5px; padding: 3px 8px;
}
.compare-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-muted); line-height: 1.55;
}
.compare-list svg { flex: none; margin-top: 3px; }
.compare-list .yes { color: var(--success); }
.compare-list .no { color: var(--text-dim); }

/* ------------------------------------------------------------ use cases -- */

.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.usecase {
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 18px 20px; transition: all 0.2s;
}
.usecase:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.usecase h4 {
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.usecase h4 svg { color: var(--aspen-gold); flex: none; }
.usecase p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ------------------------------------------------------------------ faq -- */

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--card-border);
  border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(13, 148, 136, 0.35); background: rgba(13, 148, 136, 0.04); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 19px 22px; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-ui); font-size: 15.5px; font-weight: 600; color: var(--text);
  transition: color 0.18s;
}
.faq-q:hover { color: #fff; }
.faq-q .chev { margin-left: auto; flex: none; color: var(--text-dim); transition: transform 0.24s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--spruce); }
.faq-a { padding: 0 22px 20px; font-size: 14.5px; color: var(--text-muted); line-height: 1.72; display: none; }
.faq-a p + p { margin-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* ------------------------------------------------------------- cta band -- */

.cta-band {
  max-width: 1000px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16) 0%, rgba(2, 132, 199, 0.1) 50%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--r-xl); padding: 56px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.2;
}
.cta-band p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; line-height: 1.65; }
.cta-band .hero-cta { justify-content: center; }
.cta-fine { font-size: 12.5px; color: var(--text-dim); margin-top: 18px; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--card-border); margin-top: 80px;
  padding: 48px 24px 36px; position: relative; z-index: 1;
  background: rgba(7, 13, 18, 0.6);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-about p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-top: 16px; max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-muted);
  text-decoration: none; padding: 5px 0; transition: color 0.18s;
}
.footer-col a:hover { color: var(--spruce-bright); }
.footer-bottom {
  max-width: 1240px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.footer-bottom .built {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px;
}

/* --------------------------------------------------------- hero showcase -- */

.hero-showcase {
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-card);
}
.showcase-main {
  background: #fff; border-radius: var(--r-lg); padding: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  max-width: 320px; margin: 0 auto 20px;
}
.showcase-main svg { width: 100%; height: auto; display: block; }

.showcase-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.showcase-thumb { margin: 0; text-align: center; }
.thumb-art {
  background: #fff; border-radius: var(--r-md); padding: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); transition: transform 0.2s;
}
.showcase-thumb:hover .thumb-art { transform: translateY(-3px); }
.thumb-art svg { width: 100%; height: auto; display: block; }
.showcase-thumb figcaption {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  color: var(--text-muted); margin-top: 8px;
}
.showcase-note {
  font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 18px;
}

/* ---------------------------------------------------------- studio shell -- */

.studio-shell {
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-card);
}
@media (max-width: 600px) { .studio-shell, .hero-showcase { padding: 18px; } }
