/* areyoufaster.com in the AYF family, shared with AYF Games: the company's digital palette (cyan for
   play, violet for make, amber for new), Inter self-hosted, headlines at poster weight, thin rules, the
   hexagon mark. Dark by default, light designed. Used by the home page (/) and AYF Mobile (/app).

   Marketing pages are stacks of full-screen slides. The scroll locks are switched on by
   /assets/js/ayf.js only when every slide fits the screen, the screen is at least 600 px tall, text is
   not enlarged and reduced motion is not asked for. Without them the page scrolls normally. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-button: 12px; --radius-card: 16px; --radius-phone: 28px;
  --dur-fast: 120ms; --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --content-max: 1360px;
  --topbar: 64px;

  color-scheme: dark;
  --color-bg: #0B0F14;
  --color-surface-1: #121824;
  --color-surface-2: #1A2232;
  --color-line: #2A3242;
  --color-text: #EAF2FF;
  --color-text-muted: #A6AEBC;
  --color-play: #19E5FF;
  --color-on-play: #0B0F14;
  --color-make: #8F5FFF;
  --color-make-fill: #6B3FE6;
  --color-make-text: #AB90FF;
  --color-on-make: #FFFFFF;
  --color-link: #AB90FF;
  --color-new-text: #FFB321;
  --color-focus: #19E5FF;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --color-bg: #F6F7FB;
    --color-surface-1: #FFFFFF;
    --color-surface-2: #ECEEF5;
    --color-line: #D9DCE6;
    --color-text: #1F2430;
    --color-text-muted: #5A6272;
    --color-play: #0E7C8F;
    --color-on-play: #FFFFFF;
    --color-make: #5B2FD6;
    --color-make-fill: #5B2FD6;
    --color-make-text: #5B2FD6;
    --color-on-make: #FFFFFF;
    --color-link: #5B2FD6;
    --color-new-text: #8A5800;
    --color-focus: #5B2FD6;
  }
}

/* ---- Base ------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --gutter: 16px;
  scroll-padding-top: var(--topbar);
  background: var(--color-bg);
}
@media (min-width: 600px) { html { --gutter: 24px; } }
@media (min-width: 1440px) { html { --gutter: 32px; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-to-content {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-button);
  background: var(--color-text); color: var(--color-bg); font-weight: 700; text-decoration: none;
}
.skip-to-content:focus { top: var(--space-3); }

/* ---- Header: short and plain ------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--color-line); background: var(--color-bg); }
.topbar .inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--topbar); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--color-text); text-decoration: none; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.logo img { width: 32px; height: 32px; }
.menu-button {
  display: none; align-items: center; gap: var(--space-2); min-height: 44px; margin-left: auto; padding: 0 var(--space-4);
  border: 1px solid var(--color-line); border-radius: var(--radius-button); background: transparent; color: var(--color-text);
  font: inherit; font-weight: 700; cursor: pointer;
}
.menu ul { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-button); color: var(--color-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu a:hover { background: var(--color-surface-2); }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-make); }
.menu .paid a { border: 1px solid var(--color-text-muted); padding: 0 var(--space-4); }
.menu .paid a:hover { background: var(--color-surface-2); }

@media (min-width: 1024px) {
  .menu { flex: 1; }
  .menu ul { flex-wrap: nowrap; }
  .menu .paid { margin-left: auto; }
}
/* Small screens: the menu folds behind a button once the script is running. */
@media (max-width: 1023px) {
  .js .menu-button { display: inline-flex; }
  .js .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; border-bottom: 1px solid var(--color-line); background: var(--color-bg); }
  .js .menu.open { display: block; }
  .js .menu ul { display: grid; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); }
  .js .menu li + li { border-top: 1px solid var(--color-line); }
  .js .menu a { display: flex; min-height: 52px; padding: 0; border-radius: 0; font-size: 1.125rem; }
  .js .menu a:hover { background: transparent; text-decoration: underline; }
  .js .menu .paid a { border: 0; padding: 0; }
  .topbar .inner { flex-wrap: wrap; }
  html:not(.js) .menu { width: 100%; padding-bottom: var(--space-2); }
}

