:root {
  --ink: #202327;
  --muted: #626c73;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --teal: #0e7c7b;
  --coral: #c65f4a;
  --gold: #b88a2d;
  --line: #e3ded6;
  --shadow: 0 18px 45px rgba(28, 35, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(14, 124, 123, 0.42);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--coral);
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.7rem 0.9rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(251, 250, 247, 0.93);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  min-height: 4.5rem;
  padding: 0 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  background: #050505;
  border: 1px solid rgba(32, 35, 39, 0.18);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(32, 35, 39, 0.12);
  height: 2.45rem;
  object-fit: cover;
  padding: 0.08rem;
  width: 2.45rem;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #efe9df;
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: 30rem;
  overflow: hidden;
  position: relative;
}

.hero-media {
  inset: 0;
  position: absolute;
}

.hero-media::after {
  background: rgba(19, 23, 25, 0.42);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-content {
  align-self: end;
  color: #fff;
  max-width: 720px;
  padding: 7rem 1.25rem 4rem;
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.eyebrow {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: 3.3rem;
  line-height: 1.04;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  max-width: 44rem;
}

.hero-actions,
.compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

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

.link-grid,
.support-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 0 auto;
  max-width: 1120px;
  padding: 3rem 1.25rem;
}

.resource-card,
.support-card,
.support-panel,
.legal-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.resource-card {
  display: grid;
  gap: 0.8rem;
  min-height: 12rem;
  padding: 1.25rem;
  text-decoration: none;
}

.resource-label {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.resource-copy,
.support-card p,
.legal-document p,
.legal-document li {
  color: var(--muted);
}

.document-shell,
.support-shell,
.download-shell {
  margin: 0 auto;
  max-width: 920px;
  padding: 0 1.25rem 4rem;
}

.minimal-download-shell {
  display: grid;
  max-width: none;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(3.5rem, 10vh, 6.5rem) 1.25rem 4rem;
  place-items: start center;
}

.minimal-download-shell .download-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: min(100%, 31rem);
}

.minimal-download-shell .download-button {
  justify-content: center;
  justify-self: center;
}

.download-card {
  gap: 1.35rem;
  padding: 0;
}

.download-card-brand {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.download-card-logo {
  background: #050505;
  border: 1px solid rgba(32, 35, 39, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(32, 35, 39, 0.18);
  height: 5rem;
  object-fit: cover;
  padding: 0.12rem;
  width: 5rem;
}

.download-card-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0.5rem 0 0;
  text-transform: uppercase;
}

.download-card-brand h1 {
  font-size: clamp(2.65rem, 8vw, 3.85rem);
  line-height: 1;
  margin: 0;
}

.download-card-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
  margin: 0.45rem auto 0;
  max-width: 28rem;
}

.store-buttons {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  width: 100%;
}

.download-shell .language-switch {
  display: none;
}

.document-hero {
  padding: 4rem 0 2rem;
}

.document-hero .eyebrow {
  color: var(--coral);
}

.document-hero h1 {
  color: var(--ink);
}

.document-hero .lead {
  color: var(--muted);
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.language-switch a {
  background: #efe9df;
  border-radius: 8px;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.language-switch a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.legal-document {
  padding: 2rem;
}

.legal-document section + section {
  border-top: 1px solid var(--line);
  margin-top: 1.8rem;
  padding-top: 1.8rem;
}

.legal-document ul {
  padding-left: 1.25rem;
}

.support-panel {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.support-card {
  padding: 1.25rem;
}

.download-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.browser-note {
  background: #efe9df;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 1rem;
}

.browser-note p {
  margin: 0;
}

.download-button {
  align-items: center;
  background: #101010;
  border: 1px solid #252525;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.16);
  color: #fff;
  display: inline-flex;
  gap: 0.82rem;
  min-height: 4.55rem;
  padding: 0.58rem 1rem 0.64rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  width: min(100%, 22.4rem);
}

.download-button-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.8rem;
  justify-content: center;
  left: 1.4rem;
  opacity: 1;
  position: absolute;
  width: 2.45rem;
}

.download-button-icon svg {
  color: #fff;
  height: 100%;
  width: 100%;
}

.download-button-icon path {
  fill: currentColor;
}

.google-play-icon .play-blue {
  fill: #00a0ff;
}

.google-play-icon .play-green {
  fill: #00c853;
}

.google-play-icon .play-yellow {
  fill: #ffb300;
}

.google-play-icon .play-red {
  fill: #ff5252;
}

.download-button-copy {
  display: grid;
  gap: 0.02rem;
  justify-items: center;
  text-align: center;
}

.download-button strong {
  font-size: 1.96rem;
  font-weight: 500;
  line-height: 0.98;
}

.download-button-copy > span {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  opacity: 1;
}

.download-button:hover {
  background: #000;
  transform: translateY(-1px);
}

.download-meta {
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.tiktok-browser-hint[hidden] {
  display: none;
}

.tiktok-browser-hint {
  align-items: flex-start;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  padding: max(7rem, 18vh) 1.25rem 2rem;
  z-index: 25;
}

.tiktok-hint-arrow {
  color: #dc2626;
  height: 4.6rem;
  overflow: visible;
  position: absolute;
  right: 0.55rem;
  top: max(0.25rem, env(safe-area-inset-top));
  width: 5.2rem;
}

.tiktok-hint-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.tiktok-browser-hint ol {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  font-size: clamp(1.5rem, 7vw, 2.6rem);
  font-weight: 800;
  line-height: 1.16;
  margin: 0;
  max-width: 34rem;
  padding: 1.4rem 1.4rem 1.4rem 3.1rem;
  width: min(100%, 34rem);
}

.tiktok-browser-hint li::marker {
  color: #dc2626;
}

body.tiktok-webview-mode {
  background: var(--paper);
}

body.tiktok-webview-mode .site-header,
body.tiktok-webview-mode .download-shell > .document-hero,
body.tiktok-webview-mode .download-shell > .download-panel,
body.tiktok-webview-mode .site-footer {
  display: none;
}

.compact-links a {
  background: #efe9df;
  border-radius: 8px;
  font-weight: 800;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    padding-top: 0.85rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 34rem;
  }

  .hero-content {
    padding-bottom: 3rem;
    padding-top: 8rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .link-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .download-panel {
    padding: 1.25rem;
  }

  .download-button strong {
    font-size: 1.75rem;
  }

  .download-button-icon {
    height: 2.45rem;
    width: 2.15rem;
  }

  .download-button-icon svg {
    height: 100%;
    width: 100%;
  }

  .tiktok-hint-arrow {
    height: 4.1rem;
    width: 4.7rem;
  }

  .tiktok-browser-hint ol {
    border-radius: 20px;
    padding: 1.15rem 1rem 1.15rem 2.65rem;
  }

  .legal-document {
    padding: 1.25rem;
  }
}
