/* Digital Island: coming soon page, in the style of the Digital Island homepage */
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/assets/fonts/inter-300.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.ttf") format("truetype"); }

:root {
  --gold: #fec219;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, .8);
  --muted: rgba(255, 255, 255, .62);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: #000; color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { display: none; }

/* ---------- Flowing gold lines ---------- */
.paths { position: fixed; inset: 0; z-index: 0; pointer-events: none; color: var(--gold); }
.paths-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.paths::after { /* darken the middle so the text stays readable */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 42% at 50% 48%, rgba(0, 0, 0, .72), rgba(0, 0, 0, .25) 70%, transparent);
}

/* ---------- Header ---------- */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) 22px max(48px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(28, 28, 28, .95), rgba(28, 28, 28, .6) 60%, transparent);
}
.logo { display: block; width: 240px; height: auto; }
.logo-link { border-radius: 6px; }
.top-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 999px; background: var(--gold); color: #000; text-decoration: none;
  font-size: 14px; font-weight: 500; transition: filter .2s, transform .15s;
}
.top-cta:hover { filter: brightness(1.06); }
.top-cta:active { transform: scale(.97); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 24px 32px; text-align: center;
}
.hero > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero > :nth-child(2) { animation-delay: .08s; }
.hero > :nth-child(3) { animation-delay: .16s; }
.hero > :nth-child(4) { animation-delay: .24s; }
.hero > :nth-child(5), .hero > :nth-child(6) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; margin-bottom: 30px; border-radius: 999px;
  border: 1px solid rgba(254, 194, 25, .28); background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 500; color: var(--soft);
}
.eyebrow-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.eyebrow-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

h1 {
  margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: 1; font-weight: 500;
  letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
}
h1 .line { white-space: nowrap; }
h1 .gold { color: var(--gold); }

.subtitle {
  max-width: 640px; margin: 28px auto 0;
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5; color: var(--soft); text-wrap: balance;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .8);
}

.services {
  display: flex; flex-wrap: wrap; justify-content: center;
  list-style: none; margin: 20px 0 0; padding: 0;
  font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; color: var(--muted);
}
.services li { white-space: nowrap; }
.services li + li::before { content: "·"; color: var(--gold); margin: 0 12px; }

