/* ============================================
   MOJIOKO Download Page - Common Styles
   ============================================ */

:root {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: #27272a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Navigation */
/* REQ-0110 — top-nav slimmed to a thin band (padding 24 → 12, icon 32 → 28)
   so the h1 lands closer to the top and the first-viewport budget on a
   1366×768 laptop clears the version cards' buttons.  Kept out of position:
   fixed / sticky on purpose — the nav should scroll away with the hero, not
   consume viewport height on every subsequent section. */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.lang-switch {
  font-size: 14px;
  color: var(--text-secondary);
}

.lang-switch a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-switch a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.lang-switch a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hero Section */
/* REQ-0110 — hero top padding taken further down (40 → 20) alongside the
   thinner .top-nav so both the walkthrough video AND the version-card
   buttons clear the fold on a 1366×768 laptop.  Bottom padding stays at
   60 because the next section supplies its own top padding.  See REQ-0109
   for the earlier 80 → 40 pass. */
.hero {
  padding: 20px 0 60px;
  text-align: center;
}

/* REQ-0110 — h1 → tagline gap trimmed 16 → 12 to reclaim a few more px of
   fold budget without making the wordmark feel crowded. */
.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1;
}

/* REQ-0110 — tagline → video gap trimmed 32 → 24 (was 40 pre-REQ-0109). */
.hero .tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* REQ-0108 (updated by REQ-0109 and REQ-0110) — walkthrough video sits
   between the tagline and the 2-card choice.  REQ-0110 pulled max-width
   560 → 520 (video height 315 → 293) and margin-bottom 28 → 20 so both
   the video AND the newly-widened 2-card block clear the fold on a
   1366×768 laptop.  The video now sits visibly narrower than the cards
   below (520 vs 880), giving a subtle "opening up" effect toward the
   primary CTA.  Uses a fixed 16:9 aspect-ratio container so the iframe
   scales with the parent width without a JavaScript resize handler.
   `youtube-nocookie.com` is chosen in the HTML for privacy consistency
   with MOJIOKO's local-only stance. */
.hero-video {
  max-width: 520px;
  margin: 0 auto 20px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--bg-secondary);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #052e16;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s;
}

.download-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.download-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* REQ-0107 — 2-card layout that lets visitors pick between the free
   version (GitHub download) and the paid version (Microsoft Store) side by
   side.  Replaces the REQ-0106 `.store-note` + single-button pattern which
   used to sit beneath the primary download CTA and mostly went unnoticed.
   The two cards are laid out as an equal-column grid on desktop and stack
   vertically on narrow viewports (free card on top, matching the reading
   order in the HTML).  Sits within the .hero section — kept out of the
   .cta section per REQ-0107 §2-4 to avoid duplicating the choice further
   down the page. */
.version-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px auto 24px;
  /* REQ-0110 — widened 720 → 880 so the 2 cards visibly outsize the 520-wide
     walkthrough video above.  The eye moves down from the tight video into a
     wider primary CTA, which reads as "the choice opens up" rather than
     "narrow tunnel of options". */
  max-width: 880px;
  text-align: left;
}

@media (min-width: 720px) {
  .version-cards {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.version-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.version-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.3;
}

.version-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  width: 100%;
}

.version-card-features li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.version-card-features li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Card button — shared style so both cards get equal visual weight per
   REQ-0107 §2-1 ("2カードのボタンは対等").  Same green tone as
   .download-btn but scoped to `.version-card-btn` so tweaking either shape
   later cannot silently affect the other.  `margin-top: auto` lets the
   button drop to the bottom of the flex column, aligning the buttons across
   cards even when one card has a longer feature list. */
.version-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #052e16;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  margin-top: auto;
}

.version-card-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* System-requirements card (REQ-0254) — sits right below `.version-cards`
   in the hero so users see OS / memory / storage / GPU expectations before
   clicking a download CTA (this prevents e.g. macOS users from downloading
   the Windows installer by mistake). Visually matches `.version-card` —
   same background, border, radius, and ✓ bullet — but rendered as a single
   wide card since the requirements apply to Free and Paid equally. Same
   `max-width: 880px` as `.version-cards` keeps it aligned with the row
   above; padding is slightly tighter (20 vs 28) so it reads as a
   supplemental note rather than a third CTA. */
.sysreq-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 880px;
  margin: 0 auto 24px;
  text-align: left;
}

