@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Studio tokens follow the Leger Studio mark: ink navy with emerald, teal and sky blocks.
   Each app card carries its own app's palette (see the .app--* blocks below). */
:root {
  color-scheme: light dark;
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #536072;
  --hairline: #e2e6ec;
  --line-strong: #cbd2dc;
  --emerald: #10b981;
  --teal: #0ea5a3;
  --sky: #0ea5e9;
  --accent-text: #047857;
  /* Headline gradient: darker in light mode so large text keeps 3:1 on the canvas. */
  --hl-a: #059669;
  --hl-b: #0d9488;
  --hl-c: #0284c7;
  /* Outlines of controls and the focus ring keep 3:1 against what's behind them. */
  --control-line: #7b8799;
  --focus: #0369a1;
  --primary: #0b1220;
  --on-primary: #ffffff;
  --grid-line: 11 18 32;
  --shadow: 11 18 32;
  --radius: 28px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #070b14;
    --surface: #0f1626;
    --ink: #f1f4f8;
    --muted: #9ba7b9;
    --hairline: #1c2740;
    --line-strong: #2b3857;
    --accent-text: #34d399;
    --hl-a: #10b981;
    --hl-b: #0ea5a3;
    --hl-c: #0ea5e9;
    --control-line: #5d6c8a;
    --focus: #7dd3fc;
    --primary: #f1f4f8;
    --on-primary: #0b1220;
    --grid-line: 255 255 255;
    --shadow: 0 0 0;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

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

::selection {
  background: #a7f3d0;
  color: #0b1220;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(var(--grid-line) / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--grid-line) / 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 60% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 80% at 60% 0%, #000 35%, transparent 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(56px, 9vw, 116px) clamp(56px, 8vw, 104px);
}

.eyebrow {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 6.6vw, 78px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.hl {
  background: linear-gradient(100deg, var(--hl-a), var(--hl-b) 45%, var(--hl-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Keep descenders inside the clipped gradient. */
  padding-bottom: 0.12em;
  white-space: nowrap;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--quiet {
  border-color: var(--control-line);
}

.btn--quiet:hover {
  border-color: var(--ink);
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.btn--card {
  background: var(--card-accent);
  color: var(--card-on-accent);
}

.btn--card:hover {
  opacity: 0.9;
}

.btn--outline {
  border-color: var(--card-line);
  color: var(--card-ink);
}

.btn--outline:hover {
  border-color: var(--card-ink);
}

/* Hero tiles: the studio mark, rebuilt from the app icons.
   Three blocks form the L; the soft fourth tile is the next app. */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
  width: min(100%, 380px);
  margin-inline: auto;
}

.tiles__item {
  aspect-ratio: 1;
}

.tiles__item a {
  display: block;
  border-radius: 24%;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tiles__item a:hover {
  transform: translateY(-4px) scale(1.02);
}

.tiles__item img {
  width: 100%;
  border-radius: 24%;
  box-shadow:
    0 1px 2px rgb(var(--shadow) / 0.1),
    0 18px 40px -12px rgb(var(--shadow) / 0.32);
}

.tiles__item--next {
  display: grid;
  place-items: center;
}

.tiles__item--next span {
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 24%;
  border: 2px dashed color-mix(in srgb, var(--emerald) 55%, transparent);
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  color: var(--accent-text);
}

.tiles__item--next svg {
  width: 30%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* Sections */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section__head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 50px);
}

/* App cards */

.app {
  --card-bg: var(--surface);
  --card-ink: var(--ink);
  --card-muted: var(--muted);
  --card-accent: var(--primary);
  --card-on-accent: var(--on-primary);
  --card-line: var(--control-line);
  --card-pill: rgb(0 0 0 / 0.06);
  --focus: var(--card-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: var(--card-bg);
  color: var(--card-ink);
  scroll-margin-top: 88px;
}

.app + .app {
  margin-top: clamp(20px, 3vw, 32px);
}

.app--flip .app__body {
  order: 2;
}

.app__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}

.app__id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app__icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 23%;
  box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.35);
}

.app__id h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: var(--card-pill);
  color: var(--card-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.pill__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--card-accent);
}

.app__tagline {
  margin-top: 28px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.app__desc {
  margin-top: 16px;
  max-width: 32em;
  color: var(--card-muted);
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card-accent);
  -webkit-mask: url("/assets/check.svg") center / contain no-repeat;
  mask: url("/assets/check.svg") center / contain no-repeat;
}

.app__note {
  margin-top: 28px;
  color: var(--card-muted);
  font-size: 15px;
  font-weight: 600;
}

.app__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 580px;
  padding-top: 56px;
  overflow: hidden;
}

.phone {
  width: min(292px, 78%);
  padding: 9px;
  border-radius: 46px;
  background: #0b0e14;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08) inset,
    0 30px 60px -20px rgb(0 0 0 / 0.45);
}

.phone img {
  width: 100%;
  border-radius: 37px;
}

/* Still Small Voice: Ink & Ivory */
.app--ssv {
  --card-bg: #e0e7ee;
  --card-ink: #242d38;
  --card-muted: #4c5965;
  --card-accent: #3b5570;
  --card-on-accent: #f5f3ee;
  --card-line: #6f8296;
  --card-pill: #cdd8e2;
}

/* Commit It: Clear by default */
.app--commit {
  --card-bg: #e6ebfe;
  --card-ink: #12151c;
  --card-muted: #4b5162;
  --card-accent: #365cf5;
  --card-on-accent: #ffffff;
  --card-line: #6f80d6;
  --card-pill: #d3dbfc;
}

/* Golden Quest: night navy and gold in both themes */
.app--quest {
  --card-bg: #0e1525;
  --card-ink: #f3e9d2;
  --card-muted: #a9b1c4;
  --card-accent: #d4a73a;
  --card-on-accent: #0e1525;
  --card-line: #6b7a9e;
  --card-pill: #18223a;
}

@media (prefers-color-scheme: dark) {
  .app--ssv {
    --card-bg: #24364b;
    --card-ink: #f5f3ee;
    --card-muted: #c3cfdb;
    --card-accent: #f5f3ee;
    --card-on-accent: #24364b;
    --card-line: #8399b3;
    --card-pill: #2f445c;
  }

  .app--commit {
    --card-bg: #1a2038;
    --card-ink: #f2f3f6;
    --card-muted: #a5abb8;
    --card-accent: #a8b9ff;
    --card-on-accent: #0c0e13;
    --card-line: #6f7db3;
    --card-pill: #252c47;
  }

  .app--quest {
    box-shadow: 0 0 0 1px #1f2a44 inset;
  }
}

.app__media--quest {
  align-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 50% 50%, rgb(212 167 58 / 0.2), transparent 58%),
    url("/assets/apps/golden-quest-contours.svg") center / cover no-repeat;
}

