/* ==========================================================================
   LARKIN — styles.css
   Reset → tokens → base → components → sections → responsive
   Palette & fonts extracted from the Figma reference.
   ========================================================================== */

/* ----- Reset / normalize ----- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  min-height: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

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

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }

:target { scroll-margin-top: 96px; }

/* ----- Design tokens ----- */
:root {
  /* Palette */
  --cream:        #f3ede3;
  --cream-2:      #ded6c9;
  --ink:          #1b2430;
  --ink-soft:     #4a4438;
  --muted:        #6b6155;
  --muted-2:      #8a8070;

  --noir:         #0f0f12;
  --noir-2:       #141417;
  --noir-3:       #17171a;
  --panel:        #1f1f21;
  --panel-line:   #2a2a2d;
  --dark-fg:      #f3ede3;
  --dark-muted:   #a6a6ab;
  --dark-muted-2: #8c8c91;

  --accent:       #f08c5c;   /* coral accent from the reference connectors */

  /* Fonts */
  --font-display: "Satoshi", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ui:      "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Fluid type scale */
  --fs-hero:    clamp(2.6rem, 6.2vw, 5rem);
  --fs-h2:      clamp(1.9rem, 3.8vw, 3rem);
  --fs-h3:      clamp(1.35rem, 2.2vw, 1.85rem);
  --fs-lead:    clamp(1.1rem, 1.8vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  --section-y: clamp(3.5rem, 9vw, 7.5rem);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-lg: 28px;

  --header-h: 68px;
}

body {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--cream);
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-title {
  font-size: var(--fs-h2);
  max-width: 22ch;
  margin-bottom: var(--sp-5);
}
.section-title.center { margin-inline: auto; text-align: center; max-width: 26ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

/* ----- Accessibility ----- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1;
  min-height: 44px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { transform: translateY(-1px); background: #232f3e; }
.btn-lg {
  min-height: 52px;
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--cream-2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--sp-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.brand-mark { color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-links > a:not(.nav-cta) {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0;
}
.nav-links > a:not(.nav-cta):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero-title {
  font-size: var(--fs-hero);
  max-width: 14ch;
}
.hero-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 46ch;
  margin-top: var(--sp-3);
}
.hero-actions { margin-top: var(--sp-4); }
.hero-fineprint {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--muted-2);
  max-width: 44ch;
  margin-top: var(--sp-2);
}

.hero-media { position: relative; }
.hero-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.summary-card {
  position: absolute;
  left: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  right: auto;
  max-width: min(78%, 320px);
  background: rgba(243, 237, 227, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 18px 40px -20px rgba(27, 36, 48, 0.5);
}
.summary-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.summary-quote {
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement { padding-block: var(--section-y); }
.statement-text {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 20ch;
}
.statement-media { margin-top: var(--sp-5); }
.statement-media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   CONVERSATION CARDS
   ========================================================================== */
.conversations { padding-block: var(--section-y); }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.conv-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.conv-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.conv-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.conv-card:hover .conv-img img { transform: scale(1.04); }
.conv-card figcaption {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
}

/* ==========================================================================
   DARK FEATURE SECTION
   ========================================================================== */
.dark {
  background: var(--noir);
  color: var(--dark-fg);
  padding-block: var(--section-y);
  border-radius: var(--radius-lg);
  margin-inline: var(--gutter);
}
.dark .container { padding-inline: clamp(1rem, 4vw, 2.5rem); }
.dark-banner {
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-align: center;
  max-width: 16ch;
  margin: 0 auto clamp(3rem, 7vw, 5.5rem);
}

.feature { padding-block: clamp(2rem, 5vw, 3.5rem); }
.feature--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
.feature-title {
  font-size: var(--fs-h3);
  color: var(--dark-fg);
  max-width: 20ch;
}
.feature-body {
  font-family: var(--font-ui);
  color: var(--dark-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-top: var(--sp-2);
}
.feature-media > img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
}

/* Commitments panel mock */
.commit-panel {
  background: var(--noir-2);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  font-family: var(--font-ui);
}
.commit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--panel-line);
}
.commit-title { font-weight: 600; font-size: 1.05rem; }
.commit-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tab {
  font-size: 0.8rem;
  color: var(--dark-muted-2);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--panel);
}
.tab.is-active { color: var(--noir); background: var(--dark-fg); font-weight: 600; }
.commit-list { margin-top: var(--sp-2); }
.commit-group-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted-2);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}
.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.95rem;
  color: var(--dark-fg);
}
.commit-item strong { font-weight: 600; }
.commit-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Insight cards */
.insight-stack { display: grid; gap: var(--sp-2); }
.insight-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--noir-2);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  font-family: var(--font-ui);
}
.insight-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--panel);
  color: var(--accent);
  font-size: 1.1rem;
}
.insight-label { font-weight: 600; font-size: 0.95rem; color: var(--dark-fg); }
.insight-text { font-size: 0.9rem; color: var(--dark-muted); margin-top: 0.15rem; }

/* ==========================================================================
   HARDWARE / DESIGN
   ========================================================================== */
.hardware { padding-block: var(--section-y); }

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.bento-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.bento-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.spec {
  background: #fff;
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.spec-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  margin-bottom: var(--sp-2);
}
.spec-icon img { width: 26px; height: 26px; }
.spec h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.spec p {
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

.gallery-title { margin-top: var(--section-y); }
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.gallery figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ==========================================================================
   PRE-ORDER
   ========================================================================== */
.preorder {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--section-y);
}
.preorder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
.preorder-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.preorder-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.preorder-card .eyebrow { color: var(--accent); }
.preorder-title { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.preorder-price {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}
.preorder-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.preorder-price strong { color: var(--accent); }
.preorder-points {
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  color: rgba(243, 237, 227, 0.82);
  margin-bottom: var(--sp-4);
}
.preorder-points li { position: relative; padding-left: 1.6rem; }
.preorder-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.btn-preorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.7);
}
.btn-preorder:hover { transform: translateY(-2px); background: #fff; }
.preorder-note {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: rgba(243, 237, 227, 0.6);
  margin-top: var(--sp-2);
  text-align: center;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-block: var(--section-y); }
.faq .section-title { text-align: center; margin-inline: auto; }
.faq-list { max-width: 760px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--cream-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted-2);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
  padding-bottom: var(--sp-4);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  text-align: center;
  padding-block: var(--section-y);
  background: var(--cream);
}
.final-title {
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin: 0 auto var(--sp-4);
}
.final-note {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--muted-2);
  margin-top: var(--sp-3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--sp-5);
}
.site-footer .brand,
.site-footer .brand-mark { color: var(--cream); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.footer-links { display: flex; gap: var(--sp-3); }
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(243, 237, 227, 0.8);
}
.footer-links a:hover { color: var(--cream); }
.copyright {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: rgba(243, 237, 227, 0.55);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-2);
    padding: var(--sp-2) var(--gutter) var(--sp-3);
    box-shadow: 0 24px 40px -28px rgba(27, 36, 48, 0.5);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.25s ease, opacity 0.2s ease;
  }
  .site-header.nav-open .nav-links {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > a:not(.nav-cta) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cream-2);
  }
  .nav-cta { margin-top: var(--sp-2); width: 100%; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-hero { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .hero-actions .btn { width: auto; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .feature--split { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature-copy { order: 2; }
  .preorder-grid { grid-template-columns: 0.9fr 1.1fr; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-hero { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .btn, .btn-lg { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .summary-card { max-width: 88%; }
}

/* ----- Motion preferences ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
