/* Artwork-led landing attempt. Native CSS; self-hosted type and illustration.
   DESIGN_VARIANCE: 4 / MOTION_INTENSITY: 2 / VISUAL_DENSITY: 2.
   Pill actions, 8px form fields, 16px dialog; fixed light appearance. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/PlusJakartaSans.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ink: #162330;
  --muted: #525b63;
  --line: #a8adb0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { color: var(--paper); background: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid #a9340c; outline-offset: 5px; }
.skip { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 14px; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { position: absolute; z-index: 2; inset: 0 0 auto; padding: 24px clamp(24px, 4vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fffdf8; font-size: 24px; font-weight: 700; letter-spacing: -.055em; }
.brand img { display: block; border-radius: 9px; }
.poster { position: relative; flex: 1; display: grid; place-items: center; min-height: calc(100dvh - 64px); isolation: isolate; }
.intro { position: relative; z-index: 1; width: min(100%, 1000px); margin-inline: auto; padding: 72px 24px; text-align: center; }
.artwork-poster { --art-rise: clamp(100px, 24dvh, 320px); display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-top: var(--art-rise); padding-bottom: clamp(12px, 2dvh, 28px); }
.landing-content { width: 100%; margin-inline: auto; }
.artwork-poster .intro { width: min(100%, 1200px); padding-top: 0; padding-bottom: 0; }
.alpine-landscape { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.alpine-landscape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* The illustration itself reserves a blue center; no pale overlays or masks. */
.sky-page { isolation: isolate; background: #0756b4; color: #fffdf8; }
.sky-page .artwork-poster { padding-top: clamp(72px, 10dvh, 140px); }
.sky-page .intro { width: min(66%, 1100px); }
.sky-page h1 { font-size: clamp(36px, min(4.5vw, 8dvh), 88px); }
.sky-page .subline, .sky-page .study-flow p, .sky-page .legal-footer, .sky-page .javascript-note { color: #e6efff; }
.sky-page .study-flow { width: min(64%, 1000px); border-color: rgb(255 253 248 / .3); }
.sky-page .button-primary { background: var(--paper); border-color: var(--paper); color: #123963; }
.sky-page .button-primary:hover { background: #e6efff; border-color: #e6efff; }
.sky-page .button-secondary { background: transparent; color: var(--paper); border-color: rgb(255 253 248 / .7); }
.sky-page .button-secondary:hover { background: rgb(255 253 248 / .12); border-color: var(--paper); }
.sky-page :is(a, button):focus-visible { outline-color: var(--paper); }
.sky-page .invite-dialog button:focus-visible { outline-color: var(--ink); }

h1 { margin: 0; font-size: clamp(36px, min(4.5vw, 8dvh), 96px); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.subline { max-width: 29em; margin: clamp(12px, 2dvh, 22px) auto 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; text-wrap: balance; }
.actions { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 2.5dvh, 28px); }
.app-store-badge { display: inline-flex; align-self: center; flex-shrink: 0; border-radius: 7px; }
.app-store-badge img { display: block; width: auto; height: 50px; }
.button { width: 176px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 23px; border: 1px solid var(--ink); border-radius: 999px; font: 600 14px/1.5 'Plus Jakarta Sans', sans-serif; white-space: nowrap; cursor: pointer; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #304557; border-color: #304557; }
.button-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--ink); background: #f1f0eb; }
.button:active { transform: translateY(1px); }
.study-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); width: min(100% - 64px, 1080px); margin: clamp(24px, 4dvh, 56px) auto 0; padding-top: clamp(16px, 2.5dvh, 28px); border-top: 1px solid #d9dcd9; text-align: center; }
.study-flow h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
.study-flow p { margin: 0; max-width: 31em; color: var(--muted); font-size: 14px; line-height: 1.7; }
.legal-footer { position: relative; z-index: 1; flex-shrink: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 12px 24px; color: var(--muted); font-size: 12px; line-height: 20px; }
.legal-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.legal-footer a { text-underline-offset: 4px; }
.legal-footer a:hover { text-decoration: underline; }
/* Native dialog supplies focus containment, Escape and focus restoration. */
html:has(.invite-dialog[open]) { overflow: hidden; }
.invite-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 44px 28px 28px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font-family: inherit; text-align: left; }
.invite-dialog::backdrop { background: rgb(13 31 49 / .4); }
.dialog-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font: 26px/1 sans-serif; cursor: pointer; }
.dialog-close:hover { opacity: .6; }
.invite-dialog h2 { margin: 0; padding-right: 16px; font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -.045em; }
#invite-description, .invite-success p { margin: 12px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.email-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
/* Offset the font's low visual baseline while keeping a 52px input. */
.invite-dialog input[type="email"] { width: 100%; min-height: 52px; padding: 11px 14px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; }
.sky-page .invite-dialog input[type="email"]:is(:focus, :focus-visible) { outline: none; outline-offset: 0; box-shadow: none; border-color: var(--ink); }
.invite-dialog input::placeholder { color: #626a70; }
.invite-submit { display: block; width: 100%; min-height: 52px; margin-top: 12px; padding: 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.invite-submit:hover { background: #304557; }
.invite-submit:disabled { cursor: wait; opacity: .6; }
.form-status { margin: 16px 0 0; font-size: 13px; line-height: 1.6; }
.form-status:empty { display: none; }
.javascript-note { padding-inline: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: intro-arrive 650ms cubic-bezier(.22, 1, .36, 1) 100ms backwards; }
  .button { transition: background-color 160ms ease, border-color 160ms ease; }
  .button > span { transition: transform 180ms ease; }
  .button:is(:hover, :focus-visible) > span { transform: translate(2px, -2px); }
}
@keyframes intro-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Keep the laptop composition closer to the spacious widescreen proportions. */
@media (min-width: 601px) and (max-width: 1600px) and (max-height: 950px) {
  .sky-page .artwork-poster { padding-top: clamp(64px, 8dvh, 88px); }
  .sky-page .intro { width: min(70%, 960px); }
  .sky-page h1 { font-size: clamp(36px, min(4vw, 7dvh), 64px); letter-spacing: -.025em; }
  .sky-page .subline { max-width: 36em; margin-top: 16px; font-size: 16px; }
  .sky-page .actions { margin-top: 20px; gap: 10px; }
  .sky-page .button { min-height: 44px; padding: 11px 20px; font-size: 13px; }
  .sky-page .study-flow { width: min(62%, 920px); gap: 24px; margin-top: 28px; padding-top: 20px; }
  .sky-page .study-flow h2 { margin-bottom: 8px; font-size: 15px; }
  .sky-page .study-flow p { font-size: 13px; line-height: 1.55; }
  .sky-page .site-header { padding-block: 18px; }
  .sky-page .alpine-landscape img { object-position: center 75%; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
  .brand { font-size: 22px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .sky-page .intro { width: 100%; }
  .sky-page .study-flow { width: calc(100% - 40px); }
  .alpine-landscape img { position: absolute; bottom: 0; width: 100%; height: auto; object-fit: contain; -webkit-mask-image: linear-gradient(transparent, #000 24%); mask-image: linear-gradient(transparent, #000 24%); }
  .intro { padding-inline: 20px; }
  .artwork-poster .intro { padding-bottom: 0; }
  .sky-page h1 { font-size: clamp(32px, min(8.8vw, 7dvh), 52px); }
  .subline { max-width: 24em; font-size: 16px; }
  .actions { gap: 10px; }
  .button { padding: 13px 18px; gap: 12px; font-size: 13px; }
  .invite-dialog { padding: 44px 24px 24px; }
  .study-flow { gap: 12px; width: calc(100% - 40px); }
  .study-flow h2 { margin: 0; font-size: 13px; line-height: 1.5; }
  .study-flow p { display: none; }
}
@media (max-width: 359px) {
  .actions { flex-direction: column; align-items: stretch; max-width: 240px; margin-inline: auto; }
  .button { display: flex; width: 100%; }
}
@media (max-height: 700px) and (min-width: 601px) {
  .study-flow h2 { font-size: 15px; }
  .study-flow p { font-size: 13px; line-height: 1.5; }
}
@media (max-height: 480px) {
  .artwork-poster { --art-rise: 70px; padding-bottom: 8px; }
  .site-header { padding-block: 8px; }
  h1, .sky-page h1 { font-size: 32px; }
  .subline { margin-top: 8px; }
  .actions { margin-top: 12px; }
  .study-flow { display: none; }
  .legal-footer { padding-block: 4px; }
}

/* Compact App Store lockup, matching the web action's pill and colors. */
.sky-page .button.app-store-button { align-self: stretch; gap: 8px; padding: 4px 18px; }
.app-store-button svg { width: 24px; height: 28px; flex-shrink: 0; }
.app-store-copy { display: flex; flex-direction: column; align-items: flex-start; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; }
.app-store-copy small { font-size: 9px; font-weight: 500; line-height: 11px; }
.app-store-copy strong { font-size: 18px; font-weight: 500; line-height: 20px; letter-spacing: -.5px; }

/* Keep the two actions on one row on standard phones without oversized pills. */
@media (max-width: 600px) {
  .sky-page .actions { gap: 8px; margin-top: 20px; }
  .sky-page .actions .button { width: 156px; min-height: 44px; padding: 8px 12px; gap: 8px; font-size: 12px; }
  .sky-page .actions .app-store-button { padding: 4px 12px; }
  .app-store-button svg { width: 21px; height: 25px; }
  .app-store-copy small { font-size: 8px; line-height: 10px; }
  .app-store-copy strong { font-size: 16px; line-height: 18px; }
}
@media (max-width: 359px) {
  .sky-page .actions { align-items: center; }
  .sky-page .actions .app-store-button { align-self: center; }
}
