@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #10151e;
  --surface: #171e29;
  --raised: #222c38;
  --border: #1a222e;
  --button: #2a3644;
  --text: #eef1f5;
  --body: #d9dee6;
  --secondary: #8c96a4;
  --accent: #93bfa2;
  --warn: #c9b48f;
  --tailnet: #8faacc;
  --radius: 10px;
  --max: 42rem;
  --space: 1.25rem;
  --focus: 0 0 0 3px rgba(147, 191, 162, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(147, 191, 162, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(143, 170, 204, 0.06), transparent 50%),
    var(--bg);
  color: var(--body);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-secondary:focus-visible,
.copy-btn:focus-visible,
.download-option:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

h1,
h2,
h3 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

code,
.mono {
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 1.5rem 3.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-link img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
  margin-left: auto;
}

.nav a {
  color: var(--secondary);
  text-decoration: none;
  padding: 0.4rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}


.hero {
  text-align: center;
  padding-block: 0.5rem 2.5rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
}

.hero .brand-name {
  margin-bottom: 0.85rem;
}

.hero-pitch {
  color: var(--body);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.downloader-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.2rem;
  margin: 0 auto 1.25rem;
  max-width: 22rem;
}

.downloader-label {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.downloader-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.downloader-code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: clamp(2.1rem, 9vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.copy-btn:hover {
  border-color: var(--accent);
}

.copy-btn[data-copied="true"] {
  color: var(--accent);
}

.downloader-alt {
  margin-top: 0.9rem;
  color: var(--secondary);
  font-size: 0.95rem;
}

.downloader-alt a {
  color: var(--text);
}

.section {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
}

.section-lead {
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--raised);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.steps strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .card-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: border-color 0.15s ease;
}

a.card:hover {
  border-color: var(--accent);
  color: inherit;
}

.card h3 {
  margin: 0;
}

.card p {
  color: var(--secondary);
  font-size: 0.98rem;
  margin: 0;
}

.card .card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.download-option {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  min-height: 52px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.download-option:hover,
.download-option:hover {
  border-color: var(--button);
  color: var(--text);
}

.download-option .label {
  font-weight: 500;
  text-align: left;
}

.download-option .meta {
  color: var(--secondary);
  font-size: 0.9rem;
  text-align: left;
}

.download-option .meta a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.download-option .meta a:hover {
  color: var(--accent);
}

.download-option.is-recommended {
  border-color: var(--accent);
  background: #1c2830;
  box-shadow: inset 0 0 0 1px rgba(147, 191, 162, 0.25);
}

.download-option.is-recommended .meta::after {
  content: " · Recommended";
  color: var(--accent);
}

@media (max-width: 480px) {
  .download-option {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
  }

  .download-option .meta {
    width: 100%;
  }

  .download-option.is-recommended .meta::after {
    content: " · Recommended";
  }
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.3rem;
}

.support-card h2 {
  margin-bottom: 0.65rem;
}

.support-card > p {
  color: var(--body);
  max-width: 36rem;
}

.support-actions {
  margin: 1.15rem 0 0;
}

.support-alt {
  margin-top: 1rem;
  color: var(--secondary);
  font-size: 0.95rem;
}

.support-alt a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.support-alt a:hover {
  color: var(--text);
}

.support-nudge {
  margin-top: 1.1rem;
  font-size: 0.9rem;
}

.icon-cup {
  flex-shrink: 0;
}

.download-note {
  margin-top: 1rem;
  color: var(--warn);
  font-size: 0.95rem;
}

.caveats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.caveats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--body);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--secondary);
  font-weight: 400;
  padding-left: 1rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--body);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem 1rem;
  color: var(--secondary);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--secondary);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.site-footer .legal {
  display: grid;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #10151e;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.35rem;
  min-height: 52px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn:hover {
  color: #10151e;
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--raised);
  color: var(--text);
  border-color: var(--button);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  filter: none;
}

.btn-compact {
  width: auto;
  padding: 0.7rem 1.15rem;
  min-height: 48px;
}

.btn-row {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.btn-row-inline {
  justify-items: start;
}

.btn-row-inline .btn {
  width: auto;
}

.btn-row-narrow {
  max-width: 20rem;
  margin-inline: auto;
}

html[data-detected="ios"] #android-download {
  display: none;
}

.phone-page .hero-logo {
  width: 88px;
  height: 88px;
}

.phone-page .hero {
  padding-bottom: 1.5rem;
}

.phone-page .hero-pitch {
  margin-bottom: 1.25rem;
}

.detect-banner {
  display: none;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.detect-banner.is-visible {
  display: block;
}

.detect-banner.is-ios {
  border-color: var(--warn);
}

.detect-banner p {
  margin: 0;
}

.detect-banner .title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.setup-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.setup-nav a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.setup-nav a:hover {
  border-color: var(--accent);
}

.setup-block {
  scroll-margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.setup-block ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.setup-block li::marker {
  color: var(--accent);
  font-weight: 600;
}

.note {
  color: var(--secondary);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.error-page {
  text-align: center;
  padding-block: 4rem 3rem;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .wrap {
    padding-block: 2rem 4rem;
  }

  .hero-logo {
    width: 112px;
    height: 112px;
  }
}
