/* =========================================================================
   Setent + Fastra — landing pages
   Single stylesheet, theme via body class.

   Default: Setent (warm paper, no accent color, compressed bold typography)
   .theme-fastra → Fastra (coral accent, Unbounded Bold, glass cards)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&display=swap');

/* -------------------- Setent (default theme) ----------------------------- */
:root {
  color-scheme: light dark;

  --bg: #F4F1EC;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-border: rgba(15, 15, 15, 0.06);
  --text: #0F0F0F;
  --text-muted: rgba(15, 15, 15, 0.58);
  --text-faint: rgba(15, 15, 15, 0.38);
  --accent: #0F0F0F;
  --accent-on: #FFFFFF;
  --accent-tint: #1F6FEB;
  --accent-tint-soft: rgba(31, 111, 235, 0.08);
  --rule: rgba(15, 15, 15, 0.10);

  --radius-card: 24px;
  --radius-button: 999px;
  --shadow-card: 0 1px 1px rgba(15, 15, 15, 0.03), 0 12px 32px -16px rgba(15, 15, 15, 0.10);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --display-stretch: 75%;
  --display-weight: 900;

  --container-max: 1080px;
  --space-section: clamp(56px, 9vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0B;
    --bg-elev: #131315;
    --surface: #18181B;
    --surface-border: rgba(255, 255, 255, 0.07);
    --text: #F2F2F2;
    --text-muted: rgba(242, 242, 242, 0.62);
    --text-faint: rgba(242, 242, 242, 0.38);
    --accent: #F2F2F2;
    --accent-on: #0A0A0A;
    --accent-tint: #6EA8FF;
    --accent-tint-soft: rgba(110, 168, 255, 0.10);
    --rule: rgba(255, 255, 255, 0.10);
    --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  }
}

/* -------------------- Fastra theme --------------------------------------- */
body.theme-fastra {
  --bg: #F7F4F1;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-border: rgba(0, 0, 0, 0.04);
  --text: #1B1B1B;
  --text-muted: rgba(27, 27, 27, 0.62);
  --text-faint: rgba(27, 27, 27, 0.40);
  --accent: #EE6E6E;
  --accent-on: #FFFFFF;
  --accent-tint: #EE6E6E;
  --accent-tint-soft: rgba(238, 110, 110, 0.10);
  --rule: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px -16px rgba(0, 0, 0, 0.10);
  --display-weight: 700;
}

@media (prefers-color-scheme: dark) {
  body.theme-fastra {
    --bg: #0A0606;
    --bg-elev: #161213;
    --surface: #1C1A1B;
    --surface-border: rgba(255, 255, 255, 0.06);
    --text: #F2F2F2;
    --text-muted: rgba(242, 242, 242, 0.62);
    --text-faint: rgba(242, 242, 242, 0.40);
    --accent: #EE6E6E;
    --accent-on: #FFFFFF;
    --accent-tint: #FF8C8C;
    --accent-tint-soft: rgba(238, 110, 110, 0.14);
    --rule: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  }
}

/* -------------------- Reset / base --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
::selection { background: var(--accent); color: var(--accent-on); }

/* -------------------- Background decoration ------------------------------ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.bg-glow-a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.18), transparent 70%);
}
.bg-glow-b {
  width: 480px;
  height: 480px;
  top: 80px;
  right: -140px;
  background: radial-gradient(circle, rgba(238, 110, 110, 0.14), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .bg-grid { opacity: 0.4; }
  .bg-glow-a { background: radial-gradient(circle, rgba(110, 168, 255, 0.18), transparent 70%); }
  .bg-glow-b { background: radial-gradient(circle, rgba(238, 110, 110, 0.10), transparent 70%); }
}

/* -------------------- Layout ---------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Header --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--container-max)) / 2));
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
body.theme-fastra .brand {
  font-family: 'Unbounded', var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
body.theme-fastra .brand-mark { border-radius: 7px; }
.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

/* -------------------- Hero ----------------------------------------------- */
.hero {
  padding: clamp(40px, 7vw, 88px) 24px clamp(56px, 7vw, 80px);
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  align-items: flex-start;
}
.hero:has(.hero-art) {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .hero:has(.hero-art) { grid-template-columns: 1.1fr 1fr; }
}
/* Fastra hero icon (legacy) */
.hero-icon {
  width: clamp(72px, 10vw, 104px);
  aspect-ratio: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}
.hero-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-text { min-width: 0; }
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(44px, 6.8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" 78;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-tint), color-mix(in srgb, var(--accent-tint) 60%, #EE6E6E));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.theme-fastra .hero h1 {
  font-family: 'Unbounded', var(--font-display);
  font-stretch: 100%;
  font-variation-settings: normal;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}
