:root {
  --orange: #ff7a1a;
  --orange-2: #ff9b4a;
  --pink: #ff4fb8;
  --violet: #7d5cff;
  --blue: #4cc9ff;
  --green: #8cff6f;
  --ink: #f8f4ff;
  --dark: #080711;
  --panel: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.13);
  --muted: rgba(248, 244, 255, 0.68);
  --cream: #fff8f1;
  --cream-ink: #151019;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #080711;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  background: rgba(8, 7, 17, 0.68);
}
.brand { font-weight: 840; letter-spacing: -0.045em; font-size: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 820;
  letter-spacing: -0.01em;
}
.nav-cta, .button.primary {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 122, 26, .24);
}
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.08); }
.hero-stage {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 86px);
  overflow: hidden;
  padding: clamp(50px, 7vw, 96px) clamp(20px, 6vw, 96px);
  background:
    radial-gradient(circle at 62% 42%, rgba(255,122,26,.36), transparent 19rem),
    radial-gradient(circle at 86% 20%, rgba(255,79,184,.30), transparent 18rem),
    radial-gradient(circle at 20% 76%, rgba(76,201,255,.14), transparent 24rem),
    linear-gradient(135deg, #07060e 0%, #111022 52%, #07060e 100%);
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 66% 38%, black, transparent 66%);
  pointer-events: none;
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -10%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,122,26,.25), transparent 62%);
  filter: blur(30px);
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(64px, 10vw, 152px);
  line-height: .84;
  letter-spacing: -0.095em;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 92px);
  line-height: .96;
  letter-spacing: -0.075em;
}
h3 { margin-bottom: 7px; letter-spacing: -0.04em; }
.hero-subtitle, .section-head p, .experience-card p, .dark-story p, .beta-cta p, .page-hero p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.52;
  letter-spacing: -0.03em;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.signal-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.signal-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 750;
}
.hero-showcase {
  position: relative;
  z-index: 2;
  min-height: 670px;
}
.stage-orb { position: absolute; border-radius: 50%; filter: blur(16px); opacity: .65; }
.orb-one { width: 230px; height: 230px; right: 8%; top: 6%; background: rgba(255,79,184,.28); }
.orb-two { width: 280px; height: 280px; left: 2%; bottom: 8%; background: rgba(255,122,26,.25); }
.phone-hero {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(230px, 24vw, 330px);
  transform: translate(-50%, -50%) rotate(3deg);
  padding: 10px;
  border-radius: 46px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 80px rgba(255,122,26,.18);
  backdrop-filter: blur(18px);
}
.phone-hero img { border-radius: 34px; }
.floating-role {
  position: absolute;
  width: clamp(132px, 15vw, 198px);
  padding: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.065));
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
  backdrop-filter: blur(20px);
}
.floating-role img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.34)); }
.floating-role strong, .floating-role span { display: block; text-align: center; }
.floating-role strong { margin-top: 6px; font-size: 18px; }
.floating-role span { color: rgba(255,255,255,.58); font-size: 12px; font-weight: 760; }
.role-a { left: 4%; top: 8%; transform: rotate(-8deg); }
.role-b { right: 3%; top: 2%; transform: rotate(7deg); }
.role-c { left: 0; bottom: 7%; transform: rotate(5deg); }
.role-d { right: 8%; bottom: 2%; transform: rotate(-6deg); }
.roles-section, .experience-section {
  color: var(--cream-ink);
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 96px);
}
.section-head { max-width: 1120px; margin: 0 auto 42px; }
.section-head.compact { margin-bottom: 30px; }
.section-head p { color: rgba(21,16,25,.64); max-width: 780px; }
.roles-section .eyebrow, .experience-section .eyebrow, .beta-cta .eyebrow { color: var(--orange); }
.role-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.role-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 36px;
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 70px rgba(42, 22, 10, .15);
}
.role-card::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  filter: blur(18px);
}
.role-card img { width: min(88%, 270px); margin: 0 auto; position: relative; z-index: 1; filter: drop-shadow(0 20px 28px rgba(0,0,0,.26)); }
.role-card div { position: relative; z-index: 2; }
.role-card p { margin-bottom: 0; color: rgba(255,255,255,.76); line-height: 1.55; }
.role-card.pink { background: linear-gradient(145deg, #7e48ff, #ff5bbd 65%, #ff8d42); }
.role-card.green { background: linear-gradient(145deg, #163722, #39b86d 58%, #b7ff6a); }
.role-card.dark { background: linear-gradient(145deg, #14141c, #5438ff 58%, #ff4f9b); }
.role-card.blue { background: linear-gradient(145deg, #15294d, #2d93ff 58%, #67e4ff); }
.experience-section { padding-top: clamp(30px, 5vw, 70px); }
.experience-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.experience-card {
  min-height: 300px;
  padding: 28px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid rgba(21,16,25,.08);
  box-shadow: 0 18px 60px rgba(42,22,10,.08);
}
.experience-card.hot { background: linear-gradient(145deg, #12101b, #2c1847 55%, #ff7a1a); color: #fff; }
.experience-card.hot p { color: rgba(255,255,255,.72); }
.index { display: inline-flex; margin-bottom: 54px; color: var(--orange); font-weight: 950; }
.dark-story {
  display: grid;
  grid-template-columns: .72fr 1fr;
  align-items: center;
  gap: clamp(26px, 6vw, 80px);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 96px);
  background:
    radial-gradient(circle at 24% 50%, rgba(255,79,184,.24), transparent 22rem),
    radial-gradient(circle at 82% 26%, rgba(255,122,26,.22), transparent 24rem),
    #080711;
}
.phone-frame { max-width: 390px; margin: 0 auto; padding: 10px; border-radius: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.08); box-shadow: 0 36px 100px rgba(0,0,0,.42); }
.phone-frame img { border-radius: 32px; }
.beta-cta {
  margin: 0;
  padding: clamp(80px, 11vw, 150px) clamp(20px, 6vw, 96px);
  text-align: center;
  background: linear-gradient(180deg, var(--cream), #fff);
  color: var(--cream-ink);
}
.beta-cta p { color: rgba(21,16,25,.64); max-width: 820px; margin-left: auto; margin-right: auto; }
.site-footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 6vw, 80px);
  color: rgba(255,255,255,.62);
  background: #080711;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 14px;
}
.site-footer span { margin-right: auto; }
.page-shell { padding: 0 clamp(18px, 5vw, 72px) 80px; background: var(--cream); color: var(--cream-ink); min-height: 100vh; }
.page-hero { max-width: 1080px; margin: 0 auto; padding: clamp(80px, 12vw, 150px) 0; text-align: center; }
.page-hero h1 { font-size: clamp(52px, 9vw, 120px); }
.page-hero p { color: rgba(21,16,25,.64); max-width: 760px; margin-left: auto; margin-right: auto; }
.install-panel, .faq {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 38px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(21,16,25,.08);
  box-shadow: 0 24px 70px rgba(63, 38, 13, .08);
}
.panel-head { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps article { min-height: 210px; padding: 22px; border-radius: 28px; background: linear-gradient(180deg, #fff, #fff7ef); border: 1px solid rgba(255,122,26,.12); }
.steps span { color: var(--orange); font-weight: 900; }
.steps p, .faq p, .notice-card p { color: rgba(21,16,25,.62); line-height: 1.6; }
.notice-card { margin-top: 20px; padding: 20px; border-radius: 24px; background: #171717; color: #fff; }
.notice-card p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.faq details { padding: 20px 0; border-top: 1px solid rgba(21,16,25,.08); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.reveal { opacity: 0; transform: translateY(18px); animation: rise .75s ease forwards; }
.delay-1 { animation-delay: .12s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero-stage, .dark-story { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 620px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: auto; }
}
@media (max-width: 620px) {
  .site-header { height: 58px; }
  .brand { font-size: 18px; }
  .nav-cta { padding: 0 14px; min-height: 38px; font-size: 14px; }
  h1 { font-size: clamp(58px, 18vw, 92px); }
  h2 { font-size: clamp(38px, 12vw, 62px); }
  .hero-actions .button { width: 100%; }
  .hero-stage { padding-top: 44px; }
  .hero-showcase { min-height: 530px; margin-inline: -10px; }
  .phone-hero { width: 210px; }
  .floating-role { width: 132px; border-radius: 24px; padding: 9px; }
  .floating-role strong { font-size: 15px; }
  .floating-role span { font-size: 11px; }
  .role-a { left: 0; top: 6%; }
  .role-b { right: 0; top: 0; }
  .role-c { left: 6%; bottom: 7%; }
  .role-d { right: 0; bottom: 1%; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 330px; }
  .site-footer span { width: 100%; }
}

/* Mobile-first override: phone web should feel like the OKichat app, not a shrunken desktop landing page. */
.mobile-hero-panel { display: none; }
@media (max-width: 620px) {
  body {
    background: #080711;
  }
  .site-header {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 10px;
    height: 48px;
    border-radius: 999px;
    padding: 0 8px 0 16px;
    background: rgba(8, 7, 17, 0.54);
    box-shadow: 0 16px 48px rgba(0,0,0,.28);
  }
  .brand { font-size: 16px; letter-spacing: -0.035em; }
  .nav-cta { min-height: 34px; padding: 0 13px; font-size: 13px; }
  .hero-stage {
    min-height: auto;
    display: block;
    padding: 86px 18px 38px;
    background:
      radial-gradient(circle at 72% 18%, rgba(255,79,184,.33), transparent 12rem),
      radial-gradient(circle at 20% 72%, rgba(255,122,26,.28), transparent 14rem),
      linear-gradient(180deg, #080711 0%, #121020 74%, #fff8f1 74.2%, #fff8f1 100%);
  }
  .hero-stage::before {
    background-size: 34px 34px;
    opacity: .8;
    mask-image: radial-gradient(circle at 50% 32%, black, transparent 78%);
  }
  .hero-stage::after { display: none; }
  .hero-copy {
    max-width: none;
    text-align: left;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .1em;
    margin-bottom: 12px;
  }
  h1 {
    font-size: clamp(54px, 18vw, 76px);
    line-height: .88;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 17px;
    line-height: 1.48;
    max-width: 22em;
  }
  .desktop-actions { display: none; }
  .signal-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .signal-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: rgba(255,255,255,.075);
  }
  .hero-showcase { display: none; }
  .mobile-hero-panel {
    display: block;
    position: relative;
    margin-top: 28px;
    padding: 16px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.13);
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
    box-shadow: 0 28px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter: blur(18px);
  }
  .mobile-phone-card {
    width: min(58vw, 238px);
    margin: 0 auto;
    padding: 8px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    box-shadow: 0 28px 70px rgba(0,0,0,.38), 0 0 58px rgba(255,122,26,.16);
  }
  .mobile-phone-card img { border-radius: 26px; }
  .mobile-role-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 14px;
  }
  .mobile-role-row span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 4px 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 850;
  }
  .mobile-role-row img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.26));
  }
  .mobile-main-cta {
    width: 100%;
    margin-top: 14px;
    min-height: 48px;
    font-size: 16px;
  }
  .roles-section, .experience-section {
    padding: 54px 18px;
  }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: 16px; line-height: 1.55; }
  .role-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 4px 14px;
    margin-inline: -4px;
  }
  .role-grid::-webkit-scrollbar { display: none; }
  .role-card {
    min-width: 78vw;
    min-height: 360px;
    scroll-snap-align: center;
  }
  .role-card img { width: min(78%, 235px); }
  .experience-grid {
    gap: 12px;
  }
  .experience-card {
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
  }
  .index { margin-bottom: 34px; }
  .dark-story {
    display: block;
    padding: 56px 18px;
  }
  .phone-frame {
    max-width: 250px;
    margin-bottom: 28px;
  }
  .beta-cta {
    padding: 60px 18px 76px;
  }
  .beta-cta p { font-size: 16px; }
  .site-footer {
    padding: 24px 18px;
    font-size: 13px;
  }
  .page-shell { padding-left: 18px; padding-right: 18px; }
}

/* Sam 2026-05-24: mobile hero must be App-login style only. */
.mobile-login-bg,
.mobile-title,
.mobile-subtitle,
.mobile-concept-note { display: none; }
@media (max-width: 620px) {
  .site-header .nav-cta { margin-left: auto; }
  .hero-stage {
    height: var(--app-height, 100vh);
    min-height: var(--app-height, 100vh);
    max-height: var(--app-height, 100vh);
    padding: 0 18px 28px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #fff8f1;
  }
  .mobile-login-bg {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 95%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
  }
  .hero-stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 95%;
    background:
      linear-gradient(180deg, rgba(8,7,17,.10) 0%, rgba(8,7,17,.08) 38%, rgba(8,7,17,.55) 72%, rgba(8,7,17,.86) 100%),
      radial-gradient(circle at 84% 62%, rgba(255,79,184,.12), transparent 14rem);
    opacity: 1;
    mask-image: none;
    pointer-events: none;
    z-index: 1;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: max(132px, calc(116px + env(safe-area-inset-bottom)));
  }
  .desktop-title,
  .desktop-subtitle,
  .desktop-actions,
  .signal-row,
  .mobile-hero-panel,
  .hero-showcase {
    display: none !important;
  }
  .mobile-title {
    display: block;
    margin: 0 0 12px;
    font-size: clamp(32px, 10vw, 46px);
    line-height: .92;
    letter-spacing: -0.075em;
    color: #fff;
    text-shadow: 0 14px 32px rgba(0,0,0,.36);
  }
  .mobile-subtitle {
    display: block;
    max-width: 22em;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255,255,255,.78);
    text-shadow: 0 10px 30px rgba(0,0,0,.38);
  }
  .mobile-concept-note {
    display: block;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 68px;
    z-index: 3;
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
    color: rgba(255,255,255,.76);
    text-shadow: 0 8px 24px rgba(0,0,0,.42);
  }
  .hero-copy .eyebrow { display: none; }
}

[data-viewport-debug] {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  max-height: 38vh;
  overflow: auto;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .78);
  color: #00ff9d;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  box-shadow: 0 10px 40px rgba(0,0,0,.36);
}


/* Role section should mirror the OKichat creation appearance cards. */
.creation-role-grid {
  align-items: start;
}
.creation-role-card {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--cream-ink);
  overflow: visible;
  width: 90%;
  justify-self: center;
}
.creation-role-card::before { display: none; }
.creation-card-art {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.creation-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.28) 54%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}
.creation-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  filter: none;
}
.role-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 18px 18px;
  color: #fff;
}
.role-info span {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.role-info h3 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 24px;
}
.role-info p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.52;
}
@media (max-width: 620px) {
  .roles-section .section-head h2 {
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.03;
  }
  .creation-role-grid {
    gap: 14px;
    padding-bottom: 18px;
  }
  .creation-role-card {
    min-width: 65vw;
    width: 65vw;
  }
  .creation-card-art {
    border-radius: 28px;
  }
  .role-info {
    padding: 26px 16px 16px;
  }
}

