:root {
  color-scheme: light;
  --ink: #10223a;
  --muted: #526579;
  --blue: #075985;
  --blue-strong: #0369a1;
  --sky: #dff4ff;
  --line: #d7e5ed;
  --surface: #ffffff;
  --page: #f3f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); color: var(--ink); background: radial-gradient(ellipse at 83% 16%, #e3f5ff 0, transparent 32rem), var(--page); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; }

.topbar { width: min(1120px, calc(100% - 48px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16, 34, 58, .1); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 850; letter-spacing: -.04em; }
.brand img { width: 52px; height: 52px; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 22px rgba(10, 36, 78, .12); }
.brand b { color: var(--blue); font-weight: 750; }
.top-note, .eyebrow { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .15em; }
.top-note { color: var(--muted); }

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 485px; padding: 56px 0 60px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); align-items: center; gap: 40px; }
.hero-copy { position: relative; z-index: 1; max-width: 610px; }
.hero-eyebrow { display: inline-block; margin-bottom: 19px; }
h1 { max-width: 650px; margin: 0; font-size: clamp(42px, 5.4vw, 68px); line-height: .99; letter-spacing: -.065em; font-weight: 900; }
h1 em { color: var(--blue-strong); font-style: normal; }
.lead { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; font-weight: 560; }
.invite-card { max-width: 510px; min-height: 86px; margin-top: 24px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid #c9e8f7; border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 12px 32px rgba(18, 64, 102, .06); }
.invite-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: #e1f4ff; border-radius: 13px; font-size: 23px; font-weight: 800; }
.invite-card > div { display: grid; gap: 4px; min-width: 0; }
.invite-card .eyebrow { font-size: 9px; letter-spacing: .13em; }
.invite-card strong { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.invite-card code { margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); background: #f7fbfd; font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; }
.primary { min-height: 58px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 16px; color: #fff; background: var(--blue-strong); box-shadow: 0 10px 22px rgba(3, 105, 161, .22); font-size: 16px; line-height: 1.2; font-weight: 800; text-decoration: none; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.hero-copy > .primary { margin-top: 25px; min-width: 236px; }
.primary:hover { transform: translateY(-2px); background: #075985; box-shadow: 0 14px 26px rgba(3, 105, 161, .28); }
.primary:active { transform: translateY(0) scale(.985); }
.primary:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 4px; }
.primary span { font-size: 20px; }
.privacy-note { margin: 11px 0 0; color: #64788a; font-size: 12px; }

.hero-art { position: relative; min-height: 355px; display: grid; place-items: center; isolation: isolate; }
.halo { position: absolute; z-index: -1; width: min(340px, 85%); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #e1f5ff, #c8eaff); box-shadow: 0 32px 70px rgba(20, 97, 143, .13), inset 0 1px 0 rgba(255,255,255,.9); }
.hero-art > img { width: min(280px, 72%); height: auto; border-radius: 32px; filter: drop-shadow(0 24px 28px rgba(9, 35, 82, .16)); }
.art-tag { position: absolute; right: 2%; bottom: 17px; padding: 13px 16px; border: 1px solid rgba(201, 232, 247, .9); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.9); box-shadow: 0 10px 26px rgba(18,64,102,.08); font-size: 9px; font-weight: 750; letter-spacing: .11em; line-height: 1.6; }
.art-tag b { color: var(--blue); }

.steps { padding: 34px 0 42px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 6px 0 0; font-size: 29px; letter-spacing: -.045em; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { min-height: 138px; padding: 21px 20px; display: flex; align-items: flex-start; gap: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.step-number { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: var(--blue); background: #e5f5fd; font-size: 13px; font-weight: 900; }
.step h3 { margin: 2px 0 6px; font-size: 16px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer { width: min(1120px, calc(100% - 48px)); min-height: 62px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 650; }
.footer span:first-child { color: var(--ink); font-weight: 850; }
.mobile-cta { display: none; }
.install-section { padding: 34px 0 42px; border-top: 1px solid var(--line); }
.install-section h2 { margin: 7px 0 0; font-size: 29px; line-height: 1.16; letter-spacing: -.045em; }
.install-description { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.install-card { width: min(100%, 560px); margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 28px rgba(18, 64, 102, .05); }
.platform-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #edf5f9; }
.platform-tab { min-height: 46px; flex: 1; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.platform-tab:hover { color: var(--blue); }
.platform-tab.selected { color: #fff; background: var(--blue-strong); box-shadow: 0 3px 8px rgba(3, 105, 161, .18); }
.platform-tab:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 2px; }
.install-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.install-steps li:last-child { padding-bottom: 6px; border-bottom: 0; }
.install-steps li > span { flex: 0 0 auto; color: var(--blue-strong); font-size: 12px; font-weight: 850; line-height: 1.8; }
.install-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.install-steps b { color: var(--ink); font-weight: 800; }
.install-note { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 760px) {
  body { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .topbar, main, .footer { width: min(100% - 40px, 560px); }
  .topbar { min-height: 74px; }
  .brand { gap: 9px; font-size: 15px; }
  .brand img { width: 44px; height: 44px; border-radius: 13px; }
  .top-note { font-size: 9px; letter-spacing: .1em; }
  .hero { min-height: auto; padding: 43px 0 35px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-eyebrow { margin-bottom: 15px; font-size: 10px; }
  h1 { max-width: 520px; font-size: clamp(39px, 11.4vw, 56px); line-height: 1.01; }
  .lead { margin-top: 15px; font-size: 16px; line-height: 1.5; }
  .invite-card { min-height: 76px; margin-top: 19px; padding: 13px; gap: 10px; border-radius: 16px; }
  .invite-mark { width: 38px; height: 38px; }
  .invite-card strong { font-size: 15px; }
  .invite-card code { padding: 7px; font-size: 11px; }
  .hero-copy > .primary, .privacy-note { display: none; }
  .hero-art { min-height: 205px; margin-top: 5px; }
  .halo { width: 190px; }
  .hero-art > img { width: 160px; border-radius: 24px; }
  .art-tag { right: 4%; bottom: 5px; padding: 9px 11px; font-size: 8px; }
  .steps { padding: 26px 0 32px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: 25px; }
  .step-grid { grid-template-columns: 1fr; gap: 9px; }
  .step { min-height: 0; padding: 15px; gap: 13px; border-radius: 15px; }
  .step-number { width: 38px; height: 38px; border-radius: 12px; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 13px; }
  .install-section { padding: 26px 0 32px; }
  .install-section h2 { font-size: 25px; }
  .install-description { font-size: 14px; }
  .install-card { margin-top: 16px; padding: 13px; border-radius: 15px; }
  .install-steps li { padding: 13px 0; gap: 10px; }
  .install-steps p { font-size: 13px; }
  .footer { min-height: 54px; font-size: 12px; }
  .mobile-cta { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: block; padding: 12px max(20px, calc((100vw - 560px) / 2)) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(16, 34, 58, .12); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
  .mobile-cta .primary { width: 100%; min-height: 56px; border-radius: 15px; }
}

@media (max-width: 360px) {
  .topbar, main, .footer { width: calc(100% - 32px); }
  .top-note { max-width: 95px; text-align: right; }
  h1 { font-size: 37px; }
  .invite-card code { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
