/* Lookbook site — set-black theme, the app's own palette and faces.
   Charcoal #16181D · lifted #1C1F26 · gold #E3B341 · cream #EFE9DC · grey #9BA3AF */

/* ---------- fonts (self-hosted, subset from the app's own bundle) ---------- */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #16181D;
  --bg-lift: #1C1F26;
  --bg-deep: #0B0C0E;
  --panel: #1F232B;
  --gold: #E3B341;
  --gold-hi: #ECC153;
  --gold-dim: #B8912F;
  --cream: #EFE9DC;
  --body-ink: #C9CDD4;
  --grey: #9BA3AF;
  --grey-dim: #6B7280;
  --line: rgba(239, 233, 220, 0.09);
  --line-strong: rgba(239, 233, 220, 0.16);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- display type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-weight: 700;
  line-height: 1.06;
  color: var(--cream);
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.rule {
  width: 56px; height: 3px;
  background: var(--gold);
  border: 0;
  margin: 20px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- sticky nav ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 24, 29, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 66px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand:hover { text-decoration: none; color: var(--cream); }
.brand .mark { width: 29px; height: 32px; color: var(--gold); flex: none; }
.brand span {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 20px;
  transform: translateY(1px);
}
.site-head nav { display: flex; align-items: center; gap: 30px; }
.site-head nav a:not(.btn) {
  color: var(--grey);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px;
  transition: color 0.2s ease, background-size 0.25s ease;
}
.site-head nav a:not(.btn):hover {
  color: var(--cream);
  text-decoration: none;
  background-size: 100% 2px;
}

/* mobile nav toggle (checkbox pattern, no JS) */
.nav-box {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle { display: none; }

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
  }
  .site-head nav {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 28px 20px;
  }
  .nav-box:checked ~ nav { display: flex; }
  .site-head nav a:not(.btn) {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .site-head nav a.btn { margin-top: 16px; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 30px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--gold-hi);
  color: var(--bg-deep);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(227, 179, 65, 0.25);
}
.btn.small { padding: 10px 20px; font-size: 14px; }
.btn.ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold-dim);
}
.btn.ghost:hover {
  background: rgba(227, 179, 65, 0.08);
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 560px at 78% -10%, rgba(227, 179, 65, 0.12), transparent 60%),
    linear-gradient(180deg, #17191E 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(239, 233, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 233, 220, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 104px;
  min-height: calc(88vh - 66px);
}
.hero-copy .mark-lg { width: 62px; height: 70px; color: var(--gold); margin-bottom: 30px; }
.hero-copy h1 { font-size: clamp(46px, 6.2vw, 76px); margin-top: 16px; }
.hero-copy .sub {
  color: var(--grey);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 540px;
  margin-top: 24px;
}
.cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.pilot-line {
  margin-top: 34px;
  color: var(--grey-dim);
  font-size: 14.5px;
  max-width: 520px;
}
.pilot-line strong { color: var(--grey); font-weight: 600; }

/* phone frame */
.phone {
  background: #08090B;
  border: 1px solid rgba(239, 233, 220, 0.14);
  border-radius: 42px;
  padding: 13px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 8px 26px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(239, 233, 220, 0.08);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.hero-shot { max-width: 360px; margin: 0 auto; }

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 80px;
    min-height: 0;
    text-align: center;
  }
  .hero-copy .mark-lg { margin-left: auto; margin-right: auto; }
  .hero-copy .sub, .pilot-line { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-shot { max-width: 300px; }
}

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

