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

:root {
  color-scheme: dark;
  --ground: #15111B;
  --panel: #221B29;
  --panel-raised: #2E2436;
  --edge: #3A2E40;
  --text: #F3EADB;
  --muted: #D9CDBC;
  --soft: #E6DACA;
  --accent: #F4B347;
  --accent-bright: #FFD08A;
  --accent-ink: #2A1500;
  --accent-shadow: #B76A12;
  --accent-tint: #3B2A16;
  --eyebrow: #E7A866;
  --teal: #5ED6C4;
  --bubble: #FCF7EF;
  --bubble-ink: #2E2129;
  --bubble-shadow: #A4886A;
  --bezel: #0B090E;
  --daylight: #C9A27F;
  --display: "Lilita One", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

img, video { max-width: 100%; height: auto; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }

.icon { flex: none; }

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

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img:first-child { border-radius: 12px; border: 2px solid var(--edge); }
.brand .wordmark { width: auto; height: 40px; }

.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav > a:not(.button) {
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.nav > a[aria-current="page"] { background: var(--panel); border-color: var(--edge); color: var(--accent); }

.languages { position: relative; margin-inline: 4px; }
.languages summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.languages summary::-webkit-details-marker { display: none; }
.languages[open] summary { border-color: var(--accent); }
.languages[open] .chevron { transform: rotate(180deg); }
.languages ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel-raised);
  border: 2px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgb(0 0 0 / 0.45);
}
.languages li a {
  display: block;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.languages li a:hover { background: var(--panel); }
.languages li a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 900; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 5px 0 var(--accent-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.button:hover { color: var(--accent-ink); background: var(--accent-bright); }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-shadow); }
.button-small { padding: 10px 18px; border-radius: 999px; font-size: 17px; box-shadow: 0 4px 0 var(--accent-shadow); gap: 8px; }
.button-large { padding: 18px 28px; border-radius: 20px; font: 26px/1.1 var(--display); box-shadow: 0 6px 0 var(--accent-shadow); gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; text-decoration: none; }

.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 60px; width: auto; }

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  margin-top: 8px;
  padding: 56px 48px 0;
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgb(21 17 27 / 0.96) 0%, rgb(21 17 27 / 0.8) 44%, rgb(21 17 27 / 0.22) 100%),
    url("/img/workshop.webp") center 30% / cover;
}

.hero-copy { flex: 1 1 460px; min-width: 0; padding-bottom: 56px; }
.hero h1 { font-size: clamp(46px, 7vw, 76px); line-height: 1.02; margin-bottom: 20px; }
.hero h1 em { display: block; font-style: normal; color: var(--accent); }
.lead { max-width: 540px; font-size: 21px; line-height: 1.5; color: var(--soft); }
.lead + .button { margin-top: 28px; }

.hero-art {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}
.hero-art img { width: 420px; display: block; margin-bottom: -24px; }

.bubble {
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 2;
  max-width: 250px;
  margin: 0;
  padding: 14px 18px;
  background: var(--bubble);
  color: var(--bubble-ink);
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 5px 0 var(--bubble-shadow);
}

.checklist { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.checklist li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(34 27 41 / 0.9);
  border: 2px solid var(--edge);
  font-weight: 800;
  font-size: 15px;
}
.checklist .icon { color: var(--teal); stroke-width: 2.6; }

/* Home hero: the game plays in a phone, Klink stands beside it */

.hero-home { align-items: center; padding-bottom: 48px; }
.hero-home .hero-copy { padding-bottom: 0; }
.hero-home h1 { font-size: clamp(42px, 6vw, 62px); line-height: 1.04; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 28px 0 0; }
.get-note { font-weight: 900; color: var(--accent); }

.hero-stage {
  flex: 1 1 380px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  max-width: 460px;
  margin-inline: auto;
}
.hero-phone { position: relative; z-index: 0; width: 264px; flex: none; margin-right: 8px; }
.hero-klink { position: absolute; left: 0; bottom: -72px; z-index: 1; width: 250px; }
.hero-stage .bubble { top: auto; bottom: 200px; max-width: 176px; }

.phone {
  padding: 6px;
  background: var(--bezel);
  border-radius: 13.5% / 6.3%;
  box-shadow: 0 0 0 2px var(--edge), 0 22px 44px rgb(0 0 0 / 0.5);
}
.phone img, .phone video { display: block; width: 100%; border-radius: 11.6% / 5.4%; background: var(--panel); }

/* One slim line of promises */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
  margin-top: 26px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  color: var(--soft);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--teal); stroke-width: 3; }