/* ---- Buttons and arrow links ------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: var(--radius-button);
  font-size: 1.0625rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: filter var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.button.play { background: var(--color-play); color: var(--color-on-play); }
/* Amber in both themes: dark text on the bright amber, light text on the deep one. */
.button.learn { background: var(--color-new-text); color: var(--color-bg); }
.button.make { background: var(--color-make-fill); color: var(--color-on-make); }
.button.secondary { border-color: var(--color-text-muted); background: transparent; color: var(--color-text); }
.button.play:hover, .button.make:hover, .button.learn:hover { filter: brightness(1.08); }
.button.secondary:hover { background: var(--color-surface-2); }
.go { display: inline-flex; gap: var(--space-2); align-items: baseline; min-height: 44px; align-content: center; padding-block: 10px; font-weight: 700; text-decoration: none; color: var(--color-link); }
.go:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.go .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.go:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

/* ---- Type --------------------------------------------------------------------------------- */
.kicker { color: var(--color-make-text); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.kicker.play { color: var(--color-play); }
.kicker.new { color: var(--color-new-text); }
.kicker.learn { color: var(--color-new-text); }
.headline { font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; text-wrap: balance; }
.title { font-size: clamp(2.5rem, min(6vw, 10svh), 5.5rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance; }
.lead { max-width: 46ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); text-wrap: pretty; }
.muted { color: var(--color-text-muted); }
.play-word { color: var(--color-play); }
.make-word { color: var(--color-make); }

/* ---- Slides -------------------------------------------------------------------------------- */
.slide {
  display: grid; align-content: center;
  min-height: calc(100svh - var(--topbar));
  padding-block: clamp(24px, 5svh, 64px);
  border-top: 1px solid var(--color-line);
}
.slide:first-child { border-top: 0; }
.slide > .wrap { display: grid; gap: var(--space-6); }
.slide > .wrap > * { min-width: 0; }
@media (max-height: 700px) { .slide { padding-block: 20px; } .slide > .wrap { gap: var(--space-5); } }

html.lock { scroll-snap-type: y mandatory; }
html.lock .slide { scroll-snap-align: start; scroll-snap-stop: always; }
html.lock .site-footer { scroll-snap-align: end; }
@media (min-width: 768px) {
  html.lock .slide > .wrap { padding-right: max(var(--gutter), 48px); }
}

/* You are here: dots on the right, one per slide. */
.dots { display: none; position: fixed; right: 8px; top: 50%; z-index: 40; transform: translateY(-50%); }
.dots ol { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dots a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.dots a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--color-text-muted); }
.dots a[aria-current="location"]::before { background: var(--color-text); border-color: var(--color-text); }
.dots a:hover::before { border-color: var(--color-text); }
@media (min-width: 768px) { html.lock .dots { display: block; } }

/* Screens: real product screens, framed by a thin rule. */
.phone { margin: 0; }
.phone img { border: 1px solid var(--color-line); border-radius: var(--radius-phone); background: var(--color-surface-1); }
figcaption { margin-top: var(--space-3); color: var(--color-text-muted); font-size: 0.875rem; }

/* ================================================================ Home (/) ==================== */
.hero > .wrap { gap: clamp(16px, 3.2svh, 32px); }
.hero .headline { font-size: clamp(3rem, min(10.4vw, 16.5svh), 10.5rem); }
.hero .headline span { display: block; }
.hero .lead { max-width: 40ch; }