body.theme-fastra .hero h1 em {
  background: linear-gradient(120deg, #EE6E6E, #F2A66A);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 520px;
  text-wrap: pretty;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}

/* Hero art (right column) */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-glow {
  position: absolute;
  inset: 8%;
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 111, 235, 0.35), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(238, 110, 110, 0.28), transparent 65%);
  filter: blur(40px);
  border-radius: 50%;
  opacity: 0.85;
}
.hero-icon-large {
  position: relative;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 28%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.35),
    0 12px 24px -8px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg);
}
.chip {
  position: absolute;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  transition: opacity 260ms ease;
  will-change: opacity;
}
.chip-1 { top: 12%; left: 0%; transform: rotate(-6deg); animation: chipFloatA 7s ease-in-out infinite; }
.chip-2 { top: 8%; right: 4%; transform: rotate(5deg); background: var(--accent); color: var(--accent-on); border-color: transparent; animation: chipFloatB 8s ease-in-out infinite; animation-delay: -2s; }
.chip-3 { bottom: 10%; left: 8%; transform: rotate(3deg); animation: chipFloatC 9s ease-in-out infinite; animation-delay: -4s; }

@keyframes chipFloatA {
  0%, 100% { transform: rotate(-6deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(-7.5deg) translate3d(-4px, -6px, 0); }
}
@keyframes chipFloatB {
  0%, 100% { transform: rotate(5deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(6.5deg) translate3d(5px, -7px, 0); }
}
@keyframes chipFloatC {
  0%, 100% { transform: rotate(3deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(4.5deg) translate3d(3px, 6px, 0); }
}

.chip.chip-swap-out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .chip-1, .chip-2, .chip-3 { animation: none; }
}

/* -------------------- Hero meta stats ------------------------------------ */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 85;
}
.hero-meta span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------- CTA --------------------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--rule);
}
body.theme-fastra .btn-primary {
  font-family: 'Unbounded', var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

/* Apple App Store badge — official SVG, black on light, inverted on dark */
.appstore {
  display: inline-flex;
  height: 52px;
  align-items: center;
  border-radius: 10px;
  transition: transform 0.15s ease;
}
.appstore img {
  height: 52px;
  width: auto;
  display: block;
}
.appstore:hover { opacity: 1; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  .appstore img { filter: invert(1) hue-rotate(180deg); }
}

/* -------------------- Sections / cards ----------------------------------- */
.section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-section) 24px;
}
.section + .section { padding-top: 0; }

.section-head { margin-bottom: 40px; max-width: 720px; }
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tint);
}
@media (prefers-color-scheme: dark) {
  .kicker { color: var(--accent-tint); }
}
.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 85;
  line-height: 1.05;
  text-wrap: balance;
}
body.theme-fastra .section-title {
  font-family: 'Unbounded', var(--font-display);
  font-weight: 700;
  font-variation-settings: normal;
}
.section-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 600px;
  font-size: 17px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 1px rgba(15, 15, 15, 0.03), 0 24px 48px -20px rgba(15, 15, 15, 0.18);
}
.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-tint-soft);
  color: var(--accent-tint);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Glass-morphism overlay (Fastra only) */
body.theme-fastra .card {
  position: relative;
  overflow: hidden;
}
body.theme-fastra .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(238, 110, 110, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(238, 110, 110, 0.04), transparent 50%);
  pointer-events: none;
}
body.theme-fastra .card > * { position: relative; }

/* -------------------- Quote section -------------------------------------- */
.section-quote { padding-top: 0; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--accent-tint-soft), transparent 65%);
  pointer-events: none;
}
.quote-card .kicker { color: var(--text-muted); }
.quote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 90;
  text-wrap: balance;
  max-width: 760px;
  position: relative;
}
.quote-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 680px;
  position: relative;
}

/* -------------------- Requirements list ---------------------------------- */
.req-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .req-grid { grid-template-columns: repeat(3, 1fr); }
}
.req {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 720px) {
  .req {
    padding: 32px 24px 32px 0;
    border-right: 1px solid var(--rule);
  }
  .req:last-child { border-right: none; padding-right: 0; }
  .req + .req { padding-left: 24px; }
}
.req-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.req h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.req p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* -------------------- Endcap CTA ----------------------------------------- */
.endcap {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.endcap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--accent-tint-soft), transparent 70%);
  pointer-events: none;
}
.endcap > * { position: relative; }
.endcap h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 85;
  line-height: 1.05;
}
.endcap p {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 16px;
}

/* -------------------- Long-form (privacy) -------------------------------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px;
}
.prose h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 80;
  line-height: 1;
}
body.theme-fastra .prose h1 {
  font-family: 'Unbounded', var(--font-display);
  font-weight: 700;
  font-variation-settings: normal;
}
.prose h3 {
  margin: 36px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose p, .prose ul { margin: 0 0 16px; color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* -------------------- Footer --------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: clamp(48px, 6vw, 96px);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner .dot { color: var(--text-faint); }

/* -------------------- Mobile niceties ------------------------------------ */
@media (max-width: 720px) {
  .hero-art { max-width: 320px; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .hero-meta { gap: 20px; }
  .hero-meta strong { font-size: 19px; }
}
@media (max-width: 480px) {
  .site-header { padding: 14px 20px; }
  .hero { padding-top: 24px; }
  .card { padding: 24px; }
  .quote-card { border-radius: 24px; }
  .endcap { border-radius: 24px; }
}
