/* ============================================
   Baby Monitor Timmy – Homepage Stylesheet
   Redesign: Slite-inspired, clean & modern
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-background: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3F5F7;
  --color-surface-dim: #EEECEA;
  --color-accent: #6BAFB2;
  --color-accent-light: #D4EEEF;
  --color-warning: #E9B44C;
  --color-connected: #7BC47F;
  --color-error: #E07A5F;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #6B7280;
  --color-baby-pink: #F2C4CE;
  --color-parent-blue: #A8C5E2;
  --color-disabled: #D5D5D5;
  --color-swiss-red: #D94F4F;

  --radius-card: 20px;
  --radius-button: 42px;
  --radius-small: 10px;

  --max-width: 1200px;
  --nav-height: 64px;
  --shadow-soft: 0 12px 34px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 20px 52px rgba(17, 24, 39, 0.08);
  --display-letter-spacing: -0.035em;
  --display-line-height: 1.08;
}

/* --- Font --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-surface-dim);
  height: var(--nav-height);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* Nav CTA pill */
.nav-links .btn-primary {
  padding: 8px 20px;
  font-size: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--color-accent);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px !important;
  font-weight: 500;
  background: transparent;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  text-decoration: none;
}

.lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-surface-dim);
    padding: 16px 20px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #5DA0A3;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text-primary);
  border-color: rgba(17, 24, 39, 0.1);
}

.btn-outline:hover {
  border-color: rgba(107, 175, 178, 0.42);
  color: #4a8e91;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-color: rgba(17, 24, 39, 0.08);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 56px;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 196, 206, 0.42), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(212, 238, 239, 0.7), transparent 34%),
    linear-gradient(180deg, #fffaf5 0%, #f8fafc 62%, var(--color-surface) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -38% 42%;
  height: 420px;
  border-radius: 999px;
  background: rgba(168, 197, 226, 0.22);
  filter: blur(50px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.hero-eyebrow,
.section-eyebrow {
  margin: 0 0 14px;
  color: #4a8e91;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(3.1rem, 6.2vw, 5.75rem);
  font-weight: 800;
  line-height: var(--display-line-height);
  letter-spacing: var(--display-letter-spacing);
  margin-bottom: 20px;
  max-width: 760px;
}

.hero-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.65vw, 1.28rem);
  color: var(--color-text-secondary);
  max-width: 610px;
  margin: 0 0 32px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-video-card {
  width: min(100%, 420px);
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.hero-video-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-video-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.hero-video-description,
.hero-video-note {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.58;
}

.hero-video-launch {
  margin-top: 14px;
}

.hero-video-embed[hidden] {
  display: none;
}

.hero-video-embed {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
  aspect-ratio: 9 / 16;
}

.hero-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-video-card.is-loaded .hero-video-launch,
.hero-video-card.is-loaded .hero-video-note {
  display: none;
}

.hero-checklist {
  display: grid;
  gap: 10px;
  list-style: none;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
}

.hero-checklist li {
  position: relative;
  padding-left: 28px;
}

.hero-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(107, 175, 178, 0.92), rgba(168, 197, 226, 0.92));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.76);
}

.hero-showcase {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: auto;
  padding: 108px 0 148px;
}

.hero-phone-card {
  position: relative;
  z-index: 2;
  width: min(330px, 70vw);
  margin: 0 auto;
  padding: 14px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 28px 72px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(18px);
}

.hero-phone-card img {
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  width: min(248px, 46vw);
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(18px);
}

.hero-floating-card--top {
  top: 18px;
  right: 8px;
}

.hero-floating-card--bottom {
  left: 8px;
  bottom: 24px;
}

.hero-floating-label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.hero-floating-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
}

.hero-proof span {
  padding: 16px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-text-primary);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.proof-dot {
  display: none;
}

/* --- Section Defaults --- */
section {
  padding: 100px 0;
  background: var(--color-surface);
}

.section-heading {
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: var(--display-letter-spacing);
  line-height: var(--display-line-height);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto 56px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-intro {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-intro .section-heading,
.section-intro .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-intro .section-subtitle {
  margin-bottom: 0;
}

/* --- Stats Section --- */
.trust-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 238, 239, 0.38), transparent 30%),
    var(--color-surface);
  border-top: 1px solid var(--color-surface-dim);
  border-bottom: 1px solid var(--color-surface-dim);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-card {
  display: grid;
  gap: 14px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.07);
}

