/* Keep the existing public website styles outside the app. */
:root { --bg:#000; --bg-card:#111; --text:#fff; --text-muted:#aaa; --green:#4caf50; --green-dim:#388e3c; --border:#222; color-scheme:dark; }
html { background:#101010; scroll-behavior:smooth; }
body { margin:0; background:#101010; color:#fff; font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
#root { min-height:100svh; display:flex; flex-direction:column; }
.marketing { background:#000; line-height:1.6; }
.marketing[hidden] { display:none; }

@scope (.marketing) {
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --bg-card: #111;
  --text: #fff;
  --text-muted: #aaa;
  --green: #4caf50;
  --green-dim: #388e3c;
  --border: #222;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #66bb6a;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100;
}

nav .logo {
  height: 32px;
  width: auto;
  display: block;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav .nav-links a:hover {
  color: var(--text);
}

nav .nav-links a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  flex: 1;
}

.hero .logo-big {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero p {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-weight: 600;
  padding: 0.8rem 2.4rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #66bb6a;
  color: #000;
  transform: translateY(-1px);
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.platform-actions .cta-btn + .cta-btn {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.web-start-link {
  display: block;
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.feature-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--green);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page .effective-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.legal-page p {
  color: #ccc;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-page ul, .legal-page ol {
  color: #ccc;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 704px;
  margin: 1.75rem auto;
}

.footer-badges a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 12px 8px;
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.footer-badges img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .footer-badges {
    grid-template-columns: 1fr;
    max-width: 224px;
  }
}

/* Guides: text-led pages with a shared, quiet reading layout. */
.guide-index, .guide-article {
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.guide-index {
  max-width: 1024px;
}

.guide-article {
  max-width: 820px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.guide-index-header {
  padding: 1.5rem 0 3.5rem;
}

.guide-index h1, .article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0.9rem 0 1.4rem;
  text-wrap: balance;
}

.guide-index-header > p:last-child {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.guide-list, .related-guides ul {
  list-style: none;
}

.guide-list > li {
  border-top: 1px solid var(--border);
}

.guide-list > li:last-child {
  border-bottom: 1px solid var(--border);
}

.guide-entry {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
  gap: 1.5rem;
  padding: 2rem 0;
  color: var(--text);
}

.guide-entry h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  line-height: 1.3;
  margin: 0.5rem 0 0.65rem;
}

.guide-entry div > p:last-child {
  max-width: 640px;
  color: var(--text-muted);
}

.guide-number, .guide-arrow {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.guide-arrow {
  font-size: 1.5rem;
}

.guide-entry:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.reading-time {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.breadcrumbs {
  display: flex;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.article-byline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

.article-byline span {
  margin: 0 0.5rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ccc;
}

.article-body p {
  margin: 0 0 1.2rem;
}

.article-body .article-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}

.article-body h2, .guide-download h2, .related-guides h2 {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-body section {
  margin-top: 2.75rem;
}

.article-body h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 1.8rem 0 0.6rem;
}

.article-body a, .breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 1.25rem 0;
  margin: 1.75rem 0 0;
  border-block: 1px solid var(--border);
  font-size: 0.9rem;
}

.article-contents > span {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-body .editor-note {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 2px solid var(--green);
  padding-left: 1rem;
  margin: 1.75rem 0;
}

.comparison-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.comparison-wrap:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.6;
}

.comparison-table caption {
  text-align: left;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table thead {
  color: var(--text);
  background: var(--bg-card);
}

.article-body .table-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.prompt-list {
  padding-left: 1.6rem;
  margin: 1.5rem 0;
}

.prompt-list li {
  padding-left: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.prompt-list li::marker {
  color: var(--green);
  font-size: 0.85rem;
}

.control-list {
  margin: 1.5rem 0;
}

.control-list > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.control-list dt {
  color: var(--text);
  font-weight: 600;
}

.guide-download {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
}

.guide-download p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.related-guides {
  margin-top: 3rem;
}

.related-guides li {
  border-bottom: 1px solid var(--border);
}

.related-guides a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--text);
}

.related-guides a:hover, .related-guides a span {
  color: var(--green);
}

.home-guides {
  border-top: 1px solid var(--border);
}

.home-guides p {
  color: var(--text-muted);
  margin: 0.8rem 0 1rem;
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 580px;
}

.app-screens--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 280px;
}

.app-screens img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.app-screens figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.75rem;
}

.bio-examples > div {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.bio-examples dt {
  color: var(--green);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.bio-examples dd {
  margin: 0;
  color: var(--text);
}

.content-section.waiting-feature {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 430px);
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  text-align: left;
}

.waiting-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.waiting-copy p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 1rem 0;
}

.waiting-copy > a {
  display: inline-block;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .content-section.waiting-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .waiting-image {
    width: min(70%, 260px);
    justify-self: center;
  }

  .guide-index, .guide-article {
    padding: 2rem 1.5rem 3rem;
  }

  .guide-index-header {
    padding: 0.5rem 0 2rem;
  }

  .guide-entry {
    grid-template-columns: 1.5rem minmax(0, 1fr) 1rem;
    gap: 0.7rem;
  }

  .guide-entry .reading-time {
    display: block;
  }

  .control-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .app-screens {
    gap: 1rem;
  }
}

@media (max-width: 380px) {
  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  nav .nav-links {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
}

footer .copyright {
  color: #999;
  font-size: 0.8rem;
}

/* Content stays readable and navigable without JavaScript. */
main {
  width: 100%;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: #000;
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
  color: #000;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  max-width: 850px;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero .tagline {
  margin-bottom: 1rem;
}

.hero p {
  max-width: 610px;
}

.hero .availability {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.content-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.content-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-heading p, .steps p, .community-section p, .download-section p {
  color: var(--text-muted);
}

.content-section .features {
  padding: 0;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card p {
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-left: 1.5rem;
}

.steps li {
  padding-left: 0.25rem;
}

.steps li::marker {
  color: var(--green);
  font-weight: 700;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.community-section {
  max-width: 760px;
}

.why-smokie {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.why-smokie h2 {
  margin: 0.6rem 0 1rem;
}

.why-smokie p:not(.eyebrow) {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.why-smokie > a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-section p {
  margin-bottom: 1rem;
}

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding-right: 0.25rem;
}

.faq details p {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.legal-page a, .faq a, .community-section > a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-section {
  text-align: center;
  padding-bottom: 5rem;
}

.download-section p {
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  nav .nav-links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  nav {
    gap: 1rem;
  }

  .content-section {
    padding: 2rem 1.5rem;
  }

  .content-section .features, .steps {
    grid-template-columns: 1fr;
  }

  .download-section {
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a, .cta-btn {
    transition: none;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav {
    padding: 0.75rem 1rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  nav .nav-links a {
    font-size: 0.8rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero .logo-big {
    max-width: 220px;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .legal-page {
    padding: 2rem 1.5rem 3rem;
  }

  .legal-page h1 {
    font-size: 1.5rem;
  }
}
.article-body li + li { margin-top: .5rem; }

}
