/* ==========================================================================
   Aspect 10 pre-launch site — layout + section styles.
   Hand-written to match the design handoff (design-handoff-website/README.md
   and prototype/Aspect 10 Website.dc.html). Tokens + components come from
   tokens.css and components.css. Breakpoint m = < 760px; nav links >= 1100px.
   Radii 4/6 only, 1px hairlines, no shadows.
   ========================================================================== */

/* --- Base / layout shell ------------------------------------------------- */
:root {
  --pad: 40px;      /* minimum page padding (gutter) */
  --maxw: 1440px;   /* content frame; wider screens gain side margin */
  --gutter: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  --sec: 176px;     /* section top spacing */
  --gapL: 72px;     /* large gap */
  --cardPad: 32px;  /* card padding */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body.a10-page {
  background: var(--office-white);
  color: var(--ink);
  font: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; }
picture { line-height: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
.a10-page a.a10-btn:hover { text-decoration: none; }
:focus-visible { outline: none; }

/* Shared helpers */
.sec-color { color: var(--secondary-text); }
.nolig { font-variant-ligatures: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section wrapper: top spacing + page gutter */
.a10-section { padding: var(--sec) var(--gutter) 0; }

/* Display headings */
.hero-h1 {
  margin: 0;
  font: 400 clamp(56px, 6.4vw, 124px)/0.92 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-ligatures: none;
}
.a10-h2 {
  margin: 16px 0 0;
  font: 400 clamp(56px, 5.6vw, 92px)/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-ligatures: none;
}

/* Section intro grid (eyebrow + h2 | lead paragraph) */
.sec-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 40px;
  align-items: end;
}
.sec-intro--start { align-items: start; gap: 32px 40px; }
.sec-intro--stretch { align-items: stretch; }
/* "Better together" section: wider left column so the heading gets room and the
   lead paragraph sits further to the right. Collapses to one column on mobile
   via the shared .sec-intro reset in the max-width:759.98px block below. */
.sec-intro--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.a10-btn--wide { padding-left: 32px; padding-right: 32px; }
.sec-intro__lead {
  margin: 0;
  max-width: 560px;
  font: 400 20px/30px var(--font-sans);
  text-wrap: pretty;
}

/* --- Header (sticky) ----------------------------------------------------- */
.a10-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 96px;
  /* Full-width like the hero below it, so the wordmark lines up with the hero
     copy at the page edge (content sections keep the centred --gutter frame). */
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--office-white);
  border-bottom: 1px solid transparent;
  transition: height 260ms cubic-bezier(.2,.7,.2,1), border-color 200ms linear;
}
.a10-header.is-scrolled { height: 64px; border-bottom-color: var(--hairline); }
.a10-header__brand { display: flex; }
.a10-header__brand img { height: 38px; width: auto; }
.a10-header__nav { display: flex; align-items: center; gap: 32px; }
.a10-header__links { display: flex; align-items: center; gap: 32px; }
.a10-header__links a { white-space: nowrap; color: var(--secondary-text); }
.a10-header__links a:hover { color: var(--ink); }

/* --- Hero ---------------------------------------------------------------- */
.hero-d {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: calc(100vh - 64px);
  min-height: 640px;
  max-height: 1000px;
}
.hero-d__copy {
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}
.hero-d__head { display: flex; flex-direction: column; gap: 24px; }
.hero-d__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-sub {
  margin: 0;
  max-width: 400px;
  font: 400 20px/28px var(--font-sans);
  text-wrap: pretty;
}
.hero-d__sublock { display: flex; flex-direction: column; gap: 24px; }
.hero-d__media { position: relative; overflow: hidden; background: var(--carpet); }
.hero-d__media picture, .hero-d__media img { width: 100%; height: 100%; }
.hero-d__media img { object-fit: cover; object-position: 62% 40%; }

