/* ══════════════════════════════════════════════════════════════
   adaki — HOME LAYOUT (index.html only)
   Loaded after neo.css. neo.css paints; this file re-lays-out the
   landing: split hero, marquee, bento gallery, numbered rails.
   Same tokens (--ink / --sh / --sh-alt / --bw), same content.
   ══════════════════════════════════════════════════════════════ */

/* ══ MARQUEE STRIP ════════════════════════════════════════════ */
.mq {
  overflow: hidden;
  background: var(--accent);
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  padding: 11px 0;
  user-select: none;
}
.mq-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: mqScroll 26s linear infinite;
}
.mq-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.mq-track .mq-s { font-size: 13px; opacity: .75; }
@keyframes mqScroll { to { transform: translateX(-50%); } }
.mq:hover .mq-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ══ HERO — asymmetric split ══════════════════════════════════ */
/* NOTE: deliberately NOT .hero — that class triggers the cartoon
   parallax in intro.js, which fights a rigid brutalist grid. */
.hx {
  position: relative;
  /* the nav is fixed and ~103px tall; the promo bar adds 44 on top of it */
  padding: 150px 24px 74px;
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden;
}
body.has-promo .hx { padding-top: 194px; }
.hx::before {                      /* brand texture, very quiet */
  content: '';
  position: absolute; inset: 0;
  background: url(../img/pattern.png) repeat;
  background-size: 420px auto;
  opacity: .07;
  pointer-events: none;
}
.hx-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}
.hx-left { min-width: 0; }

.hx-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  border: var(--bw-s) solid var(--ink);
  box-shadow: 4px 4px 0 var(--sh-alt);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  rotate: -2deg;
  margin-bottom: 26px;
}
.hx-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 88px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 var(--accent);
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.hx-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 30em;
  margin-bottom: 30px;
  line-height: 1.6;
}
.hx-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hx-note {
  display: inline-block;
  background: var(--bg2);
  border: var(--bw-s) solid var(--ink);
  box-shadow: 4px 4px 0 var(--sh);
  padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--text);
}

/* collage of framed shots */
.hx-right { min-width: 0; }
.hx-stack { position: relative; aspect-ratio: 1 / .88; max-width: 540px; margin-left: auto; }
.hx-shot {
  position: absolute;
  border: var(--bw) solid var(--ink);
  background: var(--bg3);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hx-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-shot figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--accent); color: #fff;
  border-top: var(--bw-s) solid var(--ink);
  border-right: var(--bw-s) solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px;
}
.hx-shot.s1 { left: 0;    top: 0;    width: 66%; height: 62%; rotate: -2.5deg; box-shadow: 9px 9px 0 var(--sh);     z-index: 3; }
.hx-shot.s2 { right: 0;   top: 12%;  width: 46%; height: 46%; rotate:  3deg;   box-shadow: 8px 8px 0 var(--sh-alt); z-index: 2; }
.hx-shot.s3 { left: 14%;  bottom: 0; width: 58%; height: 44%; rotate:  1.5deg; box-shadow: 8px 8px 0 var(--sh);     z-index: 4; }
.hx-shot:hover { transform: translate(-3px,-3px); z-index: 5; }
.hx-seal {
  position: absolute; right: -6px; bottom: 8%;
  z-index: 6;
  width: 108px; height: 108px;
  display: grid; place-items: center; text-align: center;
  background: var(--bg2); color: var(--text);
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
  rotate: -8deg;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px;
}
.hx-seal b { display: block; font-size: 21px; color: var(--accent); }

@media (max-width: 980px) {
  .hx-inner { grid-template-columns: 1fr; gap: 44px; }
  .hx-stack { margin: 0 auto; max-width: 460px; }
}
@media (max-width: 600px) {
  .hx { padding: 124px 18px 56px; }
  body.has-promo .hx { padding-top: 166px; }
  .hx-title { text-shadow: 5px 5px 0 var(--accent); }
  .hx-seal { width: 86px; height: 86px; font-size: 10px; right: 0; }
  .hx-seal b { font-size: 17px; }
}

/* ══ SECTION HEADS — left aligned, numbered ═══════════════════ */
section { padding: 82px 24px; }
.section-head {
  position: relative;
  text-align: left;
  max-width: 1180px;
  margin: 0 auto 46px;
  padding-left: 104px;
  min-height: 76px;
}
.section-head[data-n]::before {
  content: attr(data-n);
  position: absolute; left: 0; top: -8px;
  font-family: var(--font-display);
  font-size: 74px; font-weight: 700; line-height: .9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  opacity: .55;
}
.section-head .section-sub { margin: 0; max-width: 46em; }
.section-title { text-align: left; }
@media (max-width: 600px) {
  section { padding: 60px 18px; }
  .section-head { padding-left: 0; margin-bottom: 34px; min-height: 0; }
  .section-head[data-n]::before { position: static; display: block; font-size: 44px; margin-bottom: 6px; opacity: .5; }
}

/* ══ GALLERY — bento ══════════════════════════════════════════ */
/* The 26 cards keep their markup; only the grid changes. Collapsed
   shows the first 5 (intro.css rule), which is exactly one bento set. */