/* The two doors, under the headline. */
.doors { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.door {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-1) var(--space-4);
  padding-top: var(--space-4); border-top: 3px solid var(--door, var(--color-play)); color: var(--color-text); text-decoration: none;
}
.door.web { --door: var(--color-play); }
.door.studio { --door: var(--color-make); }
.door.learn { --door: var(--color-new-text); }
.door .name { font-size: clamp(1.875rem, min(4.4vw, 7.5svh), 4.25rem); font-weight: 900; line-height: 1; letter-spacing: -0.035em; }
.door .where { grid-column: 1; color: var(--color-text-muted); font-weight: 600; }
.door .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--door); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1; transition: transform var(--dur-fast) var(--ease-out); }
.door:hover .name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.door:hover .arrow { transform: translateY(4px); }
/* Three doors (free education joined on 9 November 2026): side by side from 1024px, names a little smaller so each fits. */
@media (min-width: 1024px) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  /* Sized so "Free games studio", the longest, stays on one line from 1024px up: three even doors. */
  .door .name { font-size: clamp(1.75rem, min(2.75vw, 6.5svh), 2.625rem); }
}

/* A door, full screen. */
.door-slide > .wrap { align-items: center; }
.door-copy { display: grid; gap: var(--space-4); align-content: center; }
.door-copy .title { font-size: clamp(2.75rem, min(7vw, 12svh), 6.5rem); }
.door-copy .what { max-width: 40ch; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); text-wrap: pretty; }
.door-copy .who { max-width: 52ch; color: var(--color-text-muted); }
.door-copy .actions { margin-top: var(--space-2); }

.styles-fig { margin: 0; }
.styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.styles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface-1); }

.studio-art { justify-self: center; }
.learn-art img { width: 100%; height: auto; border: 1px solid var(--color-line); border-radius: 12px; }
.text-link { color: var(--color-link); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
.studio-art img { width: auto; height: min(600px, calc(100svh - var(--topbar) - 120px)); max-width: 100%; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }

@media (min-width: 1024px) {
  .door-slide > .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); }
  .door-slide.flip .door-copy { order: 2; }
  .styles { gap: var(--space-4); }
  .styles-fig { max-width: min(100%, calc((100svh - var(--topbar) - 170px) * 4 / 3)); justify-self: end; }
}
@media (max-width: 1023px) {
  .door-copy { gap: var(--space-3); }
  .door-copy .who { font-size: 0.9375rem; line-height: 1.45; }
  .styles-fig .styles img:nth-child(n+3) { display: none; }
  .styles img { aspect-ratio: 16 / 10; }
}

/* Our apps. */
.apps > .wrap { align-items: center; }
.app-rows { display: grid; border-bottom: 1px solid var(--color-line); }
.app-rows li { border-top: 1px solid var(--color-line); }
.app-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-4); padding-block: clamp(10px, 1.8svh, 18px); color: var(--color-text); text-decoration: none; }
.app-row img { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 12px; }
.app-row .name { font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.app-row .line { grid-column: 2; color: var(--color-text-muted); line-height: 1.4; }
.app-row .arrow { grid-column: 3; grid-row: 1 / span 2; color: var(--color-link); font-weight: 800; transition: transform var(--dur-fast) var(--ease-out); }
.app-row:hover .name { text-decoration: underline; text-underline-offset: 0.15em; }
.app-row:hover .arrow { transform: translateX(4px); }
@media (max-width: 599px) {
  .app-row { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--space-3); }
  .app-row img { width: 40px; height: 40px; border-radius: 10px; }
  .app-row .name { font-size: 1.125rem; }
  .app-row .line { font-size: 0.9375rem; }
}
@media (min-width: 1024px) {
  .apps > .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-8); }
}

/* The company, the last slide. */
.company > .wrap { gap: var(--space-6); }
.paid-line { padding-block: var(--space-4); border-block: 1px solid var(--color-line); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 600; text-wrap: pretty; }
.paid-line a { font-weight: 800; color: var(--color-text); text-decoration-thickness: 2px; }
.company-head { display: grid; gap: var(--space-5); align-content: start; }
.company-head .mark { width: 72px; height: 72px; }
.company-head .lead { max-width: 34ch; font-weight: 600; }
.facts { display: grid; border-top: 1px solid var(--color-line); }
.facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--color-line); }
.facts dt { color: var(--color-text-muted); font-size: 0.875rem; font-weight: 600; }
.facts dd { font-size: 1.0625rem; font-weight: 600; }
.facts dd a { color: var(--color-text); }
@media (min-width: 600px) { .facts > div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-5); align-items: baseline; } }
@media (min-width: 1024px) {
  .company-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); align-items: start; }
}
@media (max-width: 1023px) { .company-body { display: grid; gap: var(--space-6); } }

