/* ORAV Forge: shared typography, layout and components. */
:root {
  color-scheme: dark;
  --bg: #151718;
  --surface: #1d2021;
  --surface-soft: #191c1d;
  --ink: #f1f1ec;
  --muted: #b5bcbf;
  --line: #383f42;
  --orange: #ff9a50;
  --teal: #73d2d4;
  --accent: var(--orange);
  --width: 1120px;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 850px; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
p + p { margin-top: 1rem; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.25rem; color: var(--muted); }
li + li { margin-top: .55rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
main { min-height: 50vh; }
[id] { scroll-margin-top: 24px; }
.section-shell { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.product-theme { --accent: var(--teal); }
.eyebrow { color: var(--accent); font-size: .8125rem; line-height: 1.5; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 16px; }
.lead { font-size: 1.125rem; line-height: 1.7; max-width: 660px; margin-top: 22px; }
.small-note, figcaption, .screens-note { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; z-index: 20; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Shared header and footer sit outside the main content landmark. */
.site-header { border-bottom: 1px solid var(--line); --accent: var(--orange); }
.header-inner { width: min(var(--width), calc(100% - 64px)); margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: .25em; min-height: 44px; font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.03em; }
.brand span { color: var(--orange); letter-spacing: .025em; }
#primary-navigation { display: flex; gap: 28px; align-items: center; }
#primary-navigation a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); text-decoration: none; font-size: .9375rem; position: relative; }
#primary-navigation a:hover, #primary-navigation a[aria-current] { color: var(--ink); }
#primary-navigation a[aria-current]::after { content: ""; height: 2px; background: var(--orange); position: absolute; bottom: 0; inset-inline: 0; }
.nav-toggle { display: none; }
.site-footer { --accent: var(--orange); border-top: 1px solid var(--line); padding: 36px 0 24px; margin-top: 0; background: #121415; }
.footer-inner { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: start; gap: 32px; }
.footer-top p { font-size: .875rem; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; max-width: 640px; }
.footer-links a, .footer-socials a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .8125rem; text-decoration: none; }
.footer-links a:hover, .footer-socials a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.copyright { font-size: .8125rem; padding-block: 12px; }
.footer-socials { display: grid; }
.footer-socials a { min-width: 24px; justify-content: center; }
.footer-socials > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; }
.footer-socials span { color: var(--ink); font-size: .8125rem; min-width: 84px; }

/* Reusable actions. */
.primary-button, .secondary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 650; text-decoration: none; font-size: .9375rem; }
.primary-button { background: var(--orange); color: #191716; }
.primary-button:hover { background: #ffad73; }
.teal-button { background: var(--teal); color: #102b2c; }
.teal-button:hover { background: #9ce5e5; }
.secondary-button, .outline-button { color: var(--ink); border-color: var(--line); background: transparent; }
.secondary-button:hover, .outline-button:hover { border-color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 12px 0; }
.store-badges a { display: block; border-radius: 7px; }
.store-badges img { height: 48px; width: auto; max-width: none; }
.store-badges a:hover { outline: 1px solid var(--muted); outline-offset: 5px; }

/* Company pages. */
.home-intro { padding-block: 64px 60px; }
.home-intro h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; }
.home-intro .lead { max-width: 640px; }
.home-intro .primary-button { margin-top: 28px; }
.featured-product { background: var(--surface-soft); border-block: 1px solid var(--line); }
.product-overview { display: grid; grid-template-columns: 1.12fr 1fr; gap: 72px; align-items: center; padding-block: 56px; }
.product-identity { display: flex; gap: 12px; align-items: center; font-weight: 650; font-size: 1.3rem; color: var(--ink); }
.product-identity img { width: 44px; height: 44px; border-radius: 10px; }
.product-copy h2 { margin-block: 20px 18px; font-size: 2.25rem; }
.product-copy > p { max-width: 540px; }
.benefit-list { list-style: none; padding: 0; margin-block: 24px; }
.benefit-list li { position: relative; padding-left: 20px; }
.benefit-list li::before { content: "–"; color: var(--teal); position: absolute; left: 0; font-weight: 700; }
.product-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.product-screens figure { min-width: 0; }
.product-screens img { width: 100%; max-height: 360px; object-fit: contain; }
.product-screens figcaption { margin-top: 14px; text-align: center; color: var(--ink); }
.screens-note { grid-column: 1 / -1; text-align: center; }
.company-summary { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding-block: 60px; }
.company-summary .text-link { margin-top: 12px; }
.page-intro { padding-top: 56px; padding-bottom: 40px; }
.page-intro .lead { max-width: 720px; }
.product-listing { padding-top: 32px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.product-listing .product-identity span { display: none; }
.product-listing .store-badges { margin-top: 28px; }
.product-subtitle { color: var(--teal); }
.single-screen { text-align: center; padding: 28px; background: var(--surface-soft); border-radius: var(--radius); }
.single-screen img { max-height: 420px; width: auto; margin-inline: auto; }
.single-screen figcaption { margin-top: 16px; }
.about-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 80px; padding-bottom: 64px; align-items: start; }
.prose h2 { margin-bottom: 20px; }
.prose h2:not(:first-child) { margin-top: 40px; }
.prose .text-link { margin-top: 10px; }
.about-art { max-width: 280px; justify-self: end; }
.about-art img { border-radius: var(--radius); }
.about-art figcaption { margin-top: 12px; }
.contact-email { display: inline-flex; flex-wrap: wrap; gap: 10px; font-size: clamp(1.05rem, 2.2vw, 1.6rem); min-height: 48px; align-items: center; margin-top: 20px; font-weight: 600; overflow-wrap: anywhere; }
.support-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding-block: 12px 56px; }
.support-layout h2 { margin-bottom: 20px; }
.notice { border-left: 3px solid var(--orange); padding: 24px; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; align-self: start; }
.notice h2 { font-size: 1.3rem; }
.support-reading { border-top: 1px solid var(--line); padding-block: 36px 56px; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin-top: 20px; }
.link-list a { padding-block: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

/* FosterLog product detail. */
.product-intro { padding-top: 48px; padding-bottom: 0; }
.product-intro .eyebrow { margin-top: 24px; }
.product-intro h1 { max-width: 800px; }
.product-intro .lead { max-width: 720px; }
.product-intro .store-badges { margin-top: 24px; }
.product-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; border-block: 1px solid var(--line); margin-top: 32px; padding-block: 8px; }
.product-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; color: var(--muted); text-decoration: none; }
.product-nav a:hover { color: var(--teal); }
.workflow { padding-block: 48px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.workflow-grid figure { display: flex; flex-direction: column; }
.step-label { color: var(--teal); font-size: .8125rem; font-weight: 600; }
.workflow-copy h3 { margin-block: 10px 12px; }
.workflow-copy { margin-bottom: 24px; }
.workflow-copy p { font-size: .9375rem; }
.screenshot-mat { background: #22282a; border-radius: var(--radius); padding: 24px 20px; margin-top: auto; }
.screenshot-mat img { height: 330px; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; }
.workflow-grid figcaption { margin-top: 12px; }
.workflow > .small-note { margin-top: 24px; max-width: 780px; }
.information-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; padding-block: 48px; border-top: 1px solid var(--line); }
.information-section h2 { margin-bottom: 20px; }
.information-section .text-link { margin-top: 18px; }
.detail-list > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.detail-list > div:first-child { padding-top: 0; }
dt { font-weight: 650; margin-bottom: 6px; }
dd { margin: 0; color: var(--muted); font-size: .9375rem; }
.agency-note { padding: 24px 28px; background: var(--surface); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.agency-note p { margin-top: 8px; font-size: .9375rem; }
.premium-section { padding-block: 56px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plans article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.plans article:last-child { border-top: 3px solid var(--teal); padding-top: 26px; }
.plan-label { color: var(--teal); font-size: .875rem; font-weight: 650; margin-bottom: 12px; }
.plans h3 { font-size: 1.5rem; margin-bottom: 16px; }
.purchase-note { max-width: 900px; margin-top: 24px; font-size: .9375rem; }
.platform-details { margin-top: 24px; }
.faq-section { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; padding-block: 48px; border-top: 1px solid var(--line); }
.faq-section h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 18px; font-weight: 600; line-height: 1.5; }
details p { padding-bottom: 20px; max-width: 800px; }
details .text-link { margin-bottom: 20px; }
.release-notes { padding-block: 24px 56px; }
.release-notes h2 { font-size: 1.5rem; margin-bottom: 12px; }
.release-notes > .small-note { margin-bottom: 10px; }
.download-section { border-top: 1px solid var(--line); padding-block: 48px; background: var(--surface-soft); }
.download-section h2 { margin-bottom: 18px; }
.download-section .store-badges { margin-top: 24px; }
.download-section .small-note { margin-top: 12px; }
.download-section .text-link { margin-top: 18px; }

/* Resources and retained articles. */
.guides-section { padding-bottom: 36px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.resource-card { border-top: 2px solid var(--teal); padding-top: 22px; display: flex; flex-direction: column; align-items: start; }
.resource-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.resource-card-meta span:first-child { color: var(--teal); }
.resource-card h2 { font-size: 1.4rem; margin-block: 18px 16px; line-height: 1.3; }
.resource-card h2 a { color: var(--ink); text-decoration: none; }
.resource-card h2 a:hover { text-decoration: underline; }
.resource-card p { font-size: .9375rem; margin-bottom: 16px; }
.resource-card .text-link { margin-top: auto; }
.resource-disclaimer { border-left: 3px solid var(--teal); background: var(--surface); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 40px; font-size: .9375rem; }
.resource-disclaimer p { margin-top: 6px; }
.resource-product { display: grid; grid-template-columns: 180px 1fr; gap: 32px; border-top: 1px solid var(--line); padding-block: 36px 56px; align-items: start; }
.resource-product h2 { font-size: 1.6rem; margin-bottom: 12px; }
.resource-product .text-link { margin-top: 12px; }
.article-hero { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; padding-block: 40px; }
.article-hero h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); max-width: 880px; }
.breadcrumb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; font-size: .875rem; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.article-lead { font-size: 1.1rem; max-width: 790px; margin-top: 24px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; margin-top: 20px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-bottom: 48px; align-items: start; }
.article-toc { display: grid; align-content: start; border-top: 1px solid var(--line); padding-top: 18px; }
.article-toc strong { margin-bottom: 12px; }
.article-toc a { font-size: .875rem; padding-block: 10px; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article-content { max-width: 760px; }
.article-content h2 { font-size: 1.6rem; margin-block: 36px 20px; }
.article-content h3 { margin-bottom: 12px; }
.article-content p, .article-content li { line-height: 1.8; }
.article-example, .article-template, .article-note { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-block: 24px; }
.article-example span { color: var(--teal); font-weight: 600; font-size: .875rem; }
.article-example p { margin-block: 8px 18px; }
.article-example p:last-child { margin-bottom: 0; }
.article-template ol, .article-template ul { margin-bottom: 0; }
.article-note { border-left: 3px solid var(--teal); }
.article-note p { margin-top: 10px; }
.article-topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block: 28px; }
.article-topic-grid article { border-top: 1px solid var(--line); padding-top: 20px; }
.article-cta { display: flex; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); align-items: start; }
.article-cta > img { width: 44px; height: 44px; border-radius: 10px; }
.article-cta h2 { margin-top: 0; }

/* Existing policy wording is retained, with readable shared typography. */
.legal-hero { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; padding-block: 48px 40px; }
.legal-hero p:not(.eyebrow) { margin-top: 20px; }
.legal-hero small { display: block; color: var(--muted); font-size: .875rem; margin-top: 16px; }
.legal-product-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; color: var(--teal); font-size: .875rem; }
.legal-product-row img { width: 40px; height: 40px; border-radius: 8px; }
.legal-product-mark { display: inline-flex; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; background: var(--surface); font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-bottom: 64px; align-items: start; }
.legal-layout > aside { display: grid; align-content: start; gap: 8px; font-size: .875rem; }
.legal-layout > aside span { color: var(--muted); }
.legal-layout > aside a { padding-block: 10px; }
.legal-content { max-width: 760px; min-width: 0; overflow-wrap: anywhere; }
.legal-content section { margin-top: 32px; }
.legal-content h2 { font-size: 1.5rem; line-height: 1.35; margin-bottom: 16px; }
.legal-content h3 { margin-block: 24px 16px; }
.legal-content p, .legal-content li { line-height: 1.8; }
.legal-lead { font-size: 1.1rem; }
.legal-email { display: inline-flex; align-items: center; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