.benefit-icon {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: #4a8e91;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.benefit-card h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.benefit-card p {
  color: var(--color-text-secondary);
  line-height: 1.72;
}

/* --- Embedded Flutter demo --- */
.live-demo-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(242, 196, 206, 0.32), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(212, 238, 239, 0.54), transparent 32%),
    linear-gradient(180deg, #fbf7f1 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-surface-dim);
}

.live-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.live-demo-copy {
  max-width: 620px;
}

.live-demo-copy .section-heading,
.live-demo-copy .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.live-demo-copy .section-subtitle {
  margin-bottom: 28px;
}

.live-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.live-demo-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.live-demo-mobile-preview {
  display: none;
}

.live-demo-mobile-cta {
  display: none;
}

.live-demo-device {
  position: relative;
  width: min(100%, 516px);
  height: clamp(744px, 86svh, 912px);
  padding: 42px 13px 14px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(17, 24, 39, 0.98)),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
}

.live-demo-speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.live-demo-device iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 26px;
  background: #050505;
}

.live-demo-caption {
  max-width: 430px;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

/* --- Steps Section --- */
.steps {
  background: var(--color-background);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  flex: 1;
  padding: 0 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--color-surface-dim);
  flex-shrink: 0;
  margin-top: 24px;
}

/* --- Feature Sections (alternating image + text) --- */
.feature-section {
  padding: 80px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row-reverse {
  direction: rtl;
}

.feature-row-reverse > * {
  direction: ltr;
}

.feature-visual img {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.feature-visual--phone img {
  max-width: 320px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-section {
  background: var(--color-surface-alt);
}

.feature-section:nth-of-type(odd) {
  background: var(--color-surface);
}

.feature-content h2 {
  font-size: clamp(2.1rem, 3.3vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: var(--display-letter-spacing);
  line-height: 1.12;
}

.feature-content .section-eyebrow {
  margin-bottom: 12px;
}

.feature-content p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.74;
  margin-bottom: 20px;
}

.feature-link,
.repo-link,
.blog-card .read-more,
.article a:not(.btn),
.legal a:not(.btn) {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.feature-link:hover,
.repo-link:hover,
.blog-card .read-more:hover,
.article a:not(.btn):hover,
.legal a:not(.btn):hover {
  opacity: 1;
  color: #4a8e91;
  text-decoration-color: currentColor;
}

.feature-link-secondary {
  display: block;
  margin-top: -8px;
}

/* --- Swiss Section --- */
.swiss-section {
  padding: 60px 0;
  background: var(--color-surface);
}

.swiss-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.swiss-content .swiss-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-swiss-red);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.swiss-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.swiss-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* --- Founder Section --- */
.founder-section {
  padding: 36px 0 100px;
  background: var(--color-surface-alt);
}

.founder-section--home {
  padding: 90px 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(242, 196, 206, 0.28), transparent 30%),
    var(--color-surface-alt);
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-dim);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.founder-photo-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founder-photo {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.14);
}

.founder-photo-caption {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.founder-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: #4a8e91;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.founder-content h2 {
  font-size: 2.15rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.founder-content p {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.founder-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 32px;
}

.founder-highlight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--color-background);
  border: 1px solid var(--color-surface-dim);
  border-radius: 18px;
}

.founder-highlight strong {
  font-size: 1rem;
  line-height: 1.3;
}

.founder-highlight span {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.founder-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.founder-card--teaser {
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 36px;
  padding: 34px;
}

.founder-highlights--compact {
  margin: 24px 0 28px;
}

.founder-highlights--compact .founder-highlight {
  padding: 16px 18px;
}

/* --- FAQ --- */
.faq-section {
  padding: 100px 0;
  background: var(--color-surface);
}

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--color-surface-dim);
  padding: 20px 0;
}

.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq details[open] summary::after {
  content: '−';
}

.faq .faq-answer {
  padding-top: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Download Section --- */
.download-section {
  padding: 104px 0;
  background:
    radial-gradient(circle at 16% 4%, rgba(212, 238, 239, 0.42), transparent 30%),
    linear-gradient(180deg, var(--color-surface) 0%, #f5f1ec 100%);
}

.download-section h2 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: var(--display-letter-spacing);
  line-height: var(--display-line-height);
}

.download-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 62px);
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 84% 0%, rgba(168, 197, 226, 0.24), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbfb 100%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-card);
}