.role-section-title span {
  display: block;
}
.creation-card-art::after {
  z-index: 1;
}
.creation-card-art img {
  position: absolute;
  inset: 0;
}
.creation-card-art .role-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}


.home-install-section {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 6vw, 96px) clamp(88px, 10vw, 140px);
  background: linear-gradient(180deg, var(--cream), #fff);
  color: var(--cream-ink);
}
.home-install-panel {
  margin-bottom: 0;
}
.home-install-panel .panel-head p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(21,16,25,.64);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.03em;
}
@media (max-width: 620px) {
  .home-install-section {
    padding: 48px 18px 70px;
  }
  .home-install-panel {
    padding: 26px 18px;
    border-radius: 30px;
  }
  .home-install-panel .panel-head h2 {
    font-size: clamp(34px, 10vw, 48px);
  }
}

.beta-steps .signup-step {
  grid-column: span 2;
}
.beta-signup-form {
  margin-top: 18px;
}
.beta-signup-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(21,16,25,.58);
  font-size: 13px;
  font-weight: 850;
}
.signup-row {
  display: flex;
  gap: 10px;
}
.signup-row input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(21,16,25,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  color: var(--cream-ink);
  font: inherit;
  font-size: 18px;
  outline: none;
}
.signup-row input:focus {
  border-color: rgba(255,122,26,.72);
  box-shadow: 0 0 0 4px rgba(255,122,26,.12);
}
.signup-row button {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.signup-row button:disabled {
  cursor: wait;
  opacity: .68;
}
.form-status {
  min-height: 20px;
  margin: 10px 0 0 !important;
  font-size: 13px;
  color: rgba(21,16,25,.58) !important;
}
.form-status.success { color: #168248 !important; }
.form-status.error { color: #b3261e !important; }
@media (max-width: 1080px) {
  .beta-steps .signup-step {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .signup-row {
    flex-direction: column;
  }
  .signup-row button {
    width: 100%;
  }
}

.step-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 28px rgba(255, 122, 26, .18);
}
.step-button.disabled {
  pointer-events: none;
  background: rgba(21,16,25,.10);
  color: rgba(21,16,25,.42);
  box-shadow: none;
}

/* Strong mobile/iOS override: keep beta email field visibly large even when browser default input styles apply. */
.beta-signup-form .signup-row input#betaAppleId {
  display: block;
  height: 48px;
  min-height: 48px;
  line-height: normal;
  padding: 0 16px;
  border-radius: 16px;
  -webkit-appearance: none;
  appearance: none;
}

/* Homepage beta flow should sit directly on the page; keep inner step cards only. */
.home-install-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-confidential-gate {
  display: none;
}
@media (max-width: 620px) {
  body.confidential-gate-open {
    overflow: hidden;
  }
  .mobile-confidential-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 26px;
    background: #fff;
    color: #151019;
    text-align: center;
  }
  .mobile-confidential-gate.is-hidden {
    display: none;
  }
  .confidential-copy {
    width: 100%;
    max-width: 340px;
  }
  .confidential-copy .thanks {
    margin: 0 0 24px;
    color: #151019;
    font-size: 23px;
    line-height: 1.42;
    font-weight: 760;
    letter-spacing: -0.035em;
  }
  .confidential-copy .secret {
    margin: 0 0 18px;
    color: #e01818;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 760;
  }
  .confidential-copy .love {
    margin: 0 0 24px;
    color: #151019;
    font-size: 54px;
    line-height: .96;
    font-weight: 950;
    letter-spacing: -0.08em;
  }
  .confidential-copy button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #151019;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
  }
}

.invite-code-form {
  margin: 0;
}
.invite-code-form label {
  display: none;
}
.invite-code-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(21,16,25,.14);
  border-radius: 18px;
  background: #f7f3ef;
  color: #151019;
  font: inherit;
  font-size: 17px;
  text-align: center;
  letter-spacing: .03em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.invite-code-form input:focus {
  border-color: rgba(255,122,26,.72);
  box-shadow: 0 0 0 4px rgba(255,122,26,.12);
}
.invite-status {
  min-height: 18px;
  margin: 8px 0 10px !important;
  color: rgba(21,16,25,.48) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.invite-status.error {
  color: #e01818 !important;
}
.invite-status.success {
  color: #168248 !important;
}

.sam-teacher-image {
  display: block;
  width: min(218px, 60vw);
  height: auto;
  margin: 0 auto 24px;
  border-radius: 28px;
  object-fit: contain;
}
@media (max-width: 620px) {
  .sam-teacher-image {
    width: min(224px, 62vw);
    margin-bottom: 24px;
  }
}
