/* Fylark landing ADA 2026 pass
   Aligns the teaser with the Flutter app canon: Arena warmth, blue ink,
   restrained glass, hairlines, and abstract organization without exposing
   product features or the real imagotype. */

:root {
  --arena: #f3f1eb;
  --card: #faf7f0;
  --subtle: #ebe6da;
  --paper: #fffdf8;
  --ink-dark: #16233a;
  --ink-strong: #071c38;
  --ink-mid: #526074;
  --ink-soft-2: #6b6149;
  --brand: #2563a0;
  --brand-deep: #0d356f;
  --brand-bright: #3080cc;
  --line-warm: rgba(42, 36, 24, .11);
  --line-blue: rgba(37, 99, 160, .18);
  --cream-glow: rgba(255, 215, 163, .36);
  --blue-glow: rgba(48, 128, 204, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
  overflow: hidden;
  background: var(--arena);
}

body {
  color: var(--ink-dark);
  background:
    radial-gradient(56% 68% at 13% 13%, var(--cream-glow), transparent 68%),
    radial-gradient(50% 70% at 87% 46%, rgba(184, 212, 248, .42), transparent 64%),
    radial-gradient(42% 56% at 40% 92%, rgba(37, 99, 160, .16), transparent 66%),
    linear-gradient(135deg, #f7f4ed 0%, #f3f1eb 48%, #edf2f6 100%);
  -webkit-font-smoothing: auto;
}

body::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body::after {
  opacity: .032;
  mix-blend-mode: multiply;
}

.atmosphere {
  background:
    linear-gradient(90deg, rgba(235, 230, 218, .74), transparent 35% 100%),
    radial-gradient(60% 70% at 70% 48%, rgba(7, 28, 56, .1), transparent 70%);
}

#atmosphereCanvas {
  opacity: .28;
  filter: saturate(.9);
}

.light-well {
  right: -11vw;
  width: min(74vw, 860px);
  background:
    conic-gradient(from 220deg, transparent 0deg, rgba(37, 99, 160, .2) 38deg, transparent 92deg, transparent 210deg, rgba(255, 255, 255, .68) 270deg, transparent 322deg),
    radial-gradient(circle, rgba(255, 255, 255, .46), rgba(184, 212, 248, .15) 34%, transparent 67%);
  filter: blur(20px);
  opacity: .92;
}

.beam {
  inset: -18% 45% -18% auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
  opacity: .38;
}

@media (max-width: 720px) {
  main,
  .hero {
    overflow-x: clip;
  }

  .light-well {
    display: none;
  }

  .beam {
    display: none;
  }
}

.vignette {
  background:
    radial-gradient(72% 82% at 68% 48%, transparent 0%, transparent 60%, rgba(46, 37, 22, .12) 100%),
    linear-gradient(180deg, rgba(255,255,255,.46), transparent 28%, transparent 72%, rgba(46,37,22,.08));
}

.topline {
  top: clamp(22px, 3vw, 38px);
  left: clamp(24px, 3.4vw, 50px);
  right: clamp(24px, 3.4vw, 50px);
}

.eyebrow {
  color: rgba(13, 53, 111, .74);
  font-weight: 680;
  letter-spacing: .2em;
}

.lang {
  border-color: rgba(42, 36, 24, .12);
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 10px 34px rgba(46, 37, 22, .08), inset 0 1px 0 rgba(255,255,255,.8);
}

.lang button {
  color: rgba(22, 35, 58, .62);
}

.lang button:hover {
  color: var(--brand-deep);
}

.lang button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.lang button:focus-visible,
.wl-pill input:focus-visible,
.wl-btn:focus-visible,
.wl-consent input:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

main {
  padding: clamp(72px, 8.4svh, 104px) clamp(26px, 5vw, 72px) clamp(62px, 7svh, 88px);
}

.hero {
  min-height: min(760px, calc(100svh - 156px));
  grid-template-columns: minmax(0, .94fr) minmax(360px, 1.06fr);
  gap: clamp(28px, 4.1vw, 70px);
  overflow: clip;
}

.copy {
  max-width: 665px;
}

.copy::before {
  top: -30px;
  width: 128px;
  background: linear-gradient(90deg, rgba(37, 99, 160, .58), rgba(48, 128, 204, .14), transparent);
}

.copy::after {
  left: -28%;
  top: -6%;
  width: min(46vw, 620px);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .66), rgba(184, 212, 248, .18) 38%, transparent 68%);
  filter: blur(40px);
  opacity: .95;
}