.download-card .section-heading {
  margin-bottom: 16px;
}

.download-card .section-subtitle {
  margin-bottom: 30px;
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
  max-width: 820px;
  list-style: none;
}

.download-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(107, 175, 178, 0.1);
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.text-center {
  text-align: center;
}

.disclaimer-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer-note a {
  color: var(--color-accent);
}

/* ============================================
   Subpage Styles (article, legal, blog, setup)
   ============================================ */

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Blog Cards --- */
.blog-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.blog-card .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.tag-transparency { background: var(--color-accent-light); color: var(--color-accent); }
.tag-privacy { background: #fce4d6; color: var(--color-error); }
.tag-tech { background: #e2edf8; color: #4a7ab5; }
.tag-guide { background: #eef7f7; color: #427f82; }

.blog-card h3 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.18;
}

.blog-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card .read-more {
  font-weight: 700;
  font-size: 0.98rem;
}

.blog-card .read-more::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-card);
}

/* --- Page Hero (shared header on subpages) --- */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-surface-dim);
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: var(--display-line-height);
  letter-spacing: var(--display-letter-spacing);
  margin: 0 auto 16px;
  max-width: 820px;
}

.page-hero .page-hero-subtitle {
  font-size: 1.12rem;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.72;
}

.page-hero .page-hero-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

.page-hero--developer {
  padding-bottom: 56px;
  background: var(--color-surface);
}

.page-hero--developer .founder-eyebrow {
  margin: 0 auto 18px;
}

.page-hero + main,
.page-hero + main > .article,
.page-hero + main > .legal {
  padding-top: 0;
}

.developer-page {
  background: var(--color-surface-alt);
}

.developer-section {
  padding: 0 0 96px;
}

.developer-shell {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.developer-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-dim);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.developer-photo-panel {
  max-width: 360px;
}

.developer-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.14);
}

.developer-copy p {
  margin-bottom: 18px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.developer-lead {
  font-size: 1.08rem;
  color: var(--color-text-primary);
}

.developer-keyfacts {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 0;
}

.developer-keyfacts li {
  padding: 16px 18px;
  background: var(--color-background);
  border: 1px solid var(--color-surface-dim);
  border-radius: 18px;
}

.developer-keyfacts strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.developer-keyfacts span {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.developer-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.developer-principle {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-dim);
  border-radius: 20px;
}

.developer-principle h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.developer-principle p {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* --- Article --- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 36px 56px;
  background: var(--color-surface);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.article h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: var(--display-letter-spacing);
  margin-bottom: 16px;
  line-height: 1.08;
}

.article .meta {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.article h2 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.14;
}

.article h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.article p {
  margin-bottom: 18px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.article strong {
  color: var(--color-text-primary);
}

.article ul, .article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 6px;
}

.article blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.article code {
  background: var(--color-surface-dim);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.guide-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(107, 175, 178, 0.18), transparent 32%),
    var(--color-surface);
}

.guide-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: #427f82;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-index-section {
  padding: 56px 0 96px;
}

.guide-index-intro {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 24px 28px;
  border: 1px solid rgba(107, 175, 178, 0.22);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.guide-index-intro p {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.guide-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.guide-article {
  max-width: 780px;
}

.guide-summary {
  padding: 22px 24px;
  border: 1px solid rgba(107, 175, 178, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbfb 100%);
  color: var(--color-text-primary) !important;
  font-size: 1.05rem;
}

.guide-checklist,
.guide-note {
  margin: 42px 0;
  padding: 28px;
  border-radius: 24px;
}

.guide-checklist {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-surface-dim);
}

.guide-note {
  background:
    radial-gradient(circle at 0% 0%, rgba(107, 175, 178, 0.24), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f1f7f7 100%);
  border: 1px solid rgba(107, 175, 178, 0.28);
}

.guide-checklist h2,
.guide-note h2 {
  margin-top: 0;
}

.source-list {
  padding-left: 0 !important;
  list-style: none;
}

.source-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-surface-dim);
}

.guide-back-link {
  margin-top: 44px;
}

