:root {
  --paper: #fbf7eb;
  --paper-light: #fffdf7;
  --ink: #122844;
  --muted: #69778e;
  --blue: #004ecb;
  --blue-dark: #0041ad;
  --rule: #d8cda9;
  --line: #bfd9f3;
  --plus: #f6bd16;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.15);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 8px / 100% 32px,
    var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--plus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 0.8rem;
  border-radius: 0.35rem;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 241, 223, 0.93);
  border-bottom: 2px solid rgba(16, 35, 63, 0.12);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 850;
  font-family: "Marker Felt", "Bradley Hand", ui-rounded, system-ui, sans-serif;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  display: block;
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--plus);
}

.pip {
  width: 7px;
  height: 7px;
  align-self: center;
  justify-self: center;
  border-radius: 999px;
  background: var(--ink);
}

.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  object-fit: cover;
  vertical-align: middle;
}

.brand span:last-child { line-height: 1.05; }

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 0.45rem 0.65rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  font-weight: 720;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover { color: var(--blue-dark); }

.language-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.3rem;
  border-left: 2px solid rgba(16, 35, 63, 0.15);
}

.language-links a,
.language-links strong {
  min-width: 2.1rem;
  text-align: center;
  padding: 0.24rem 0.35rem;
  border-radius: 0.35rem;
}

.language-links strong {
  background: var(--ink);
  color: var(--white);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: center;
  padding-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.93;
  letter-spacing: 0;
  font-family: "Marker Felt", "Bradley Hand", ui-rounded, system-ui, sans-serif;
  font-weight: 900;
}

h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  font-family: "Marker Felt", "Bradley Hand", ui-rounded, system-ui, sans-serif;
  font-weight: 900;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.store-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.74rem 1rem;
  border: 3px solid var(--ink);
  border-color: var(--blue);
  border-radius: 1.65rem;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover,
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--blue);
}

.store-button.secondary {
  background: var(--paper-light);
  color: var(--blue);
}

.store-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.note {
  max-width: 35rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.phone-wrap {
  display: grid;
  place-items: center;
  min-height: 620px;
}

.screenshot-cluster {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 1rem;
  align-items: center;
}

.app-shot {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border: 4px solid var(--ink);
  border-radius: 1.6rem;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.app-shot.primary {
  transform: rotate(2deg);
}

.app-shot.secondary-shot {
  width: 76%;
  margin: 2rem auto 0;
  transform: rotate(-3deg);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.shot-card {
  min-width: 0;
}

.shot-card img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background: var(--paper-light);
  box-shadow: 4px 4px 0 rgba(0, 78, 203, 0.24);
}

.split > .app-shot {
  justify-self: center;
}

.shot-card h3 {
  margin: 0.85rem 0 0.25rem;
}

.phone {
  width: min(355px, 100%);
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 2rem;
  background: #15243b;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-screen {
  overflow: hidden;
  min-height: 600px;
  border-radius: 1.35rem;
  background:
    linear-gradient(#c9ddf2 1px, transparent 1px) 0 19px / 100% 31px,
    var(--paper-light);
  border: 2px solid rgba(255,255,255,0.22);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 12px;
  border-bottom: 2px solid rgba(16, 35, 63, 0.12);
}

.app-title {
  font-size: 1.1rem;
  font-weight: 900;
  font-family: "Marker Felt", "Bradley Hand", ui-rounded, system-ui, sans-serif;
}

.mini-domino {
  width: 42px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 0.35rem;
  background: var(--white);
  position: relative;
}

.mini-domino::before,
.mini-domino::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
  top: 8px;
}

.mini-domino::before { left: 8px; }
.mini-domino::after { right: 8px; }

.score-card {
  margin: 18px;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 0.75rem;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 5px 5px 0 rgba(0, 78, 203, 0.25);
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 14px 0;
  border-bottom: 2px dashed rgba(16, 35, 63, 0.24);
}

.score-row:last-child { border-bottom: 0; }

.team {
  font-weight: 850;
}

.score {
  font-size: 2rem;
  font-weight: 950;
  color: var(--blue);
  font-family: "Marker Felt", "Bradley Hand", ui-rounded, system-ui, sans-serif;
}

.round-list {
  margin: 20px 18px;
  padding: 0;
  list-style: none;
}

.round-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.13);
  font-weight: 730;
}

.plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 0.35rem;
  background: var(--plus);
  font-weight: 900;
}

