@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces_400Regular_Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-muted: #efe8df;
  --text: #1c1b22;
  --text-muted: #5f5b6b;
  --text-faint: #938e9e;
  --border: #e4dcd1;
  --primary: #1e1b3a;
  --primary-text: #f7f3ee;
  --accent: #4b45a8;
  --accent-soft: #e9e6fb;
  --warm: #e7846b;
  --warm-soft: #fbe4dc;
  --positive: #3f8a60;
  --positive-soft: #dff0e5;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111f;
    --surface: #1c1a2e;
    --surface-muted: #24223a;
    --text: #f4f1ec;
    --text-muted: #b3aec2;
    --text-faint: #7e7990;
    --border: #2d2a45;
    --primary: #b9b2f0;
    --primary-text: #12111f;
    --accent: #8c86f2;
    --accent-soft: #2c2950;
    --warm: #f09a82;
    --warm-soft: #3a2a2c;
    --positive: #8fd1a9;
    --positive-soft: #1f3329;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

[id] {
  scroll-margin-top: 80px;
}

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

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2em;
}

h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-top: 1.6em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.3em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  max-width: var(--prose);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

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

.nav .lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}

main {
  padding: 48px 0 80px;
}

.page-head {
  margin-bottom: 32px;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.meta {
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* Components */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card h3:first-child,
.card h2:first-child {
  margin-top: 0;
}

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 1.5em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.btn small {
  font-weight: 500;
  opacity: 0.75;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

details summary::after {
  content: "+";
  float: right;
  color: var(--text-faint);
}

details[open] summary::after {
  content: "–";
}

details > div {
  padding-top: 8px;
  color: var(--text-muted);
}

.toc {
  columns: 2;
  column-gap: 32px;
  font-size: 0.95rem;
  padding-left: 1.25em;
}

@media (max-width: 640px) {
  .toc {
    columns: 1;
  }
}

address {
  font-style: normal;
}

/* Landing */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 48px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.phone {
  background: var(--primary);
  color: var(--primary-text);
  border-radius: 40px;
  padding: 36px 24px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -30px rgba(18, 17, 31, 0.5);
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: #1e1b3a;
    color: #f7f3ee;
  }
}

.phone .q {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.phone .sub {
  opacity: 0.7;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.phone .opt {
  background: rgba(247, 243, 238, 0.08);
  border: 1px solid rgba(247, 243, 238, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 0.95rem;
}

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

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 40px 0;
}

.section > h2:first-child {
  margin-top: 0;
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.pill + h2 {
  margin-top: 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--positive);
}

/* Support form */

/* Tally renders dark text, so the frame stays light in dark mode too. */
.form-frame {
  background: #ffffff;
  color: #1c1b22;
  color-scheme: light;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 0 0 1em;
}

.form-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 640px;
}

.form-frame a {
  color: #4b45a8;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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