:root {
  color-scheme: light;
  --bg: #f7f7f5; --surface: #fcfcfa; --text: #202329; --muted: #60646e;
  --accent: #0b36ce; --on-accent: #fff; --tint: #e5e9ff; --border: #dedfdf;
  --shadow: 0 25px 75px #20232916;
}
body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191f; --surface: #20232b; --text: #f1eff5; --muted: #bbbcc6;
  --accent: #8ea8ff; --on-accent: #10216d; --tint: #26315c; --border: #353945;
  --shadow: 0 25px 75px #0005;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -80px; left: 15px; z-index: 5; background: var(--surface); padding: 12px; }
.skip-link:focus { top: 15px; }
.wrap { width: min(1180px, 100%); margin: auto; padding: 0 32px; }
.header { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav toggle"; gap: 24px; align-items: center; padding: 27px 0; }
.header .brand { grid-area: brand; }
.header .theme-toggle { grid-area: toggle; justify-self: end; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 24px; font-weight: 750; color: var(--accent); }
.brand-mark { width: 52px; height: 26px; }
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--accent); text-decoration: underline; font-size: 13px; font-weight: 600; }
.nav a:hover { background: var(--tint); border-color: var(--accent); }
.theme-toggle { border: 1px solid var(--border); color: var(--text); background: var(--surface); border-radius: 30px; padding: 7px 14px; min-height: 44px; font-size: 14px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 750; font-size: 12px; }
h1, h2, h3 { line-height: 1.1; }
h1 { margin: 22px 0; font-size: clamp(46px, 6.7vw, 84px); letter-spacing: -4px; font-weight: 760; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.6px; margin: 10px 0 20px; }
h3 { font-size: 22px; letter-spacing: -.5px; margin: 0 0 14px; }
p { color: var(--muted); }
.lead { font-size: 20px; max-width: 550px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 58px; align-items: center; padding: 55px 0 80px; }
.hero-wordmark { width: 180px; margin-bottom: 28px; }
.wordmark-dark { display: none; }
body[data-theme="dark"] .wordmark-light { display: none; }
body[data-theme="dark"] .wordmark-dark { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 14px; }
.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 54px; padding: 11px 22px; border-radius: 16px; text-decoration: none; font-weight: 650; border: 1px solid transparent; }
.button-primary { color: var(--on-accent); background: var(--accent); }
.button-secondary { color: var(--accent); border-color: var(--border); background: var(--surface); }
.button span { display: block; }
.button small { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; opacity: .8; }
.button[aria-disabled="true"] { cursor: default; }
.availability { font-size: 12px; color: var(--muted); }
.phone-pair { display: flex; gap: 20px; align-items: center; justify-content: center; }
.phone { background: var(--surface); border: 6px solid var(--text); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); width: 245px; }
.phone img { width: 100%; aspect-ratio: 9/19; object-fit: cover; }
.phone-pair .phone:first-child { transform: translateY(-20px); }
.phone-pair .phone:last-child { transform: translateY(25px); }
.preview-note { font-size: 12px; text-align: center; margin-top: 48px; }
section { padding: 64px 0; scroll-margin-top: 25px; }
.section-intro { max-width: 660px; margin-bottom: 32px; }
.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 24px; padding: 30px; }
.card p { margin: 0; font-size: 16px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent); background: var(--tint); margin-bottom: 24px; font-weight: 750; }
.features .card { min-height: 200px; }
.feature-label { color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gallery figure { margin: 0; }
.gallery .phone { width: min(250px, 100%); margin: auto; border-width: 5px; box-shadow: none; }
.gallery figcaption { margin: 20px auto 0; max-width: 275px; }
.gallery figcaption strong { font-size: 18px; }
.gallery figcaption p { font-size: 15px; margin: 7px 0; }
.quiet-note { font-size: 13px; margin-top: 24px; }
.support-banner { display: flex; gap: 40px; justify-content: space-between; align-items: center; border-radius: 28px; background: var(--tint); padding: 42px; }
.support-banner h2 { max-width: 630px; }
.support-banner p { margin-bottom: 0; max-width: 560px; }
.faq { max-width: 860px; }
details { padding: 22px 0; border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-size: 18px; font-weight: 650; }
details p { max-width: 750px; }
.download { text-align: center; padding-bottom: 85px; }
.download .lead { margin: 0 auto; }
.download .actions { justify-content: center; }
.footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 35px 0; border-top: 1px solid var(--border); }
.footer .wordmark { width: 140px; }
.footer p { font-size: 13px; margin: 0; justify-self: end; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; color: var(--accent); text-decoration: underline; font-weight: 600; border-radius: 10px; }
.footer-links a:hover { background: var(--tint); }
.night .hero { grid-template-columns: 1.1fr .9fr; padding-top: 75px; }
.night h1 { font-size: clamp(46px, 7vw, 86px); }
.night .phone-pair { position: relative; gap: 12px; }
.night .phone-pair .phone:first-child { width: 300px; transform: none; }
.night .phone-pair .phone:last-child { width: 160px; transform: translateY(90px); }
.night .card { border-radius: 18px; }
.journal .hero { grid-template-columns: 1.2fr .8fr; border-bottom: 1px solid var(--border); }
.journal h1 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -3px; }
.journal .phone-pair .phone:first-child { width: 300px; transform: none; }
.journal .phone-pair .phone:last-child { display: none; }
.journal .card { border-radius: 5px; border-width: 0 0 1px; background: transparent; padding-left: 0; }
.journal .step-no { background: transparent; border: 1px solid var(--accent); }
.journal .features { grid-template-columns: repeat(2, 1fr); }
.journal .support-banner { border-radius: 5px; }
.donation-hero { max-width: 850px; padding-top: 65px; }
.donation-hero h1 { max-width: 760px; }
.donation-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 45px; align-items: start; }
.donation-card { padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.donation-card .brand-mark { width: 100px; height: 50px; color: var(--accent); margin-bottom: 25px; }
.donation-card .button { width: 100%; }
.donation-card .quiet-note { margin-bottom: 0; }
.principles { padding: 0; list-style: none; }
.principles li { margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.principles strong { display: block; font-size: 20px; margin-bottom: 8px; }
.principles span { color: var(--muted); }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.design-card { color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.design-card .design-content { padding: 28px; }
.design-swatch { height: 190px; display: grid; place-items: center; background: var(--tint); }
.design-swatch svg { width: 170px; height: 85px; color: var(--accent); }
.design-card:nth-child(2) .design-swatch { background: #17191f; color: #8ea8ff; }
.design-card:nth-child(2) .design-swatch svg { color: #8ea8ff; }
.design-card:nth-child(3) .design-swatch { background: #fcfcfa; border-bottom: 1px solid var(--border); }
.status { min-height: 1.6em; color: var(--muted); font-size: 13px; }
.contact-form { max-width: 800px; margin-inline: auto; padding: 30px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
#contact .section-intro { max-width: 800px; margin-inline: auto; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 20px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form button:disabled { cursor: default; opacity: .65; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1000px) {
  .hero { gap: 28px; }
  .phone-pair .phone:last-child { display: none; }
  .phone-pair .phone:first-child { width: 270px; transform: none; }
  .preview-note { margin-top: 20px; }
  .nav { gap: 6px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 740px) {
  .wrap { padding: 0 22px; }
  .header { grid-template-columns: 1fr auto; grid-template-areas: "brand toggle" "nav nav"; padding: 22px 0; gap: 16px 10px; }
  .nav { justify-content: flex-start; gap: 8px; }
  .nav a { font-size: 12px; }
  .brand { font-size: 22px; gap: 9px; }
  .brand-mark { width: 43px; }
  .theme-toggle { padding-inline: 11px; font-size: 12px; }
  .footer { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .footer-links { justify-content: center; }
  .footer p { justify-self: center; text-align: center; }
  .hero, .night .hero, .journal .hero, .donation-grid { grid-template-columns: 1fr; }
  .hero, .night .hero { padding: 35px 0 45px; gap: 40px; }
  h1, .night h1 { font-size: clamp(46px, 12vw, 70px); letter-spacing: -2.5px; }
  .hero-wordmark { width: 155px; }
  .phone-pair .phone:first-child, .night .phone-pair .phone:first-child, .journal .phone-pair .phone:first-child { width: 260px; }
  .lead { font-size: 18px; }
  section { padding: 42px 0; }
  .steps, .features, .journal .features, .design-grid { grid-template-columns: 1fr; }
  .gallery { gap: 28px; grid-template-columns: 1fr; }
  .gallery figure { display: grid; grid-template-columns: .9fr 1fr; gap: 20px; align-items: center; }
  .gallery .phone { max-width: 190px; border-radius: 24px; }
  .gallery figcaption { margin: 0; }
  .support-banner { flex-direction: column; align-items: flex-start; padding: 28px; gap: 22px; }
  .donation-hero { padding-top: 35px; }
  .donation-card { padding: 28px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
}
@media (max-width: 380px) {
  .gallery figure { display: block; }
  .gallery figcaption { margin-top: 20px; }
  .actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