.guide-meta-grid,
.guide-card-grid,
.guide-scenario-grid,
.guide-source-grid,
.guide-two-column {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.guide-meta-grid,
.guide-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card-grid,
.guide-scenario-grid,
.guide-source-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-panel,
.guide-card-panel,
.guide-glossary,
.guide-diagram,
.guide-decision-tree,
.guide-matrix,
.guide-research-basis {
  margin: 32px 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: var(--color-surface-alt);
}

.guide-panel h2,
.guide-card-panel h2,
.guide-glossary h2,
.guide-diagram h2,
.guide-decision-tree h2,
.guide-matrix h2,
.guide-research-basis h2 {
  margin-top: 0;
}

.guide-panel--accent,
.guide-research-basis {
  background: linear-gradient(135deg, #ffffff 0%, #f2fafb 100%);
  border-color: rgba(107, 175, 178, 0.28);
}

.guide-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0 !important;
  list-style: none;
}

.guide-chip-list li {
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(107, 175, 178, 0.12);
  color: #427f82;
  font-size: 0.92rem;
  font-weight: 700;
}

.guide-visual-label {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-diagram {
  background:
    radial-gradient(circle at 0% 0%, rgba(107, 175, 178, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4fafb 100%);
}

.guide-flow {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.guide-flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.guide-flow-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.92rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--color-surface);
  border-radius: 18px;
  overflow: hidden;
}

.guide-table th,
.guide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-surface-dim);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: rgba(107, 175, 178, 0.12);
  color: var(--color-text-primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.guide-table td {
  color: var(--color-text-secondary);
}

.guide-card-panel {
  background: var(--color-surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.guide-card-panel h3,
.guide-scenario-card h3,
.guide-source-card h3 {
  margin-top: 0;
}

.guide-scenario-card,
.guide-source-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.guide-source-card p:last-child,
.guide-card-panel p:last-child,
.guide-scenario-card p:last-child {
  margin-bottom: 0;
}

.guide-glossary dl {
  display: grid;
  gap: 14px;
}

.guide-glossary dt {
  font-weight: 800;
  color: var(--color-text-primary);
}

.guide-glossary dd {
  margin: 0;
  color: var(--color-text-secondary);
}

.guide-decision-tree {
  background: linear-gradient(135deg, #fffdf8 0%, #fff7e8 100%);
  border-color: rgba(233, 180, 76, 0.35);
}

.guide-decision-branch {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 4px solid var(--color-warning);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.88);
}

.guide-research-basis ul {
  margin-bottom: 0;
}

.guide-inline-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(107, 175, 178, 0.08);
  border: 1px solid rgba(107, 175, 178, 0.18);
}

/* --- Guide layout refresh --- */
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 128px;
  text-align: left;
  border-bottom: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 196, 206, 0.36), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(212, 238, 239, 0.78), transparent 32%),
    linear-gradient(180deg, #fffaf5 0%, #f8fafc 62%, var(--color-surface) 100%);
}

.guide-hero::before,
.guide-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.guide-hero::before {
  inset: auto auto -34% 54%;
  width: min(560px, 52vw);
  height: 420px;
  background: rgba(168, 197, 226, 0.22);
  filter: blur(56px);
}

.guide-hero::after {
  inset: -18% 62% auto -8%;
  width: min(360px, 38vw);
  height: 260px;
  background: rgba(107, 175, 178, 0.18);
  filter: blur(44px);
}

.guide-hero .container {
  position: relative;
  z-index: 1;
}

.guide-hero h1 {
  margin: 0 0 20px;
  max-width: 860px;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
}

.guide-hero .page-hero-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 1.14rem;
}

.guide-hero .page-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
  font-weight: 700;
}

