/* Orville — palette taken from the app: iOS grouped backgrounds, the
   default "Compass" accent blue, and the navy-to-teal gradient of the
   app icon. Light by default, dark to match the app in dark mode. */

:root {
  --bg: #f2f2f7;              /* systemGroupedBackground */
  --surface: #ffffff;         /* secondarySystemGroupedBackground */
  --surface-alt: #fafafc;
  --text: #1c1c1e;
  --text-secondary: #56565a;
  --text-muted: #8a8a8e;
  --accent: #2e619e;          /* accentCompass, light */
  --accent-soft: rgba(46, 97, 158, 0.09);
  --teal: #2f99a6;            /* icon center dot */
  --border: rgba(0, 0, 0, 0.09);
  --shadow-sm: 0 1px 2px rgba(16, 26, 56, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 26, 56, 0.07);
  --shadow-lg: 0 24px 60px rgba(16, 26, 56, 0.18);
  --header-bg: rgba(242, 242, 247, 0.82);

  /* app icon gradient */
  --navy-1: #101a38;
  --navy-2: #142e52;
  --navy-3: #1a4761;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1080px;
  --wrap-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-alt: #161618;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #86868b;
    --accent: #6b9ed9;        /* accentCompass, dark */
    --accent-soft: rgba(107, 158, 217, 0.14);
    --teal: #4db3cc;
    --border: rgba(255, 255, 255, 0.12);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(0, 0, 0, 0.72);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* keeps headings from dropping a lone word onto the last line */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% 12%, rgba(77, 179, 204, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero .eyebrow {
  color: #7fd3e3;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.075rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.app-store-badge {
  display: inline-block;
  transition: transform 0.18s, opacity 0.18s;
}
.app-store-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.app-store-badge img { height: 50px; display: block; }
.hero-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art img {
  width: 100%;
  max-width: 210px;
  border-radius: 46px;              /* squircle-ish, matches iOS masking */
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section + .section { padding-top: 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-bottom: 10px;
}
.section-head p {
  font-size: 1.0125rem;
  color: var(--text-secondary);
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 1.0625rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.feature p + p { margin-top: 10px; }
.feature.wide { grid-column: 1 / -1; }

/* four-item sections read better as 2x2 than 3 + an orphan */
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- item type list ---------- */

.types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 30px;
  box-shadow: var(--shadow-sm);
}
.type {
  display: flex;
  gap: 14px;
}
.type-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.type h3 {
  font-size: 0.9375rem;
  font-weight: 640;
  margin-bottom: 3px;
}
.type p {
  font-size: 0.9063rem;
  color: var(--text-secondary);
}

/* ---------- siri quotes ---------- */

.quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.quote {
  font-size: 0.9063rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: var(--shadow-sm);
}

/* ---------- closing band ---------- */

.closing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.closing h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-bottom: 10px;
}
.closing p {
  color: var(--text-secondary);
  margin: 0 auto 26px;
}
.closing .hero-actions { justify-content: center; }
.closing .app-store-badge img { height: 46px; }
.specs {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-muted);
}
.closing > :last-child { margin-bottom: 0; }

/* ---------- document pages ---------- */

.doc { padding: 60px 0 40px; }
.doc-head { margin-bottom: 8px; }
.doc-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 680;
  margin-bottom: 6px;
}
.doc > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.meta {
  color: var(--text-muted);
  font-size: 13px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.card h2 {
  font-size: 1.0625rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card h3 {
  font-size: 0.9688rem;
  font-weight: 620;
  margin-top: 22px;
  margin-bottom: 6px;
}
.card h3:first-of-type { margin-top: 6px; }
.card p, .card li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.card p + p { margin-top: 12px; }
.card ul {
  padding-left: 20px;
  margin: 4px 0 0;
}
.card li { margin-bottom: 7px; }
.card li:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 76px;
  padding: 36px 0 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 60px;
    padding-bottom: 64px;
    text-align: center;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: 2; }
  .quotes { justify-content: center; }
  .section-head { margin-left: auto; margin-right: auto; text-align: center; }
}

@media (max-width: 720px) {
  .feature-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* wordmark gives way so all four nav items fit on a phone; the icon
     still links home */
  .brand-text { display: none; }
  .wrap { padding: 0 18px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 6px 9px; font-size: 13px; }
  .section { padding: 56px 0; }
  .closing { padding: 40px 24px; }
  .types { padding: 4px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .feature:hover { transform: none; }
}
