/* stow.page: a Duolingo-style playground in orange.
   Flat colours, no gradients, no box-shadows. Depth comes from a thicker bottom
   edge. One radius (12px). Sizes snap to 12/14/16/18/20/24/30/36/48/60/72 and
   spacing to 2/4/8/12/16/24/32/40/48/64/80/96. The site speaks Nunito; a product
   may bring its own font for its wordmark only (Libero: Luckiest Guy TR). */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  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: "Nunito";
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  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;
}
/* Maps lowercase i to İ: the LİBERO wordmark only, never English text. */
@font-face {
  font-family: "Luckiest Guy TR";
  src: url("/fonts/LuckiestGuy-TR.ttf") format("truetype");
  font-display: swap;
}

:root {
  --orange: #ff6b1a;         /* fills only: 2.85:1 on white, never text */
  --orange-edge: #d9520a;    /* pressable bottom edge of orange fills */
  --orange-display: #ee5a0a; /* headings 30px and up: 3.44:1 */
  --orange-ink: #c2410c;     /* links and small orange text: 5.18:1 */
  --orange-line: #ffb98a;    /* outlines only */
  --blue: #499dee;
  --blue-ink: #1f6fbf;
  --navy: #042c60;
  --midnight: #0b0d2a;
  --text: #3c3c3c;
  --body: #4b4b4b;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --paper: #ffffff;
  --live: #15803d;
  --live-line: #a7e3c4;

  --radius: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-ink); text-underline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--midnight);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mark {
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: var(--orange-display);
  text-decoration: none;
}
.mark span { color: var(--text); }
.top nav { display: flex; gap: 24px; }
.top nav a {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--orange-ink); }

/* ---------- type ---------- */
.display {
  margin: 0;
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--orange-display);
}
.display-sm { font-size: clamp(30px, 4vw, 48px); }
.heading {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.lead { margin: 24px 0 0; font-size: 20px; line-height: 28px; color: var(--body); }

/* ---------- buttons and pills ---------- */
.btn {
  display: block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s var(--ease), border-color 0.3s var(--ease);
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: var(--orange);
  color: var(--midnight);
  border: 2px solid var(--orange);
  border-bottom: 4px solid var(--orange-edge);
}
.btn-primary:hover { background: #ff7a30; }
.btn-ghost {
  background: var(--paper);
  color: var(--blue-ink);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
}
.btn-ghost:hover { border-color: var(--blue); }

.pill {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 2px solid;
  font-weight: 800;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-soon { color: var(--orange-ink); border-color: var(--orange-line); background: var(--paper); }
.pill-live { color: var(--live); border-color: var(--live-line); background: var(--paper); }

/* ---------- gameplay clips ---------- */
.clip {
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  border-bottom-width: 6px;
  background: var(--paper);
}
.clip video, .clip img { width: 100%; aspect-ratio: 576 / 390; object-fit: cover; }
.clip-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .clip video { display: none; }
  .clip-still { display: block; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 96px;
}
.cta-stack { display: grid; gap: 16px; margin-top: 40px; max-width: 360px; }
.hero-art { position: relative; padding: 48px 32px; }
.clip-hero { position: relative; z-index: 1; border-width: 3px; border-bottom-width: 8px; }
.prop { position: absolute; width: 96px; z-index: 2; }
.prop-a { left: -8px;  top: 0;     transform: rotate(-10deg); }
.prop-b { right: 0;    top: -8px;  width: 80px; transform: rotate(12deg); }
.prop-c { right: -8px; bottom: 8px; transform: rotate(-6deg); }
.prop-d { left: 8px;   bottom: 0;  width: 80px; }

/* ---------- spotlight ---------- */
.spot-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 48px; }
.app-icon { width: 112px; height: 112px; border-radius: 24px; border: 3px solid var(--line); border-bottom-width: 6px; }
.wordmark-libero {
  margin: 24px 0 0;
  font-family: "Luckiest Guy TR", var(--font);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--orange);
}
.kind { margin: 12px 0 24px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--text); }