.guide-article {
  position: relative;
  max-width: 1080px;
  margin: -84px auto 0;
  padding: 0 0 76px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.guide-article > h2,
.guide-article > h3,
.guide-article > p,
.guide-article > ul,
.guide-article > ol,
.guide-article > .source-list,
.guide-article > .guide-back-link {
  margin-left: auto;
  margin-right: auto;
}

.blog-article {
  position: relative;
  max-width: 1080px;
  margin: -56px auto 0;
  padding: 0 0 76px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.blog-article > h2,
.blog-article > h3,
.blog-article > p,
.blog-article > ul,
.blog-article > ol,
.blog-article > blockquote,
.blog-article > hr,
.blog-article > .guide-back-link {
  margin-left: auto;
  margin-right: auto;
}

.blog-article > h2 {
  max-width: 820px;
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4vw, 2.95rem);
}

.blog-article > h3 {
  max-width: 820px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.blog-article > p,
.blog-article > ul,
.blog-article > ol,
.blog-article > blockquote,
.blog-article > hr,
.blog-article > .guide-back-link {
  max-width: 780px;
}

.blog-article > ul,
.blog-article > ol {
  padding-left: 24px;
}

.blog-article > blockquote {
  margin-top: 28px;
  margin-bottom: 28px;
}

.blog-article > hr {
  margin: 48px auto 32px;
  border: none;
  border-top: 1px solid var(--color-surface-dim);
}

.guide-article > h2 {
  max-width: 820px;
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.guide-article > h3 {
  max-width: 820px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.guide-article > p,
.guide-article > .source-list {
  max-width: 780px;
}

.guide-article > ul,
.guide-article > ol {
  max-width: 760px;
}

.guide-summary {
  position: relative;
  max-width: 880px;
  margin: 0 auto 50px;
  padding: 32px 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 28px 72px rgba(17, 24, 39, 0.14);
}

.guide-panel,
.guide-card-panel,
.guide-glossary,
.guide-diagram,
.guide-decision-tree,
.guide-matrix,
.guide-research-basis,
.guide-checklist,
.guide-note {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.guide-table-wrap,
.guide-meta-grid,
.guide-card-grid,
.guide-scenario-grid,
.guide-source-grid,
.guide-two-column {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.guide-card,
.guide-scenario-card,
.guide-source-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.guide-card .read-more {
  margin-top: auto;
}

.guide-index-section {
  padding: 0 0 96px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 22%, var(--color-surface) 100%);
}

.guide-hub-hero {
  padding-bottom: 56px;
}

.guide-hub-grid {
  align-items: stretch;
}

.guide-hub-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: start;
}

.guide-hub-panel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(18px);
}

.guide-hub-panel--glow {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 251, 251, 0.96) 100%);
}

.guide-hub-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.guide-hub-panel p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.guide-hub-path {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guide-hub-path-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.guide-hub-path-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.94rem;
}

.guide-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.guide-topic-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-text-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.guide-topic-nav a:hover {
  border-color: rgba(107, 175, 178, 0.4);
  color: #427f82;
}

.guide-hub-proof {
  margin-top: 34px;
}

.guide-category-section {
  margin-top: 30px;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.08);
}

.guide-category-header {
  max-width: 820px;
  margin-bottom: 30px;
}

.guide-category-header .section-eyebrow {
  margin-bottom: 12px;
}

.guide-category-header h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.guide-category-header p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.72;
}

.guide-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guide-warning-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(224, 122, 95, 0.08);
  border: 1px solid rgba(224, 122, 95, 0.18);
}

.guide-fact-list {
  padding-left: 18px !important;
}

.guide-fact-list li {
  margin-bottom: 10px;
}

.forum-cta-section {
  padding: 32px 0 72px;
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface-alt) 100%);
}

.forum-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(107, 175, 178, 0.28);
  background:
    radial-gradient(circle at 8% 0%, rgba(107, 175, 178, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f2fafb 100%);
  box-shadow: var(--shadow-card);
}

.forum-cta-card .section-heading {
  margin-bottom: 12px;
}

.forum-cta-card .section-subtitle {
  margin: 0;
}

.forum-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.forum-page .guide-index-section {
  padding-top: 56px;
}

.forum-page .guide-hub-path-step h3 {
  margin: 0 0 6px;
}


.repo-callout {
  margin: 42px 0 36px;
  padding: 28px;
  border: 1px solid rgba(107, 175, 178, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(107, 175, 178, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f1f7f7 100%);
  box-shadow: 0 18px 44px rgba(43, 45, 66, 0.08);
}

.repo-callout .repo-eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.repo-callout h2 {
  margin-top: 0;
}

.repo-callout p {
  margin-bottom: 18px;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-primary);
  font-weight: 800;
}

.cta-banner {
  margin-top: 42px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: var(--color-surface-alt);
  box-shadow: var(--shadow-soft);
}

