/* Doppelgänger website — no external fonts or requests. */
:root {
  --ink: #111111;
  --paper: #FBFAF3;
  --taupe: #A39080;
  --cream: #E3DED4;
  --orange: #EB4A26;
  --yellow: #F2C230;
  --green: #1E9E46;
  --dark: #161412;
  --dark-card: #24201D;
  --muted-taupe: #2B231E;
  --muted-cream: #4A4540;
  --muted-ink: #C9BFB3;
  --muted-orange: #3D1205;
  --radius: 20px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.tone-ink :focus-visible, .lightbox :focus-visible { outline-color: var(--orange); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(163, 144, 128, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(17, 17, 17, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.mark { width: 40px; height: auto; color: var(--ink); }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { background: rgba(17, 17, 17, 0.08); }
.nav .nav-cta { background: var(--ink); color: var(--orange); padding: 0 18px; margin-left: 6px; }
.nav .nav-cta:hover { background: #000; }
.nav-toggle { display: none; font: inherit; font-weight: 600; font-size: 15px; background: var(--ink); color: var(--paper); border: 0; border-radius: 22px; min-height: 44px; padding: 0 18px; cursor: pointer; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.tone-taupe { background: var(--taupe); }
.tone-paper { background: var(--paper); }
.tone-cream { background: var(--cream); }
.tone-ink { background: var(--dark); color: #F2EEE6; }
.tone-orange { background: var(--orange); }

h2 { font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; max-width: 14em; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; color: var(--muted-cream); }
.tone-taupe .kicker { color: var(--muted-taupe); }
.kicker-orange { color: var(--orange) !important; }
.body { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; color: var(--muted-cream); }
.tone-taupe .body { color: var(--muted-taupe); }
.tone-ink .body { color: var(--muted-ink); }
.tone-orange .body { color: var(--muted-orange); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-reverse > :first-child { order: 0; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-mark { width: clamp(120px, 14vw, 176px); height: auto; margin-bottom: clamp(28px, 4vw, 44px); overflow: visible; }
.breathe { transform-origin: 67px 33px; animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 700; }
.lead { margin-top: 28px; font-size: clamp(19px, 2vw, 23px); line-height: 1.4; max-width: 28em; color: var(--muted-taupe); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted-taupe); }
.hero-meta .text-link { color: var(--ink); margin-top: 6px; }

.circle-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 136px; height: 136px; border-radius: 50%; background: var(--ink); color: var(--orange); font-weight: 700; font-size: 18px; line-height: 1.1; text-decoration: none; padding: 16px; transition: transform 0.2s ease; }
.circle-btn:hover { transform: scale(1.03); }
.pill-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 26px; background: var(--ink); color: var(--orange); font-weight: 700; text-decoration: none; }

/* From → To illustration */
.flow { position: relative; display: flex; flex-direction: column; }
.card { display: flex; flex-direction: column; gap: 4px; border-radius: var(--radius); padding: 20px 24px 22px; }
.card-from { background: var(--orange); }
.card-to { background: var(--paper); margin-top: 10px; }
.flow-arrow { width: 88px; height: 52px; margin: -6px auto 4px; overflow: visible; position: relative; top: -6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.72; }
.card-title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.mono { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--green); }
.flow-note { position: absolute; right: 0; bottom: -28px; font-size: 12px; color: var(--muted-taupe); }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; color: var(--muted-cream); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.ticks-light li { color: var(--muted-ink); }
.ticks-light li strong { color: #F2EEE6; }

/* Screenshots */
.shot { margin: 0; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; }
.shot img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(17, 17, 17, 0.22); }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted-cream); }
.tone-ink .shot figcaption { color: var(--muted-ink); }
.shot-taupe img, .shot-orange img { box-shadow: none; }
.shot-taupe .shot-open { background: var(--taupe); padding: 22px; border-radius: 22px; }
.shot-orange .shot-open { background: var(--orange); padding: 22px; border-radius: 22px; }
.shot-pair { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.shot-wide { margin-top: clamp(48px, 6vw, 72px); }

/* Steps */
.steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 36px 0; border-bottom: 1px solid rgba(17, 17, 17, 0.2); }
.steps .num { display: block; font-family: var(--font-display); font-size: clamp(56px, 6vw, 80px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.steps h3 { margin-top: 18px; font-size: 21px; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; font-size: 16px; color: var(--muted-cream); max-width: 22em; }

/* Schedule */
.triggers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.trigger { background: var(--paper); border-radius: var(--radius); padding: 24px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.trigger-name { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.trigger p { font-size: 15px; color: var(--muted-cream); }
.notes { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46em; }
.notes li { font-size: 16px; color: var(--muted-taupe); padding-left: 22px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }

/* Menu bar */
.menubar-demo { background: var(--cream); border-radius: 24px; padding: 0 0 48px; overflow: hidden; }
.menubar-strip { display: flex; justify-content: flex-end; align-items: center; gap: 18px; height: 34px; padding: 0 18px; background: rgba(251, 250, 243, 0.85); border-bottom: 1px solid rgba(17, 17, 17, 0.08); font-size: 13px; font-weight: 600; }
.menubar-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 26px; border-radius: 6px; background: rgba(17, 17, 17, 0.12); }
.menubar-time { order: 2; }
.menubar-glyph { display: flex; justify-content: center; padding-top: 48px; }
.menubar-glyph img { width: min(60%, 260px); height: auto; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.mirror-note { margin: 0; background: var(--ink); color: #F2EEE6; border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; font-size: 17px; }
.mirror-note strong { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.15; color: var(--orange); }
.mirror-note p:last-child { color: var(--muted-ink); font-size: 15px; }
.safety-grid .ticks { margin-top: 0; }

/* Facts */
.facts { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li { background: var(--cream); border-radius: var(--radius); padding: 24px; }
.facts h3 { font-size: 20px; letter-spacing: -0.02em; }
.facts p { margin-top: 8px; font-size: 15px; color: var(--muted-cream); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(17, 17, 17, 0.2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow 0.2s ease; }
.faq details[open] summary::after { box-shadow: inset 0 0 0 4px var(--ink); background: transparent; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted-cream); max-width: 40em; }

/* Get */
.get { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.app-icon { width: clamp(112px, 14vw, 168px); height: auto; }
.get h2 { max-width: 12em; }
.get-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--dark); color: #F2EEE6; padding: 40px 0 48px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .mark { color: #F2EEE6; width: 34px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; }
.fine { grid-column: 1 / -1; color: var(--muted-ink); font-size: 12px; }

/* Configuration states (see assets/js/config.js) */
.is-pending { cursor: default; }
.circle-btn.is-pending { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.circle-btn.is-pending:hover { transform: none; }
.pill-btn.is-pending { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.dev-unconfigured { outline: 2px dashed #F2C230; outline-offset: 3px; }
.dev-badge { position: fixed; right: 12px; bottom: 12px; z-index: 60; max-width: 320px; background: var(--yellow); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.dev-badge strong { display: block; }
.dev-close { margin-left: 6px; font: inherit; font-weight: 700; background: var(--ink); color: var(--yellow); border: 0; border-radius: 10px; padding: 2px 10px; cursor: pointer; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1440px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(17, 17, 17, 0.86); }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 14px; margin: 0 auto; }
.lightbox-close { display: block; margin: 0 0 12px auto; font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); cursor: pointer; }

/* Responsive */
@media (max-width: 1020px) {
  .triggers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .hero-grid, .split, .safety-grid, .faq-wrap { grid-template-columns: 1fr; }
  .flow { max-width: 460px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--taupe); padding: 8px clamp(20px, 5vw, 48px) 20px; border-bottom: 1px solid rgba(17, 17, 17, 0.1); }
  .nav ul.open { display: flex; }
  .nav a { min-height: 48px; }
  .nav .nav-cta { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .triggers, .facts { grid-template-columns: 1fr; }
  .steps li { padding-right: 0; }
  .shot-pair { grid-template-columns: 1fr; }
  .shot-pair .shot-orange { max-width: 320px; }
  .get { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .circle-btn { width: 120px; height: 120px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathe { animation: none; }
  .circle-btn, .faq summary::after { transition: none; }
}
@media (prefers-contrast: more) {
  .body, .ticks li, .steps p, .trigger p, .facts p, .faq details p, .lead, .hero-meta { color: var(--ink); }
  .tone-ink .body, .ticks-light li { color: #FFFFFF; }
}