/* big statement; words ink in one by one where scroll timelines exist */
.reveal { padding-top: 96px; padding-bottom: 64px; text-align: center; }
.reveal-text {
  max-width: 880px;
  margin: 0 auto;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
.reveal-sub { max-width: 560px; margin: 24px auto 0; font-size: 18px; line-height: 28px; color: var(--muted); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-text .w {
      animation: ink linear both;
      animation-timeline: view();
      animation-range: entry calc(40% + var(--i) * 5%) cover calc(42% + var(--i) * 3%);
    }
    .reveal-text .w:nth-child(1) { --i: 0; }
    .reveal-text .w:nth-child(2) { --i: 1; }
    .reveal-text .w:nth-child(3) { --i: 2; }
    .reveal-text .w:nth-child(4) { --i: 3; }
    .reveal-text .w:nth-child(5) { --i: 4; }
    .reveal-text .w:nth-child(6) { --i: 5; }
    .reveal-text .w:nth-child(7) { --i: 6; }
    .reveal-text .w:nth-child(8) { --i: 7; }
    .reveal-text .w:nth-child(9) { --i: 8; }
    .reveal-text .w:nth-child(10) { --i: 9; }
    .reveal-text .w:nth-child(11) { --i: 10; }
  }
}
@keyframes ink {
  from { color: rgba(4, 44, 96, 0.22); }
  to { color: var(--navy); }
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 480px; }
.feature-copy p { margin: 16px 0 0; font-size: 18px; line-height: 28px; }

.powers { padding-top: 64px; padding-bottom: 64px; }
.powers-head { max-width: 640px; }
.powers-head p { margin: 16px 0 0; font-size: 18px; line-height: 28px; }
.power-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
}
.power-grid p {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}

.icon-row { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding: 0; }
.icon-row img { width: 64px; height: 64px; }

/* ---------- products ---------- */
.products { padding-top: 96px; padding-bottom: 96px; }
.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
}
.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  color: var(--body);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.15s var(--ease);
}
.tile:hover { border-color: var(--orange-line); }
.tile:active { transform: translateY(2px); }
.tile img { width: 64px; height: 64px; flex: none; border-radius: 16px; }
.tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tile-name { font-weight: 800; font-size: 20px; line-height: 28px; color: var(--text); }
.tile-kind { font-size: 14px; line-height: 20px; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--midnight);
  border-top: 4px solid var(--orange);
  color: #b9bbcc;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.mark-light { color: var(--orange); }
.mark-light span { color: var(--paper); }
.foot-brand p { max-width: 320px; margin: 16px 0 0; font-size: 16px; line-height: 24px; }
.foot-h {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
}
.site-foot ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.site-foot a { color: #e8e9f2; text-decoration: none; overflow-wrap: anywhere; }
.site-foot a:hover { color: var(--orange); }
.site-foot :focus-visible { outline-color: var(--orange); }
.foot-base { padding-bottom: 32px; font-size: 14px; line-height: 20px; }
.foot-base p { margin: 0; padding-top: 24px; border-top: 2px solid #1d2045; }

/* ---------- text pages (support, legal, 404) ---------- */
.page { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.page h1 { margin: 0; }
.page .updated { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.page h2 { margin: 48px 0 0; font-weight: 800; font-size: 24px; line-height: 32px; color: var(--navy); }
.page h3 { margin: 32px 0 0; font-weight: 800; font-size: 18px; line-height: 28px; color: var(--text); }
.page p, .page ul { margin: 12px 0 0; font-size: 16px; line-height: 26px; }
.page ul { padding-left: 24px; }
.page li + li { margin-top: 8px; }
.page strong { color: var(--text); font-weight: 800; }
.page .lead { margin-top: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  font-weight: 800;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.toc a:hover { border-color: var(--orange-line); }

.contact-card {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
}
.contact-card p { margin: 0; }
.contact-card .btn { display: inline-block; margin-top: 16px; }

.faq { margin-top: 16px; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 24px;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange-ink); font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0; padding: 0 24px 16px; }

.notfound { padding-top: 96px; padding-bottom: 96px; }
.notfound .cta-stack { margin-top: 32px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 64px; }
  .hero-art { padding: 32px 16px; }
  .prop { width: 64px; }
  .prop-b, .prop-d { width: 56px; }
  .cta-stack { max-width: none; }
  .reveal { padding-top: 64px; padding-bottom: 48px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .feature.flip .feature-copy { order: 0; }
  .powers { padding-top: 48px; padding-bottom: 48px; }
  .power-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .power-grid p { font-size: 16px; line-height: 24px; margin-top: 8px; }
  .icon-row img { width: 48px; height: 48px; }
  .products { padding-top: 64px; padding-bottom: 64px; }
  .tiles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
  .page { padding-top: 40px; padding-bottom: 64px; }
}

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