.cta-banner h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 22px;
}

/* --- Legal Pages --- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 36px 56px;
  background: var(--color-surface);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.legal h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: var(--display-letter-spacing);
  margin-bottom: 32px;
  line-height: 1.08;
}

.legal h2 {
  font-size: clamp(1.95rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.14;
}

.legal h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal p, .legal li {
  margin-bottom: 12px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.placeholder {
  background: var(--color-warning);
  color: var(--color-text-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  background: var(--color-text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* --- 404 --- */
.error-page {
  text-align: center;
  padding: 120px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* --- Mermaid Diagrams --- */
.diagram-container {
  margin: 32px 0;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-dim);
  border-radius: var(--radius-card);
  overflow-x: auto;
}

.diagram-container .mermaid {
  display: flex;
  justify-content: center;
}

.diagram-container .mermaid svg {
  max-width: 100%;
  height: auto;
}

.diagram-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
  font-style: italic;
}

/* --- Accessibility: Focus Visible --- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
  opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 56px 0 42px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    max-width: none;
    text-align: center;
  }
  .hero-headline { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-actions { justify-content: center; }
  .forum-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .forum-cta-actions {
    justify-content: center;
  }
  .hero-checklist {
    width: min(100%, 440px);
    margin: 0 auto;
    text-align: left;
  }
  .hero-showcase {
    min-height: auto;
    padding-bottom: 0;
    padding-top: 0;
  }
  .hero-phone-card {
    width: min(280px, 74vw);
  }
  .hero-floating-card {
    position: relative;
    inset: auto;
    width: min(100%, 360px);
    margin-top: 14px;
  }
  .hero-floating-card--top,
  .hero-floating-card--bottom {
    right: auto;
    left: auto;
    bottom: auto;
    top: auto;
  }
  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
  }
  .hero-video-card {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .page-hero { padding: 60px 0 32px; }
  .page-hero h1 { font-size: 2.25rem; }
  .page-hero .page-hero-subtitle { font-size: 1rem; }
  .article h1 { font-size: 2rem; }
  .legal h1 { font-size: 2rem; }
  .article,
  .legal {
    padding: 32px 22px 40px;
    border-radius: 22px;
  }
  .guide-meta-grid,
  .guide-two-column,
  .guide-card-grid,
  .guide-scenario-grid,
  .guide-source-grid {
    grid-template-columns: 1fr;
  }
  .guide-flow-step {
    grid-template-columns: 1fr;
  }
  .blog-article {
    margin: -36px auto 0;
    padding: 0 0 56px;
  }
  .blog-article > h2,
  .blog-article > h3,
  .blog-article > p,
  .blog-article > ul,
  .blog-article > ol,
  .blog-article > blockquote,
  .blog-article > hr,
  .blog-article > .guide-back-link {
    max-width: min(100%, 640px);
  }
  .guide-table {
    min-width: 520px;
  }
  section { padding: 64px 0; }
  .section-heading { font-size: 2rem; }
  .benefit-grid,
  .download-list { grid-template-columns: 1fr; }
  .benefit-card { padding: 24px; }
  .live-demo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .live-demo-copy {
    max-width: none;
    text-align: center;
  }
  .live-demo-copy .section-heading,
  .live-demo-copy .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .live-demo-actions {
    justify-content: center;
  }
  .live-demo-device {
    width: min(100%, 468px);
    height: clamp(672px, 82svh, 820px);
    border-radius: 34px;
  }
  .feature-row,
  .feature-row-reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-reverse { direction: ltr; }
  .feature-visual { order: -1; }
  .feature-visual img { max-width: 360px; margin: 0 auto; }
  .feature-visual--phone img { max-width: 280px; }
  .steps-row { flex-direction: column; align-items: center; gap: 24px; }
  .step-connector { width: 2px; height: 24px; }
  .founder-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .founder-card--teaser { padding: 28px; }
  .founder-content h2 { font-size: 1.8rem; }
  .founder-highlights { grid-template-columns: 1fr; }
  .developer-section { padding-bottom: 64px; }
  .developer-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .developer-principles { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .faq-section { padding: 64px 0; }
  .download-section { padding: 64px 0; }
  .download-card { border-radius: 26px; }
  .guide-hero {
    padding: 84px 0 104px;
  }
  .guide-article {
    margin-top: -56px;
    padding-bottom: 56px;
  }
  .guide-summary {
    padding: 26px 28px;
    border-radius: 28px;
  }
  .guide-hub-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .guide-hub-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-category-section {
    padding: 24px;
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-headline { font-size: clamp(2.35rem, 13vw, 3.2rem); }
  .hero-proof { grid-template-columns: 1fr; gap: 8px; }
  .proof-dot { display: none; }
  .hero-proof span { padding: 14px 16px; }
  .hero-phone-card { width: min(250px, 76vw); }
  .hero-floating-card { padding: 16px; }
  .live-demo-actions .btn {
    width: 100%;
  }
  .live-demo-device,
  .live-demo-caption {
    display: none;
  }
  .live-demo-mobile-preview {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: 100%;
  }
  .live-demo-mobile-cta {
    display: inline-flex;
    justify-content: center;
    width: min(100%, 320px);
  }
  .live-demo-mobile-preview img {
    width: min(250px, 72vw);
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18);
  }
  .live-demo-device {
    width: calc(100vw - 36px);
    height: clamp(540px, 74svh, 650px);
    padding: 38px 10px 11px;
    border-radius: 30px;
  }
  .live-demo-device iframe {
    border-radius: 22px;
  }
  .article,
  .legal {
    padding: 28px 18px 34px;
    border-radius: 18px;
  }
  .guide-panel,
  .guide-card-panel,
  .guide-glossary,
  .guide-diagram,
  .guide-decision-tree,
  .guide-matrix,
  .guide-research-basis,
  .guide-checklist,
  .guide-note {
    padding: 20px 18px;
    border-radius: 20px;
  }
  .founder-card { padding: 22px; }
  .founder-card--teaser { padding: 22px; }
  .founder-content h2 { font-size: 1.55rem; }
  .founder-actions .btn { width: 100%; justify-content: center; }
  .developer-card { padding: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .guide-hero {
    padding: 76px 0 92px;
  }
  .guide-hero .page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    border-radius: 22px;
  }
  .guide-article {
    margin-top: -44px;
  }
  .guide-summary {
    padding: 22px 20px;
    border-radius: 24px;
  }
  .guide-hub-panel,
  .guide-category-section {
    padding: 22px 20px;
    border-radius: 24px;
  }
  .guide-hub-proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .guide-hub-path-step {
    grid-template-columns: 1fr;
  }
  .guide-topic-nav a {
    width: 100%;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0D0D0D;
    --color-surface: #1A1A1A;
    --color-surface-alt: #141925;
    --color-surface-dim: #2A2A2A;
    --color-accent: #6BAFB2;
    --color-accent-light: #1A3535;
    --color-warning: #C49040;
    --color-connected: #5A9B5E;
    --color-error: #C0604A;
    --color-text-primary: #E0E0E0;
    --color-text-secondary: #999999;
    --color-baby-pink: #8A5A63;
    --color-parent-blue: #5A7A99;
    --color-disabled: #444444;
    --color-swiss-red: #C04040;
  }

  body {
    color-scheme: dark;
  }

  .nav {
    background: rgba(13, 13, 13, 0.85);
    border-bottom-color: var(--color-surface-dim);
  }

  .hero-phone-card,
  .hero-floating-card,
  .download-card,
  .benefit-card {
    background: var(--color-surface);
    border-color: var(--color-surface-dim);
  }

  .hero-phone-card img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .feature-visual img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .feature-visual--phone img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  }

  img {
    opacity: 0.9;
  }
}

/* ============================================
   Legacy classes (kept for subpage compat)
   ============================================ */
.hero-highlight {
  color: var(--color-accent);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.check { color: var(--color-connected); }
.cross { color: var(--color-error); }

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* --- Coming Soon Banner --- */
.banner-coming-soon {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--color-accent-light);
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  padding: 12px 0;
  color: var(--color-text-primary);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}
.banner-coming-soon .container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: center;
}
.banner-coming-soon__sparkle {
  font-size: 1.1rem;
  line-height: 1;
}
.banner-coming-soon p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.banner-coming-soon strong { color: var(--color-accent); }
@media (max-width: 600px) {
  .banner-coming-soon .container { flex-direction: column; gap: 4px; }
  .banner-coming-soon p { font-size: 0.9rem; }
}