.hero-m { display: none; flex-direction: column; }
.hero-m__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--carpet); }
.hero-m__media picture, .hero-m__media img { width: 100%; height: 100%; }
.hero-m__media img { object-fit: cover; object-position: 50% 30%; }
.hero-m__copy { padding: 32px 20px 40px; display: flex; flex-direction: column; gap: 24px; }
.hero-m .eyebrow { margin-bottom: -8px; }
.hero-m .hero-h1 { font: 400 clamp(44px, 13.6vw, 60px)/0.94 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-m .hero-sub { font: 400 18px/27px var(--font-sans); max-width: none; }

/* "Coming soon to" store tags */
.store-tags { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.store-tags__row { display: flex; gap: 8px; }
.store-tag {
  height: 32px;
  padding: 0 12px;
  white-space: nowrap;
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--frame-edge);
  border-radius: 6px;
}

/* --- Four phases --------------------------------------------------------- */
.phase-grid {
  margin-top: var(--gapL);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px;
}
.phase-tile { display: flex; flex-direction: column; gap: 16px; }
.phase-tile__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--monitor-cream);
}
.phase-tile__media picture, .phase-tile__media img { width: 100%; height: 100%; }
.phase-tile__media img { object-fit: cover; }
.phase-tile__name { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.phase-tile__line {
  margin: 0;
  color: var(--secondary-text);
  max-width: 300px;
  text-wrap: pretty;
}

/* --- Side by side -------------------------------------------------------- */
.sbs-card { margin-top: var(--gapL); border-radius: 6px; overflow: hidden; }
.sbs-head {
  padding: 20px var(--cardPad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sbs-head__title { display: flex; flex-direction: column; gap: 4px; }
.sbs-head__nav { display: flex; gap: 8px; }
.sbs-chev {
  width: 40px; height: 40px; border-radius: 6px;
  border: 1px solid var(--frame-edge);
  background: none; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.sbs-chev:hover { background: var(--carpet); }
.sbs-chev:active { transform: translateY(1px); }
.sbs-chev--back svg { transform: rotate(180deg); }

.sbs-body { display: flex; }
.sbs-names {
  flex: none;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px var(--cardPad);
  border-right: 1px solid var(--hairline);
}
.sbs-names__spacer-top { height: 52px; }
.sbs-names__spacer-bottom { height: 24px; }
.sbs-person { height: 96px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.sbs-person__thumb {
  flex: none; height: 100%; aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: var(--carpet);
}
.sbs-person__thumb picture, .sbs-person__thumb img { width: 100%; height: 100%; }
.sbs-person__thumb img { object-fit: cover; }
.sbs-person__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sbs-person__name { white-space: nowrap; }
.sbs-person__role { color: var(--secondary-text); white-space: nowrap; }

.sbs-track {
  flex: 1; min-width: 0; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.sbs-track__inner {
  display: flex; gap: 4px;
  padding: 0 var(--cardPad) 16px 0;
  width: max-content;
}
.sbs-col {
  scroll-snap-align: start;
  width: 112px; flex: none;
  display: flex; flex-direction: column; gap: 4px;
  border: 0; padding: 0; background: none; cursor: pointer;
  text-align: left; color: var(--ink); font: inherit;
}
.sbs-col__head {
  height: 52px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 0 4px 8px;
  border-bottom: 2px solid transparent;
}
.sbs-col__month { font-weight: 500; }
.sbs-col.is-selected .sbs-col__head { border-bottom-color: var(--ink); }
.sbs-col.is-selected .sbs-col__month { font-weight: 600; }
.sbs-col__cell {
  height: 96px; border-radius: 4px;
  display: flex; align-items: flex-end; padding: 8px;
  color: var(--office-white);
}
.sbs-col__meet {
  height: 24px; display: flex; align-items: center; padding: 0 4px;
  color: var(--ink); font-weight: 600;
}
.sbs-col__meet:empty::before { content: "\00a0"; }

/* phase fills */
.ph-pursue { background: var(--copper); }
.ph-build { background: var(--moss); }
.ph-review { background: var(--prussian-blue); }
.ph-pause { background: var(--aubergine); }

.sbs-detail {
  border-top: 1px solid var(--hairline);
  padding: var(--cardPad);
  display: grid;
  grid-template-columns: 228px minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 24px 40px;
  overflow: hidden;
  transition: height 420ms cubic-bezier(.2,.7,.2,1);
}
/* Each month change crossfades the content while the panel eases to its new
   height (JS measures and drives the height), so switching feels fluid rather
   than snapping line by line. */
.sbs-detail > * { transition: opacity 200ms ease; }
.sbs-detail.is-switching > * { opacity: 0; }
.sbs-detail__when { display: flex; flex-direction: column; gap: 6px; }
.sbs-detail__person { display: flex; flex-direction: column; gap: 8px; }
.sbs-detail__phase { display: flex; align-items: center; gap: 8px; }
.sbs-detail__line { color: var(--secondary-text); text-wrap: pretty; }
.sbs-detail__joint {
  display: flex; flex-direction: column; gap: 8px;
  padding-left: 32px; border-left: 1px solid var(--hairline);
}
.sbs-detail__joint .body-s { text-wrap: pretty; }

/* --- How it works -------------------------------------------------------- */
.how-col { display: flex; flex-direction: column; gap: 40px; }
.how-lead { margin: 0; max-width: 680px; font: 400 24px/36px var(--font-sans); text-wrap: pretty; }
.how-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.how-fact {
  border-top: 1px solid var(--ink);
  padding: 16px 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.how-fact__v { text-wrap: pretty; }
.how-note { margin: 0; max-width: 680px; color: var(--secondary-text); text-wrap: pretty; }

/* Full-bleed photo break */
.a10-break {
  margin: var(--sec) 0 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--carpet);
}
.a10-break picture, .a10-break img { width: 100%; height: 100%; }
.a10-break img { object-fit: cover; object-position: 50% 45%; }

/* --- Membership ---------------------------------------------------------- */
.plan-grid {
  margin-top: var(--gapL);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: 16px;
  row-gap: 0;
}
.plan-card {
  border-radius: 6px;
  padding: 32px 28px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 28px;
}
.plan-card__head { display: flex; flex-direction: column; gap: 20px; }
.plan-card__names { display: flex; flex-direction: column; gap: 6px; }
.plan-card__for { opacity: 0.8; text-wrap: pretty; }
.plan-card__price { display: flex; flex-direction: column; gap: 4px; }
.plan-card__per { opacity: 0.8; }
.plan-card__listlabel { opacity: 0.8; border-top: 1px solid var(--hairline); padding-top: 24px; }
.plan-card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.plan-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; }
.plan-item__check { display: flex; padding-top: 3px; }
.plan-item__text { display: flex; flex-direction: column; gap: 2px; }
.plan-item__k { font-weight: 500; }
.plan-item__v { opacity: 0.8; text-wrap: pretty; }
.plan-card__foot { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.plan-card__note { opacity: 0.8; text-wrap: pretty; }
.plan-foot-caption { margin: 16px 0 0; color: var(--secondary-text); text-wrap: pretty; }

/* --- FAQ ----------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item > summary {
  list-style: none;
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font: 500 18px/26px var(--font-sans);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item__plus { flex: none; width: 16px; height: 16px; position: relative; }
.faq-item__plus::before,
.faq-item__plus::after {
  content: ""; position: absolute; background: var(--ink);
}
.faq-item__plus::before { left: 0; right: 0; top: 7.5px; height: 1.25px; }
.faq-item__plus::after { top: 0; bottom: 0; left: 7.5px; width: 1.25px; transition: transform 200ms; }
.faq-item[open] .faq-item__plus::after { transform: rotate(90deg); }
.faq-answer { margin: 0; padding: 0 48px 24px 0; color: var(--secondary-text); max-width: 680px; text-wrap: pretty; }

/* --- Waitlist ------------------------------------------------------------ */
.join {
  margin-top: var(--sec);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.join__media { position: relative; min-height: 760px; overflow: hidden; background: var(--carpet); }
.join__media picture, .join__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.join__media img { object-fit: cover; object-position: 60% 50%; }
.join__panel { padding: 80px 64px; display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.join__intro-p { margin: 20px 0 0; max-width: 460px; text-wrap: pretty; }
.join-form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.join-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }

/* phone toggle */
.phone-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-btn {
  height: 52px; border-radius: 6px;
  border: 1px solid var(--control-edge);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.phone-btn.is-on { border-color: var(--ink); background: var(--ink); color: var(--office-white); }

/* select chevron */
.a10-select__chevron { position: absolute; top: 50%; right: 16px; margin-top: -8px; color: var(--ink); pointer-events: none; }

/* consent checkbox */
.a10-consent { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; color: var(--ink); }
.a10-consent__input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.a10-consent__box {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 4px; border: 1px solid var(--frame-edge);
  background: transparent;
  display: grid; place-items: center; color: var(--office-white);
}
.a10-consent__box svg { opacity: 0; }
.a10-consent__input:checked + .a10-consent__box { border-color: var(--ink); background: var(--ink); }
.a10-consent__input:checked + .a10-consent__box svg { opacity: 1; }
.a10-consent__input:focus-visible + .a10-consent__box { box-shadow: var(--focus-ring); }

.join-error { margin: 0; color: var(--copper); }
[hidden] { display: none !important; }

/* --- Footer -------------------------------------------------------------- */
.a10-footer {
  margin-top: var(--sec);
  padding: 64px var(--gutter) 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.a10-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}
.a10-footer__brand { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.a10-footer__brand img { height: 30px; width: auto; }
.a10-footer__tag { margin: 0; max-width: 280px; color: var(--secondary-text); text-wrap: pretty; }
.a10-footer__col { display: flex; flex-direction: column; gap: 16px; }
.a10-footer__col nav { display: flex; flex-direction: column; gap: 10px; }
.a10-footer__legal { border-top: 1px solid var(--hairline); padding-top: 24px; }
.a10-footer__legal p { margin: 0; color: var(--secondary-text); text-wrap: pretty; }

/* --- Scroll reveal ------------------------------------------------------- */
.is-reveal { opacity: 0; transform: translateY(34px); will-change: opacity, transform; }
.is-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
/* Soft staggered reveal across grouped items, so a section eases in in sequence. */
.phase-grid .phase-tile:nth-child(2).is-in { transition-delay: 90ms; }
.phase-grid .phase-tile:nth-child(3).is-in { transition-delay: 180ms; }
.phase-grid .phase-tile:nth-child(4).is-in { transition-delay: 270ms; }
.plan-grid .plan-card:nth-child(2).is-in { transition-delay: 110ms; }
.plan-grid .plan-card:nth-child(3).is-in { transition-delay: 220ms; }

/* Gentle parallax: the large photos drift slightly slower than the page.
   Images are oversized by 20% (10% hangs each side) so the shift never
   reveals an edge. JS sets the transform; see site.js. */
.hero-d__media img[data-parallax],
.a10-break img[data-parallax] {
  height: 120%;
  position: relative;
  top: -10%;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-d__media img[data-parallax],
  .a10-break img[data-parallax] { height: 100%; top: 0; transform: none !important; }
}

/* ==========================================================================
   Responsive — nav links only >= 1100px
   ========================================================================== */
@media (max-width: 1099.98px) {
  .a10-header__links { display: none; }
}

/* ==========================================================================
   Responsive — mobile m = < 760px
   ========================================================================== */
@media (max-width: 759.98px) {
  :root {
    --pad: 20px;
    --sec: 112px;
    --gapL: 48px;
    --cardPad: 20px;
  }
  .a10-h2 { font-size: 44px; }

  .sec-intro,
  .sec-intro--start { grid-template-columns: 1fr; }

  /* hero swap */
  .hero-d { display: none; }
  .hero-m { display: flex; }

  /* phases: 2 columns */
  .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* side by side */
  .sbs-names { width: 84px; padding: 0 8px 16px var(--cardPad); }
  .sbs-person { height: 76px; }
  .sbs-person__text { display: none; }
  .sbs-col { width: 88px; }
  .sbs-col__cell { height: 76px; }
  .sbs-detail { grid-template-columns: 1fr; }
  .sbs-detail__joint { padding-left: 0; border-left: 0; }

  /* how it works */
  .how-lead { font: 400 20px/30px var(--font-sans); }
  .how-facts { grid-template-columns: 1fr; }
  .a10-break { aspect-ratio: 4 / 5; }

  /* membership: single column */
  .plan-grid { grid-template-columns: 1fr; row-gap: 16px; }

  /* waitlist: single column */
  .join { grid-template-columns: 1fr; }
  .join__media { min-height: 420px; }
  .join__panel { padding: 48px 20px 64px; }
  .join-form__row { grid-template-columns: 1fr; }

  /* footer: 2 columns */
  .a10-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Month / meet text swaps (desktop long, mobile short) */
.m-short, .meet-short { display: none; }
@media (max-width: 759.98px) {
  .m-long, .meet-long { display: none; }
  .m-short, .meet-short { display: inline; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-reveal { opacity: 1; transform: none; }
  .is-reveal.is-in { transition: none; }
  .faq-item__plus::after { transition: none; }
  .a10-header { transition: none; }
  .sbs-detail, .sbs-detail > * { transition: none; }
  .sbs-detail.is-switching > * { opacity: 1; }
}