/* Pills */

.pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 20px;
}
.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
}
.pill-label { display: block; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eyebrow); }
.pill-value { display: block; font: 22px/1.1 var(--display); }

/* Sections and cards */

.section { margin-top: 88px; }
.section-heading { font-size: clamp(34px, 5vw, 44px); margin-bottom: 6px; }
.section-heading + .screens, .section-heading + .showcases { margin-top: 28px; }
.section-lead { max-width: 640px; margin: 0 0 24px; font-size: 19px; color: var(--muted); }

.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 56px; }
.layout-flush { margin-top: 0; gap: 24px; }

.toc {
  position: sticky;
  top: 24px;
  flex: 1 1 240px;
  padding: 18px 12px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
}
.toc .eyebrow { margin: 0 0 8px 12px; font-size: 12px; letter-spacing: 0.1em; }
.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.toc a:hover { background: var(--panel-raised); color: var(--text); }
.toc-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--ground);
  border: 2px solid var(--edge);
  color: var(--accent);
  font: 15px/1 var(--display);
}

.cards { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
}
.card-highlight { border-color: var(--accent); }
.card-body { min-width: 0; color: var(--muted); }
.card-body h2 { font-size: 30px; margin: 6px 0 10px; color: var(--text); }
.card-body .button { margin-top: 18px; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-shadow);
}
.card-icon-teal { background: var(--teal); color: #0E2B28; box-shadow: 0 4px 0 #2A8F80; }

.points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; align-items: flex-start; gap: 10px; color: var(--soft); }
.points .icon { margin-top: 5px; color: var(--teal); stroke-width: 3; }

/* Support */

.faq { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--panel); border: 2px solid var(--edge); border-radius: var(--radius); }
.faq details[open] { border-color: var(--accent); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details:not([open]) .card-icon { background: var(--accent-tint); color: var(--accent); box-shadow: none; }
.faq .card-icon { width: 44px; height: 44px; }
.faq-question { flex: 1; font: 24px/1.2 var(--display); }
.chevron { color: var(--bubble-shadow); transition: transform 0.15s; }
.faq details[open] .chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 22px 22px 82px; color: var(--muted); }

.data-card { flex: 1 1 300px; padding: 24px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--radius); }
.data-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.data-card-head img { border-radius: 50%; border: 3px solid var(--teal); }
.data-card h2 { font-size: 26px; }
.data-card .data-answer { font: 40px/1 var(--display); color: var(--teal); margin-bottom: 16px; }
.data-card p { color: var(--muted); }
.data-card .link-arrow { margin-top: 6px; }

/* Home: Klink from wreck to rebuilt, on the workshop floor in daylight */

.band {
  margin-top: 28px;
  border-block: 2px solid var(--edge);
  background: var(--daylight) url("/img/workshop-day.webp") center 60% / cover;
}
.stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 150px 0 30px;
  list-style: none;
}
.stages li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stages img { width: auto; height: 200px; filter: drop-shadow(0 14px 10px rgb(70 36 12 / 0.4)); }
.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgb(46 33 41 / 0.92);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.stage-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 15px/1 var(--display);
}

/* Home: screens */

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 4px 4px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.screens li { scroll-snap-align: start; }
.screens figure { margin: 0; }
.screens .phone { box-shadow: 0 0 0 2px var(--edge); }
.screens figcaption { margin-top: 14px; font-weight: 800; color: var(--muted); text-align: center; }

/* Home: a screen beside what it shows, then the smaller features */

.showcases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.showcase { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 28px; }
.showcase .phone { box-shadow: 0 0 0 2px var(--edge); }
.showcase h3 { font-size: 30px; margin-bottom: 10px; }
.showcase p { color: var(--muted); }

.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.variants li { display: flex; align-items: center; gap: 10px; font: 20px/1.1 var(--display); }
.variants img { width: 44px; height: 44px; flex: none; }

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 2px solid var(--edge);
  list-style: none;
}
.feature img { display: block; width: 64px; height: 64px; margin-bottom: 14px; }
.feature h3 { font-size: 24px; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Home: free next to Klink Complete */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
}
.plan-complete { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-tint), var(--panel) 62%); }
.plan h3 { font-size: 26px; }
.plan-price { margin: 10px 0 2px; font: 56px/1 var(--display); color: var(--accent); }
.plan-note { margin-bottom: 22px; color: var(--muted); }
.plan .store-badge { margin-top: auto; padding-top: 28px; }

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px 20px;
  height: 100%;
  padding: 24px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}