.sysreq-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sysreq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sysreq-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}

.sysreq-list li:last-child {
  margin-bottom: 0;
}

.sysreq-list li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.sysreq-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}

/* Subordinate link shown under the main download button — points to the
   Releases page so users who want changelog / older versions can still get
   there. Visually quieter than .download-btn so it doesn't compete. */
.release-notes-link {
  margin-top: 10px;
  font-size: 13px;
}

.release-notes-link a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.release-notes-link a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-secondary);
}

/* Secondary action below the main download button — links to /guide/.
   Sized between .download-btn (large green CTA) and .release-notes-link
   (text link) so the visual priority is: download > guide > release notes. */
.guide-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 18px;
  padding: 11px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.guide-btn:hover {
  background: var(--accent);
  color: #052e16;
  transform: translateY(-1px);
}

.guide-btn-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.guide-btn-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.2;
}

/* Screenshots Section */
.screenshots {
  padding: 60px 0;
}

.screenshots h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 768px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}

.screenshot-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .screenshot-item {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .screenshot-item.reverse {
    direction: rtl;
  }

  .screenshot-item.reverse > * {
    direction: ltr;
  }
}

.screenshot-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

.step-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.screenshot-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.screenshot-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================
   Features Section — REQ-0111
   =====================================
   Replaces the 3-step storytelling with a feature-focused layout
   ("MOJIOKO でできること" / "What you can do with MOJIOKO").  Kept
   deliberately parallel to the existing .screenshots rhythm — same section
   padding, same h2 size — so the flow into .shorts below stays visually
   consistent for readers who arrive expecting the old order. */

.features {
  padding: 60px 0;
}

.features h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}

/* Feature 1 / 3 / 4 — a horizontal image + copy row.  Mirrors the
   .screenshot-item structure (grid 1fr → 1fr 1fr at 900px, reversible with
   `direction: rtl` toggle) so the alternating left-right rhythm across all
   image-rich sections keeps a single implementation pattern. */
.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .feature-item {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .feature-item.reverse {
    direction: rtl;
  }

  .feature-item.reverse > * {
    direction: ltr;
  }
}

.feature-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Feature 2 wrapper — centred sub-heading over a 2×2 tile grid.  Broken
   out from `.feature-item` because tiles here are self-contained (image
   above title above copy inside each cell) rather than a single image on
   one side of a paragraph. */
.feature-block {
  margin-bottom: 64px;
}

.feature-block-header {
  text-align: center;
  margin-bottom: 32px;
}

.feature-block-header h3 {
  font-size: 26px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

.feature-grid-cell h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.feature-grid-cell p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Feature screenshot — width-follows-container with natural aspect ratio
   (source PNGs ship at 1282×878, roughly 3:2, not 16:9), so we set
   `height: auto` rather than forcing an aspect-ratio + object-fit that
   would crop the UI shown in the screenshot.  Radius / border / shadow
   match `.screenshot-image` above so both image-rich sections read as
   part of the same visual family. */
.feature-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Terminology hint callout — muted aside below each feature's copy that
   spells out a jargon term (e.g. "SRT形式とは？").  Uses `p.feature-hint`
   selector so it overrides the `.feature-content p` rule above without
   `!important`; specificity 0-1-1 in both cases, later declaration wins. */
p.feature-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.65;
  border-left: 2px solid var(--border);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 6px 6px 0;
  margin-top: 20px;
  margin-bottom: 0;
}

.feature-hint-label {
  color: var(--text-secondary);
  font-weight: 600;
  margin-right: 6px;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Equal-weight 2-button pair for the bottom CTA (REQ-0113 §2).  Mirrors
   the hero's `.version-cards` layout — 1 column below 720px, 2 columns
   at ≥720px — so the "free ↔ store" pairing reads the same top and
   bottom of the page.  Scoped as its own selector rather than reusing
   `.version-card-btn` so future tuning of either pair cannot silently
   drag the other. */
.cta-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 24px;
}