.crown,
.check {
  color: #004ecb;
  font-weight: 950;
}

.plus-modal {
  margin-top: 24px;
  color: var(--muted);
}

.plus-modal strong {
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step,
.feature,
.legal-callout {
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-light);
  box-shadow: 3px 3px 0 var(--blue);
  font-weight: 950;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.sheet {
  border: 3px solid var(--ink);
  border-radius: 0.7rem;
  background:
    linear-gradient(90deg, rgba(246, 189, 22, 0.32) 1px, transparent 1px) 54px 0 / 1px 100%,
    linear-gradient(#c9ddf2 1px, transparent 1px) 0 21px / 100% 34px,
    var(--paper-light);
  box-shadow: var(--shadow);
  padding: 28px 24px 28px 76px;
  transform: rotate(-1deg);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-weight: 780;
}

.sheet caption {
  margin-bottom: 1rem;
  text-align: left;
  font-size: 1.35rem;
  font-weight: 950;
  font-family: "Marker Felt", "Bradley Hand", ui-rounded, system-ui, sans-serif;
}

.sheet th,
.sheet td {
  padding: 0.85rem 0.6rem;
  border-bottom: 2px solid rgba(16, 35, 63, 0.12);
  text-align: left;
}

.sheet td:last-child,
.sheet th:last-child {
  text-align: right;
}

.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  background: rgba(255, 253, 247, 0.72);
  border: 3px solid var(--ink);
  border-radius: 0.6rem;
  overflow: hidden;
}

.comparison th,
.comparison td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(16, 35, 63, 0.14);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: rgba(246, 189, 22, 0.22);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.feature {
  min-height: 150px;
}

.feature p,
.step p,
.legal-callout p {
  color: var(--muted);
}

.language-band {
  background: var(--ink);
  color: var(--white);
}

.language-band .section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: center;
}

.language-band p {
  color: rgba(255, 255, 255, 0.78);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.language-card {
  min-height: 120px;
  padding: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
}

.language-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.final-cta {
  text-align: center;
}

.final-cta h2,
.final-cta p {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 3px solid rgba(16, 35, 63, 0.18);
  background: rgba(255, 250, 240, 0.72);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-page {
  max-width: 820px;
}

.legal-page h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 8vw, 5rem);
}

.legal-page h2 {
  max-width: none;
  margin-top: 2.2rem;
  font-size: 1.7rem;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.review-note {
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: 0.6rem;
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--plus);
}

