/* Eave — shared styles for support/guide subpages */

:root {
  --bg:      #F4EFE6;
  --surface: #EAE2D2;
  --stone:   #DCD2BD;
  --jade:    #6FA8C9;
  --amber:   #E0A83D;
  --ink:     #1F3A52;
  --muted:   #5C6A73;
  --dim:     #8A8480;
  --chamfer: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.01em;
}

.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.wordmark {
  font-family: 'Sacramento', cursive;
  font-size: 34px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .02em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-jade {
  background: var(--jade);
  color: var(--bg);
  border-radius: 16px;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--stone);
  border-radius: 16px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,239,230,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--stone);
  padding: 24px 32px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── SUB-NAV ── */
.sub-nav {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(244,239,230,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.sub-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-inner a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 20px;
  height: 48px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--stone);
  transition: color .2s, background .2s;
}
.sub-nav-inner a:first-child { padding-left: 0; }
.sub-nav-inner a:hover { color: var(--jade); }
.sub-nav-inner a.active { color: var(--jade); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 84px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--stone); }
.breadcrumb a { color: var(--dim); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--jade); }
.breadcrumb [aria-current] { color: var(--muted); }

/* ── PAGE HERO (frosted house photo backdrop, matching the homepage) ── */
.page-hero {
  position: relative;
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--stone);
  background-image:
    linear-gradient(180deg, rgba(244,239,230,.80), rgba(244,239,230,.90)),
    url('/images/opt/hero-bg-blur-1920.webp');
  background-size: cover;
  background-position: center 28%;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 16px; }
.page-hero p { font-size: 14px; color: var(--muted); max-width: 620px; }

/* ── SECTIONS ── */
.support-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--stone);
}
.support-section:last-of-type { border-bottom: none; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 20px; margin-top: 8px; }

/* ── Q&A (always visible, crawlable) ── */
.qa-item {
  border-bottom: 1px solid var(--stone);
  padding: 24px 0;
  max-width: 760px;
}
.qa-item:last-child { border-bottom: none; }
.qa-item h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.qa-item p, .qa-item li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.qa-item p + p { margin-top: 10px; }
.qa-item ul, .qa-item ol { padding-left: 20px; margin-top: 8px; }
.qa-item a { color: var(--jade); text-decoration: underline; }

/* ── DOC ARTICLE PROSE (help-center pages) ── */
.doc { max-width: 760px; }
.doc h2 { font-size: 19px; margin: 36px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 15px; margin: 24px 0 8px; }
.doc p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 14px 22px; }
.doc li { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 7px; }
.doc a { color: var(--jade); text-decoration: underline; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc code { font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: var(--surface); padding: 1px 5px; border-radius: 4px; }

/* ── ARTICLE BLOCKS (in-depth) ── */
.article-block {
  max-width: 760px;
  padding: 24px 0;
  border-bottom: 1px solid var(--stone);
}
.article-block:last-child { border-bottom: none; }
.article-block h3 { font-size: 15px; margin-bottom: 10px; }
.article-block p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.article-block p + p { margin-top: 10px; }
.article-block a { color: var(--jade); text-decoration: underline; }

/* ── TOPIC CARDS ── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: var(--chamfer);
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.topic-card:hover { border-color: var(--jade); transform: translateY(-2px); }
.topic-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.topic-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.topic-card-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.topic-card-links li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.topic-card-links li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--jade);
}
.topic-card-more {
  margin-top: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--jade);
}

/* ── GUIDE STEPS ── */
.guide-steps {
  list-style: none;
  counter-reset: step;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 0 20px 56px;
  border-bottom: 1px solid var(--stone);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.guide-steps li:last-child { border-bottom: none; }
.guide-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--jade);
  border: 1px solid var(--stone);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

/* ── SCREENSHOTS ── */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}
.shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--stone);
  box-shadow: 0 12px 40px rgba(31,58,82,.10);
}
.shot-phone { max-width: 280px; margin: 0 auto; }
/* Labeled placeholder while awaiting a real screenshot */
.shot-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--stone);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
}
.shot-placeholder .ph-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jade);
}
.shot-placeholder .ph-note { font-size: 12px; color: var(--dim); line-height: 1.5; }
.shot-placeholder.phone { aspect-ratio: 3 / 4; max-width: 280px; margin: 0 auto; }
.shot-caption {
  font-size: 11px;
  color: var(--dim);
  margin-top: 10px;
  text-align: center;
}
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.feature-split.reverse > :first-child { order: 2; }
@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; gap: 28px; }
  .feature-split.reverse > :first-child { order: 0; }
}

/* ── CROSS-LINK CARDS ── */
.xlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.xlink-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: var(--chamfer);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.xlink-card:hover { border-color: var(--jade); transform: translateY(-2px); }
.xlink-card .xlink-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.xlink-card .xlink-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── ANECDOTE (illustrative scenario; swap for real customer story later) ── */
.anecdote {
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--stone);
  border-left: 3px solid var(--jade);
  border-radius: var(--chamfer);
  padding: 26px 30px;
}
.anecdote-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 10px;
}
.anecdote-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.anecdote p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.anecdote p + p { margin-top: 12px; }
.anecdote strong { color: var(--ink); font-weight: 700; }

/* ── CONTACT CTA STRIP ── */
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: var(--chamfer);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-strip p { font-size: 13px; color: var(--muted); max-width: 520px; }
.contact-strip strong { color: var(--ink); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-social-label { font-family: 'Space Grotesk', sans-serif; font-size: 9px; letter-spacing: .12em; color: var(--dim); margin-bottom: 4px; }
.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-social a:hover { color: var(--jade); }
.footer-social a:hover svg { stroke: var(--jade); }
.footer-tagline { font-size: 12px; color: var(--dim); margin-top: 8px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--jade); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 11px; color: var(--dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 11px; color: var(--dim); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .breadcrumb { padding-top: 76px; }
}


/* ── PRODUCTS DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted);
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; transition: color .2s;
}
.nav-dropdown-toggle:hover, .nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--ink); }
.nav-caret { font-size: 9px; opacity: .7; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin: 12px 0 0; padding: 8px;
  min-width: 214px; list-style: none;
  background: var(--surface, #fffdf9); border: 1px solid var(--stone);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(31,58,82,.12);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted);
  white-space: nowrap; text-decoration: none;
}
.nav-dropdown-menu a:hover { background: rgba(111,168,201,.14); color: var(--ink); }
.mobile-menu-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim, #9a9384);
  padding: 14px 0 6px; border-bottom: 1px solid var(--stone);
}

.nav-dropdown-right .nav-dropdown-menu { left: auto; right: 0; }

/* ── PRODUCTS MENU: three worlds, subordinate add-ons ── */
.nav-worlds a { color: var(--ink); }
.nav-app { color: var(--muted); }
.nav-worlds .nav-group {
  margin-top: 5px; padding: 12px 12px 5px; border-top: 1px solid var(--stone);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.nav-addon a, a.nav-addon { padding-left: 26px; color: var(--muted); }
