/* =====================================================================
   qoom.life r10 · home page layer
   Loaded after the site stylesheet (/_next/static/chunks/0nv~9av-5xwtm.css) and the approved
   /how-qoom-works/how-qoom-works.css. Uses only the site's own variables, type and rules:
   --ink --bone --wake --move --play --together --line, .page-width, .section-label,
   .primary-button, .outline-button, and the site's breakpoints (900 px, 620 px).
   Changes: hero sub line and two actions; the section's place directly below the hero;
   a shorter idea and territory grid; the closing beta line; footer text links.
   ===================================================================== */

:root { --soft: #55514b; }   /* = the section's --how-soft: 6.99:1 on bone */

/* ---------------------------- hero ---------------------------- */
.hero-copy { padding-block: clamp(56px, 8vh, 112px) clamp(64px, 9vh, 120px); }
.hero-sub {
  max-width: 30em;
  margin: clamp(26px, 3.6vh, 40px) 0 0;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--soft);
}
.hero-actions { margin-top: clamp(32px, 5vh, 56px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-buttons .outline-button { margin-top: 0; }
/* next/image put style="color:transparent" on both wordmarks (hides alt text while loading); same rule without an inline style */
.wordmark, .footer-brand img { color: transparent; }
.brand-link:focus-visible { outline: 3px solid var(--play); outline-offset: 4px; }

/* ------------- How Qoom works, now directly below the hero ------------- */
.how-section {
  margin-top: clamp(48px, 5.5vw, 96px);       /* margin + padding = 80-144 px from the stripe, near the old clamp(88px, 9vw, 150px) */
  padding-top: clamp(32px, 3vw, 48px);
  scroll-margin-top: clamp(16px, 1.5vw, 24px); /* the anchor lands with 48-72 px of air above the label, never flush */
}
.how-section:focus { outline: none; }         /* focus target of the hero link (tabindex="-1"), not a control */
.how-foot { padding-block: clamp(32px, 3.4vw, 52px) clamp(64px, 7vw, 112px); }
.how-foot-body { grid-column: 2; }            /* the beta line moved to the close; small print keeps the copy column */

/* ---------------------------- the idea ---------------------------- */
.statement-grid { min-height: 0; padding-block: clamp(72px, 8.5vw, 128px); }
.statement-copy > p { margin-top: clamp(30px, 3.6vw, 52px); }

/* ---------------------- what we're up for ---------------------- */
.territory { min-height: clamp(240px, 26vw, 420px); }
.territory h3 { font-size: clamp(32px, 3.6vw, 64px); }   /* the rotated word fits the shorter cell */
.territory p { margin-top: 20px; }

/* ---------------------------- the close ---------------------------- */
.platform-lockup { min-height: 0; padding-block: clamp(96px, 11vw, 176px); }
.platform-status {
  max-width: 30em;
  margin: clamp(30px, 4vh, 48px) 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.platform-lockup .outline-button { margin-top: clamp(26px, 3.6vh, 40px); }

/* ---------------------------- footer ---------------------------- */
.footer-meta { flex-wrap: wrap; align-items: baseline; row-gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }

/* =========================== <= 900 px =========================== */
@media (max-width: 900px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 28px; }   /* buttons, then the Arabic line */
  .arabic-line { align-self: flex-end; }
  .how-foot-body { grid-column: auto; }
  .statement-grid { gap: 32px; }
  .territory { min-height: clamp(290px, 36vw, 330px); }
  .territory h3 { font-size: clamp(40px, 5.6vw, 52px); }
}

/* =========================== <= 620 px =========================== */
@media (max-width: 620px) {
  .hero-copy { padding-block: 52px 48px; }
  .hero-sub { font-size: 19px; }
  .hero-actions { align-items: stretch; gap: 24px; margin-top: 32px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-buttons a { justify-content: space-between; align-self: stretch; }   /* both full width, label left, arrow right */
  .hero-foot { display: flex; justify-content: space-between; gap: 12px; }
  .hero-foot span:last-child { display: block; }

  .statement-grid { min-height: 0; padding-block: 48px 52px; gap: 26px; }
  .statement-copy > p { margin-top: 26px; font-size: 20px; }

  .territory { min-height: clamp(200px, 61vw, 240px); padding: 16px 14px; }   /* 2 x 2 */
  .territory h3 { font-size: clamp(28px, 9vw, 40px); }
  .territory p { margin-top: 14px; }

  .platform-lockup { padding-block: 84px 92px; }
  .footer-meta { justify-content: space-between; }
}