/* ================================================================ AYF Mobile (/app) =========== */
.tour > .wrap { align-items: center; }
.tour-copy { display: grid; gap: var(--space-4); align-content: center; }
.tour-copy .title { font-size: clamp(2.5rem, min(5.6vw, 10svh), 5.25rem); }
.tour-copy p { max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); text-wrap: pretty; }
.tour-copy p.proof { color: var(--color-text-muted); font-size: 1rem; }
.app-hero .headline { font-size: clamp(3rem, min(8vw, 13svh), 8rem); }
.app-hero .lead { max-width: 36ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); list-style: none; margin: 0; padding: 0; color: var(--color-text-muted); font-weight: 600; }
.chips li { display: inline-flex; align-items: center; gap: var(--space-2); }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-play); }
.tour-art { justify-self: center; }
.tour-art img { width: auto; height: min(780px, calc(100svh - var(--topbar) - 96px)); max-width: 100%; aspect-ratio: 369 / 800; }
.tour.solo .tour-copy { max-width: 60rem; }
.tour.solo .title { font-size: clamp(3rem, min(9vw, 14svh), 9rem); }
.icon-art img { width: clamp(80px, 18vw, 240px); height: auto; aspect-ratio: 1; }
.why-list { display: grid; border-top: 1px solid var(--color-line); }
.why-list li { padding-block: clamp(10px, 1.8svh, 16px); border-bottom: 1px solid var(--color-line); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.why-list b { font-weight: 800; }
.why-list span { color: var(--color-text-muted); }
.store-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.store-buttons .button { min-width: min(15rem, 100%); max-width: 100%; white-space: normal; text-align: center; }
.store-notes { display: grid; gap: var(--space-1); color: var(--color-text-muted); list-style: none; margin: 0; padding: 0; }
.faq { display: grid; border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; min-height: 56px; padding-block: var(--space-3); font-size: 1.125rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--color-link); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 70ch; padding-bottom: var(--space-4); color: var(--color-text-muted); }
@media (min-width: 1024px) {
  .tour > .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-8); }
  .tour.flip .tour-copy { order: 2; }
  .tour.solo > .wrap { grid-template-columns: minmax(0, 1fr); }
  .why > .wrap, .faq-slide > .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); align-items: start; }
}
/* Phones and tablets: the copy first, and the screen takes the room that is left. */
@media (max-width: 1023px) {
  .tour, .door-slide { align-content: stretch; }
  .tour > .wrap, .door-slide > .wrap { display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
  .tour-art, .studio-art { display: flex; flex: 1 1 0; min-height: 150px; max-height: 640px; }
  .app-hero .tour-art { min-height: 110px; }
  .tour-art img, .studio-art img { width: min(100%, 369px); height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; }
  .tour-copy p { font-size: 1.0625rem; }
  .tour-copy p.proof { font-size: 0.9375rem; }
  .app-hero .actions .go { display: none; }
}

/* ---- Footer ----------------------------------------------------------------------------------- */
.site-footer { padding: var(--space-7) 0 var(--space-6); border-top: 1px solid var(--color-line); background: var(--color-surface-1); }
.site-footer .columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6); }
.site-footer .heading { margin-bottom: var(--space-2); font-size: 1rem; font-weight: 700; }
.site-footer ul { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.site-footer ul a { display: inline-block; padding-block: 6px; color: var(--color-text-muted); }
.site-footer ul a:hover { color: var(--color-text); }
.site-footer .base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-line); color: var(--color-text-muted); font-size: 0.875rem; }
.site-footer .base img { width: 32px; height: 32px; }
.site-footer .legal { max-width: 80ch; }

/* ---- Reduced motion: nothing moves --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
