/* Atlas Travel -- colors and type follow the app (src/theme/tokens.ts,
   passportCoverPalette.ts, fonts.ts). Fraunces is self-hosted (no Google
   Fonts request, so visitors' IPs aren't sent to Google); body text uses
   the system font instead of Inter to keep pages light. */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b0e14;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --text-muted: rgba(245, 247, 250, 0.64);
  --visited: #2fe6a8;
  --lived: #2f6fe0;
  --want: #e68a1e;
  --passport-top: #1a1033;
  --passport-mid: #2d1b4e;
  --passport-bottom: #472569;
  --cyan: #22d3ee;
  --magenta: #f472b6;
  --radius: 20px;
  --max: 1040px;
  --display: 'Fraunces', Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--surface-border);
}

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

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

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

.site-nav {
  display: flex;
  gap: 20px;
}

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

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

/* Hero -- the Passport cover's purple gradient */
.hero {
  background: radial-gradient(120% 90% at 50% 0%, var(--passport-bottom) 0%, var(--passport-mid) 45%, var(--passport-top) 75%, var(--bg) 100%);
  padding: 88px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero .lede {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: rgba(245, 240, 255, 0.78);
}

.status-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(245, 240, 255, 0.72);
}

.status-dots li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 0;
  background: var(--dot);
}

/* A plain badge, not Apple's "Download on the App Store" artwork -- Apple's
   marketing guidelines only allow that badge once the app is live. */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-align: left;
  line-height: 1.15;
}

.store-badge small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.store-badge strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Features */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  text-align: center;
}

.section-lede {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted);
}

/* Flex rather than grid so an incomplete last row (5 cards in rows of 3)
   is centered instead of leaving an empty slot. */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.features .feature {
  flex: 1 1 100%;
}

@media (min-width: 720px) {
  .features .feature {
    flex: 0 1 calc((100% - 32px) / 3);
    min-width: 260px;
  }
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Long-form pages (privacy, support) */
.page {
  padding: 56px 0 80px;
}

.page .wrap {
  max-width: 760px;
}

.page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.1;
  margin: 0 0 8px;
}

.page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.page h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 44px 0 12px;
}

.page h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.page p,
.page li {
  color: rgba(245, 247, 250, 0.84);
}

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

.page li {
  margin: 6px 0;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

th {
  font-weight: 600;
  color: var(--text);
}

td {
  color: rgba(245, 247, 250, 0.84);
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin: 12px 0;
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  color: var(--text-muted);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details > div {
  padding: 0 0 18px;
}

.faq ol {
  padding-left: 22px;
  margin: 0;
}

.contact-card {
  margin-top: 48px;
  text-align: center;
  background: linear-gradient(160deg, var(--passport-mid), var(--passport-top));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 36px 24px;
}

.contact-card h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 32px 0 44px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

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

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

@media (max-width: 520px) {
  .site-nav {
    gap: 16px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .section {
    padding: 60px 0;
  }
}
