/* AppColors from ContentView.swift */
:root {
  color-scheme: light dark;
  --primary: #4c729c;
  --primary-soft: #8fb0d0;
  --accent: #a05c4b;
  --success: #517864;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-alt: #e2eaf2;
  --fg: #3e4757;
  --muted: #555d6a;
  --tertiary: #5a6778;
  --line: rgba(76, 114, 156, 0.18);
  --shadow: 0 18px 50px rgba(62, 71, 87, 0.12);
  --shadow-soft: 0 8px 28px rgba(76, 114, 156, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 64px;
  --max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8fb4d9;
    --primary-soft: #547089;
    --accent: #e9a99c;
    --success: #7fa891;
    --bg: #12161b;
    --surface: #1c222a;
    --surface-alt: #262e38;
    --fg: #edf2f7;
    --muted: #a9b6c6;
    --tertiary: #8895a5;
    --line: rgba(143, 180, 217, 0.16);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%),
    var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: color-mix(in srgb, var(--primary) 80%, var(--fg)); }

/* —— Header / hamburger —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 650;
  letter-spacing: -0.02em;
  min-width: 0;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.brand-name {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}
@media (min-width: 420px) {
  .brand-name { max-width: none; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem 1.15rem;
  font-size: 0.92rem;
}
.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  transition: color 160ms var(--ease-out);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current] {
  color: var(--fg);
}
.nav-desktop a[aria-current] { font-weight: 600; }
.nav-lang {
  display: inline-flex;
  gap: 0.15rem;
  margin-left: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}
.lang-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.45rem !important;
  border-radius: 8px;
  color: var(--tertiary) !important;
  text-decoration: none;
}
.lang-link[aria-current="true"] {
  background: var(--surface-alt);
  color: var(--primary) !important;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.97); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 200ms var(--ease-out), opacity 160ms var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 96%, var(--surface));
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.nav-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer.is-open[hidden] { display: flex; }
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer-links a {
  display: block;
  padding: 0.95rem 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.nav-drawer-lang .lang-link {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 3rem;
  text-align: center;
}
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18, 22, 27, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}
.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-scrim[hidden] { display: none; }
.nav-scrim.is-open[hidden] { display: block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; }
  .nav-drawer, .nav-scrim { display: none !important; }
  .brand-name { max-width: none; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, #fff), var(--primary));
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 70%, #000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 28px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
@media (prefers-color-scheme: dark) {
  .btn {
    color: #121821 !important;
    background: linear-gradient(180deg, #a8c8e6, var(--primary));
    border-color: color-mix(in srgb, var(--primary) 60%, #fff);
  }
  .btn:hover { color: #121821 !important; }
}

/* —— Hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.15rem 1.5rem;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.hero-copy { text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(2rem, 6.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  color: var(--fg);
}
h1 .accent {
  color: var(--primary);
  display: inline;
}
.lede {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 450;
}
.hero-actions { margin: 0 0 0.85rem; }
.hero-meta {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--tertiary);
}
.formats-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-single {
  margin: 0;
  width: min(100%, 260px);
}
.phone-single img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 3px solid color-mix(in srgb, var(--surface) 75%, var(--primary-soft));
  background: var(--surface-alt);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 2.5rem 1.5rem 2rem;
    gap: 2.5rem;
    align-items: center;
  }
  .phone-single {
    width: min(100%, 300px);
    margin-left: auto;
  }
  h1 { font-size: clamp(2.4rem, 3.6vw, 3.35rem); }
}

/* —— Feature sections: 2 phones + 2 texts each, full aspect (not crushed) —— */
.showcases {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.5rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.showcase-section {
  padding: 1.15rem 1rem 1.35rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line);
}
.showcase-section-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.showcase-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.showcase-media {
  margin: 0;
  width: min(100%, 200px);
  /* natural phone ratio - no fixed height crop/squash */
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--surface-alt);
  line-height: 0;
}
.showcase-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.showcase-copy {
  max-width: 18rem;
}
.showcase-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
}
.showcase-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
@media (min-width: 720px) {
  .showcase-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .showcase-section {
    padding: 1.35rem 1.5rem 1.5rem;
  }
  .showcase-media {
    width: min(100%, 220px);
  }
}
@media (min-width: 1000px) {
  .showcase-media {
    width: 240px;
  }
  .showcase-copy {
    max-width: 20rem;
  }
}

/* —— Sections —— */
.answer-section,
.shots-section,
.features-section,
.section,
.cta-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.15rem 2rem;
}
.answer-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 0;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.section-head h2,
.section > h2,
.faq-section > h2,
.guides-section > h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

/* FAQ */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}
.faq[open] summary::after { content: "\2212"; }
.faq p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Guides */
.guide-grid {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 700px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.guide-card strong { color: var(--fg); font-size: 0.98rem; }
.guide-card span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
    transform: translateY(-1px);
  }
}

/* CTA band */
.cta-band {
  margin: 1rem auto 2rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  max-width: calc(var(--max) - 2.3rem);
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Article / legal */
.article,
.section.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}
.article h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.article .lede { max-width: none; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.legal-doc { font-size: 0.96rem; }
.legal { font-size: 0.93rem; }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 1.75rem 0 0.65rem;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.35rem 0 0.45rem;
}
code {
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}
.cta-row { margin-top: 1.75rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 1.75rem 1.15rem 2.75rem;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-brand strong {
  display: block;
  font-size: 0.95rem;
}
.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--tertiary);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--fg); }
.footer-meta {
  margin: 0;
  font-size: 0.88rem;
}
.footer-meta a { color: var(--tertiary); }

/* Legacy nav fallback if any old page */
nav:not(.nav-desktop):not(.nav-drawer-links) a { color: var(--muted); }
