/* Public pages */
@font-face {
  font-family: Fredoka;
  src: url('../img/brand/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0f3e6e;
  --night: #102c47;
  --sky: #78c9f5;
  --ink: #132c43;
  --text: #425569;
  --muted: #52677d;
  --paper: #f3f6f9;
  --line: #d7e0e8;
  --white: #fff;
  --font: 'Inter', system-ui, sans-serif;
  --display: Fredoka, var(--font);
  --radius: 6px;
  --section-space: clamp(52px, 7vw, 94px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.65 var(--font); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.035em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #2385bd; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 1200px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 16px; padding: 10px 16px; background: var(--white); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.wordmark { flex: none; color: var(--navy); font: 700 30px/1 var(--display); white-space: nowrap; }
.wordmark i { color: #2795d1; font-style: normal; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.btn .ico { width: 16px; height: 16px; }
.btn-sky { background: var(--sky); color: #092b45; }
.btn-sky:hover { background: #a9e0ff; }
.btn-navy, .nav-cta .btn-sky { background: var(--navy); color: var(--white); }
.btn-navy:hover, .nav-cta .btn-sky:hover { background: #235784; }
.btn-ghost { color: var(--white); border-color: #87a5bc; }
.btn-ghost:hover { background: #ffffff14; }
.btn-small { min-height: 40px; padding: 8px 14px; }
.learn-link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: #185c8e; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.learn-link:hover { text-decoration: underline; }

.header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nav-links, .nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-links { margin-left: auto; }
.nav-links a, .login-link { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .login-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.header-login { margin-left: auto; }
.mobile-login { display: none; }
.menu-tab, .drawer-head button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
.menu-tab { display: none; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-tab span { width: 17px; height: 2px; background: currentColor; }
.drawer { margin: 0 0 0 auto; width: min(360px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 24px; border: 0; background: var(--white); color: var(--ink); }
.drawer::backdrop { background: #0b223b99; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head button { font-size: 24px; }
.drawer nav { display: grid; margin: 24px 0; }
.drawer nav a { padding-block: 13px; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer .btn { display: flex; margin-top: 10px; }
.drawer .btn-ghost { color: var(--navy); border-color: var(--line); }

.landing {
  --night: #0b233b;
  --gutter: clamp(18px, 4vw, 44px);
  --section-space: clamp(54px, 7vw, 104px);
}
.landing .wrap { width: min(100%, 1370px); padding-inline: var(--gutter); }
.landing .header { background: var(--night); border-color: #ffffff23; color: #dae7f2; }
.landing .header .wordmark, .landing .header :is(.nav-links a, .login-link):hover { color: white; }
.landing .header .wordmark i { color: var(--sky); }
.landing .nav-cta .btn-sky { background: var(--sky); color: #092b45; }
.landing .nav-cta .btn-sky:hover { background: #a9e0ff; }
.landing .menu-tab { border-color: #7693a9; color: white; }

.hero { background: var(--night); color: #e0ecf6; }
.hero-shell { padding-top: clamp(34px, 5.5vw, 82px); padding-bottom: clamp(32px, 5vw, 70px); }
.hero h1 {
  color: white;
  font-size: clamp(48px, 7.2vw, 103px);
  line-height: .99;
}
.hero h1 span { display: block; }
@media (min-width: 1060px) {
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .hero-details .hero-lead { margin-top: 0; }
}
.hero h1 span:last-child { color: var(--sky); }
.hero-lead { max-width: 49ch; font-size: clamp(17px, 1.8vw, 22px); margin: 20px 0 22px; }
.hero-ctas, .hero-trust { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.hero-trust { margin-top: 18px; gap: 6px 18px; font-size: 13px; }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .ico { width: 16px; color: var(--sky); }
.hero-screens {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  margin-top: clamp(30px, 4vw, 56px);
}
.hero-desktop { grid-area: 1 / 1 / 2 / 12; align-self: start; }
.hero-phone { grid-area: 1 / 10 / 2 / 13; z-index: 1; width: min(100%, 272px); justify-self: end; margin-top: clamp(32px, 8vw, 116px); }
.screenshot a {
  display: block;
  overflow: hidden;
  border-radius: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 12px 32px #0b233b23, 0 0 0 1px #102c4722;
  cursor: zoom-in;
}
.screenshot img { display: block; width: 100%; height: auto; }
.hero .screenshot a, .app-discovery .screenshot a { box-shadow: 0 16px 42px #020b1666, 0 0 0 1px #c1ddf047; }
.screenshot-viewer {
  width: fit-content;
  max-width: min(calc(100% - 20px), 1280px);
  max-height: calc(100dvh - 20px);
  border: 1px solid #8aaccb5c;
  border-radius: 12px;
  padding: 12px;
  background: var(--night);
  color: white;
  overscroll-behavior: contain;
}
.screenshot-viewer::backdrop { background: #081628e6; }
.screenshot-viewer button {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 8px auto;
  padding: 0;
  border: 1px solid #aecbe17a;
  border-radius: 6px;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}
.screenshot-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 100px); margin-inline: auto; object-fit: contain; }
html:has(.screenshot-viewer[open]) { overflow: hidden; }

.early-access { padding-block: clamp(32px, 5vw, 60px); background: #e8f3fa; border-bottom: 1px solid var(--line); }
.early-access-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 64px); }
.early-access p { max-width: 49ch; margin-top: 10px; }
.early-access-join p { font-size: 14px; }
.platforms { padding-block: clamp(26px, 4vw, 44px); background: var(--paper); border-bottom: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 64px); }
.platform-grid article + article { padding-left: clamp(20px, 4vw, 52px); border-left: 1px solid var(--line); }
.platform-grid h2 { font-size: clamp(24px, 3vw, 32px); }
.platform-grid p { max-width: 48ch; margin-top: 8px; font-size: 15px; }
.platform-grid .learn-link { margin-top: 4px; }

.section { padding-block: var(--section-space); }
.section-head { max-width: 730px; margin-bottom: clamp(24px, 4vw, 48px); }
.landing .section-head h2, .landing-close h2 { font-size: clamp(36px, 5.1vw, 68px); text-wrap: balance; }
.landing .section-head p { font-size: clamp(16px, 1.65vw, 20px); }
.feature-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 7vw, 100px); }
.library-visual { justify-self: center; width: min(100%, 350px); }
.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  grid-template-areas: 'heading detail' 'image image';
  align-items: end;
  gap: clamp(24px, 4vw, 48px) clamp(22px, 6vw, 72px);
}
.section-split .section-head { grid-area: heading; margin-bottom: 0; }
.section-split .wide-screenshot { grid-area: image; }
.section-split :is(.spread-copy, .guide-content) { grid-area: detail; }
.spread-copy h3, .opening-story h3 { font-size: clamp(23px, 2.6vw, 34px); }
.spread-copy p, .opening-story p { max-width: 52ch; margin-top: 10px; }
.openings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 6vw, 72px); margin-bottom: 18px; }
.opening-story { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 20px; align-items: start; border-top: 1px solid var(--line); padding-top: 18px; }
.opening-story .screenshot { width: min(100%, 330px); justify-self: center; }
.trust-section { padding-block: clamp(42px, 6vw, 82px); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .85fr)); gap: clamp(20px, 4vw, 50px); align-items: start; }
.trust-grid > div { border-top: 1px solid var(--line); padding-top: 14px; }
.trust-grid h2 { font-size: clamp(30px, 3.4vw, 44px); }
.trust-grid p { margin-top: 8px; }
.landing-close {
  background: var(--night) url('../img/brand/pitch-lines.svg') right -90px center / min(52vw, 650px) auto no-repeat;
  color: white;
}
.landing-close h2 { color: white; max-width: 16ch; margin-bottom: 24px; }
.section-head p { max-width: 57ch; margin-top: 12px; }
.section-head .learn-link { margin-top: 5px; }
.section-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; margin-top: 22px; }

.app-discovery { background: var(--night); color: #d8e6f2; }
.app-discovery :is(h2, h3) { color: white; }
.feature-switch { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 10px 0 22px; border-bottom: 1px solid #7e9bb56e; }
.feature-switch button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.feature-switch button[aria-pressed=true], .feature-switch button:hover { border-bottom-color: var(--sky); color: white; }
.discovery-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 350px);
  align-items: center;
  gap: 24px clamp(24px, 8vw, 112px);
  max-width: 1150px;
  margin-inline: auto;
  padding-block: clamp(12px, 2vw, 25px);
}
.discovery-panel + .discovery-panel { margin-top: 24px; }
.discovery-panel[hidden] + .discovery-panel { margin-top: 0; }
.discovery-story h3 { font: 700 clamp(28px, 3.8vw, 49px)/1.07 var(--display); letter-spacing: -.02em; }
.discovery-story p { margin-top: 13px; }
.discovery-story .learn-link { margin-top: 8px; color: var(--sky); }

.clubs, .related, .faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 72px); }
.guide-content article + article { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.guide-content p, .faq-grid > div:first-child p { margin-top: 8px; }
.faq-grid a { text-decoration: underline; text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--navy); font-size: 19px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding-bottom: 16px; font-size: 15px; }
.faq-list p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer { background: #0c2238; color: #c3d4e3; padding: 42px 0 22px; font-size: 14px; }
.footer .wordmark, .footer h3 { color: white; }
.footer .wordmark i { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid #6986a254; }
.footer h3 { font-size: 14px; letter-spacing: 0; margin-bottom: 10px; }
.footer-grid > div > a:not(.wordmark) { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.footer-brand p { margin-top: 8px; }
.footer a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.footer-company, .footer-bottom { padding-top: 14px; font-size: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.footer-bottom > span:last-child { display: flex; gap: 16px; }
.footer-credit { display: block; }

.info-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0 50px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 23px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.info-hero h1, .not-found h1 { max-width: 22ch; font-size: clamp(35px, 5vw, 62px); letter-spacing: -.025em; }
.info-hero p, .not-found p { max-width: 62ch; margin: 16px 0 22px; }
.info-hero .btn-sky { background: var(--navy); color: white; }
.info-hero .btn-sky:hover { background: #235784; }
.info-layout { display: grid; grid-template-columns: minmax(0, 710px) minmax(220px, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; padding-block: 48px; }
.info-content > section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.info-content > section:last-child { border: 0; margin: 0; padding: 0; }
.info-content h2 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 10px; }
.info-aside { position: sticky; top: 88px; padding: 18px 20px; border-left: 2px solid #9fc8e3; background: var(--paper); }
.contents-title { display: block; margin-bottom: 9px; color: var(--ink); font-size: 15px; }
.info-aside nav { display: grid; }
.info-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 280px);
  align-items: center;
  gap: 20px;
  margin-block: 0 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.info-example p { margin-top: 9px; font-size: 15px; }
.info-aside nav a { padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.info-aside nav a:hover { color: var(--navy); text-decoration: underline; }
.info-aside-cta { border-top: 1px solid var(--line); padding-top: 17px; }
.info-aside h2 { font-size: 19px; }
.info-aside p { margin: 7px 0 12px; font-size: 13px; }
.related h2 { margin-bottom: 18px; font-size: clamp(26px, 3vw, 34px); }
'.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px; }
.related-grid > a { display: block; border-top: 1px solid var(--line); padding-block: 14px; }
.related-grid > a:hover { border-color: #6799bc; }
.related-grid p { margin-top: 6px; }
.related-grid span { display: block; margin-top: 8px; color: #185c8e; font-size: 14px; font-weight: 700; }
.not-found { background: var(--paper); min-height: calc(100dvh - 69px); padding-block: var(--section-space); }
.not-found-actions, .not-found nav { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.not-found .error-code { margin: 9px 0 14px; color: var(--muted); font-size: 13px; }
.not-found nav { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.not-found nav a { color: var(--navy); font-size: 14px; }
.not-found nav a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-tab { display: flex; }
  .landing .nav-wrap { gap: 14px; }
  .landing .mobile-login { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; }
  .landing .menu-tab { margin-left: 0; }
}
@media (max-width: 760px) {
  .nav-wrap { min-height: 62px; }
  .early-access-layout, .faq-grid, .info-layout, .feature-spread, .section-split, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(41px, 10vw, 70px); }
  .feature-spread .spread-copy { grid-row: 1; }
  .section-split { grid-template-areas: 'heading' 'image' 'detail'; }
  .landing-close { background-image: none; }
  .info-aside { position: static; grid-row: 1; }
  .info-aside-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-screens {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80vw, 360px);
    align-items: start;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-color: #7697b2 transparent;
    scrollbar-width: thin;
  }
  .hero-screens .screenshot { grid-area: auto; width: 100%; margin: 0; scroll-snap-align: start; }
  .wide-screenshot { width: min(100%, 430px); margin-inline: auto; }
  .discovery-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .discovery-panel .screenshot { width: min(100%, 350px); justify-self: center; }
}
@media (max-width: 540px) {
  .platform-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .platform-grid { gap: 12px; }
  .hero-ctas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
  .hero-ctas .btn { padding-inline: 9px; min-height: 48px; font-size: 13px; }
  .hero-ctas .ico { display: none; }
  .hero-trust { gap: 5px 12px; }
  .openings-grid, .info-example { grid-template-columns: minmax(0, 1fr); }
  .opening-story { grid-template-rows: auto auto; grid-row: auto; }
  .feature-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .feature-switch button { font-size: 13px; text-align: left; }
  .info-example .screenshot { width: min(100%, 340px); justify-self: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: hero-enter 580ms cubic-bezier(.22, .7, .26, 1) backwards; }
  .hero h1 span:last-child { animation-delay: 95ms; }
  .discovery-panel:not([hidden]) .screenshot { animation: hero-enter 380ms ease-out; }
  .landing .screenshot img { transition: transform 450ms cubic-bezier(.22, .7, .26, 1); }
  .landing .btn .ico { transition: transform 200ms ease; }
  .landing .btn:is(:hover, :focus-visible) .ico { transform: translateX(3px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .landing .screenshot a:hover img { transform: scale(1.025); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
    .hero-phone {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 70%;
    }
  }
}
@keyframes hero-enter {
  from { opacity: .72; transform: translateY(14px); }
}
@keyframes hero-drift {
  from { translate: 0 22px; }
  to { translate: 0 -15px; }
}
