:root {
  color-scheme: dark;
  --bg: #080c16;
  --bg-elevated: rgba(20, 24, 36, 0.82);
  --card-bg: rgba(28, 28, 30, 0.96);
  --nav-pill: rgba(20, 20, 22, 0.94);
  --ink: #f7f0e6;
  --ink-strong: rgba(255, 255, 255, 0.96);
  --ink-muted: rgba(235, 235, 245, 0.68);
  --ink-subtle: rgba(235, 235, 245, 0.52);
  --amber: #f3c38c;
  --amber-soft: rgba(243, 195, 140, 0.14);
  --amber-line: rgba(243, 195, 140, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --serif: ui-serif, "New York", -apple-system-ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(640px 420px at 78% 36%, rgba(243, 195, 140, 0.085) 0%, rgba(243, 195, 140, 0) 70%),
    radial-gradient(760px 520px at 16% 10%, rgba(56, 86, 156, 0.16) 0%, rgba(8, 12, 22, 0) 72%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 8px 14px;
  background: #141926;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 12px;
  z-index: 10;
}

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

/* ---------- Header ---------- */
.topbar {
  padding-block: 26px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 7.5px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
}

.topnav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--ink);
}

/* ---------- Home Hero ---------- */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 24px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.hero-copy {
  max-width: 520px;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.55rem, 5.1vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: clamp(1.04rem, 1.45vw, 1.16rem);
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 46ch;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  min-height: 58px;
  border-radius: 14px;
  background: #f7f0e6;
  color: #0b0f19;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(243, 195, 140, 0.12);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.app-store-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(243, 195, 140, 0.16);
}

.app-store-btn:active {
  transform: translateY(0);
}

.app-store-btn svg {
  width: 24px;
  height: 29px;
  flex: none;
  fill: currentColor;
  transform: translateY(-1px);
}

.app-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.app-store-kicker {
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.82;
}

.app-store-label {
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-top: 2px;
}

.qr-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.qr-frame {
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 10px;
  background: #f7f0e6;
  display: grid;
  place-items: center;
  flex: none;
}

.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-meta strong {
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.qr-meta span {
  font-size: 0.76rem;
  color: var(--ink-subtle);
}

.android-banner {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.android-banner.is-visible {
  display: flex;
}

.android-banner p {
  margin: 0;
  color: rgba(247, 240, 230, 0.88);
}

.android-banner a {
  color: var(--amber);
  font-weight: 550;
  text-decoration: none;
  align-self: flex-start;
}

.android-banner a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-footnote {
  margin: 28px 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-subtle);
  letter-spacing: -0.005em;
}

/* ---------- Product Preview (Authentic Dark Us Space) ---------- */
.preview-stage {
  position: relative;
  width: 100%;
  max-width: 448px;
  margin-inline: auto;
}

.preview-stage::before {
  content: "";
  position: absolute;
  inset: -24px -18px;
  background: radial-gradient(280px 240px at 56% 52%, rgba(243, 195, 140, 0.13) 0%, rgba(243, 195, 140, 0) 74%);
  pointer-events: none;
  z-index: 0;
}

.preview-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.k-nav {
  height: 52px;
  border-radius: 999px;
  background: var(--nav-pill);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 14px 34px rgba(3, 8, 22, 0.52);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.k-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #323236 0%, #262629 100%);
  box-shadow:
    inset 0 0.75px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.k-nav-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.k-card {
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 22px 52px rgba(3, 8, 22, 0.58),
    0 3px 10px rgba(3, 8, 22, 0.34);
  padding: 18px 20px 20px;
}

.k-card-replies {
  box-shadow:
    inset 0 0 0 1px rgba(243, 195, 140, 0.14),
    0 24px 58px rgba(3, 8, 22, 0.64),
    0 0 56px rgba(243, 195, 140, 0.08);
}

.k-entry + .k-entry {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.k-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(235, 235, 245, 0.58);
}

.k-body {
  margin: 7px 0 0;
  font-size: 0.97rem;
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--ink-strong);
  white-space: pre-line;
}

/* ---------- Support Page ---------- */
.support-main {
  flex: 1;
  padding-block: 36px 64px;
}

.support-wrap {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.1rem, 4.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-lead {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 56ch;
}

.contact-panel {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(28, 28, 30, 0.92);
  border: 1px solid var(--amber-line);
  box-shadow: 0 18px 42px rgba(3, 8, 22, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.contact-panel h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-panel p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: #f7f0e6;
  color: #0b0f19;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.email-pill:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.help-grid {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.help-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.help-card h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.help-card p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

.help-card p:last-child {
  margin-bottom: 0;
}

.help-card strong {
  color: var(--ink);
  font-weight: 600;
}

.help-card a {
  color: var(--amber);
  text-underline-offset: 0.18em;
}

.help-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: rgba(247, 240, 230, 0.9);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
  font-size: 0.84rem;
  color: var(--ink-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .hero-main {
    align-items: flex-start;
    padding-block: 18px 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .qr-card {
    display: none;
  }

  .preview-stage {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .container,
  .support-wrap {
    width: calc(100% - 36px);
  }

  .topbar {
    padding-block: 20px 10px;
  }

  .topnav {
    gap: 18px;
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 1rem;
  }

  .cta-row {
    margin-top: 24px;
  }

  .app-store-btn {
    width: 100%;
    justify-content: center;
  }

  .k-card {
    padding: 16px 17px 18px;
    border-radius: 22px;
  }

  .k-body {
    font-size: 0.94rem;
  }

  .contact-panel,
  .help-card {
    padding: 18px 18px;
  }
}