section.band { padding: 118px 0; }
section.band.lift { background: var(--bg-lift); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.deep { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 12px; }
.section-head p { color: var(--grey); margin-top: 18px; font-size: 17.5px; }

/* three-column story */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
/* Four-card sections: auto-fit wraps 3+1 and orphans the fourth card —
   a 2×2 reads as a set. */
@media (min-width: 720px) {
  .cols.pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.col-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.col-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
/* Hand-drawn department glyphs — same wobbly single-stroke language as the
   app's chat wallpaper. The gold lives HERE now, not in a border. */
.card-glyph {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.92;
}
.col-card:hover .card-glyph { color: var(--gold-hi); }
.col-card h3 { font-size: 23px; }
.col-card p { color: var(--grey); margin-top: 14px; font-size: 16px; }

/* feature + screenshot split sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
}
.split + .split { margin-top: 118px; }
.split.flip .split-media { order: -1; }
.split-media { max-width: 330px; margin: 0 auto; }
.split-copy .eyebrow { display: block; }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 12px; }
.split-copy > p { color: var(--grey); margin-top: 18px; }
.split-list { list-style: none; margin-top: 26px; }
.split-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  color: var(--body-ink);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.split-list li:last-child { border-bottom: 0; }
.split-list li::before {
  content: "";
  position: absolute; left: 2px; top: 21px;
  width: 14px; height: 3px;
  background: var(--gold);
}
.split-list strong { color: var(--cream); font-weight: 600; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.flip .split-media { order: 0; }
  .split-media { max-width: 280px; }
  .split + .split { margin-top: 96px; }
}

/* features grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px 26px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.feature:hover {
  border-color: rgba(227, 179, 65, 0.4);
  background: rgba(227, 179, 65, 0.03);
  transform: translateY(-2px);
}
.feature h3 { font-size: 20px; letter-spacing: 0.05em; color: var(--gold); }
.feature p { color: var(--grey); font-size: 15.5px; margin-top: 12px; }

/* screenshot strip */
.strip {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.strip .phone { width: 250px; flex: none; }
@media (max-width: 880px) {
  .strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 6px 28px 22px;
    margin-left: -28px;
    margin-right: -28px;
  }
  .strip .phone { width: 220px; scroll-snap-align: center; }
}

/* ---------- page head (subpages) ---------- */

.page-head {
  background:
    radial-gradient(ellipse 700px 380px at 80% -20%, rgba(227, 179, 65, 0.1), transparent 60%),
    linear-gradient(180deg, #17191E 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 76px 0 60px;
}
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 14px; }
.page-head .meta { color: var(--grey); margin-top: 18px; max-width: 700px; }

/* ---------- prose (legal / security) ---------- */

.prose { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.prose h2 {
  font-size: 24px;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.prose p { color: var(--body-ink); margin: 15px 0; }
.prose ul { margin: 15px 0 15px 24px; color: var(--body-ink); }
.prose li { margin: 9px 0; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--cream); font-weight: 600; }
.prose em { color: var(--grey); }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.prose th, .prose td {
  text-align: left;
  padding: 11px 15px;
  border: 1px solid var(--line);
  color: var(--body-ink);
  vertical-align: top;
}
.prose th {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
  background: var(--panel);
}

/* ---------- productions page ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; counter-reset: step; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 30px;
  counter-increment: step;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step h3 { font-size: 22px; }
.step p { color: var(--grey); margin-top: 12px; font-size: 15.5px; }

.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 48px; list-style: none; }
.includes li {
  position: relative;
  padding: 14px 0 14px 30px;
  color: var(--body-ink);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.includes li::before {
  content: "";
  position: absolute; left: 2px; top: 24px;
  width: 14px; height: 3px;
  background: var(--gold);
}
.includes li strong { color: var(--cream); font-weight: 600; }

/* form */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 44px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 8px;
}
input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(239, 233, 220, 0.18);
  border-radius: 5px;
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--grey-dim); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 179, 65, 0.18);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--grey-dim); font-size: 14px; margin-top: 18px; }
.hidden { display: none; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 32px 22px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 118px 0;
  background:
    radial-gradient(ellipse 700px 420px at 50% 120%, rgba(227, 179, 65, 0.1), transparent 65%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 44px); }
.cta-band p { color: var(--grey); max-width: 560px; margin: 18px auto 34px; }

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

.site-foot {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 72px 0 44px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot-brand { color: var(--grey); }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--grey-dim); font-size: 14.5px; max-width: 260px; }
.foot-col h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin: 10px 0; }
.foot-col a { color: var(--grey); }
.foot-col a:hover { color: var(--cream); text-decoration: none; }
.fine {
  padding-top: 26px;
  color: var(--grey-dim);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
}
.fine a { color: var(--grey); }

@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 / success ---------- */

.notfound {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 28px;
  background:
    radial-gradient(ellipse 700px 420px at 50% -20%, rgba(227, 179, 65, 0.09), transparent 60%),
    var(--bg);
}
.notfound .mark-lg { width: 64px; height: 72px; color: var(--gold); margin-bottom: 28px; }
.notfound h1 { font-size: clamp(34px, 5vw, 48px); }
.notfound p { color: var(--grey); margin: 16px 0 32px; max-width: 480px; }

/* ---------- scroll-in reveal (JS adds html.js; no-JS stays visible) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