/* ---------- Notify capsule ---------- */
.notify { position: relative; width: 100%; max-width: 460px; margin: 40px auto 0; }
.notify input[type="email"] {
  display: block; width: 100%; height: 56px; padding: 0 140px 0 50px;
  font: 400 16px/1 "Inter", sans-serif; color: var(--text); caret-color: var(--gold);
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); outline: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") 20px center / 18px no-repeat,
    rgba(18, 18, 18, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .2s;
}
.notify input::placeholder { color: rgba(255, 255, 255, .45); }
.notify input[type="email"]:focus { border-color: rgba(254, 194, 25, .7); box-shadow: 0 0 0 4px rgba(254, 194, 25, .12); }
.notify button {
  position: absolute; top: 6px; right: 6px; bottom: 6px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 "Inter", sans-serif; color: #000; background: var(--gold);
  transition: filter .2s, transform .15s, opacity .2s;
}
.notify button:hover { filter: brightness(1.06); }
.notify button:active { transform: scale(.97); }
.notify button:disabled { opacity: .75; cursor: default; }
.notify button:focus-visible, .top-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.form-msg { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.form-msg:empty { margin: 0; }
.form-msg.ok { color: #fde68a; }
.form-msg.err { color: #fca5a5; }

/* ---------- Footer ---------- */
.bottom {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 24px max(28px, env(safe-area-inset-bottom)); text-align: center;
}
.contact { margin: 0; font-size: 15px; color: var(--muted); }
.contact a { color: var(--text); text-decoration: none; margin-left: 4px; transition: color .2s; }
.contact a:hover { color: var(--gold); }
.contact a:focus-visible, .sister:focus-visible, .logo-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.sister {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .55);
  transition: color .2s, border-color .2s, background .2s;
}
.sister strong { color: #c4b5fd; font-weight: 600; }
.sister:hover { color: var(--text); border-color: rgba(167, 139, 250, .4); background: rgba(124, 92, 255, .1); }
.sister-dot { width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }

/* ---------- Phones: one screen ---------- */
@media (max-width: 639px) {
  .top { padding: max(16px, env(safe-area-inset-top)) 20px 14px; }
  .logo { width: 150px; }
  .top-cta { height: 38px; padding: 0 14px; font-size: 13px; }
  .hero { padding: 8px 20px 20px; }
  .eyebrow { font-size: 12.5px; margin-bottom: 22px; }
  h1 { font-size: min(48px, calc((100vw - 40px) / 6.9)); }
  h1 .line { display: block; }
  .subtitle { margin-top: 18px; font-size: 15.5px; }
  .services { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 30px; margin-top: 16px; font-size: 14px; }
  .services li { position: relative; text-align: left; }
  .services li + li::before { content: none; }
  .services li:nth-child(2n)::before { content: "·"; position: absolute; left: -18px; margin: 0; color: var(--gold); }
  .notify { margin-top: 28px; }
  .notify input[type="email"] { height: 54px; padding-left: 46px; padding-right: 126px; background-position: 18px center, 0 0; }
  .notify button { padding: 0 18px; font-size: 14.5px; }
  .contact { font-size: 14px; }
  .bottom { gap: 10px; }
}
@container stage (max-width: 639px) {
  .top { padding: max(16px, env(safe-area-inset-top)) 20px 14px; }
  .logo { width: 150px; }
  .top-cta { height: 38px; padding: 0 14px; font-size: 13px; }
  .hero { padding: 8px 20px 20px; }
  .eyebrow { font-size: 12.5px; margin-bottom: 22px; }
  h1 { font-size: min(48px, calc((100vw - 40px) / 6.9)); }
  h1 .line { display: block; }
  .subtitle { margin-top: 18px; font-size: 15.5px; }
  .services { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 30px; margin-top: 16px; font-size: 14px; }
  .services li { position: relative; text-align: left; }
  .services li + li::before { content: none; }
  .services li:nth-child(2n)::before { content: "·"; position: absolute; left: -18px; margin: 0; color: var(--gold); }
  .notify { margin-top: 28px; }
  .notify input[type="email"] { height: 54px; padding-left: 46px; padding-right: 126px; background-position: 18px center, 0 0; }
  .notify button { padding: 0 18px; font-size: 14.5px; }
  .contact { font-size: 14px; }
  .bottom { gap: 10px; }
}
@media not all /* was: (max-width: 639px) and (max-height: 640px) */ {
  .logo { width: 128px; }
  .eyebrow { margin-bottom: 16px; }
  .subtitle { margin-top: 14px; font-size: 14.5px; }
  .notify { margin-top: 20px; }
  .notify input[type="email"] { height: 50px; }
  .bottom { gap: 8px; padding-bottom: 16px; }
}
@media not all /* was: (max-width: 359px) */ {
  .top-cta span { display: none; }
  .top-cta { width: 38px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *, .eyebrow-dot::after { animation: none; }
}

/* ---------- Phones turned sideways (short landscape screens, 2026-11-25) ----------
   index.html adds html.stage-land when the screen is wider than tall and under 500px tall.
   The page scrolls naturally; portrait phones and desktop keep their locked designs. */
html.stage-land .top { padding: max(12px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 10px max(28px, env(safe-area-inset-left)); }
html.stage-land .logo { width: 150px; }
html.stage-land .hero { padding: 4px max(28px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); }
html.stage-land .eyebrow { font-size: 12.5px; margin-bottom: 16px; }
html.stage-land h1 { font-size: min(54px, 6.4vw); }
html.stage-land .subtitle { margin-top: 12px; font-size: 15px; }
html.stage-land .services { margin-top: 10px; font-size: 14px; }
html.stage-land .card-slot { width: min(560px, 100%); margin-top: 22px; }
html.stage-land .notify { margin-top: 22px; }
html.stage-land .bottom { gap: 10px; }
/* sideways phones: text + form on the left, the story card on the right */
html.stage-land .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto; column-gap: 36px; row-gap: 18px; align-items: center; justify-items: start; text-align: left; }
html.stage-land .head { grid-column: 1; grid-row: 1; align-self: end; display: flex; flex-direction: column; align-items: flex-start; }
html.stage-land .form { grid-column: 1; grid-row: 2; align-self: start; width: 100%; max-width: 400px; text-align: left; }
html.stage-land .card-slot { grid-column: 2; grid-row: 1 / span 2; width: 100%; max-width: 520px; margin: 0; justify-self: end; }
html.stage-land .notify { margin-top: 0; }
html.stage-land h1 { font-size: min(46px, 4.8vw); text-align: left; }
html.stage-land h1 .gold { display: block; }
html.stage-land .subtitle, html.stage-land .services { text-align: left; justify-content: flex-start; }
html.stage-land .eyebrow { margin-bottom: 14px; }
html.stage-land .s3 .pill-process, html.stage-land .s3 .nav .pill:last-child { display: none; }
html.stage-land .s3 .nav { flex-wrap: nowrap; }
html.stage-land .bottom { padding-top: 4px; }
html.stage-land .subtitle .sub-line { display: block; text-align: left; }
html.stage-land .subtitle { margin-left: 0; margin-right: 0; }
@media (max-width: 760px) {
  html.stage-land .top { padding-bottom: 6px; }
  html.stage-land .logo { width: 120px; }
  html.stage-land .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  html.stage-land .eyebrow { font-size: 11px; padding: 6px 12px 6px 10px; white-space: nowrap; }
  html.stage-land h1 { font-size: 34px; }
  html.stage-land .subtitle { font-size: 13.5px; margin-top: 10px; }
  html.stage-land .services { font-size: 12.5px; }
  html.stage-land .notify input[type="email"] { height: 48px; padding-left: 40px; padding-right: 112px; font-size: 14px; background-position: 14px center, 0 0; }
  html.stage-land .notify button { padding: 0 14px; font-size: 13.5px; }
  html.stage-land .s3 .nav .pill:nth-child(4) { display: none; }
  html.stage-land .s3 .page-info strong { font-size: 16px; }
  html.stage-land .s3 .page-info span.t { font-size: 12px; }
}
/* sideways phones: the "while we're redesigning" label on one line */
html.stage-land .s3 .page-info { left: 12px; right: 12px; }
html.stage-land .s3 .pk-top { white-space: nowrap; font-size: 9px; letter-spacing: .03em; padding: 4px 9px 4px 7px; max-width: 100%; }
@media (max-width: 760px) {
  html.stage-land .s3 .page-info { left: 8px; right: 8px; }
  html.stage-land .s3 .pk-top { font-size: 8px; letter-spacing: 0; padding: 4px 7px 4px 6px; }
}
/* ---------- Sideways phones: everything on one screen, no scrolling (2026-11-25) ----------
   The "Explore our AI lab" pill moves up beside the logo, the card gets more compact, and
   sizes follow the screen height. Previous version: checkpoints/before-land-fit/. */
html.stage-land #stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
html.stage-land .top { padding: max(10px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 2px max(28px, env(safe-area-inset-left)); background: none; }
html.stage-land .logo { width: clamp(96px, 30svh, 128px); }
html.stage-land .bottom { position: absolute; z-index: 3; top: max(10px, env(safe-area-inset-top)); right: max(28px, env(safe-area-inset-right)); padding: 0; gap: 0; }
html.stage-land .sister { padding: 4px 6px 4px 14px; font-size: 12.5px; }
html.stage-land .sister-sticker { height: 28px; width: auto; }
html.stage-land .hero { flex: 1; align-content: center; row-gap: 2.4svh; padding-top: 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
html.stage-land .eyebrow { margin-top: 1.5svh; margin-bottom: 2.4svh; font-size: clamp(10.5px, 3.2svh, 12.5px); padding-top: 5px; padding-bottom: 5px; }
html.stage-land h1 { font-size: clamp(26px, 9.8svh, 46px); line-height: 1.04; }
html.stage-land .subtitle { margin-top: 1.8svh; font-size: clamp(12.5px, 3.8svh, 15px); line-height: 1.35; }
html.stage-land .services { margin-top: 1.4svh; font-size: clamp(11.5px, 3.5svh, 14px); }
html.stage-land .notify input[type="email"] { height: clamp(40px, 12.5svh, 50px); }
html.stage-land .form .contact, html.stage-land .form-msg { font-size: 13px; }
html.stage-land .form > * + * { margin-top: 1.6svh; }
html.stage-land .s3 .chrome { padding: 8px 12px; gap: 10px; }
html.stage-land .s3 .page { margin-top: 8px; aspect-ratio: 16 / 5; }
html.stage-land .slide { margin-top: 10px; height: 46px; padding: 4px; }
html.stage-land .slide .knob { width: 38px; height: 38px; }
html.stage-land .slide .fill { left: 4px; top: 4px; bottom: 4px; width: 38px; }
html.stage-land .slide .label { font-size: 13.5px; }
html.stage-land .s3 .body { padding: 10px 12px 12px; }
@media (max-width: 760px) {
  html.stage-land .s3 .page { aspect-ratio: 16 / 5.7; }
  html.stage-land .s3 .chrome { padding: 7px 10px; }
  html.stage-land .s3 .nav .pill { padding-top: 5px; padding-bottom: 5px; }
  html.stage-land .hero { row-gap: 2svh; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  html.stage-land .form > * + * { margin-top: 1svh; }
}
/* Sideways phones, round 2: no "Explore our AI lab" pill and no email signup; the rest grows to fill the screen. */
html.stage-land .bottom, html.stage-land .notify, html.stage-land .form-msg { display: none; }
html.stage-land .logo { width: clamp(110px, 34svh, 150px); }
html.stage-land .hero { row-gap: 3svh; padding-top: 4px; }
html.stage-land .top { padding-bottom: 0; }
html.stage-land .eyebrow { margin-top: 0; margin-bottom: 3svh; font-size: clamp(11px, 3.4svh, 13px); }
html.stage-land h1 { font-size: clamp(30px, 12svh, 52px); }
html.stage-land .subtitle { margin-top: 2.6svh; font-size: clamp(13.5px, 4.3svh, 17px); }
html.stage-land .services { margin-top: 2svh; font-size: clamp(12.5px, 3.9svh, 15px); }
html.stage-land .form > * + * { margin-top: 0; }
html.stage-land .form .mini { margin: 0; }
html.stage-land .s3 .page { aspect-ratio: 16 / 5.4; }
@media (max-width: 760px) {
  html.stage-land .s3 .page { aspect-ratio: 16 / 6; }
  html.stage-land h1 { font-size: clamp(28px, 11svh, 40px); }
}
@media (max-height: 360px) {
  html.stage-land .s3 .page { aspect-ratio: 16 / 4.7; }
  html.stage-land .s3 .nav .pill { padding-top: 4px; padding-bottom: 4px; }
  html.stage-land .slide { height: 44px; margin-top: 8px; }
  html.stage-land .slide .knob { width: 36px; height: 36px; }
  html.stage-land .slide .fill { width: 36px; }
  html.stage-land .logo { width: 104px; }
}
@media (max-height: 360px) and (max-width: 760px) {
  html.stage-land .s3 .page { aspect-ratio: 16 / 5.1; }
  html.stage-land .s3 .page-info strong { font-size: 14px; }
  html.stage-land .s3 .page-info span.t { font-size: 11px; }
  html.stage-land .slide { height: 40px; }
  html.stage-land .slide .knob { width: 32px; height: 32px; }
  html.stage-land .slide .fill { width: 32px; }
  html.stage-land .slide .label { font-size: 12.5px; }
}
