/* symbolrun.com: one stylesheet for every page. Values from docs/design.md. */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #0B1620;
  --night-2: #0F1D29;
  --card: #12212E;
  --line: #1E3242;
  --ink: #F6F2E7;
  --text: #DCE3E6;
  --muted: #B8C4CC;
  --faint: #8A99A3;
  --gold: #FFC23D;
  --gold-hover: #FFCD5C;
  --gold-edge: #B97A0E;
  --gold-ink: #2B1B00;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Base */
body {
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
h1, h2, h3, .disp {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--ink);
}
:lang(sv) h1, :lang(sv) h2, :lang(sv) h3 { hyphens: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 700;
}
.skip:focus { top: 12px; }
.lead { color: var(--muted); max-width: 600px; margin: 14px auto 0; }
.center { text-align: center; }
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.chip.dim { background: rgba(255, 255, 255, .08); color: var(--muted); }
.chip.gold { background: rgba(255, 194, 61, .14); color: var(--gold); }

/* Header */
.site-header { position: relative; z-index: 3; padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { width: 44px; height: 44px; border-radius: 11px; }
.logo span { font-family: var(--display); font-size: 26px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a:not(.brick-button) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:not(.brick-button):hover { color: var(--gold); }

/* Brick button */
.brick-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 14px;
  background: var(--gold); color: var(--gold-ink); text-decoration: none;
  font-family: var(--display); font-size: 20px; line-height: 1.1;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .55),
              0 6px 0 var(--gold-edge), 0 14px 24px rgba(0, 0, 0, .35);
  transition: transform .08s, box-shadow .08s;
}
.brick-button:hover { background: var(--gold-hover); color: var(--gold-ink); }
.brick-button:active {
  transform: translateY(4px);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .55),
              0 2px 0 var(--gold-edge), 0 6px 12px rgba(0, 0, 0, .35);
}
.brick-button.small {
  min-height: 44px; padding: 8px 18px; border-radius: 12px; font-size: 17px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .55), 0 4px 0 var(--gold-edge);
}

/* App Store badge */
.badge { display: inline-block; border-radius: 12px; }
.badge img { height: 56px; width: auto; }