.link-card:hover { border-color: var(--accent); color: var(--muted); }
.link-card-title { display: block; font: 26px/1.15 var(--display); color: var(--text); margin-bottom: 4px; }
.link-card .link-arrow { grid-column: 2; color: var(--accent); }

/* Phones get the App Store one thumb away, whenever no badge is on screen */

.sticky-get { display: none; }

/* 404 */

.missing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-block: 48px; text-align: center; }
.missing img { width: 220px; border-radius: 50%; border: 4px solid var(--edge); }
.missing-code { margin: 0; font: 64px/1 var(--display); color: var(--accent); }
.missing h1 { font-size: 28px; margin-bottom: 14px; }
.missing-language + .missing-language { margin-top: 20px; }

/* Footer */

.site-footer { margin-top: 88px; border-top: 2px solid var(--edge); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 50%; border: 3px solid var(--accent); }
.footer-title { font-weight: 800; }
.footer-meta { font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; gap: 20px; font-size: 15px; font-weight: 800; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

/* Tablets */

@media (max-width: 1000px) {
  .showcases { grid-template-columns: 1fr; gap: 40px; }
  .showcase { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages img { height: 150px; }
  .stages { padding-top: 120px; }
  .stage-label { font-size: 13px; }
}

/* Phones */

@media (max-width: 760px) {
  .toc { display: none; }
  .hero {
    padding: 36px 22px 0;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgb(21 17 27 / 0.95) 0%, rgb(21 17 27 / 0.82) 48%, rgb(21 17 27 / 0.3) 100%),
      url("/img/workshop.webp") 70% 30% / cover;
  }
  .hero-copy { padding-bottom: 8px; }
  .nav .button-small { display: none; }
  .hero-art { min-height: 340px; }
  .hero-art img { width: 270px; }
  .bubble { max-width: 220px; font-size: 16px; }
  .lead { font-size: 19px; }
  .button-large { font-size: 21px; padding: 16px 20px; }

  .hero-home { padding-bottom: 28px; }
  .hero-home .hero-copy { padding-bottom: 12px; }
  .hero-stage { flex-basis: 100%; max-width: none; }
  .hero-phone { width: 188px; margin-right: 0; }
  .hero-klink { left: -14px; bottom: -44px; width: 170px; }
  .hero-stage .bubble { bottom: 132px; max-width: 120px; padding: 10px 12px; font-size: 14px; }

  .trust { justify-content: flex-start; gap: 8px 20px; }

  .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pill { padding: 12px; gap: 10px; }
  .pill:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pill-icon { width: 36px; height: 36px; }
  .pill-value { font-size: 19px; }

  .section { margin-top: 64px; }
  .card { display: block; padding: 20px; }
  .card-icon { float: left; width: 40px; height: 40px; margin-right: 12px; border-radius: 12px; }
  .card-body h2 { display: flex; align-items: center; min-height: 44px; margin: 0 0 10px; font-size: 24px; }
  .faq .card-icon { float: none; margin-right: 0; }
  .faq summary { padding: 16px; gap: 12px; }
  .faq-question { font-size: 20px; }
  .faq-answer { padding: 0 16px 18px; }

  .band { background-size: auto 190%; background-position: 34% 100%; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; padding: 84px 0 24px; }
  .stages img { height: 116px; }
  .stage-label { padding-right: 10px; gap: 6px; }
  .stage-number { width: 22px; height: 22px; font-size: 13px; }

  .screens { grid-template-columns: repeat(4, 62%); gap: 18px; }

  .showcase { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 18px; }
  .showcase h3 { font-size: 24px; }
  .variants { grid-template-columns: 1fr; gap: 8px; }
  .variants li { font-size: 18px; }
  .variants img { width: 34px; height: 34px; }

  .features { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; padding-top: 32px; }
  .feature { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .feature img { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .feature h3 { font-size: 22px; }

  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .link-cards { grid-template-columns: 1fr; }

  body:has(.sticky-get) { padding-bottom: 76px; }
  .sticky-get {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgb(34 27 41 / 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 2px solid var(--edge);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.25s, visibility 0.25s;
  }
  .sticky-get:hover { color: var(--muted); }
  .sticky-get img { flex: none; border-radius: 11px; border: 2px solid var(--edge); }
  .sticky-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .sticky-title { font: 19px/1.1 var(--display); color: var(--text); }
  .watches-badges .sticky-get:not(.is-shown) { transform: translateY(110%); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .chevron, .sticky-get { transition: none; }
}