@media (max-width: 880px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0.4rem;
  }

  .nav-links[data-open] { display: flex; }

  .language-links {
    padding-left: 0;
    border-left: 0;
  }

  .hero,
  .split,
  .language-band .section {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 36px; }

  .phone-wrap { min-height: auto; }

  .steps,
  .features,
  .language-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-cluster {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .app-shot.secondary-shot {
    width: 82%;
    margin-top: -2.5rem;
    justify-self: end;
  }

  .feature { min-height: auto; }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 24px, 1120px);
    padding: 52px 0;
  }

  .nav {
    width: min(100% - 24px, 1120px);
  }

  .brand span:last-child {
    max-width: 10rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .store-button,
  .button {
    width: 100%;
  }

  .phone {
    transform: none;
  }

  .app-shot.primary,
  .app-shot.secondary-shot {
    transform: none;
  }

  .phone-screen {
    min-height: 520px;
  }

  .sheet {
    padding-left: 26px;
    transform: none;
  }

  .sheet th,
  .sheet td {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

/* Visual refresh inspired by the app landing reference. */
:root {
  --paper: #f8fafc;
  --paper-light: #ffffff;
  --ink: #071b36;
  --muted: #52637a;
  --blue: #064ec8;
  --blue-dark: #073f9e;
  --blue-soft: #dcecf8;
  --plus: #f2bc05;
  --shadow: 0 24px 65px rgba(7, 27, 54, 0.18);
}

body {
  background:
    radial-gradient(circle at 75% 18%, rgba(220, 236, 248, 0.8) 0 17rem, transparent 17.2rem),
    radial-gradient(circle at 8% 10%, rgba(242, 188, 5, 0.08), transparent 16rem),
    radial-gradient(circle, rgba(7, 27, 54, 0.035) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(circle, rgba(242, 188, 5, 0.12) 1.1px, transparent 1.35px) 11px 11px / 22px 22px,
    linear-gradient(90deg, transparent 9px, rgba(7, 27, 54, 0.025) 9px 10px, transparent 10px) 0 0 / 44px 44px,
    linear-gradient(0deg, transparent 9px, rgba(7, 27, 54, 0.025) 9px 10px, transparent 10px) 0 0 / 44px 44px,
    var(--paper);
  font-family: "Avenir Next", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(7, 27, 54, 0.08);
}

.nav {
  width: min(1280px, calc(100% - 40px));
  min-height: 92px;
}

.brand {
  font-family: "Avenir Next", ui-rounded, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  gap: 0.8rem;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  box-shadow: 0 14px 28px rgba(7, 27, 54, 0.18);
}

.brand span:last-child::first-line {
  color: var(--blue);
}

.nav-links {
  gap: clamp(1rem, 2.4vw, 2.4rem);
  font-size: 1.02rem;
  font-weight: 760;
}

.language-links strong {
  background: var(--blue);
}

.section {
  width: min(1280px, calc(100% - 40px));
  padding: 84px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  padding-top: 48px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: min(43vw, 560px);
  aspect-ratio: 1;
  right: 5%;
  top: 15%;
  border-radius: 999px;
  background: var(--blue-soft);
}

.hero::after {
  width: 180px;
  height: 120px;
  left: 50%;
  top: 18%;
  background:
    linear-gradient(62deg, transparent 42%, var(--plus) 43% 52%, transparent 53%) 0 0 / 84px 54px no-repeat,
    linear-gradient(12deg, transparent 42%, var(--plus) 43% 52%, transparent 53%) 82px 66px / 84px 54px no-repeat;
}

.eyebrow {
  color: var(--ink);
  font-family: "Marker Felt", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  width: 56px;
  height: 5px;
  background: var(--plus);
}

h1,
h2 {
  font-family: "Avenir Next", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
}

h1 {
  max-width: 11.5ch;
  font-size: clamp(3.5rem, 8.5vw, 7.2rem);
  line-height: 0.98;
}

h1::first-letter {
  color: var(--ink);
}

h2 {
  line-height: 1.03;
}

.hero h1 {
  max-width: 12ch;
}

.hero h1::after,
.final-cta h2::after {
  content: "";
  display: block;
  width: min(100%, 420px);
  height: 8px;
  margin-top: 0.18em;
  border-radius: 999px;
  background: var(--plus);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.65vw, 1.42rem);
  font-weight: 520;
}

.store-button,
.button {
  min-height: 58px;
  padding: 0.82rem 1.35rem;
  border: 2px solid #030303;
  border-radius: 0.6rem;
  background: #030303;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(7, 27, 54, 0.16);
}

.store-button.secondary {
  background: #030303;
  color: var(--white);
}

.store-button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(7, 27, 54, 0.2);
}

.screenshot-cluster {
  position: relative;
}

.screenshot-cluster::before,
.screenshot-cluster::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #ffffff, #eceff4);
  box-shadow: 0 18px 40px rgba(7, 27, 54, 0.16);
}

.screenshot-cluster::before {
  width: 34%;
  height: 18%;
  right: -7%;
  bottom: 18%;
  transform: rotate(24deg);
}

.screenshot-cluster::after {
  width: 32%;
  height: 17%;
  left: -8%;
  bottom: 5%;
  transform: rotate(-18deg);
}

.app-shot {
  border: 8px solid #101318;
  border-radius: 2rem;
  box-shadow: 0 30px 70px rgba(7, 27, 54, 0.28);
}

.shot-card img {
  border: 6px solid #101318;
  border-radius: 1.25rem;
  box-shadow: 0 18px 42px rgba(7, 27, 54, 0.18);
}

.step,
.feature,
.legal-callout,
.faq-list details {
  border-top-color: rgba(7, 27, 54, 0.75);
}

.step-number {
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--plus);
}

.comparison,
.review-note {
  border-color: rgba(7, 27, 54, 0.78);
  background: rgba(255, 255, 255, 0.78);
}

.language-band {
  background: var(--ink);
}

@media (max-width: 880px) {
  .nav {
    width: min(100% - 28px, 1280px);
    min-height: 76px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    width: 88vw;
    right: -35%;
    top: 22%;
  }

  .hero::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 24px, 1280px);
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .store-button,
  .button {
    border-radius: 0.55rem;
  }
}