/* Brick */
.brick {
  --s: 72px; --fl: #5EA334; --fd: #226433;
  width: var(--s); height: var(--s); flex: none; border-radius: 16%;
  background: #EEF0EA; display: grid; place-items: center;
  box-shadow: inset 0 0 0 calc(var(--s) * .085) var(--fl), inset 0 0 0 calc(var(--s) * .13) var(--fd),
              0 calc(var(--s) * .09) 0 var(--fd), 0 calc(var(--s) * .22) calc(var(--s) * .3) rgba(0, 0, 0, .4);
}
.brick img, .brick svg { width: 56%; height: 56%; }
.brick .num { font-family: var(--display); font-size: calc(var(--s) * .53); line-height: 1; }
.w1 { --fl: #5EA334; --fd: #226433; }
.w2 { --fl: #D8C39A; --fd: #9C7F55; }
.w3 { --fl: #A9D6EE; --fd: #5E93B8; }
.w4 { --fl: #FF8A4C; --fd: #3A3431; }
.w5 { --fl: #6F8FD6; --fd: #1F2F5C; }
.wg { --fl: #FFC23D; --fd: #B97A0E; }

/* Phone frame */
.phone {
  width: 270px; padding: 11px; border-radius: 46px; background: #0A0A0A;
  box-shadow: 0 0 0 2px #34383C, 0 40px 80px rgba(0, 0, 0, .55);
}
.phone img, .phone video { width: 100%; height: auto; border-radius: 36px; aspect-ratio: 496 / 1078; object-fit: cover; }

/* Hero */
.hero { overflow-x: clip; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px; align-items: center; min-height: 760px;
}
.hero h1 { font-size: clamp(68px, 9vw, 112px); margin-top: 18px; text-shadow: 0 6px 0 #05090D; }
.tagline { font-size: 26px; line-height: 1.35; margin-top: 20px; max-width: 520px; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 36px; }
.meta { color: var(--muted); font-size: 16px; }
.stage { position: relative; height: 720px; }
.portal {
  position: absolute; left: 50%; bottom: 40px; width: 170px; height: 303px; margin-left: -85px;
  border-radius: 20px; overflow: hidden; transform-origin: 50% 120%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 0 3px rgba(255, 255, 255, .14);
}
.portal img { width: 100%; height: 100%; object-fit: cover; }
.portal.p1 { transform: rotate(-30deg) translateY(10px); }
.portal.p2 { transform: rotate(-15deg); }
.portal.p3 { transform: rotate(0deg) translateY(-6px); }
.portal.p4 { transform: rotate(15deg); }
.portal.p5 { transform: rotate(30deg) translateY(10px); }
.stage .phone { position: absolute; left: 50%; top: 40px; margin-left: -135px; }
.hero-bricks .brick { position: absolute; }
.hero-bricks .b1 { --s: 84px; left: 4%; top: 70px; transform: rotate(-14deg); }
.hero-bricks .b2 { --s: 70px; right: 6%; top: 20px; transform: rotate(12deg); }
.hero-bricks .b3 { --s: 92px; right: 0; top: 300px; transform: rotate(-8deg); }
.hero-bricks .b4 { --s: 76px; left: 0; top: 330px; transform: rotate(10deg); }
.hero-bricks .b5 { --s: 60px; left: 22%; bottom: 0; transform: rotate(-6deg); }
.hero-bricks.is-falling .brick { animation: fall .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.hero-bricks.is-falling .b2 { animation-delay: .12s; }
.hero-bricks.is-falling .b3 { animation-delay: .24s; }
.hero-bricks.is-falling .b4 { animation-delay: .36s; }
.hero-bricks.is-falling .b5 { animation-delay: .48s; }
@keyframes fall { from { translate: 0 -420px; opacity: 0; } 30% { opacity: 1; } to { translate: 0 0; } }
.hero-bricks .brick { animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { to { translate: 0 -10px; } }

/* Sections */
.section { padding: 110px 0 120px; }
.section.alt { background: var(--night-2); }
.section h2 { font-size: clamp(42px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 52px; }
.card { border-radius: 22px; padding: 28px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.card h3 { font-size: 30px; margin-top: 16px; }
.card p { margin-top: 10px; color: #CFD8DC; }
.worlds-intro { padding: 120px 0 64px; }
.worlds-intro h2 { margin-top: 16px; }

/* World bands */
.band { position: relative; overflow: hidden; background: #16331F; }
.band-bg, .band-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding-top: 120px; padding-bottom: 120px;
}
.band.flip .tablet { order: 2; }
.tablet {
  border-radius: 28px; padding: 44px;
  background: var(--fill); color: var(--tt);
  box-shadow: inset 0 0 0 3px var(--ring), 0 30px 60px rgba(0, 0, 0, .35);
}
.tablet .chip { background: var(--ring); color: var(--chip); }
.tablet h2 { font-size: clamp(36px, 4vw, 48px); margin-top: 16px; }
.tablet p { margin-top: 14px; }
.booster {
  display: flex; gap: 14px; align-items: center; margin-top: 26px; padding-top: 22px;
  border-top: 2px solid rgba(255, 255, 255, .18);
}
.booster p { margin: 0; }
.booster .brick { --s: 52px; }
.art { position: relative; display: grid; place-items: center start; min-height: 420px; }
.art .intro { width: 72%; max-width: 440px; }
.art .phone { width: 190px; padding: 8px; border-radius: 32px; position: absolute; right: 0; top: 50%; translate: 0 -50%; rotate: 5deg; }
.art .phone img { border-radius: 25px; }
.band.flip .art { place-items: center end; }
.band.flip .art .phone { right: auto; left: 0; rotate: -5deg; }
.art.solo { place-items: center; min-height: 0; }
.art.solo .phone { position: static; translate: none; width: 270px; padding: 11px; border-radius: 46px; rotate: 4deg; }
.art.solo .phone img { border-radius: 36px; }
#world-1 { --fill: rgba(34, 100, 51, .92); --ring: #5EA334; --chip: #0E2914; --tt: #E3F2DA; }
#world-2 { --fill: rgba(110, 86, 52, .92); --ring: #D8C39A; --chip: #3B2A12; --tt: #F7EEDC; }
#world-3 { --fill: rgba(30, 74, 110, .9); --ring: #A9D6EE; --chip: #123650; --tt: #E6F4FC; }
#world-4 { --fill: rgba(42, 36, 33, .93); --ring: #FF8A4C; --chip: #3A1405; --tt: #F4E7E0; }
#world-5 { --fill: rgba(31, 47, 92, .93); --ring: #FFC23D; --chip: #2B1B00; --tt: #E4EAF8; }

/* More */
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.feat h3 { font-size: 28px; margin-top: 14px; }
.chip.c-ar { background: rgba(255, 194, 61, .14); color: var(--gold); }
.chip.c-walk { background: rgba(94, 163, 52, .18); color: #9BE07A; }
.chip.c-scores { background: rgba(169, 214, 238, .16); color: #A9D6EE; }
.chip.c-cloud { background: rgba(255, 138, 76, .16); color: #FFB08A; }

/* Get */
.get { padding: 130px 0; }
.get .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.get .row { display: flex; gap: 14px; margin-bottom: 8px; }
.get .row .brick { --s: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.site-footer .nav { gap: 4px 28px; }
.site-footer p { color: var(--faint); font-size: 14px; line-height: 1.5; }
.site-footer .fine { font-size: 12px; margin-top: 4px; }

/* Long text: privacy, terms, support */
.page-head { padding: 40px 0 8px; }
.page-head .bar { height: 8px; width: 120px; border-radius: 4px; background: var(--gold); margin-bottom: 26px; }
.page-head h1 { font-size: clamp(36px, 9vw, 72px); }
.page-head .date { color: var(--faint); font-size: 15px; margin-top: 12px; }
.legal { max-width: 720px; padding-bottom: 80px; font-size: 17px; line-height: 1.65; }
.legal h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin: 44px 0 10px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .summary { margin: 26px 0 8px; padding: 20px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); }
.legal address { font-style: normal; }
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 700; color: var(--ink); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%;
  font-family: var(--display); font-size: 28px; color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; }
.contact { margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.contact h2 { margin-top: 0; }
.contact .brick-button { margin-top: 10px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound h1 { font-size: clamp(44px, 7vw, 80px); }
.notfound .nav { justify-content: center; margin-top: 28px; gap: 16px; }

/* Scroll reveal: the class is only ever added by site.js */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Phone layout */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .site-header .nav .hide-s { display: none; }
  .site-header .nav { gap: 16px; }
  .logo span { font-size: 22px; }
  .logo img { width: 38px; height: 38px; border-radius: 9px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; padding-top: 24px; text-align: center; }
  .tagline { font-size: 22px; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .stage { height: 560px; max-width: 390px; width: 100%; margin: 0 auto; }
  .stage .phone { width: 220px; padding: 9px; border-radius: 38px; margin-left: -110px; }
  .stage .phone video, .stage .phone img { border-radius: 30px; }
  .portal { width: 120px; height: 214px; margin-left: -60px; }
  .hero-bricks .b1 { --s: 62px; top: 40px; }
  .hero-bricks .b2 { --s: 54px; }
  .hero-bricks .b3 { --s: 66px; top: 260px; }
  .hero-bricks .b4 { --s: 58px; top: 300px; }
  .hero-bricks .b5 { --s: 48px; }
  .section { padding: 72px 0; }
  .steps, .feat { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; }
  .worlds-intro { padding: 72px 0 40px; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 72px; padding-bottom: 72px; }
  .band.flip .tablet { order: 0; }
  .tablet { padding: 28px 24px; }
  .art, .band.flip .art { min-height: 300px; place-items: center start; }
  .art .intro { width: 64%; }
  .art .phone, .band.flip .art .phone { width: 128px; padding: 5px; border-radius: 22px; right: 0; left: auto; rotate: 5deg; }
  .art .phone img { border-radius: 18px; }
  .art.solo .phone { width: 220px; padding: 9px; border-radius: 38px; }
  .art.solo .phone img { border-radius: 30px; }
  .get { padding: 80px 0; }
  .get .row .brick { --s: 48px; }
  .get .row { gap: 10px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

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