:root {
  --brand: #00ccf0;
  --brand-deep: #007f94;
  --brand-soft: #dffaff;
  --ink: #161719;
  --ink-2: #45484e;
  --muted: #73777f;
  --line: rgba(20, 22, 25, 0.09);
  --canvas: #f8fbfb;
  --card: #ffffff;
  --radius-card: 28px;
  --shadow: 0 22px 70px rgba(20, 30, 35, 0.11);
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 10%, rgba(0, 204, 240, 0.08), transparent 26rem),
    linear-gradient(180deg, #fbfdfd 0%, #f7faf9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(15, 20, 24, 0.05);
  background: rgba(250, 253, 252, 0.82);
  backdrop-filter: blur(20px);
}

.nav-inner {
  width: var(--page);
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mascot { width: 38px; height: 35px; object-fit: contain; }
.brand-wordmark { width: 119px; height: 18px; object-fit: contain; }

.nav-inner nav { display: flex; align-items: center; gap: 30px; }

.nav-inner nav a,
.back-home {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-inner nav a:hover,
.back-home:hover { color: var(--ink); }

.nav-inner nav .nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.section-shell { width: var(--page); margin: 0 auto; }

.hero {
  min-height: 720px;
  padding: 104px 0 82px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 36px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(0, 204, 240, 0.12);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 52px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 26px rgba(20, 24, 28, 0.14);
}

.button-primary:hover { background: #303236; transform: translateY(-1px); }

.button-quiet {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.trust-row {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.trust-row li::before { content: "✓"; margin-right: 6px; color: var(--brand-deep); font-weight: 800; }

.hero-visual {
  position: relative;
  min-height: 630px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
}

.glow-one {
  width: 440px;
  height: 440px;
  background: rgba(0, 204, 240, 0.17);
}

.glow-two {
  right: 4%;
  bottom: 4%;
  width: 250px;
  height: 250px;
  background: rgba(206, 76, 230, 0.12);
}

.phone {
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 38px;
  background: #151619;
  box-shadow: var(--shadow);
}

.phone img { width: 100%; height: 100%; border-radius: 31px; object-fit: cover; }

.phone-main {
  z-index: 3;
  width: 286px;
  aspect-ratio: 402 / 874;
  transform: rotate(-1.5deg);
}

.phone-back-left,
.phone-back-right {
  position: absolute;
  z-index: 1;
  width: 224px;
  aspect-ratio: 402 / 874;
  filter: saturate(0.88);
}

.phone-back-left { left: -2%; transform: rotate(-10deg) translateY(35px); }
.phone-back-right { right: -2%; transform: rotate(10deg) translateY(38px); }

.proof-strip {
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.proof-strip p { margin: 0; color: var(--ink-2); font-size: 16px; }
.proof-strip strong { color: var(--ink); }

.steps { padding: 132px 0; }

.section-heading { max-width: 730px; margin: 0 auto 56px; text-align: center; }

.section-heading h2,
.family-copy h2,
.download-card h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  max-width: 610px;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.step-card {
  position: relative;
  min-height: 430px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.75);
}

.step-card.featured-step { background: #edfbfd; }

.step-number { color: var(--muted); font-size: 12px; font-weight: 760; letter-spacing: 0.08em; }

.step-card h3 { margin: 26px 0 8px; font-size: 21px; letter-spacing: -0.025em; }
.step-card p { margin: 0; color: var(--ink-2); line-height: 1.58; }

.step-illustration {
  position: relative;
  height: 184px;
  margin: 30px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.intake-illustration { padding: 52px 36px; transform: rotate(-2deg); }
.message-line { display: block; width: 76%; height: 12px; margin-bottom: 15px; border-radius: 99px; background: #e8ecec; }
.message-line.wide { width: 100%; }
.message-line.short { width: 48%; }
.intake-illustration .spark { position: absolute; right: 25px; top: 22px; color: #b23dde; font-size: 28px; }

.review-illustration { display: flex; align-items: center; gap: 17px; padding: 30px; transform: rotate(1.5deg); }
.review-illustration .check { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand); font-size: 24px; font-weight: 800; }
.review-copy { display: grid; gap: 8px; }
.review-copy b { font-size: 20px; }
.review-copy small { color: var(--muted); }

.sync-illustration { display: flex; align-items: center; justify-content: center; padding: 30px; transform: rotate(-1deg); }
.avatar { z-index: 1; width: 58px; height: 58px; border: 5px solid #fff; border-radius: 50%; display: grid; place-items: center; background: #e6f9fb; color: var(--brand-deep); font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.avatar-two { background: #f5e8fa; color: #8833a5; }
.sync-line { width: 82px; height: 4px; margin: 0 -3px; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #c14bdf); }

.family-section { padding: 110px 0; background: #17191b; color: #fff; }
.family-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 100px; align-items: center; }
.family-copy .eyebrow { color: #78e8fa; }
.family-copy > p:not(.eyebrow) { margin: 26px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.65; }
.feature-list { margin: 38px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list li > span { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #062127; font-weight: 900; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: 17px; }
.feature-list small { margin-top: 5px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.45; }

.detail-stage { position: relative; min-height: 650px; display: grid; place-items: center; }
.detail-phone { width: 306px; aspect-ratio: 402 / 874; transform: rotate(2deg); }
.detail-note { position: absolute; z-index: 3; padding: 15px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(45,48,52,.78); backdrop-filter: blur(18px); color: rgba(255,255,255,.72); font-size: 13px; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.detail-note span { display: block; margin-bottom: 3px; color: #fff; font-size: 15px; font-weight: 760; }
.note-one { left: 0; top: 22%; }
.note-two { right: -1%; bottom: 19%; }

.control-section { padding: 132px 0; }
.compact-heading { max-width: 800px; }
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.control-grid article { padding: 30px; border-top: 1px solid var(--line); }
.control-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); font-size: 20px; }
.control-grid h3 { margin: 24px 0 8px; font-size: 20px; }
.control-grid p { margin: 0; color: var(--ink-2); line-height: 1.58; }

.download-section { padding: 0 0 120px; }
.download-card { position: relative; min-height: 430px; padding: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 42px; align-items: center; background: linear-gradient(135deg, #e8fcff 0%, #fff 55%, #f9edfc 100%); }
.download-mark { width: 108px; height: 108px; border-radius: 34px; display: grid; place-items: center; background: rgba(255,255,255,.65); box-shadow: 0 20px 50px rgba(0, 100, 120, .12); }
.download-mark img { width: 76px; height: 69px; object-fit: contain; }
.download-card h2 { max-width: 570px; }
.download-card > div > p:not(.eyebrow) { color: var(--ink-2); }
.store-buttons { display: grid; gap: 10px; }
.store-button { min-width: 194px; min-height: 62px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 12px; align-items: center; background: #151719; color: #fff; text-decoration: none; }
.store-button small { display: block; margin-bottom: 1px; color: rgba(255,255,255,.7); font-size: 10px; }
.store-button span:last-child { font-size: 16px; font-weight: 670; }
.store-icon { width: 27px; color: #fff; text-align: center; font-size: 20px; }
.store-button-disabled { background: rgba(20,22,24,.07); color: var(--ink-2); }
.store-button-disabled small { color: var(--muted); }
.store-button-disabled .store-icon { color: var(--muted); }

.site-footer { padding: 46px 0 56px; border-top: 1px solid var(--line); background: rgba(255,255,255,.5); }
.footer-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.footer-inner > p { color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { color: var(--ink-2); font-size: 13px; text-decoration: none; }
.footer-inner small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }

/* Legal and support pages */
.compact-header { position: relative; }
.document-shell, .support-shell { width: min(820px, calc(100vw - 48px)); margin: 0 auto; }
.document-hero { padding: 96px 0 58px; border-bottom: 1px solid var(--line); }
.document-hero h1, .support-hero h1 { margin: 0; font-size: clamp(46px, 7vw, 72px); letter-spacing: -0.055em; line-height: 1; }
.document-hero > p:last-child, .support-hero > p { max-width: 650px; margin: 22px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.legal-copy { padding: 58px 0 110px; }
.legal-copy section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-copy section:first-child { padding-top: 0; }
.legal-copy h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.legal-copy p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.72; }
.legal-copy a { color: var(--brand-deep); }

.support-shell { width: var(--page); padding: 100px 0 120px; }
.support-hero { max-width: 720px; margin: 0 auto 80px; text-align: center; }
.support-hero .eyebrow { margin-bottom: 20px; }
.support-hero > p { margin-left: auto; margin-right: auto; }
.support-hero .button { margin-top: 28px; }
.support-hero small { display: block; margin-top: 12px; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faq-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.72); }
.faq-grid h2 { margin: 0 0 10px; font-size: 18px; }
.faq-grid p { margin: 0; color: var(--ink-2); line-height: 1.62; }

/* Invitation decision page */
.invite-page body { min-height: 100vh; margin: 0; background: #f9f8f6; }
.invite-shell { position: relative; width: min(402px, 100vw); min-height: 100svh; margin: 0 auto; padding: 0 12px 28px; overflow: hidden; background-color: #f9f8f6; background-image: url('/site-assets/invite-background.svg'); background-position: center top; background-size: 488px 951px; background-repeat: no-repeat; }
.invite-nav { position: relative; z-index: 2; height: 62px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.invite-nav h1 { margin: 0; color: rgba(0,0,0,.94); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
.invite-card { position: relative; z-index: 1; text-align: left; }
.invite-card p { color: rgba(0,0,0,.82); line-height: 1.5; }
.invite-loading, .invite-error { margin-top: 54px; padding: 44px 28px; border: 1px solid rgba(0,0,0,.04); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 3px 6px rgba(0,0,0,.04); text-align: center; }
.invite-loading h1, .invite-error h1 { margin: 18px 0 10px; font-size: 24px; line-height: 1.25; }
.loading-orb { width: 34px; height: 34px; margin: 0 auto 24px; border: 4px solid rgba(0,204,240,.17); border-top-color: var(--brand); border-radius: 50%; display: block; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.invite-content { position: relative; padding-top: 2px; }
.invite-person { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; min-height: 32px; padding: 0 16px; }
.inviter-avatar { width: 28px; height: 28px; flex: 0 0 28px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffd7a8, #bfe9ff); color: rgba(0,0,0,.82); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-size: 12px; font-weight: 700; }
.inviter-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.invite-person p { display: flex; align-items: baseline; gap: 8px; margin: 0; color: rgba(0,0,0,.94); font-size: 16px; line-height: 24px; }
.invite-person strong { font-size: 20px; line-height: 27px; font-weight: 500; }
.invite-value { position: relative; z-index: 2; width: 246px; margin: 7px 0 12px 16px; color: rgba(0,0,0,.94) !important; font-size: 16px; line-height: 27px !important; }
.invite-value strong { font-weight: 600; }
.invite-top-mascot { position: absolute; z-index: 1; top: 12px; right: -12px; width: 137px; height: 126px; object-fit: contain; }
.invite-information-card { position: relative; min-height: 407px; padding: 58px 16px 56px; border: 1px solid rgba(0,0,0,.04); border-radius: 24px; background: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.04); }
.invite-card-mark { position: absolute; top: 12px; left: 15px; width: 45px; height: 40px; object-fit: contain; image-rendering: auto; }
.invite-card-wordmark { position: absolute; top: 22px; left: 62px; width: 126px; height: 19px; object-fit: contain; }
.invite-information-card h2 { margin: 0 0 8px 4px; color: rgba(0,0,0,.94); font-size: 14px; line-height: 27px; font-weight: 400; }
.invite-benefits { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; color: rgba(0,0,0,.94); font-size: 16px; line-height: 24px; }
.invite-benefits li, .invite-facts p { display: flex; align-items: flex-start; gap: 4px; margin: 0; }
.invite-benefits img, .invite-facts img { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; object-fit: contain; }
.invite-note { margin: 29px 4px 0; color: rgba(0,0,0,.94) !important; font-size: 14px; line-height: 27px !important; }
.invite-facts { margin: 13px 0 0; display: grid; gap: 10px; }
.invite-facts p { color: rgba(0,0,0,.94); font-size: 16px; line-height: 24px; }
.invite-bottom-mascot { position: absolute; z-index: 2; left: -1px; bottom: -54px; width: 115px; height: 106px; object-fit: contain; }
.invite-actions { position: relative; z-index: 3; margin: 54px 20px 0; display: grid; gap: 10px; }
.invite-card .button { width: 100%; min-height: 48px; margin: 0; border-radius: 40px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; font-size: 16px; line-height: 24px; font-weight: 500; }
.invite-card .button-primary { background: rgba(0,0,0,.94); color: #fff; }
.invite-card .button-quiet { border: 1px solid rgba(0,0,0,.18); background: rgba(255,255,255,.36); color: #000; }
.invite-consequence { margin: 13px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: rgba(0,0,0,.82) !important; font-size: 14px; line-height: 24px !important; }
.invite-consequence img { width: 18px; height: 18px; flex: 0 0 18px; }
.store-fallback { margin: 8px 20px 0; color: rgba(0,0,0,.46) !important; font-size: 11px; text-align: center; }
.store-fallback a { color: var(--brand-deep); }
.state-symbol { width: 58px; height: 58px; margin: 8px auto 23px; border-radius: 50%; display: grid; place-items: center; background: #fff0ef; color: #c8332c; font-size: 31px; }
.state-symbol.network { background: var(--brand-soft); color: var(--brand-deep); }
.invite-error > p { max-width: 390px; margin: 0 auto 20px; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 76px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { width: min(680px, 100%); margin: 0 auto; }
  .phone-back-left { left: 8%; }
  .phone-back-right { right: 8%; }
  .family-grid { grid-template-columns: 1fr; gap: 50px; }
  .family-copy { max-width: 700px; }
  .detail-stage { min-height: 600px; }
  .note-one { left: 18%; }
  .note-two { right: 17%; }
  .download-card { grid-template-columns: auto 1fr; }
  .download-card .store-buttons { grid-column: 2; display: flex; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  :root { --page: min(100% - 32px, 1180px); }
  .nav-inner { height: 66px; }
  .nav-inner nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 54px; gap: 10px; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-lede { font-size: 17px; }
  .trust-row { justify-content: center; }
  .hero-visual { min-height: 530px; transform: scale(.9); margin: -18px 0; }
  .phone-main { width: 260px; }
  .phone-back-left, .phone-back-right { width: 195px; }
  .phone-back-left { left: -11%; }
  .phone-back-right { right: -11%; }
  .steps, .control-section { padding: 90px 0; }
  .step-grid, .control-grid, .faq-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .family-section { padding: 84px 0; }
  .detail-stage { min-height: 550px; }
  .detail-phone { width: 270px; }
  .note-one { left: 0; }
  .note-two { right: 0; }
  .download-section { padding-bottom: 80px; }
  .download-card { min-height: 0; padding: 38px 24px; grid-template-columns: 1fr; text-align: center; }
  .download-mark { margin: 0 auto; }
  .download-card .store-buttons { grid-column: auto; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-inner small { grid-column: auto; }
  .document-shell, .support-shell { width: min(100% - 32px, 820px); }
  .document-hero { padding-top: 68px; }
  .support-shell { padding-top: 72px; }
  .invite-card { padding: 0; }
}

@media (max-width: 440px) {
  .hero-visual { min-height: 470px; transform: scale(.78); margin: -50px -12%; width: 124%; }
  .phone-back-left { left: -7%; }
  .phone-back-right { right: -7%; }
  .detail-note { display: none; }
  .store-button { width: 100%; }
}

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