/* Owlese landing. Tokens follow design/tokens.json (light theme only).
   --page and --blob are landing-only tints (not in tokens.json). */
:root {
  --bg: #FFFFFF;
  --page: #F2F5F8;
  --surface: #F4F5F6;
  --primary: #009DE1;
  --primary-text: #007EB5;
  --primary-soft: #E4FBFF;
  --ink: #04121B;
  --ink-2: #5F686D;      /* textSecondaryDark: 6.1:1 on white, AA on pastel cards */
  --divider: #E9EAEA;
  --tile-yellow: #FEF7CC;
  --tile-purple-soft: #EFE3FD;
  --tile-orange-soft: #FDEBDD;
  --tile-cyan: #00C0F8;
  --blob: #BDEBFB;
  --radius-card: 32px;
  --radius-pill: 999px;
  --font: "Onest", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--primary-text); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header: floating white pill, sticky */
.site-header { position: sticky; top: 16px; z-index: 50; padding-top: 16px; }
.site-header .wrap { max-width: 1280px; }
.bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding: 10px 12px 10px 20px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(4, 18, 27, 0.06), 0 8px 28px rgba(4, 18, 27, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.wordmark { font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.anchors { display: flex; gap: 24px; margin-left: 24px; }
.anchors a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap; }
.anchors a:hover { color: var(--primary-text); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang { display: flex; gap: 2px; background: var(--surface); border-radius: var(--radius-pill); padding: 3px; }
.lang a {
  display: inline-block; min-width: 40px; text-align: center; padding: 6px 10px;
  border-radius: var(--radius-pill); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
}
.lang a[aria-current="true"], .lang a.is-current { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(4, 18, 27, 0.12); }

.burger {
  display: none; position: relative; width: 48px; height: 48px; flex: none;
  border: 0; border-radius: 14px; background: var(--surface); cursor: pointer; padding: 0;
}
.burger-bars { position: absolute; left: 14px; right: 14px; top: 17px; height: 14px; display: block; }
.burger-bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger-bars span:nth-child(1) { top: 0; }
.burger-bars span:nth-child(2) { top: 6px; }
.burger-bars span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.burger:focus-visible { outline-offset: 2px; }

.menu {
  display: grid; gap: 8px; margin-top: 8px; padding: 12px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(4, 18, 27, 0.06), 0 12px 32px rgba(4, 18, 27, 0.12);
}
.menu-links { display: grid; }
.menu-links a {
  display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
}
.menu-links a:hover, .menu-links a:focus-visible { background: var(--primary-soft); }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 4px; border-top: 1px solid var(--divider); margin-top: 4px; }
.menu-foot .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font: 700 17px/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 16px; }
.btn-xl { min-height: 64px; padding: 0 40px; font-size: 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0090D0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--divider); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero: light stage, navy headline tab, navy panel */
.hero { position: relative; padding: 56px 0 88px; overflow-x: clip; }
.hero-stage { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.blob-main {
  position: absolute; left: 50%; top: 50%; width: min(760px, 96%); height: 440px;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: linear-gradient(150deg, #CFF1FD 0%, var(--blob) 45%, #E4FBFF 100%);
  border-radius: 56px; opacity: 0.9;
}
.blob-arrow {
  position: absolute; right: 6%; top: 6%; width: min(520px, 70%); height: 78%;
  background: linear-gradient(160deg, rgba(0, 157, 225, 0.22), rgba(0, 192, 248, 0.10));
  clip-path: polygon(0% 62%, 46% 62%, 46% 30%, 100% 56%, 46% 82%, 46% 100%, 0% 100%);
  transform: rotate(-16deg);
}
.hero-lo {
  position: relative; z-index: 1; width: min(540px, 92%); height: auto;
  mix-blend-mode: multiply;
}
.hero .eyebrow {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; margin: 0;
  padding: 8px 16px; border-radius: var(--radius-pill); background: #fff; color: var(--primary-text);
  font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 16px rgba(4, 18, 27, 0.06);
}

.facts { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.fact {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 6px;
  width: 232px; padding: 18px 22px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(4, 18, 27, 0.06);
}
.fact-num { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.fact-cap { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.fact-1 { left: 2%; top: 14%; transform: rotate(-3deg); }
.fact-2 { right: 3%; top: 4%; transform: rotate(2deg); }
.fact-3 { left: 4%; bottom: 24%; transform: rotate(2deg); }
.fact-4 { right: 6%; bottom: 24%; transform: rotate(-2deg); width: 250px; }

.hero-head { position: relative; z-index: 3; margin-top: -72px; text-align: center; }
.hero h1 {
  display: inline; margin: 0; padding: 4px 26px 14px;
  background: var(--ink); color: #fff; border-radius: 28px;
  font-size: 68px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.hero-panel {
  position: relative; z-index: 3; max-width: 960px; margin: 24px auto 0; text-align: center;
  background: var(--ink); color: #fff; border-radius: 36px; padding: 40px 48px 44px;
}
.hero-lede { margin: 0 auto 28px; max-width: 36ch; font-size: 22px; line-height: 1.4; color: #E6EEF2; }
.cta-row { display: flex; justify-content: center; margin-bottom: 28px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row-center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 14px;
  border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none;
}
.store-btn:hover { background: #0B2230; }
.store-ico { width: 26px; height: 26px; display: inline-flex; }
.store-ico svg { width: 100%; height: 100%; fill: currentColor; }
.store-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-txt small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.store-txt strong { font-size: 18px; font-weight: 700; }
.store-btn-web { background: #fff; color: var(--ink); }
.store-btn-web:hover { background: var(--primary-soft); }
.store-row-dark .store-btn { background: #fff; color: var(--ink); }
.store-row-dark .store-btn:hover { background: var(--primary-soft); }
.store-row-dark .store-btn-web { background: var(--primary); color: #fff; }
.store-row-dark .store-btn-web:hover { background: #0090D0; }

/* Sections */
.section { padding: 96px 0; }
.h2 { margin: 0 0 48px; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-align: left; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--primary-soft); border-radius: var(--radius-card); padding: 32px; }
.num {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 24px;
}
.step h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Feature bento: illustrations sit on the tile, no inner boxes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-card); padding: 24px 24px 36px;
}
.card-art { display: flex; justify-content: center; margin-bottom: 16px; }
.card-art img { width: 100%; max-width: 300px; height: auto; mix-blend-mode: multiply; }
.card-body { padding: 0 8px; }
.card h3 { margin: 0 0 12px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card-blue { background: var(--primary-soft); }
.card-yellow { background: var(--tile-yellow); }
.card-purple { background: var(--tile-purple-soft); }
.card-soft { background: var(--tile-orange-soft); }

/* Full-bleed top for illustrations that carry their own background */
.card-bleed { padding: 0 0 36px; }
.card-bleed .card-art { margin: 0 0 28px; }
.card-bleed .card-art img { max-width: none; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: normal; }
.card-bleed .card-body { padding: 0 32px; }

.card-words { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; }
.card-words .card-art { flex: 0 0 42%; margin: 0; }
.card-words .card-body { flex: 1; padding: 0 16px 0 0; }
.card-wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; }
.card-wide .card-art { flex: 0 0 30%; margin: 0; }
.card-wide .card-body { flex: 1; padding: 0 24px 0 0; }

/* Apps */
.apps-panel {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  background: var(--ink); color: #fff; border-radius: 40px; padding: 64px 56px;
}
.apps-panel .h2 { color: #fff; margin-bottom: 20px; }
.lede-dark { margin: 0 0 32px; font-size: 20px; line-height: 1.45; color: #E6EEF2; max-width: 40ch; }
.apps-panel :focus-visible { outline-color: #fff; }
.soon { margin: 16px 0 0; font-size: 14px; color: #B9C6CE; }
.apps-art img { border-radius: 28px; width: 100%; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq details { background: #fff; border-radius: 20px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text);
  font-size: 22px; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.faq summary:focus-visible { outline-offset: 2px; border-radius: 12px; }

/* Footer */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--divider); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot-brand .brand { margin-bottom: 12px; }
.disclaimer { margin: 0; max-width: 60ch; font-size: 14px; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; grid-column: 1; }
.foot-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.foot-links a:hover { color: var(--primary-text); text-decoration: underline; }
.copy { margin: 0; grid-column: 2; grid-row: 1; font-size: 14px; color: var(--ink-2); text-align: right; }

/* Below 1024: burger menu replaces the inline nav */
/* Below 1280: section links move into the burger; the language switch stays in the header down to 1024 */
@media (max-width: 1279px) {
  .anchors { display: none; }
  .burger { display: block; }
  .actions { margin-left: auto; }
}

@media (max-width: 1023px) {
  .lang-main, .login-main, .start-main { display: none; }
  .site-header { top: 12px; padding-top: 12px; }
  .bar { min-height: 60px; padding: 8px 8px 8px 16px; }
  .section { padding: 72px 0; }
  .h2 { font-size: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-words { grid-column: span 2; }
  .card-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }
  .apps-panel { padding: 48px 40px; }
  .hero-panel { padding: 36px 32px 40px; }
}

@media (min-width: 1280px) {
  .menu, .burger { display: none !important; }
}

/* Phone */
@media (max-width: 767px) {
  .wordmark { font-size: 22px; }
  .hero { padding: 0 0 56px; }
  .hero-stage { min-height: 0; display: block; padding-top: 56px; }
  .blob-main { width: 110%; height: 300px; top: 42%; border-radius: 40px; }
  .blob-arrow { right: -10%; top: 14%; width: 80%; height: 60%; }
  .hero-lo { width: 240px; margin: 0 auto; }
  .hero .eyebrow { top: 0; font-size: 14px; }
  .facts { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .fact, .fact-1, .fact-2, .fact-3, .fact-4 {
    position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none;
    width: auto; padding: 14px 14px; border-radius: 20px; gap: 4px;
  }
  .fact-num { font-size: 28px; }
  .fact-cap { font-size: 13px; }
  .hero-head { margin-top: 24px; padding: 0 12px; }
  .hero h1 { font-size: 36px; line-height: 1.15; padding: 2px 14px 8px; border-radius: 18px; }
  .hero-panel { margin: 20px 16px 0; padding: 28px 20px 28px; border-radius: 28px; }
  .hero-lede { font-size: 18px; margin-bottom: 22px; }
  .btn-xl { width: 100%; min-height: 56px; font-size: 18px; padding: 0 20px; }
  .cta-row { margin-bottom: 20px; }
  .store-row-center { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: flex-start; }
  .section { padding: 56px 0; }
  .h2 { font-size: 34px; margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-words, .card-wide { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .card-words .card-art, .card-wide .card-art { flex: none; margin: 0 0 16px; }
  .card-words .card-body, .card-wide .card-body { padding: 0 8px; }
  .card { padding: 20px 20px 28px; border-radius: 28px; }
  .card-bleed { padding: 0 0 28px; }
  .card-bleed .card-body { padding: 0 24px; }
  .card-art img { max-width: 240px; }
  .card-bleed .card-art img { max-width: none; }
  .card h3 { font-size: 22px; }
  .card-words .card-body, .card-wide .card-body { padding: 0 8px; }
  .apps-panel { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 28px; gap: 28px; }
  .apps-art { order: -1; }
  .apps-art img { max-width: 420px; margin: 0 auto; }
  .apps-panel .store-btn { flex: 1 1 100%; justify-content: flex-start; }
  .foot { grid-template-columns: 1fr; }
  .copy { grid-column: 1; grid-row: auto; text-align: left; }
  .faq summary { font-size: 17px; }
}

@media (max-width: 380px) {
  .btn { font-size: 16px; padding: 0 16px; }
  .wordmark { font-size: 20px; }
  .hero h1 { font-size: 32px; }
}

/* Logo: R4 in the header (tinted rounded rectangle, rounded icon, ink wordmark) */
.brand-icon { display: block; flex: none; width: 32px; height: 32px; border-radius: 9px; }
.brand-r4 { height: 40px; padding: 4px 16px 4px 4px; border-radius: 13px; background: #E0F3FB; gap: 10px; }
.brand-r4 .wordmark { position: relative; top: -1px; font-size: 22px; }

/* Logo: R6 big sticker (blue rounded rectangle, rounded icon overlapping the left edge, soft shadow, white wordmark), 1.5x */
.brand-r6 { position: relative; height: 60px; padding: 6px 24px 6px 80px; border-radius: 20px; background: var(--primary); color: #fff; }
.brand-r6 .brand-icon { position: absolute; left: -9px; top: -6px; width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 6px 15px rgba(4, 18, 27, 0.28); }
.brand-r6 .wordmark { position: relative; top: -1px; font-size: 33px; color: #fff; }

/* Crew: white cards on the page, image shown as-is, colour accent bar per character (--accent) */
.crew-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.crew-card { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-card); padding: 32px 24px 32px; text-align: center; background: #fff; box-shadow: 0 1px 2px rgba(4, 18, 27, 0.06); }
.crew-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--accent); }
.crew-art { aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.crew-art img { width: 100%; max-width: 220px; height: 100%; object-fit: contain; }
.crew-card h3 { margin: 0 0 10px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.crew-card p { margin: 0 auto; max-width: 26ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
@media (max-width: 1023px) and (min-width: 640px) {
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .crew-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
  .crew-card { padding: 24px 12px 20px; border-radius: 28px; }
  .crew-art { margin-bottom: 8px; }
  .crew-card h3 { font-size: 19px; margin-bottom: 6px; }
  .crew-card p { font-size: 14px; }
}