.wordmark {
  color: transparent;
  font-size: clamp(5.5rem, 13.2vw, 12.8rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -.039em;
  padding-bottom: .18em;
  padding-right: .08em;
  background:
    linear-gradient(180deg, #0b2348 0%, #173f75 42%, #2563a0 76%, #7b8b9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 30px 70px rgba(46, 37, 22, .13))
    drop-shadow(0 8px 22px rgba(37, 99, 160, .12));
}

.claim {
  color: var(--ink-strong);
  font-size: clamp(1.08rem, 2.05vw, 1.42rem);
  font-weight: 560;
  line-height: 1.18;
}

.microcopy {
  color: rgba(13, 53, 111, .75);
  font-weight: 720;
}

.platforms {
  margin-top: clamp(14px, 2svh, 22px);
}

.plat-label {
  color: rgba(82, 96, 116, .88);
  font-weight: 700;
}

.plat {
  min-height: 32px;
  border-color: rgba(37, 99, 160, .15);
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(250,247,240,.58)),
    linear-gradient(135deg, rgba(37,99,160,.075), transparent);
  color: #16385f;
  box-shadow:
    0 12px 34px rgba(46, 37, 22, .08),
    inset 0 1px 0 rgba(255,255,255,.84);
}

.plat::before {
  background: linear-gradient(110deg, transparent 0 28%, rgba(48, 128, 204, .18) 42%, transparent 58% 100%);
}

.conversion-panel {
  width: min(100%, 31.5rem);
  margin-top: clamp(18px, 2.6svh, 30px);
}

.wl-pill {
  border-color: rgba(37, 99, 160, .2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(250,247,240,.72)),
    radial-gradient(140% 180% at 6% 0%, rgba(48,128,204,.14), transparent 58%);
  box-shadow:
    0 24px 80px rgba(46, 37, 22, .12),
    inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.wl-pill:focus-within {
  border-color: rgba(37, 99, 160, .48);
  box-shadow:
    0 26px 86px rgba(46, 37, 22, .15),
    0 0 0 4px rgba(48, 128, 204, .14),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.wl-pill input {
  color: var(--ink-strong);
}

.wl-pill input::placeholder {
  color: rgba(82, 96, 116, .68);
}

.wl-btn {
  background: linear-gradient(180deg, #2f72bd, #19548f);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(37, 99, 160, .26),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.wl-btn:hover {
  background: linear-gradient(180deg, #3b83cc, #1d5d9d);
}

.wl-btn:disabled {
  opacity: .7;
}

.wl-spin {
  border-color: rgba(255,255,255,.35);
  border-top-color: #fff;
}

.wl-consent {
  color: rgba(62, 75, 94, .92);
  font-size: .68rem;
  font-weight: 470;
}

.wl-consent input {
  border-color: rgba(37, 99, 160, .36);
  background: rgba(255, 253, 248, .7);
}

.wl-consent input:checked {
  background: linear-gradient(135deg, #3080cc, #0d4a86);
}

.wl-consent input:checked::after {
  border-color: #fff;
}

.wl-consent a {
  color: #0d4a86;
  border-bottom-color: rgba(13, 74, 134, .24);
}

.wl-msg {
  color: rgba(82, 96, 116, .9);
}

.wl-msg.err,
.wl-consent.err {
  color: #9c251f;
}

.wl-text {
  border-color: rgba(37, 99, 160, .18);
  background: rgba(255, 253, 248, .78);
  color: var(--ink-strong);
}

.wl-text::placeholder,
.wl-hint,
.wl-skip {
  color: rgba(82, 96, 116, .78);
}

.wl-q,
.wl-done,
.wl-done .big {
  color: var(--ink-strong);
}

.chip span {
  border-color: rgba(37, 99, 160, .16);
  background: rgba(255, 253, 248, .76);
  color: #173f75;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 8px 20px rgba(37, 99, 160, .055);
  transition:
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease),
    box-shadow .18s var(--ease),
    transform .18s var(--ease);
}

.chip input:checked + span {
  background: var(--brand);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 12px 26px rgba(37, 99, 160, .18);
}

.chip:hover span {
  border-color: rgba(37, 99, 160, .28);
  transform: translateY(-1px);
}

footer {
  color: rgba(82, 96, 116, .82);
  font-weight: 650;
}

footer a {
  color: rgba(13, 53, 111, .82);
  border-bottom-color: rgba(13, 53, 111, .18);
}

body.og main {
  background: var(--arena);
}

@media (max-width: 920px) {
  main {
    padding: 86px 22px 76px;
  }

  .hero {
    width: 100%;
    min-height: calc(100svh - 162px);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    overflow: visible;
  }

  .copy {
    width: min(100%, 640px);
    max-width: min(100%, 640px);
    justify-self: center;
    margin-inline: auto;
    text-align: center;
  }

  .copy::after {
    left: 50%;
    top: -18%;
    transform: translateX(-50%);
    width: min(92vw, 620px);
  }
}

@media (max-width: 560px) {
  .topline {
    top: 22px;
    left: 20px;
    right: 20px;
  }

  .eyebrow {
    max-width: 18ch;
    color: rgba(13, 53, 111, .8);
  }

  main {
    padding: 84px 18px 66px;
  }

  .hero {
    min-height: calc(100svh - 150px);
  }

  .copy {
    width: min(100%, 354px);
  }

  .wordmark {
    font-size: clamp(4.35rem, 21vw, 6.9rem);
    line-height: 1.1;
    padding-bottom: .2em;
  }

  .wl-btn {
    padding: 0 .9rem;
  }

  footer {
    color: rgba(82,96,116,.72);
  }
}

@media (max-height: 720px) {
  main {
    padding-top: 68px;
    padding-bottom: 56px;
  }

  .hero {
    min-height: calc(100svh - 124px);
  }

  .wordmark {
    font-size: clamp(4.4rem, 11.5vw, 9.8rem);
  }

  .conversion-panel {
    margin-top: 14px;
  }
}

/* Apple-inspired refinement: one hero object, clean field, restrained controls. */
body {
  background:
    radial-gradient(48% 54% at 70% 43%, rgba(184, 212, 248, .48), transparent 70%),
    radial-gradient(38% 48% at 20% 18%, rgba(255, 235, 202, .32), transparent 72%),
    linear-gradient(135deg, #f8f7f3 0%, #f5f5f7 54%, #edf4fb 100%);
}

#atmosphereCanvas {
  opacity: .18;
}

.light-well {
  opacity: .7;
  filter: blur(26px);
}

.beam {
  opacity: .22;
}

.wordmark {
  background:
    linear-gradient(180deg, #061c3c 0%, #123e76 45%, #256aa7 78%, #7d8c9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 32px 74px rgba(46, 37, 22, .09))
    drop-shadow(0 9px 24px rgba(37, 99, 160, .1));
}

.plat,
.wl-pill,
.lang {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(246, 248, 251, .68));
  border-color: rgba(7, 28, 56, .1);
  box-shadow:
    0 14px 38px rgba(29, 45, 68, .07),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.plat {
  min-height: 33px;
  color: #16385f;
}

.wl-pill {
  box-shadow:
    0 20px 54px rgba(29, 45, 68, .11),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

.wl-pill:focus-within {
  border-color: rgba(0, 113, 227, .42);
  box-shadow:
    0 22px 58px rgba(29, 45, 68, .13),
    0 0 0 4px rgba(0, 113, 227, .13),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.wl-btn {
  background: linear-gradient(180deg, #0a84ff, #0067c8);
  border-radius: 999px;
  box-shadow:
    0 12px 26px rgba(0, 102, 204, .24),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}

.wl-btn:hover {
  background: linear-gradient(180deg, #1e90ff, #0071e3);
}

.artifact-stage {
  width: min(52vw, 840px);
  transform: translateX(clamp(-8px, .6vw, 14px)) translateY(clamp(-16px, -1.2vw, -4px));
}

.artifact-stage::before {
  opacity: .82;
}

.artifact-stage::after {
  opacity: .3;
}

.hero-art {
  position: absolute;
  inset: -8% -5% -7% -6%;
  z-index: 2;
  display: block;
  width: 111%;
  height: 111%;
  object-fit: contain;
  object-position: center;
  opacity: .97;
  transform: translate3d(0, 0, 0) scale(.992);
  filter:
    drop-shadow(0 28px 34px rgba(23, 42, 67, .1))
    drop-shadow(0 70px 80px rgba(31, 110, 190, .08));
  animation:
    hero-art-in 1.2s var(--ease) .08s both,
    hero-art-breathe 8.8s ease-in-out 1.45s infinite alternate;
}

@keyframes hero-art-in {
  from {
    opacity: 0;
    transform: translate3d(10px, 9px, 0) scale(.982);
    filter:
      drop-shadow(0 18px 24px rgba(23, 42, 67, .06))
      drop-shadow(0 46px 56px rgba(31, 110, 190, .04));
  }
  to {
    opacity: .97;
    transform: translate3d(0, 0, 0) scale(.992);
  }
}

@keyframes hero-art-breathe {
  from { transform: translate3d(0, -1px, 0) scale(.992); }
  to { transform: translate3d(0, 2px, 0) scale(1); }
}

@media (max-width: 920px) {
  .artifact-stage {
    position: absolute;
    top: 6%;
    left: 50%;
    width: min(76vw, 520px);
    transform: translateX(-50%);
    opacity: .24;
    z-index: 0;
  }
}

@media (max-width: 560px) {
  .artifact-stage {
    top: 6%;
    left: 50%;
    width: min(72vw, 280px);
    opacity: .17;
  }

  .hero-art {
    inset: -4%;
    width: 108%;
    height: 108%;
    transform: translate3d(-20%, 0, 0) scale(.9);
    transform-origin: center;
    animation: hero-art-mobile-in 1s var(--ease) .08s both;
    filter: drop-shadow(0 30px 46px rgba(31, 110, 190, .09));
  }

  .wl-pill {
    box-shadow:
      0 18px 44px rgba(29, 45, 68, .12),
      inset 0 1px 0 rgba(255, 255, 255, .96);
  }
}

@keyframes hero-art-mobile-in {
  from {
    opacity: 0;
    transform: translate3d(-16%, 8px, 0) scale(.88);
  }
  to {
    opacity: .97;
    transform: translate3d(-20%, 0, 0) scale(.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art {
    animation: none !important;
    transform: none;
  }
}
