:root{
  --bg-1: #e2f3ff;
  --bg-2: #e2f3ff;
  --accent-a: #7b2ff7;
  --accent-b: #ff6fb5;
  --muted: rgba(14,14,13,0.92);       /* changed: dark muted for text */
  --muted-weak: rgba(14,14,13,0.65);  /* optional weaker text */
  --card-bg: rgba(0,0,0,0.02);
  --topbar-height-desktop: 64px;
  --topbar-height-mobile: 56px;
  /* --active-bg: linear-gradient(90deg, #d9f5ff 0%, #bfeaff 100%); */
  --active-bg: linear-gradient(90deg, #8bddfa 0%, #54d2fe 100%);
  --active-text: #05345a;
}

html,body{height:100%; margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;}

body{
  --topbar-height: var(--topbar-height-desktop);
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-1);
  color:var(--muted);
  padding-top: calc(env(safe-area-inset-top, 28px) + var(--topbar-height));
  padding-right: env(safe-area-inset-right, 20px);
  padding-bottom: env(safe-area-inset-bottom, 28px);
  padding-left: env(safe-area-inset-left, 20px);
  -webkit-font-smoothing:antialiased;
  box-sizing: border-box;
}

.topbar {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  pointer-events: none;
}

.topnav {
  pointer-events: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 6px 12px;
  border-radius: 12px;
}

.tab {
  text-decoration: none;
  color: var(--muted);           /* inactive tabs now dark */
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform .12s ease, background .12s ease;
  background: transparent;
  box-shadow: none;
}
.tab:hover {
  transform: translateY(-2px);
  background: rgba(2,6,23,0.04); /* subtle dark hover on white */
}

/* default active tab styling (keeps existing look but works on white) */
.tab--active {
  background: var(--active-bg);
  /* color: var(--active-text); */
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(5,52,90,0.08);
}

.menu-button {
  pointer-events: auto;
  position: absolute;
  right: 12px;
  top: 6px;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  z-index: 1300;
}
.menu-button:focus { outline: 2px solid rgba(5,52,90,0.08); }

.menu-button .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--muted), rgba(14,14,13,0.6));
  border-radius: 2px;
}

.mobile-menu {
  position: absolute;
  right: 8px;
  top: calc(var(--topbar-height) + 8px);
  width: min(92vw, 320px);
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.06);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 1250;
  overflow: hidden;
}

.mobile-menu--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(0,0,0,0.02);
  background: transparent;
}
.mobile-menu-item:last-child { border-bottom: none; }
.mobile-menu-item:active,
.mobile-menu-item:focus,
.mobile-menu-item:hover {
  background: rgba(2,6,23,0.04);
}

.card{
  width:100%;
  max-width:920px;
  background: transparent;
  padding:28px 20px;
  border-radius:0;
  text-align:center;
  box-shadow: none;
}

.stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.tagline {
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-weight: 1100;
  font-size: clamp(18px, 3.2vw, 24px);
  margin:0;
  color: #0e0e0d;
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagline2 {
  font-weight: 1100;
  font-size: clamp(18px, 3.2vw, 24px);
  margin:0;
  color: #0e0e0d;
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  margin-top:6px;
  /* margin-bottom:2px; */
}

.logo {
  display:block;
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  padding:2px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), inset 0 -6px 18px rgba(0,0,0,0.02);
  margin:0;
}