#gallery .container { max-width: 1180px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  gap: 16px;
}
.gallery-grid .intro-card { aspect-ratio: auto; grid-column: span 1; grid-row: span 1; }
.gallery-grid .intro-card:nth-child(10n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .intro-card:nth-child(10n+4) { grid-column: span 2; }
.gallery-grid .intro-card:nth-child(10n+7) { grid-row: span 2; }
.gallery-grid .intro-card:nth-child(10n+8) { grid-column: span 2; }
.gallery-more { margin-top: 32px; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 148px; }
  .gallery-grid .intro-card:nth-child(10n+7) { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 128px; }
  .gallery-grid .intro-card:nth-child(10n+1),
  .gallery-grid .intro-card:nth-child(10n+4),
  .gallery-grid .intro-card:nth-child(10n+8) { grid-column: span 2; }
}

/* ══ PRICING — slab row, middle raised ════════════════════════ */
#pricing .pricing-grid { max-width: 1120px; gap: 18px; align-items: stretch; }
#pricing .plan { display: flex; flex-direction: column; padding-top: 34px; }
#pricing .plan .plan-features { flex: 1; }
#pricing .plan-n {
  position: absolute; top: 10px; right: 14px;
  font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: .4;
  pointer-events: none;
}
/* the selected card shows a ✓ badge at top-right — move the numeral clear of it */
#pricing .plan.selected .plan-n { opacity: .6; right: 50px; }
@media (min-width: 861px) {
  #pricing .plan[data-plan-key="advanced"] { margin-top: -22px; margin-bottom: 22px; }
}

/* ══ CHOOSE — three numbered mega blocks ══════════════════════ */
.choose-grid {
  counter-reset: pick;
  max-width: 1180px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.choose-card {
  counter-increment: pick;
  position: relative;
  text-align: left;
  padding: 26px 24px 24px;
  overflow: hidden;
}
.choose-card::before {
  content: counter(pick, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700; line-height: .9;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.choose-card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 8px; }
.choose-card p { font-size: 14px; color: var(--text-dim); }
@media (max-width: 780px) {
  .choose-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ══ HOW IT WORKS — numbered rail ═════════════════════════════ */
.info-wrap { counter-reset: step; max-width: 900px; gap: 16px; }
.info-card {
  counter-increment: step;
  position: relative;
  padding: 24px 26px 24px 96px;
}
.info-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 24px; top: 22px;
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.info-card.warn::before { -webkit-text-stroke-color: var(--red); }
.info-card h3 { font-family: var(--font-display); font-size: 18px; }
@media (max-width: 600px) {
  .info-card { padding: 20px 18px 20px 18px; }
  .info-card::before { position: static; display: block; font-size: 30px; margin-bottom: 8px; }
}

/* ══ FAQ — two columns ════════════════════════════════════════ */
#faq .faq-list {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
#faq .faq-item { border-bottom: var(--bw-s) solid var(--ink); }
#faq .faq-item:nth-child(odd)  { border-right: var(--bw-s) solid var(--ink); }
/* the last row of each column shouldn't draw a trailing rule */
#faq .faq-item:last-child { border-bottom: none; }
@media (max-width: 780px) {
  #faq .faq-list { grid-template-columns: 1fr; }
  #faq .faq-item:nth-child(odd) { border-right: none; }
}

/* ══ REVIEWS ══════════════════════════════════════════════════ */
#reviews .reviews-grid { max-width: 1180px; }

/* ══ FINAL CTA — full-bleed accent slab ═══════════════════════ */
.cta-band { padding: 0; }
.cta-band .cta-neo {
  /* This slab is accent-red in BOTH themes, so its ink must stay dark —
     inheriting --ink would turn text and outlines white-on-white in dark mode. */
  --ink: #14101a;
  --sh: #14101a;
  --sh-alt: #14101a;
  max-width: none;
  border-left: none; border-right: none;
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  box-shadow: none;
  background: var(--accent);
  padding: 76px 24px;
}
.cta-band .cta-neo::before { opacity: .1; }
.cta-band .cta-inner-w { max-width: 900px; margin: 0 auto; }
.cta-band .cta-title { color: #fff; -webkit-text-fill-color: #fff; text-shadow: 5px 5px 0 var(--ink); }
.cta-band .cta-sub { color: rgba(255,255,255,.92); }
.cta-band .cta-sub b { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cta-band .cta-pill {
  background: #fff; color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.cta-band .cta-pill svg { fill: var(--accent); }
.cta-band .cta-neon {
  background: #fff; color: var(--accent);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.cta-band .cta-neon:hover { background: #fff; color: var(--accent); box-shadow: 9px 9px 0 var(--ink); }
.cta-band .cta-ghost { color: #fff; }
.cta-band .cta-ghost .play { border-color: #fff; }
.cta-band .cta-ghost .play::after { border-left-color: #fff; }
@media (max-width: 600px) {
  .cta-band .cta-neo { padding: 54px 18px; }
  .cta-band .cta-title { text-shadow: 3px 3px 0 var(--ink); }
}

/* ══ FOOTER — tighten to the new rhythm ═══════════════════════ */
footer { padding-top: 62px; }
.footer-track { max-width: 620px; }