@media (min-width: 720px) {
  .cta-actions {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Filled green pill matching `.version-card-btn` visually (same padding,
   radius, weight, hover lift) but declared here so the CTA pair owns its
   own tuning knobs. */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #052e16;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Muted "back to top" link at the very end of the CTA so long pages don't
   dead-end at the footer.  Same tone as `.release-notes-link` (text-
   secondary, no underline until hover) so it stays quieter than the
   primary buttons above it.  Anchor target is `#top` on the top nav —
   the page's existing `scroll-behavior: smooth` handles the animation. */
.cta-back-to-top {
  margin-top: 32px;
  font-size: 13px;
}

.cta-back-to-top a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.cta-back-to-top a:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 12px;
}

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

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* REQ-0257 §1.6 — FreeType Project attribution line rendered at the
   footer of the top pages.  The FreeType License asks for the credit
   to travel in "documentation or user interface"; the download site
   is the most-viewed piece of documentation the app ships with, so
   surfacing it here plus in installer/licenses/README.md covers both
   the audience that sees the site and the audience that opens the
   third-party licenses folder from About.  Small font-size + muted
   colour keep it a legal notice rather than a promoted claim. */
.footer-credit {
  flex-basis: 100%;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
}

.footer-credit a {
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  /* REQ-0110 — mobile hero top padding cut 28 → 16 to match the desktop
     tightening pass (20 top).  Kept slightly below the desktop value so the
     phone header + h1 reads as a tighter unit. */
  .hero {
    padding: 16px 0 40px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero .tagline {
    font-size: 16px;
  }

  .download-btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  .screenshots h2,
  .cta h2 {
    font-size: 26px;
  }

  .screenshot-content h3 {
    font-size: 22px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================
   Shorts Section
   ===================================== */

.shorts {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.shorts h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}

.shorts-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .shorts-content {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  /* Image-right / text-left flip for the shorts section.  Mirrors the
     .screenshot-item.reverse mechanism used by Step 2 so the four-section
     left/right rhythm (step1 left, step2 right, step3 left, shorts right)
     stays consistent.  Below 900px the grid collapses to a single column
     and this rule has no effect, so mobile layout is unchanged. */
  .shorts-content.reverse {
    direction: rtl;
  }
  .shorts-content.reverse > * {
    direction: ltr;
  }
}

.shorts-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

.shorts-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* =====================================
   Planned Features Section
   ===================================== */

.planned {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.planned h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.planned-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.planned-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
}

.planned-list li {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.planned-list li::before {
  content: "★";
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.planned-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 24px;
}

/* =====================================
   Support Section
   ===================================== */

.support {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.support-header {
  max-width: 700px;
  margin: 0 auto 32px;
}

.support h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-intro {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.support-cards {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 640px) {
  .support-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.support-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.support-card-info p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.support-btn:hover {
  background: var(--accent);
  color: #052e16;
  border-color: var(--accent);
}

.support-btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =====================================
   User Guide Page (/guide/)
   ===================================== */

/* Brand link in guide pages — visually identical to .brand but clickable */
.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-link:hover .brand-icon {
  opacity: 0.85;
}

/* Hero block on the guide page (lighter than the homepage hero) */
.guide-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.guide-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-hero .tagline {
  font-size: 16px;
  color: var(--text-secondary);
}

.guide-back {
  text-align: left;
  margin-bottom: 24px;
  font-size: 13px;
}

.guide-back a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.guide-back a:hover {
  color: var(--accent);
}

/* FAQ list (uses native <details>/<summary> for zero-JS accordion) */
.guide-faq {
  padding: 20px 0 60px;
  max-width: 820px;
  margin: 0 auto;
}

.qa {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.qa[open] {
  border-color: rgba(34, 197, 94, 0.35);
}

.qa summary {
  /* Override the default disclosure triangle so we can place our own caret. */
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  user-select: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s, color 0.15s;
  line-height: 1;
}

.qa[open] summary::after {
  content: "−";
  color: var(--accent);
}

.qa summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.q-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.q-text {
  flex: 1;
  line-height: 1.4;
}

/* Q&A priority badges (used in the user guide summary line in place of
   the old Q1/Q2/... numeric labels). Kept under a `.qa-badge` namespace
   to avoid colliding with the existing `.badge` / `.badge-light` used by
   the Whisper model cards in this same page. */
.qa-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: bold;
  margin-right: 10px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.qa-badge-important {
  background-color: transparent;
  color: #FB8C00;
  border: 1px solid #FB8C00;
}

.qa-badge-info {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.qa-body {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* REQ-0106 — centred wrapper for the Microsoft Store CTA that sits at the
   end of the "Free vs Paid" QA panel.  `.guide-btn` is display: inline-flex
   so a `text-align: center` on the parent is enough to centre it inside the
   otherwise left-aligned QA body. */
.qa-store-cta {
  text-align: center;
  margin-top: 24px;
}

.qa-body > * + * {
  margin-top: 14px;
}

.qa-body h4 {
  margin-top: 28px;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.qa-body h5 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.qa-body strong {
  color: var(--text-primary);
}

.qa-body em {
  color: var(--text-tertiary);
  font-style: normal;
  font-size: 14px;
}

.qa-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(34, 197, 94, 0.4);
  text-underline-offset: 3px;
}

.qa-body a:hover {
  text-decoration-color: var(--accent);
}

/* Numbered / bulleted lists inside answers */
.guide-list {
  padding-left: 22px;
}

.guide-list li {
  margin-bottom: 4px;
}

.guide-list li::marker {
  color: var(--text-tertiary);
}

/* Model comparison cards inside Q1 */
.model-card {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-primary);
}

.model-card-primary {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.model-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.badge,
.badge-light {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.badge {
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent);
}

.badge-light {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.model-specs {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
  font-size: 14px;
}

.model-specs li {
  padding: 3px 0;
  color: var(--text-secondary);
}

.model-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Back-to-top CTA at bottom of guide page */
.guide-back-cta {
  padding: 16px 0 64px;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile tweaks for the guide page */
@media (max-width: 700px) {
  .guide-hero h1 {
    font-size: 28px;
  }

  .qa summary {
    padding: 16px 18px;
    font-size: 15px;
    gap: 12px;
  }

  .qa-body {
    padding: 0 18px 20px;
  }

  .model-card {
    padding: 14px 16px;
  }
}

/* =====================================
   Feedback Page (/feedback/)
   ===================================== */

/* Shared section frame used by all three blocks (CTA / tips / question
   redirect). Centred text + generous vertical rhythm to match the rest of
   the site's section spacing. */
.feedback-section {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.feedback-section:first-of-type {
  border-top: none;
  padding-top: 32px;
}

.feedback-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.feedback-section > p {
  max-width: 640px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* Main CTA block — the primary download-style button is already styled
   globally via .download-btn; we only need to give the section a stronger
   visual weight on the page. */
.feedback-cta {
  padding-bottom: 56px;
}

/* Tips block — the inner .guide-faq keeps its left-aligned accordion
   layout, but we restore left-alignment for the answer body since the
   parent section is text-align: center. */
.feedback-tips .guide-faq {
  text-align: left;
  padding: 12px 0 0;
}

/* Question redirect block — the .guide-btn (outlined accent) is used as
   the secondary CTA. The single-line label variant works because the
   .guide-btn flex-column will simply have one item. */
.feedback-questions .guide-btn {
  margin-top: 12px;
}

/* Inline code styling used inside answer bodies (Win + Shift + S, main.log,
   etc.). Mirrors the dark surface of model-card to stay consistent. */
.qa-body code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono",
    "Roboto Mono", Consolas, monospace;
  font-size: 0.92em;
  line-height: 1.4;
}

/* Mobile tweaks for the feedback page */
@media (max-width: 700px) {
  .feedback-section {
    padding: 36px 0;
  }

  .feedback-section h2 {
    font-size: 22px;
  }

  .feedback-section > p {
    font-size: 14px;
  }
}

/* =====================================
   Privacy Policy Page (/privacy/)
   ===================================== */

/* Article wrapper for long-form policy prose. Mirrors .guide-faq's
   max-width / centring so headers and footer line up with the rest of
   the site, but uses an article-style left-aligned layout instead of
   the accordion. */
.privacy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 56px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.privacy-meta {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.privacy-content h2 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.privacy-content p {
  margin-bottom: 14px;
}

.privacy-content ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.privacy-content ul li {
  margin-bottom: 6px;
}

.privacy-content ul li::marker {
  color: var(--text-tertiary);
}

.privacy-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(34, 197, 94, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.privacy-content a:hover {
  text-decoration-color: var(--accent);
}

.privacy-content strong {
  color: var(--text-primary);
}

/* Mobile tweaks for the privacy page */
@media (max-width: 700px) {
  .privacy-content {
    font-size: 14px;
  }

  .privacy-content h2 {
    font-size: 19px;
    margin-top: 32px;
  }

  .privacy-content h3 {
    font-size: 15px;
  }
}