.site-title {
  margin: 0;
  font-family: 'Monotype Corsiva';  
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.8px;
  margin-top: 6px;
  margin-bottom: 15px;
  background: linear-gradient(to bottom, #0720fa, #fa0795);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.site-title2 {
  margin: 0;
  font-family: 'Monotype Corsiva';  
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.8px;
  margin-top: 6px;
  margin-bottom: 15px;
  display: inline-block;
  color: #0e0e0d;
}

.play {
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  font-size: clamp(16px,2.4vw,20px);
  padding:12px 32px;
  border-radius:999px;
  background: linear-gradient(90deg,var(--accent-a),var(--accent-b));
  color:white;
  box-shadow: 0 10px 30px rgba(123,47,247,0.12), 0 4px 8px rgba(0,0,0,0.12);
  transition: transform .12s ease;
  margin-top:35px;
  margin-bottom:35px;
}
.play:active { transform:translateY(1px); }


@media (max-width:540px){
  :root { --topbar-height: var(--topbar-height-mobile); }
  .tagline { white-space: normal; font-size:26px; }
  .logo { width:36px; height:36px; padding:4px; }
  .site-title { font-size: clamp(22px, 9vw, 30px); }
  .card { padding:28px 18px; border-radius:12px; }

  .topnav { display: none; }
  .menu-button { display: flex; }
  .mobile-menu {
    right: 6px;
    top: calc(var(--topbar-height) + 8px);
    width: min(94vw, 300px);
  }
}

html, body { overflow-x: hidden; }
html, body { overscroll-behavior-y: contain; }

.card {
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.stack {
  width: 100%;
  max-width: 920px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

@media (min-width: 420px) and (max-width: 480px) and (orientation: portrait) {
  .site-title {
    margin-bottom: 15px;
  }

  .play {
    margin-top: 64px;
    margin-bottom: 64px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .topbar {
    transform: translate(-12px, 15px);
    -webkit-transform: translate(-12px, 15px);
  }
}

@media (min-width: 541px) {
  .menu-button,
  .mobile-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .topnav {
    gap: 48px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .tab--active {
    background: var(--active-bg) !important;
    color: var(--active-text) !important;
    box-shadow: 0 8px 28px rgba(5,52,90,0.08) !important;
  }

  .tab--active:hover {
    transform: none;
    background: var(--active-bg);
  }
}

.mobile-menu { display: none !important; }

.mobile-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.60);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mobile-modal.mobile-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-modal-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #05345a;
  box-shadow: 0 20px 80px rgba(2,6,23,0.08);
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.mobile-modal-header {
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px;
  box-sizing: border-box;
  z-index: 2;
}

.mobile-modal-close {
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: rgba(5,52,90,0.95);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.mobile-modal-close:focus { outline: 2px solid rgba(5,52,90,0.12); }

.mobile-modal-list {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 16px 0;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.mobile-modal-item {
  display: block;
  width: 100%;
  padding: 18px 20px;
  text-decoration: none;
  color: rgba(5,52,90,0.65);
  font-weight: 500;
  font-size: 18px;
  border-top: 1px solid rgba(2,6,23,0.06);
  background: transparent;
  box-sizing: border-box;
}
.mobile-modal-item:first-child { border-top: none; }

.mobile-modal-item--active {
  font-weight: 800;
  color: #05345a;
  background: rgba(5,52,90,0.04);
}

.mobile-modal-item:hover,
.mobile-modal-item:focus { background: rgba(2,6,23,0.04); outline: none; }

body.no-scroll { overflow: hidden !important; }

@media (max-width: 540px) {
  .menu-button { display: flex !important; }
}

/* Features list under JOIN */
.features {
  width: 100%;
  max-width: 820px;
  margin: 8px auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/* Each row: icon(s) + text */
.feature-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  /* background: rgba(0,0,0,0.02); */
  background: #cee4f3;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: none;
  min-height: 56px;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}

/* Single icon */
.feature-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

/* smaller icons used in icon clusters */
.feature-icon.small {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

/* cluster wrapper when there are two icons */
.feature-icons-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 2px;
}

/* text */
.feature-text {
  color: #0e0e0d;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.15;
  display: block;
}

/* Emphasize the heading part */
.feature-text strong {
  display: block;
  font-weight: 650;
  margin-bottom: 2px;
  color: #0e0e0d;
  font-size: 15px;
}

/* small-screen tweaks */
@media (max-width: 540px) {
  .features { padding-left: 8px; padding-right: 8px; margin-bottom: 28px; }
  .feature-item { padding: 12px; min-height: 64px; }
  .feature-icon { width: 36px; height: 36px; }
}

/* ensure spacing from the .play button (if you want it slightly tighter) */
.play { margin-bottom: 14px; margin-top: 35px; }


:root {
  --safe-top-fallback: 12px;
}

.topbar {
  top: env(safe-area-inset-top, var(--safe-top-fallback));
}

.menu-button {
  top: calc(env(safe-area-inset-top, var(--safe-top-fallback)) + 6px);
}

main.card {
  padding-top: calc(var(--topbar-height) + env(safe-area-inset-top, var(--safe-top-fallback)));
  box-sizing: border-box;

  min-height: calc(100vh - (var(--topbar-height) + env(safe-area-inset-top, var(--safe-top-fallback))));
}

@media (max-width: 540px) {
  :root { --topbar-height: var(--topbar-height-mobile); }

  main.card {
    padding-top: calc(var(--topbar-height) + env(safe-area-inset-top, var(--safe-top-fallback)));
    min-height: calc(100vh - (var(--topbar-height) + env(safe-area-inset-top, var(--safe-top-fallback))));
  }

  .brand { margin-top: 0; }
  .logo { position: relative; top: 0; }
}

main.card {
  padding-top: 0; /* keep body padding from earlier rules handling the topbar already */
  box-sizing: border-box;
  min-height: calc(100vh - var(--topbar-height));
}

@media (max-width: 375px) {
  :root { --topbar-height: var(--topbar-height-mobile); } /* mobile topbar height */

  .topbar {
    top: env(safe-area-inset-top, var(--safe-top-fallback));
  }
  .menu-button {
    top: calc(env(safe-area-inset-top, var(--safe-top-fallback)) + 6px);
  }

  main.card {
    padding-top: calc(var(--topbar-height) + env(safe-area-inset-top, var(--safe-top-fallback)));
    min-height: calc(100vh - (var(--topbar-height) + env(safe-area-inset-top, var(--safe-top-fallback))));
  }

  .brand { margin-top: 6px; }
  .logo { position: relative; top: 0; }
}

/* === iPhone SE / very narrow screens: force content below fixed topbar === */
@media (max-width: 375px) {
  :root { --topbar-height: var(--topbar-height-mobile); }

  body {
    align-items: flex-start;            /* stop centering vertically on tiny screens */
    justify-content: flex-start;
    padding-top: calc(env(safe-area-inset-top, 12px) + var(--topbar-height));
  }

  .menu-button {
    top: calc(env(safe-area-inset-top, 12px) + 6px);
  }

  .topbar {
    top: env(safe-area-inset-top, 12px);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1200;
  }

  .brand {
    margin-top: calc(var(--topbar-height) + 170px); /* tweak value as needed */
  }

  main.card {
    min-height: calc(100vh - (var(--topbar-height) + env(safe-area-inset-top, 12px)));
    padding-top: 0;
  }
}

.tagline2 {
  font-family: "Monotype Corsiva", "MonotypeCorsiva", serif;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.tagline2 .site-title {
  display: inline;
  margin: 0;
  /* padding: 0; */
  padding: 0, 15px;
  vertical-align: baseline;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  background: linear-gradient(to bottom, #0720fa, #fa0795);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tagline2 > * {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}

.tagline2 .tagline {
  font-family: "Dancing Script", "Segoe Script", cursive !important;
  font-weight: 400;
  font-size: 1.15em;
  line-height: 1;
  text-transform: none !important;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

html, body, .mobile-modal-list, .mobile-modal-panel, .features-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.mobile-modal-list::-webkit-scrollbar,
.mobile-modal-panel::-webkit-scrollbar,
.features-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html, body { overflow-x: hidden; }

.topbar {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 1200;
  pointer-events: none;
  background: transparent;
}

main.card,
.card {
  position: fixed; /* fixed container that occupies the page under the topbar */
  left: 0;
  right: 0;
  top: calc(var(--topbar-height) + env(safe-area-inset-top, 12px));
  bottom: 0;
  margin: 0 auto;
  max-width: 920px;
  box-sizing: border-box;
  padding: 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1100; /* below the topbar */
  background: transparent; /* keep same look as before */
}

main.card > .card-inner,
.card > .card-inner {
  max-width: 920px;
  margin: 28px auto;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 540px) {
  :root { --topbar-height: var(--topbar-height-mobile); }

  main.card,
  .card {
    top: calc(var(--topbar-height) + env(safe-area-inset-top, 12px));
    padding: 16px;
  }

  html, body {
    overflow: hidden;
    height: 100%;
  }
}

main.card,
.card {
  -ms-overflow-style: none;   /* IE/Edge */
  scrollbar-width: none;      /* Firefox */
}
main.card::-webkit-scrollbar,
.card::-webkit-scrollbar {
  display: none;              /* Safari / Chrome */
  width: 0;
  height: 0;
}

@media (max-width: 375px) {
  .tagline2 {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    font-size: clamp(13px, 3.0vw, 16px) !important;
    gap: 6px;
  }

  .tagline2 .site-title {
    font-size: inherit !important;
    display: inline-block;
    vertical-align: baseline;
  }
}

@media (width: 390px) and (height: 844px) and (orientation: portrait),
       (min-width: 388px) and (max-width: 392px) and (min-height: 840px) and (max-height: 848px) and (orientation: portrait) {
  .brand {
    margin-top: 12px !important;
  }
  .logo {
    transform: translateY(6px);
  }
}

@media (min-width: 388px) and (max-width: 400px) and (orientation: portrait) {
  .brand { margin-top: 10px !important; }
  .logo { transform: translateY(4px); }
}

@media (max-width: 540px) {
  main.card, .card {
    -webkit-overflow-scrolling: touch;
  }
}

/* Stronger push specifically for iPhone 12 / 12 Pro portrait (390 x 844) */
@media (width: 390px) and (height: 844px) and (orientation: portrait),
       (min-width: 388px) and (max-width: 392px) and (min-height: 840px) and (max-height: 848px) and (orientation: portrait) {
  /* nudge the brand block down further (safe-area aware) */
  .brand {
    margin-top: calc(env(safe-area-inset-top, 12px) + 18px) !important;
  }

  /* push logo down — use margin and override any previous transform */
  .logo {
    transform: none !important;
    margin-top: calc(env(safe-area-inset-top, 12px) + 6px) !important;
    /* a small extra translate as a failsafe */
    transform: translateY(10px) !important;
  }

  /* also ensure topbar doesn't overlap interactive area accidentally */
  .topbar { z-index: 13000 !important; pointer-events: auto !important; }
}

/* Gentle fallback for phones around 390px width (covers slight device reporting differences) */
@media (min-width: 386px) and (max-width: 400px) and (orientation: portrait) {
  .brand { margin-top: calc(env(safe-area-inset-top, 12px) + 12px) !important; }
  .logo  { transform: translateY(8px) !important; margin-top: 6px !important; }
}

