/* ── OUR STORY ──────────────────────────────────────────────────────────────── */

/* ─ Tuning knobs ─────────────────────────────────────────────────────────────
   --story-height      : total section height  (default 480px)
   --story-fade        : how tall each gradient fade is  (default 140px)
   --story-bg          : the colour used for the fade  (match your site bg)
   ──────────────────────────────────────────────────────────────────────────── */
#story {
  --story-height : 480px;
  --story-fade   : 140px;
  --story-bg     : var(--midnight, #0b0f1c);

  position   : relative;
  height     : var(--story-height);
  overflow   : hidden;
}

/* ── Full-bleed photo ── */
.story-photo-wrap {
  position : absolute;
  inset    : 0;
}

.story-photo {
  width      : 100%;
  height     : 100%;
  object-fit : cover;
  display    : block;
}

/* ── Top & bottom gradient fades ── */
#story::before,
#story::after {
  content  : '';
  position : absolute;
  left     : 0;
  right    : 0;
  height   : var(--story-fade);
  z-index  : 1;
  pointer-events : none;
}

#story::before {                                      /* top fade */
  top        : 0;
  background : linear-gradient(to bottom, var(--story-bg) 0%, transparent 100%);
}

#story::after {                                       /* bottom fade */
  bottom     : 0;
  background : linear-gradient(to top, var(--story-bg) 30%, rgba(11,15,28,.6) 70%, transparent 100%);
}

/* ── Text card — sits inside the bottom fade ── */
.story-content {
  position  : absolute;
  bottom    : 0;
  left      : 50%;
  transform : translateX(-50%);
  width     : 100%;
  max-width : 860px;
  padding   : 32px 48px 40px;
  z-index   : 2;
  text-shadow: 0 1px 12px rgba(0,0,0,.8), 0 2px 32px rgba(0,0,0,.5);
}

.story-eyebrow {
  font-size      : 10px;
  letter-spacing : .4em;
  text-transform : uppercase;
  color          : var(--red);
  margin-bottom  : 12px;
}

.story-content h2 {
  font-size   : clamp(26px, 3.5vw, 40px);
  font-weight : 800;
  line-height : 1.15;
  color       : #fff;
  margin-bottom: 16px;
}

.story-content p {
  font-size   : 14px;
  line-height : 1.8;
  /* color       : var(--text-dim); */
    color       : #ffffffdd;
}

/* ── INTRO ──────────────────────────────────────────────────────────────────── */
#intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.intro-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-eyebrow {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
}

.intro-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.intro-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 480px;
}

/* ── FEATURES ──────────────────────────────────────────────────────────────── */
#features {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.feature {
  background: var(--midnight);
  padding: 48px 64px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-body { display: flex; flex-direction: column; gap: 10px; }

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}

.feature p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ── TIERS ─────────────────────────────────────────────────────────────────── */
#tiers {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 48px 80px;
}

.tiers-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tiers-eyebrow {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
}

.tiers-header h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tier {
  background: var(--midnight);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tier h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}

.tier-tag {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.tier li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.tier li:last-child { border-bottom: 1px solid var(--border); }

/* ── SPECS ─────────────────────────────────────────────────────────────────── */
#specs {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  text-align: center;
}

.specs-eyebrow {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.specs-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.specs-photo-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 40px 0 0;
}

.specs-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 48px 0 32px;
}

.spec {
  background: var(--midnight);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spec-value {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.01em;
}

.spec-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.5;
}

.spec-label span {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 6px;
}

.specs-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}

/* ── APP ───────────────────────────────────────────────────────────────────── */
/* Light section — the in-app screenshots are mostly white and read better on a
   light background than against the rest of the dark site. */
#app {
  background: #e6ecfc;
  padding: 100px 48px;
  text-align: center;
}

.app-content {
  max-width: 640px;
  margin: 0 auto 56px;
}

.app-eyebrow {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.app-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #0b1121;
  margin-bottom: 20px;
}

.app-body {
  font-size: 15px;
  line-height: 1.8;
  color: #3a4458;
}

.app-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  align-items: end;
}

.app-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.app-shot img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.app-shot figcaption {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #3a4458;
  line-height: 1.5;
  max-width: 220px;
}

/* ── VALUES (photo background + values grid; merged from old #visual + #how) ─ */
#values {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  contain: layout;
  padding: 100px 48px;
}

.values-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  z-index: 0;
}

.values-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(0,0,0,.8), 0 2px 32px rgba(0,0,0,.5);
}

.values-eyebrow {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.values-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 56px;
}

.values-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 56px;
  padding: 10px 22px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.values-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .25s var(--ease);
}
.values-cta:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.values-cta:hover svg { transform: translateX(3px); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
  max-width: 900px;
}

.value {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.value-num {
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--red);
  font-weight: 700;
  padding-top: 4px;
  flex-shrink: 0;
}

.value-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.value-body p {
  font-size: 13px;
  line-height: 1.75;
  color: #ffffffdd;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
#faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 48px;
}

.faq-eyebrow {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  margin-bottom: 12px;
}

.faq-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--red); }

.faq-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  padding: 0 4px 22px;
  max-width: 720px;
}

/* Collapse: show only the first 5 questions until "Show all" is clicked.
   Items past 5 stay in the DOM (and JSON-LD) so Google still indexes them. */
.faq-list .faq-item:nth-child(n+6) { display: none; }
.faq-list.expanded .faq-item:nth-child(n+6) { display: block; }

.faq-toggle-wrap {
  text-align: center;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.faq-toggle:hover { border-color: var(--red); color: var(--red); }

.faq-toggle-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq-toggle[aria-expanded="true"] .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-item p a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--red-glow);
}
.faq-item p a:hover { color: var(--text); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  /* #story { 
    height: auto; 
    min-height: var(--story-height, 480px); 
  } */

  #story {
    --story-height: 560px;   /* taller box → less aggressive crop needed */
    --story-fade: 200px;     /* stronger darkening for text legibility */
  }
  .story-photo {
    object-position: 50% 45%;  /* recenter away from the brightest band */
  }

  .story-content { padding: 32px 24px 40px; }


  #intro { padding: 72px 24px; }

  .feature { padding: 36px 24px; gap: 24px; }

  #values { padding: 72px 24px; min-height: auto; }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .values-content h2 { margin-bottom: 36px; }

  #tiers { padding: 72px 24px 56px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .tier { padding: 32px 24px; }

  #specs { padding: 56px 24px 72px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .spec { padding: 24px 12px; }

  #app { padding: 72px 24px; }
  .app-shots { grid-template-columns: 1fr; gap: 40px; }
  .app-shot img { max-width: 220px; }

  #faq { padding: 72px 24px; }
  .faq-item summary { font-size: 14px; gap: 16px; }
}