/* Voxio website. Tokens match the app (src/theme.ts). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #17252d;
  --ink-soft: #4a5862;
  --muted: #8a9399;
  --paper: #e7e9f1;
  --surface: #f3f4f8;
  --white: #ffffff;
  --cyan: #53d5ef;
  --indigo: #5146e5;
  --lavender: #8c9cff;

  /* Direction colours, as in the app. */
  --skip: #ef4f6b;
  --already-know: #4c7bf4;
  --review-later: #f5a623;
  --know-it: #22b573;

  --shadow: 0 10px 30px rgba(23, 37, 45, 0.06);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.wrap {
  max-width: 1050px;
  margin: auto;
  padding: 10px;
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.home header {
  margin-bottom: 5px;
}

body.legal header {
  margin-bottom: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  width: 44px;
  height: 44px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--indigo);
}

.hero {
  display: flex;
  padding-top: 20px;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.features {
  margin-top: 20px;
  color: var(--ink-soft);
}

.features div {
  margin-bottom: 8px;
}

.hero-img {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 460px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(83, 213, 239, 0.35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(140, 156, 255, 0.4), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-img img {
  width: 70%;
  height: auto;
}

.section {
  margin-top: 70px;
  padding: 30px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin-top: 0;
}

.section > p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card {
  flex: 1;
  min-width: 220px;
  background: var(--white);
  padding: 20px;
  border-radius: 14px;
}

.card p {
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0;
}

/* The four swipes, each in its direction colour. */
.swipe {
  border-left: 5px solid var(--swipe-color);
}

.swipe strong {
  color: var(--swipe-color);
}

.swipe-arrow {
  margin-right: 6px;
}

.swipe.know-it { --swipe-color: var(--know-it); }
.swipe.already-know { --swipe-color: var(--already-know); }
.swipe.skip { --swipe-color: var(--skip); }
.swipe.review-later { --swipe-color: var(--review-later); }

.big-quote {
  margin-top: 60px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo) 55%, var(--lavender));
  color: var(--white);
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}

.content {
  background: var(--surface);
  padding: 32px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.content h1 {
  font-size: 36px;
  margin-top: 0;
  margin-bottom: 12px;
}

.content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
}

.content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 18px;
}

.content p,
.content li,
.content td,
.content th {
  line-height: 1.7;
  font-size: 16px;
  color: var(--ink-soft);
}

.content ul {
  padding-left: 22px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
}

.content th,
.content td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--paper);
}

.content th {
  color: var(--ink);
}

.content a,
footer a {
  color: var(--indigo);
  text-decoration: none;
}

.content a:hover,
footer a:hover {
  text-decoration: underline;
}

.email-box {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
}

.back-link {
  display: inline-block;
  margin-top: 24px;
}

footer {
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .brand {
    font-size: 20px;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  nav a {
    font-size: 14px;
  }

  .hero {
    gap: 24px;
  }

  .hero-text {
    min-width: 0;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hero-cta {
    gap: 12px;
  }

  .app-store-badge img {
    height: 36px;
  }

  .features {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-img {
    flex-basis: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
  }

  .hero-img img {
    width: auto;
    height: 75%;
  }

  .section {
    margin-top: 40px;
    padding: 22px;
  }

  .big-quote {
    margin-top: 40px;
    padding: 24px 16px;
    font-size: 20px;
  }

  .card {
    min-width: 0;
    flex: 1 1 100%;
  }

  .content {
    padding: 20px;
  }

  .content h1 {
    font-size: 28px;
  }

  .content h2 {
    font-size: 20px;
  }

  .content h3 {
    font-size: 17px;
  }

  .content p,
  .content li,
  .content td,
  .content th {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 23px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
  }

  .features {
    font-size: 13px;
  }

  .big-quote {
    font-size: 18px;
    padding: 20px 16px;
  }
}