.compass {
  width: min(248px, 56%);
  border-radius: 23%;
  box-shadow:
    0 0 0 1px rgb(242 207 107 / 0.25),
    0 0 90px rgb(212 167 58 / 0.28),
    0 30px 60px -20px rgb(0 0 0 / 0.7);
}

.compass img {
  width: 100%;
  border-radius: 23%;
}

/* Approach */

.section--approach {
  padding-top: clamp(24px, 4vw, 48px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.principle {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Line icons in a soft tile tinted with the icon's own color. */
.principle__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.principle__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle__icon--a {
  color: #047857;
}

.principle__icon--b {
  color: #0f766e;
}

.principle__icon--c {
  color: #0369a1;
}

@media (prefers-color-scheme: dark) {
  .principle__icon--a {
    color: #34d399;
  }

  .principle__icon--b {
    color: #2dd4bf;
  }

  .principle__icon--c {
    color: #38bdf8;
  }
}

.principle h3 {
  margin-top: 22px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* FAQ */

.section--faq {
  padding-top: 0;
}

.faq {
  max-width: 820px;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -9px;
  border-right: 2.2px solid var(--muted);
  border-bottom: 2.2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq details p {
  max-width: 44em;
  padding-bottom: 22px;
  color: var(--muted);
}

.faq a,
.legal a {
  color: var(--accent-text);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Contact */

.section--contact {
  padding-top: 0;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  --focus: #ffffff;
  background: #0b1220;
  color: #f1f4f8;
  background-image:
    radial-gradient(60% 120% at 100% 0%, rgb(14 165 233 / 0.22), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgb(16 185 129 / 0.2), transparent 60%);
}

@media (prefers-color-scheme: dark) {
  .contact {
    box-shadow: 0 0 0 1px var(--hairline) inset;
  }
}

.contact h2 {
  max-width: 15em;
  font-size: clamp(26px, 3.4vw, 38px);
}

.contact p {
  margin-top: 12px;
  color: #a9b4c6;
}

.contact .btn--primary {
  background: #ffffff;
  color: #0b1220;
}

.merchant {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.merchant a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 15px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  display: inline-block;
  padding-block: 4px;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
}

.legal h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 54px);
}

.legal__meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.legal h2 {
  margin-top: 44px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal p,
.legal ul {
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
  list-style: disc;
}

.legal li + li {
  margin-top: 8px;
}

/* Not found */

.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding-block: 64px;
  text-align: center;
}

.lost h1 {
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 60px);
}

.lost p {
  margin-top: 16px;
  color: var(--muted);
}

.lost .actions {
  justify-content: center;
}

/* Small screens */

@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .tiles {
    width: min(100%, 300px);
    margin-inline: 0;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .app--flip .app__body {
    order: 0;
  }

  .app__body {
    padding-bottom: 8px;
  }

  .app__media {
    height: 400px;
    padding-top: 36px;
  }

  .app__media--quest {
    height: 300px;
    margin-top: 28px;
    padding-top: 0;
  }

  .compass {
    width: 168px;
  }

  .principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(1120px, 100% - 32px);
  }

  .nav a {
    padding: 8px 10px;
  }

  .nav a[href="#approach"],
  .nav a[href="#faq"] {
    display: none;
  }

  .btn {
    flex: 1 1 auto;
  }

  .contact .btn {
    width: 100%;
    padding: 0 16px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .tiles__item a,
  .faq summary::after {
    transition: none;
  }

  .btn:hover,
  .tiles__item a:hover {
    transform: none;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .nav a {
    padding: 8px 7px;
    font-size: 14px;
  }
}
