/* ==========================================================================
   Phantom 360 - site styles
   Monochrome, dark, product-photography-led. Mobile-first.
   No framework, no build step. Edit this file directly.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg:        #060708;
  --surface:   #0C0D11;
  --surface-2: #14161B;
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.18);

  --text:      #FFFFFF;
  --muted:     #9DA1A8;
  --dim:       #6A6E76;

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad:  clamp(1.25rem, 5vw, 4rem);   /* horizontal page gutter */
  --gap:  clamp(3.5rem, 12vw, 9rem);   /* vertical section rhythm */
  --max:  76rem;                       /* content max width */
  --measure: 34rem;                    /* readable text column */
}

/* --- 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: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* --- Type --------------------------------------------------------------- */
.h1, .h2, .h3, .eyebrow, .nav__brand, .btn, .stat__k {
  font-stretch: 84%;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.6rem, 10.5vw, 6.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.h2 {
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 1.5rem;
}
.lede  { font-size: clamp(1.05rem, 3.6vw, 1.35rem); color: var(--muted); max-width: var(--measure); line-height: 1.5; }
.body  { color: var(--muted); max-width: var(--measure); }
.body + .body { margin-top: 1rem; }
.small { font-size: 0.875rem; color: var(--dim); }
strong { color: var(--text); font-weight: 600; }

/* --- Layout ------------------------------------------------------------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gap); }
.section--tight { padding-block: clamp(2.5rem, 8vw, 5rem); }
.section + .section { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1.5rem; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: .75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: var(--pad); top: .5rem; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Header ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  max-width: var(--max); margin-inline: auto; padding: 0 var(--pad);
  height: 3.75rem; display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand {
  display: flex; align-items: center; gap: .625rem;
  text-decoration: none; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: .95rem; margin-right: auto;
}
.nav__brand svg { width: 1.4rem; height: 1.4rem; flex: none; }
.nav__brand span { white-space: nowrap; }

/* Small phones: shrink the header type rather than let the wordmark wrap. */
@media (max-width: 26rem) {
  .nav__brand { font-size: .8rem; letter-spacing: .04em; gap: .5rem; }
  .nav__brand svg { width: 1.2rem; height: 1.2rem; }
  .nav__links { gap: .8rem; }
  .nav__links a { font-size: .7rem; letter-spacing: .08em; }
}
.nav__links { display: flex; gap: clamp(.9rem, 3.5vw, 2rem); align-items: center; }
.nav__links a {
  text-decoration: none; color: var(--dim);
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--text); }
body[data-page="product"] a[data-nav="product"],
body[data-page="faq"]     a[data-nav="faq"],
body[data-page="contact"] a[data-nav="contact"] { color: var(--text); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 2rem; min-height: 3.25rem;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; border: 1px solid var(--text); border-radius: 2px;
  background: var(--text); color: var(--bg);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn:hover { background: transparent; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--dim); border-color: var(--line);
  border-style: dashed; cursor: not-allowed; pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* --- Placeholders (photography not shot yet) ---------------------------- */
/* Swap each .ph block for a real <img>. See assets/img/README.md.          */
.ph {
  position: relative; display: grid; place-items: center;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    45deg, transparent 0 14px, rgba(255,255,255,.022) 14px 28px);
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  padding: 2rem 1.25rem;
  text-align: center;
  min-height: 14rem;
}
.ph__tag {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .24em;
  color: var(--text); border: 1px solid var(--line-2); border-radius: 999px;
  padding: .3rem .7rem; display: inline-block; margin-bottom: .85rem;
}
.ph__note { font-size: .8rem; color: var(--dim); max-width: 26rem; line-height: 1.5; margin-inline: auto; }
.ph--hero   { min-height: min(78vh, 40rem); border-radius: 0; border-inline: 0; }
.ph--square { aspect-ratio: 1 / 1; min-height: 0; }
.ph--wide   { aspect-ratio: 16 / 10; min-height: 0; }

/* "To be decided" markers - keeps unfinished copy impossible to miss. */
.tbd {
  display: inline-block;
  font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text); background: var(--surface-2);
  border: 1px dashed var(--line-2); border-radius: 2px;
  padding: .12em .5em; white-space: nowrap;
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; }
.hero__media { position: relative; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, transparent 72%);
}
.hero__copy {
  position: relative; z-index: 2;
  max-width: var(--max); margin: -6.5rem auto 0; padding: 0 var(--pad) var(--gap);
}
.hero__copy .lede { margin-top: 1.5rem; }
.hero__copy .btn-row { margin-top: 2.25rem; }

/* --- Split rows --------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
}

/* --- Grids -------------------------------------------------------------- */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Spec list ---------------------------------------------------------- */
.specs { border-top: 1px solid var(--line); }
.specs div {
  display: grid; grid-template-columns: 1fr; gap: .25rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) {
  .specs div { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; }
}
.specs dt {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--dim);
}
.specs dd { margin: 0; color: var(--text); }
.specs dd small { display: block; color: var(--dim); font-size: .82rem; margin-top: .2rem; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.card .h3 { margin-bottom: .75rem; }
.stat__k {
  display: block; font-size: clamp(1.6rem, 5vw, 2.25rem); font-weight: 700;
  text-transform: uppercase; margin-bottom: .4rem;
}

/* --- Signup ------------------------------------------------------------- */
.signup { max-width: 30rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-width: 0; min-height: 3.25rem;
  padding: 1rem 1.125rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 2px;
  font: inherit; font-size: 1rem;
}
.signup input::placeholder { color: var(--dim); }
.signup .btn { flex: 0 0 auto; }
/* Once the field and button no longer sit side by side, make the button a
   full-width tap target rather than a stub. */
@media (max-width: 30rem) { .signup .btn { flex: 1 1 100%; } }
.signup__note { margin-top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: baseline; gap: 1rem; cursor: pointer;
  padding: 1.5rem 0; list-style: none;
  font-size: clamp(1rem, 3vw, 1.15rem); font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-size: 1.5rem; font-weight: 400; color: var(--dim); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--text); }
.faq__a { padding-bottom: 1.75rem; }
.faq__a p { color: var(--muted); max-width: var(--measure); }
.faq__a p + p { margin-top: .85rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; }
.footer__in { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .footer__in { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer h4 {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--dim); margin: 0 0 1rem;
}
.footer li + li { margin-top: .55rem; }
.footer a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer a:hover { color: var(--text); }
.footer__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .78rem; color: var(--dim);
}

/* --- Utility ------------------------------------------------------------ */
.u-center { text-align: center; margin-inline: auto; }
.u-center .lede, .u-center .body { margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
