/* ── page-local styles: everything the landing page alone needs ───────── */
.page-shell {
  position: relative; min-height: 100vh;
  background:
    radial-gradient(circle at 50% -12%, #FFFFFF 0, rgba(255,255,255,.86) 26%, transparent 56%),
    linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 32%, var(--canvas) 100%);
}

/* EDITORIAL ------------------------------------------------------------- */
.editorial-section { position: relative; padding: clamp(96px,11vw,150px) 0 40px; overflow: clip; background: #FFFFFF; }
.editorial-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: end; }
.editorial-grid .body-lg { max-width: 480px; margin-left: auto; }
.world-field {
  display: flex; flex-wrap: wrap; gap: 2px 0; margin: clamp(48px,6vw,72px) auto 0; padding: 30px 0;
  border-top: 1px solid var(--stroke-subtle); border-bottom: 1px solid var(--stroke-subtle); list-style: none;
}
.world-field li {
  display: inline-flex; align-items: baseline; color: var(--ink); font-family: var(--font-display);
  font-size: clamp(22px, 3.1vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.18;
}
/* Readable lilac and orchid accents for large editorial text. */
.world-field li:nth-child(3n+2) { color: #7658B8; }
.world-field li:nth-child(3n+3) { color: #785076; }
.world-field li:not(:last-child)::after { content: "·"; margin: 0 .32em; color: var(--stroke-strong); font-weight: 400; }
.world-lineup { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px,2vw,30px); margin: 30px auto -28px; width: min(960px, 104%); }
.world-lineup img { width: clamp(76px, 15vw, 200px); height: auto; filter: drop-shadow(0 24px 26px rgba(36,30,56,.12)); }
.world-lineup img:nth-child(2) { margin-bottom: 14px; }
.world-lineup img:nth-child(4) { margin-bottom: 8px; }

/* CLOSER LOOK (the dark chapter) ---------------------------------------- */
.closer-section { position: relative; z-index: 2; padding: clamp(100px,11vw,146px) 0 clamp(92px,10vw,126px); overflow-x: clip; background: var(--surface-inverted); color: #FFFFFF; }
.closer-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 200px; background: linear-gradient(180deg, rgba(238,232,255,.08), transparent); pointer-events: none; }
.closer-heading { position: relative; text-align: center; }
.closer-heading .eyebrow { color: rgba(255,255,255,.6); }
.closer-heading .display-lg { color: #FFFFFF; max-width: 780px; margin-inline: auto; }
.closer-heading .body-lg { color: rgba(255,255,255,.62); max-width: 560px; margin: 22px auto 0; }
.closer-signals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 32px auto 0; padding: 0; list-style: none; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.closer-signals li { display: inline-flex; align-items: center; gap: 8px; }
.closer-signals li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lumi); }
.closer-signals li:nth-child(2n)::before { background: var(--star); }

@property --rail-fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --rail-fade-end   { syntax: "<length>"; inherits: false; initial-value: 0px; }
.feature-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 312px; gap: 16px;
  margin: clamp(40px,5vw,58px) 0 0; padding: 14px max(20px, calc((100vw - 1120px) / 2));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scroll-padding-inline: max(20px, calc((100vw - 1120px) / 2)); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--rail-fade-start), #000 calc(100% - var(--rail-fade-end)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--rail-fade-start), #000 calc(100% - var(--rail-fade-end)), transparent 100%);
  transition: --rail-fade-start 320ms cubic-bezier(.23,1,.32,1), --rail-fade-end 320ms cubic-bezier(.23,1,.32,1);
}
.feature-rail::-webkit-scrollbar { display: none; }
.feature-rail[data-overflow-start="true"] { --rail-fade-start: 56px; }
.feature-rail[data-overflow-end="true"]   { --rail-fade-end: 56px; }
@media (hover: hover) and (pointer: fine) {
  .feature-rail { cursor: grab; }
  .feature-rail[data-dragging="true"] { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
  /* a drag must never fire a card's hover lift or land as a click */
  .feature-rail[data-dragging="true"] * { pointer-events: none; }
}
.feature-card {
  position: relative; display: flex; min-height: 618px; flex-direction: column; overflow: hidden;
  padding: 26px 24px 24px; border-radius: 28px; background: #2E2745;
  box-shadow: 0 0 0 1px oklch(1 0 0 / .08); scroll-snap-align: start;
}
@media (hover: hover) and (pointer: fine) {
  .feature-card { transition: translate 220ms cubic-bezier(.23,1,.32,1), box-shadow 220ms cubic-bezier(.23,1,.32,1), background-color 220ms ease; }
  .feature-card:hover { translate: 0 -5px; background: #352D4F; box-shadow: 0 0 0 1px oklch(1 0 0 / .16), 0 26px 60px rgba(0,0,0,.42); }
  /* scale, not transform: cards 2 and 4 spend their transform on a tilt */
  .feature-card .card-phone, .feature-photo-card > img { transition: scale 320ms cubic-bezier(.23,1,.32,1); }
  .feature-card:hover .card-phone, .feature-card:hover > img { scale: 1.03; }
}
.feature-card > span { color: var(--lumi); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.feature-card:nth-child(2n) > span { color: var(--star); }
.feature-card h3 { margin: 8px 0 20px; font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1.08; letter-spacing: -.032em; color: #FFFFFF; }
.feature-card > p { position: relative; z-index: 4; margin: 22px 0 0; color: rgba(255,255,255,.6); font-size: 12.8px; line-height: 1.5; }
.feature-card > p:last-child { margin-top: auto; padding-top: 22px; }
.feature-card > p a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }

.card-phone {
  position: relative; width: 206px; height: 418px; flex: 0 0 auto; overflow: hidden;
  margin: 4px auto 0; padding: 7px; border-radius: 44px;
  background: linear-gradient(145deg, #6E6488, #261B43 38%, #4A4266 76%, #1B1629);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 1px rgba(0,0,0,.3), 0 26px 56px rgba(0,0,0,.3);
}
.card-phone::after { content: ""; position: absolute; z-index: 3; top: 82px; right: -3px; width: 3px; height: 54px; border-radius: 0 3px 3px 0; background: #3C3456; }
.card-phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 37px; background: var(--canvas); }
.card-phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature-card:nth-child(2) .card-phone { transform: rotate(3deg); }
.feature-card:nth-child(4) .card-phone { transform: rotate(-3deg); }
/* the art card: stops short of the caption and feathers into the card */
.feature-photo-card > img {
  position: absolute; z-index: 1; top: 96px; right: 6%; left: 6%; display: block; width: 88%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}

/* APP STORE RAIL -------------------------------------------------------- */
.appstore-section { padding: clamp(100px,11vw,150px) 0 clamp(92px,10vw,130px); background: #FFFFFF; }
.appstore-rail-fade { position: relative; margin-top: clamp(36px,5vw,56px); }
.appstore-rail-fade::before, .appstore-rail-fade::after { content: ""; position: absolute; top: 0; bottom: 28px; width: 48px; pointer-events: none; z-index: 2; }
.appstore-rail-fade::before { left: 0;  background: linear-gradient(90deg,  #FFFFFF, transparent); }
.appstore-rail-fade::after  { right: 0; background: linear-gradient(270deg, #FFFFFF, transparent); }
.appstore-rail { display: flex; gap: 18px; padding: 4px 20px 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; }
.appstore-rail::-webkit-scrollbar { display: none; }
.appstore-card {
  flex: 0 0 auto; scroll-snap-align: center; width: 216px; aspect-ratio: 1290 / 2796;
  border-radius: 28px; overflow: hidden; background: var(--canvas); border: 1px solid var(--stroke);
  box-shadow: 0 16px 32px rgba(36,30,56,.11); transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.appstore-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px rgba(36,30,56,.17); }
.appstore-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FEATURES BENTO -------------------------------------------------------- */
.features-section { padding: clamp(100px,11vw,150px) 0; background: var(--surface-raised); }
.features-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, minmax(240px, auto)); gap: 14px; }
.feature-tile { min-height: 240px; }
.feature-tile:first-child {
  grid-row: 1 / 3; display: flex; min-height: 500px; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--blue-soft), #EAF3FA 60%, #FFFFFF);
}
.feature-tile:first-child .display-md { font-size: clamp(30px, 3.6vw, 50px) !important; }
.feature-tile:first-child .tile-icon { background: #FFFFFF; }
.feature-tile:last-child { grid-column: 1 / 3; min-height: 250px; background: linear-gradient(120deg, var(--honey-soft), #F5F0FF 62%, #FFFFFF); }
.feature-tile .body-md { margin: 12px 0 0; max-width: 430px; }
.feature-tile h3 { margin: 0; }

/* BELIEF ---------------------------------------------------------------- */
/* FAQ ------------------------------------------------------------------- */
.faq-section { padding: clamp(90px,10vw,130px) 0; }
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-top: 40px; }
.faq-item { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-border); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 26px; font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; color: var(--ink-faint); font-weight: 700; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0; padding: 0 26px 24px; max-width: 720px; }
.faq-item p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.belief-section { padding: clamp(100px,11vw,150px) 0; background: #FFFFFF; }
.belief-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: stretch; }
.belief-quote {
  position: relative; display: flex; min-height: 500px; flex-direction: column; justify-content: flex-end;
  overflow: hidden; padding: 44px; border-radius: 32px; background: var(--surface-inverted);
}
.belief-quote .eyebrow { color: rgba(255,255,255,.6); position: relative; z-index: 2; }
.belief-art { position: absolute; z-index: 0; top: 5%; right: -6%; width: 54%; height: auto; opacity: .95;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 92%); mask-image: linear-gradient(to bottom, #000 52%, transparent 92%); }
.belief-text { position: relative; z-index: 2; margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 50px); font-weight: 800; line-height: 1.06; letter-spacing: -.04em; color: #FFFFFF; text-wrap: balance; }
.belief-text span { color: var(--lumi); }
.boundary-panel { display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; border-radius: 32px; background: var(--sage-soft); box-shadow: var(--shadow-border); }
.boundary-text { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 29px); font-weight: 700; line-height: 1.28; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.boundary-text span { color: var(--ink-muted); font-weight: 600; }

/* CTA ------------------------------------------------------------------- */
.cta-panel { position: relative; padding: clamp(100px,11vw,146px) 20px clamp(90px,10vw,118px); text-align: center; overflow: clip;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 100%); }
.cta-art { width: clamp(120px, 16vw, 190px); height: auto; margin: 0 auto 30px; display: block; filter: drop-shadow(0 22px 32px rgba(36,30,56,.15)); }

/* the wide bento tile carries art and bottom-aligns, like the tall one */
.feature-tile:last-child { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.feature-tile:last-child .body-md { max-width: min(58%, 520px); }
.tile-art {
  position: absolute; z-index: 0; right: 2%; bottom: -6%; width: clamp(150px, 26%, 300px); height: auto;
  filter: drop-shadow(0 18px 26px rgba(36,30,56,.12)); pointer-events: none;
}
.feature-tile:last-child > :not(.tile-art) { position: relative; z-index: 1; }

/* RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 900px) {
  .editorial-grid, .belief-grid { grid-template-columns: 1fr; gap: 36px; }
  .editorial-grid .body-lg { margin-left: 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-tile:first-child { grid-column: 1 / 3; grid-row: auto; min-height: 400px; }
}
@media (max-width: 640px) {
  .feature-rail { grid-auto-columns: 270px; padding: 12px 16px; scroll-padding-inline: 16px; }
  .feature-card { min-height: 552px; padding: 22px 20px 20px; }
  .feature-card h3 { font-size: 21px; }
  .card-phone { width: 176px; height: 358px; border-radius: 38px; }
  .card-phone-screen { border-radius: 32px; }
  .card-phone::after { top: 70px; height: 46px; }
  .features-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-tile:first-child, .feature-tile:last-child { grid-column: 1; grid-row: auto; min-height: 320px; }
  .belief-quote, .boundary-panel { min-height: 380px; padding: 28px; border-radius: 26px; }
  .belief-art { width: 74%; right: -14%; }
  .world-lineup { margin-bottom: -20px; }
  .tile-art { right: -6%; bottom: -4%; width: 150px; opacity: .85; }
  .feature-tile:last-child .body-md { max-width: 100%; }
}
