/* ============================================================
   StrikeIQ — ATLAS design system
   Light, premium, warm. Schibsted Grotesk + Hanken Grotesk.
   Shared across index / shop / checkout.
   ============================================================ */

:root {
  --bg:        #F3EFE8;
  --surface:   #FFFFFF;
  --alt:       #FAF6EF;
  --ink:       #1A1714;
  --dim:       #6F675B;
  --faint:     #9A9184;
  --line:      #E4DCCE;
  --line-hi:   #D6CCBA;
  --accent:    #D8542B;
  --accent-hi: #BD441F;
  --accent-soft:#F4E1D6;
  --panel:     #1A1714;
  --panel-dim: #A59B8C;
  --good:      #1F8A5B;

  --wrap: 1240px;
  --pad: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---- Type ------------------------------------------------- */
.disp {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; margin: 0;
}
.disp-700 { font-weight: 700; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}

/* ---- Layout ----------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 16px 28px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }

.link { color: var(--dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.link:hover { color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

/* ---- Nav -------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,239,232,0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center;
}
.brand-name {
  font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: -0.02em; line-height: 1;
}
.brand-name span { color: var(--accent); }
.brand-by {
  font-size: 12px; color: var(--faint); letter-spacing: 0.1em;
  text-transform: uppercase; border-left: 1px solid var(--line-hi);
  padding-left: 14px; margin-left: 3px;
}
a.brand-by { transition: color .2s; }
a.brand-by:hover { color: var(--accent); }
.ks-link { color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.ks-link:hover { border-color: var(--accent); }
.foot a.ks-link { color: #fff; }
.foot a.ks-link:hover { color: var(--accent); border-color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Cart button + badge */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-hi);
  color: var(--ink); transition: border-color .2s, background .2s; }
.nav-cart:hover { border-color: var(--ink); }
.nav-cart svg { width: 19px; height: 19px; }
.nav-cart .badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }

/* App-store badges (official marks) */
.store-badges { display: flex; gap: 8px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 11px; padding: 6px 13px 6px 11px; transition: background .2s, transform .15s; }
.store-badge:hover { background: #000; }
.store-badge:active { transform: translateY(1px); }
.store-ico { width: 20px; height: 20px; flex: none; }
.store-txt { display: flex; flex-direction: column; line-height: 1.04; text-align: left;
  font-family: 'Schibsted Grotesk', sans-serif; font-weight: 700; font-size: 14px; }
.store-txt small { font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; font-weight: 500; }
.store-badges.stack { flex-direction: column; }
.store-badges.stack .store-badge { justify-content: flex-start; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s; }

/* ---- Reveal ----------------------------------------------- */
/* Content is always visible. (An earlier scroll-reveal animation was removed:
   it could strand content at opacity 0 in throttled/non-painting contexts.)
   The .reveal class is retained in markup as a harmless hook. */
.reveal { opacity: 1; transform: none; }

/* ---- Stat strip ------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat .v { font-family: 'Schibsted Grotesk', sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }
.stat .k { font-size: 14px; color: var(--dim); margin-top: 4px; }

/* ---- Phone ------------------------------------------------ */
.phone {
  background: #171411; border-radius: 38px; padding: 8px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45);
  aspect-ratio: 9 / 19.5; overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

/* ---- Section scaffolding ---------------------------------- */
.section { border-bottom: 1px solid var(--line); }
.section.alt { background: var(--alt); }
.section-pad { padding: 100px var(--pad); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--panel); color: var(--panel-dim); }
.foot-inner {
  padding: 56px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .nm { font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800; font-size: 18px; color: #fff; }
.foot-brand .nm span { color: var(--accent); }

/* ============================================================
   PRODUCT IMAGE STAGES
   ============================================================ */
.stage {
  position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, var(--surface), var(--alt) 72%);
  border-radius: 28px; border: 1px solid var(--line);
}
.stage .tag {
  position: absolute; left: 24px; bottom: 24px;
  font-size: 13px; color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============================================================
   FAQ (details/summary)
   ============================================================ */
details.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq-item > summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 600;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: "+"; font-family: 'Schibsted Grotesk', sans-serif; color: var(--accent);
  font-size: 22px; transition: transform .2s; line-height: 1;
}
details.faq-item[open] > summary::after { content: "−"; }
details.faq-item > div { padding-top: 12px; font-size: 15.5px; color: var(--dim); max-width: 620px; }

/* ============================================================
   FORMS (shop waitlist + checkout)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px; color: var(--dim); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}
.field input, .field select {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif; font-size: 15px;
  outline: none; transition: border-color .15s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236F675B' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}

/* ---- Qty stepper ------------------------------------------ */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-hi); border-radius: 999px; }
.stepper button { background: none; border: none; padding: 12px 16px; cursor: pointer; font-size: 18px; color: var(--ink); }
.stepper .qty { font-weight: 700; min-width: 24px; text-align: center; }

/* ---- Toast ------------------------------------------------ */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface); border: 1px solid var(--line-hi);
  color: var(--ink); padding: 18px 24px; border-radius: 16px;
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 80;
  box-shadow: 0 24px 60px -20px rgba(40,30,20,0.3); max-width: 460px;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast .hl { color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; font-weight: 700; margin-bottom: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --pad: 28px; }
  .nav-links, .nav-cta .btn-ghost, .nav-cta .store-badges { display: none; }
  .nav-toggle { display: block; }
  .section-pad { padding: 72px var(--pad); }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
