/* oganvil site-wide shared design system — extracted from the Astra LP (index.html).
   Every non-LP page imports this first, then may add page-specific CSS after. */

  /* Foundations (identical to LP) -------------------------------------- */
  :root {
    --page: #101212;
    --surface: #171a19;
    --surface-raised: #1d211f;
    --surface-deep: #0c0e0d;
    --ink: #f2f4ed;
    --muted: #a9b1a8;
    --subtle: #949e94;
    --line: #303630;
    --line-soft: #252b25;
    --accent: #d8f78a;
    --accent-hover: #e6ffab;
    --accent-ink: #202814;
    --lavender: #c8b8f3;
    --orange: #efb088;
    --green: #a4dbb2;
    --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --radius: 16px;
    --max: 1200px;
    --ease: cubic-bezier(.22, 1, .36, 1);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  button, input { font: inherit; }
  button, a, summary { -webkit-tap-highlight-color: transparent; }
  button { color: inherit; }
  a { color: inherit; text-underline-offset: 4px; }
  button:not(:disabled), summary { cursor: pointer; }
  img, svg { display: block; }
  img { max-width: 100%; }
  svg { flex-shrink: 0; }
  h1, h2, h3, h4, p, figure { margin: 0; }
  h1, h2, h3, h4 { text-wrap: balance; }
  p { text-wrap: pretty; }
  strong { color: var(--ink); font-weight: 600; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
    border-radius: 3px;
  }
  [hidden] { display: none !important; }
  .wrap { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
  .sr-only {
    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: 12px; left: 16px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    border-radius: 8px;
    transform: translateY(-180%);
  }
  .skip-link:focus { transform: translateY(0); }
  .icon { width: 20px; height: 20px; }
  .mono { font-family: var(--mono); }
  .accent-text { color: var(--accent); }
  .section { padding-block: 112px; }
  .section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 19px;
  }
  .section-label::before {
    content: "";
    width: 7px; height: 7px;
    background: currentColor;
    flex-shrink: 0;
  }
  .section-label .section-index { color: var(--subtle); margin-right: 2px; }
  .section-heading {
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -2px;
  }
  .section-sub {
    max-width: 570px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    margin-top: 20px;
  }
  .section-head { margin-bottom: 46px; }
  .section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
  .section-head.center .section-label { justify-content: center; }
  .section-head.center .section-sub { margin-inline: auto; }

  /* Aliases for generated sub-page section heads (sec-* classes) */
  .sec-head { max-width: 760px; margin-bottom: 34px; }
  .sec-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .sec-tag::before {
    content: "";
    width: 7px; height: 7px;
    background: currentColor;
    flex-shrink: 0;
  }
  .sec-title {
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -1.6px;
    margin: 0;
  }
  .sec-sub { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 14px; max-width: 70ch; }
  .sec-sub strong { color: var(--ink); }
  p code, li p code, h2 code, .answer code, .step p code, details code {
    font-family: var(--mono);
    font-size: .85em;
    color: #dfeacb;
    background: #242b21;
    border: 1px solid #35402b;
    padding: 2px 5px;
    border-radius: 4px;
    overflow-wrap: anywhere;
  }

  /* Buttons -------------------------------------------------------------- */
  .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  }
  .btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
  .btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: inset 0 1px 0 #ffffff40, 0 3px 0 #080a0840;
  }
  .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 22px #d8f78a15; }
  .btn-primary:hover svg { transform: translateX(3px); }
  .btn-secondary { border-color: #41483e; background: #ffffff03; color: var(--ink); }
  .btn-secondary:hover { background: #ffffff07; border-color: #687260; }
  .btn-small { min-height: 38px; padding: 9px 15px; font-size: 12px; }
  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
    color: var(--muted);
  }
  .text-link:hover { color: var(--accent); }
  .text-link svg { width: 15px; height: 15px; }

  /* Navigation (identical structure to LP) -------------------------------- */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #101212ef;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .25s, border-color .25s, box-shadow .25s;
  }
  .site-nav.scrolled {
    background: #101212f5;
    border-color: var(--line);
    box-shadow: 0 8px 30px #00000024;
  }
  .nav-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-family: var(--display);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
  }
  .brand-mark {
    width: 31px;
    height: 33px;
    display: grid;
    place-items: center;
    color: var(--accent);
  }
  .brand-mark svg { width: 30px; height: 30px; }
  .nav-links { display: flex; align-items: center; gap: 30px; }
  .nav-links a {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    padding-block: 12px;
    transition: color .18s;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-action { justify-self: end; }

  /* Page hero (sub-pages) -------------------------------------------------- */
  .page-hero { position: relative; padding: 64px 0 22px; }
  .page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -80px 0 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 80% 40%, #a8ba7320, transparent 45%);
  }
  .crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .4px;
    color: var(--subtle);
    margin: 0 0 22px;
  }
  .crumb a { color: var(--muted); text-decoration: none; }
  .crumb a:hover { color: var(--accent); }
  .crumb .sep { color: #4a5442; }
  .crumb .here { color: var(--accent); }
  .page-hero h1 {
    max-width: 760px;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -2.6px;
  }
  .page-hero .hero-sub {
    max-width: 640px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
  }
  .page-hero .hero-sub strong { font-weight: 550; }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
  .hero-note {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.7;
    color: var(--subtle);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hero-note::before { content: ""; width: 22px; height: 1px; background: #626e51; flex-shrink: 0; }

  /* Code panels ------------------------------------------------------------ */
  .code-panel {
    border: 1px solid #3d4536;
    border-radius: 12px;
    overflow: hidden;
    background: #0e110d;
    box-shadow: 0 12px 25px #0000000d;
  }
  .code-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 15px;
    min-height: 52px;
    border-bottom: 1px solid #2f3629;
    background: #1c2118;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
  }
  .code-tab { display: inline-flex; align-items: center; gap: 9px; }
  .code-tab svg { width: 15px; height: 15px; color: #aabd8b; }
  .code-tab .lang, .code-top .lang { font-size: 9px; letter-spacing: .5px; color: #98a68a; text-transform: uppercase; }
  .copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    min-width: 70px;
    padding: 6px 9px;
    border: 1px solid #424b38;
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.3;
    color: #c7d0bd;
    background: #d8f78a05;
    cursor: pointer;
    transition: background .2s, border-color .2s;
  }
  .copy:hover { background: #d8f78a0f; border-color: #697950; }
  .copy svg { width: 12px; height: 12px; }
  .copy[data-state="success"] { color: var(--accent); border-color: #627647; }
  .copy[data-state="error"] { color: #ffbf9b; border-color: #866247; }
  pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #46503a #10140d;
    tab-size: 2;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.9;
    color: #d9dfd2;
  }
  pre:focus-visible { outline-offset: -4px; }
  pre code { font: inherit; }

  /* Steps ------------------------------------------------------------------ */
  .steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
  .steps li { position: relative; padding: 0 0 29px 48px; counter-increment: step; }
  .steps li::before {
    content: "0" counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    color: var(--accent);
    border: 1px solid #475237;
    border-radius: 6px;
    background: #1d2417;
    z-index: 1;
  }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 34px;
    bottom: 8px;
    border-left: 1px dashed #424b36;
  }
  .steps li:last-child { padding-bottom: 0; }
  .steps h3, .steps h2 {
    font-family: var(--display);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -.3px;
    margin-bottom: 8px;
  }
  .steps p { color: var(--muted); font-size: 13px; line-height: 1.8; }
  .steps .code-panel { margin-top: 14px; }
  .steps p code, details p code, .answer code {
    color: #dfeacb;
  }

  /* Details / FAQ ------------------------------------------------------------ */
  details { border-bottom: 1px solid var(--line); }
  details:first-child { border-top: 1px solid var(--line); }
  summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    list-style: none;
    padding: 21px 0;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.55;
    color: #dce3d6;
    transition: color .2s;
  }
  summary::-webkit-details-marker { display: none; }
  summary::marker { content: ""; }
  summary:hover, details[open] summary { color: var(--accent); }
  .faq-plus { width: 20px; height: 20px; position: relative; flex: 0 0 auto; color: #a7b495; }
  .faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: currentColor; top: 9px; left: 5px; width: 10px; height: 1px; }
  .faq-plus::after { transform: rotate(90deg); transition: transform .2s; }
  details[open] .faq-plus::after { transform: rotate(0); }
  details .answer, details > p {
    padding: 0 27px 23px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
  details[open] .answer, details[open] > p { animation: answer-in .25s var(--ease) both; }
  @keyframes answer-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

  /* Comparison tables ---------------------------------------------------------- */
  .cmp { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14px; }
  .cmp th, .cmp td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
  .cmp th { background: #1c2118; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: -.2px; color: var(--ink); }
  .cmp td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
  .cmp td { color: var(--muted); }
  .cmp a { color: #c9d6ae; text-decoration-color: #4a5442; }
  .cmp a:hover { color: var(--accent); }
  .yes { color: var(--green); font-weight: 600; }
  .no { color: #ff9d8a; font-weight: 600; }
  .na { color: var(--subtle); }
  .verdict {
    border: 1px solid #4a5a33;
    background: linear-gradient(155deg, #1e2517, #161a12);
    border-radius: 14px;
    padding: 24px 26px;
    margin: 26px 0;
  }
  .verdict h2 { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 10px; }
  .verdict p { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 78ch; }
  .verdict strong { color: var(--ink); }
  .note-src { font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--subtle); }
  .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 26px 0; }
  .card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    background: linear-gradient(145deg, #1b1f1b, #141715 70%);
  }
  .card h3 { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -.3px; margin-bottom: 8px; }
  .card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
  .card a { color: #c9d6ae; text-decoration: none; }
  .card a:hover { color: var(--accent); }

  /* Final CTA panel ------------------------------------------------------------- */
  .final-section { padding: 20px 0 96px; }
  .final-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: 57px 40px;
    border: 1px solid #53613c;
    border-radius: 17px;
    background: #1c2316;
  }
  .final-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 50% 100%, #d8f78a12, transparent 70%),
      repeating-linear-gradient(90deg, transparent 0 69px, #d8f78a04 69px 70px);
  }
  .final-panel h2 {
    font-family: var(--display);
    font-size: clamp(30px, 3.4vw, 43px);
    font-weight: 500;
    letter-spacing: -1.9px;
    line-height: 1.15;
    max-width: 640px;
    margin-inline: auto;
  }
  .final-panel p { margin: 17px auto 27px; max-width: 480px; color: #b6c2a8; font-size: 14px; }
  .final-action { display: flex; flex-direction: column; align-items: center; gap: 11px; }
  .final-action .btn { padding-inline: 24px; min-height: 49px; }
  .final-action small { font-family: var(--mono); font-size: 9px; color: #adbca0; }

  /* Footer (identical structure to LP) --------------------------------------------- */
  .site-footer { border-top: 1px solid var(--line); padding: 59px 0 28px; background: #0d100d; }
  .footer-top { display: grid; grid-template-columns: 250px 1fr; gap: 76px; padding-bottom: 47px; }
  .footer-brand .brand { font-size: 22px; margin-bottom: 20px; }
  .footer-brand p { color: var(--subtle); font-size: 12px; line-height: 1.9; max-width: 240px; }
  .footer-edge { display: inline-flex; align-items: center; gap: 7px; margin-top: 21px; color: #a7b597; font-family: var(--mono); font-size: 9px; }
  .footer-edge svg { width: 13px; height: 13px; }
  .footer-groups { display: grid; grid-template-columns: 1fr 1.15fr 1.2fr; gap: 32px 34px; }
  .footer-group h3 { font-family: var(--mono); font-weight: 500; font-size: 10px; color: #d1dbca; margin-bottom: 12px; letter-spacing: .4px; }
  .footer-group ul { list-style: none; margin: 0; padding: 0; }
  .footer-group a { display: inline-block; padding-block: 4px; color: var(--subtle); font-size: 11px; line-height: 1.7; text-decoration: none; transition: color .18s; }
  .footer-group a:hover { color: var(--accent); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 24px; border-top: 1px solid #293025; color: var(--subtle); font-size: 10px; line-height: 1.8; }
  .footer-bottom .build { font-family: var(--mono); color: #adb99e; }

  /* Reveal motion ------------------------------------------------------------------- */
  .reveal.will-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .reveal.will-reveal.in { opacity: 1; transform: translateY(0); }

  /* Responsive ------------------------------------------------------------------------ */
  @media (max-width: 1100px) {
    .footer-top { gap: 44px; grid-template-columns: 210px 1fr; }
    .footer-groups { column-gap: 25px; }
  }
  @media (max-width: 860px) {
    .wrap { width: calc(100% - 48px); }
    .nav-inner { gap: 20px; grid-template-columns: auto 1fr auto; min-height: 70px; }
    .nav-links { justify-content: center; gap: 19px; }
    .nav-links a { font-size: 12px; }
    .brand { font-size: 21px; }
    .brand-mark { width: 26px; }
    .section { padding-block: 80px; }
    .footer-top { grid-template-columns: 1fr; gap: 38px; }
    .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
    .footer-group a { font-size: 12px; }
  }
  @media (max-width: 600px) {
    html { scroll-padding-top: 125px; }
    .wrap { width: calc(100% - 40px); }
    .site-nav { border-bottom-color: var(--line-soft); }
    .nav-inner { grid-template-columns: 1fr auto; gap: 0 15px; padding-top: 15px; }
    .brand { font-size: 22px; }
    .nav-action { grid-column: 2; grid-row: 1; }
    .nav-action .btn { min-height: 36px; font-size: 11px; padding-inline: 13px; }
    .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 14px; margin-top: 10px; }
    .nav-links a { font-size: 11px; padding-block: 13px; }
    .page-hero { padding-top: 40px; }
    .page-hero h1 { font-size: clamp(34px, 9vw, 44px); letter-spacing: -1.8px; }
    .section { padding-block: 65px; }
    .cmp { font-size: 13px; display: block; overflow-x: auto; }
    .cmp th, .cmp td { padding: 9px 10px; }
    .footer-top { gap: 32px; padding-bottom: 35px; }
    .footer-groups { grid-template-columns: 1fr 1fr; gap: 27px 20px; }
    .footer-group a { font-size: 11px; padding-block: 5px; }
    .footer-group h3 { font-size: 10px; margin-bottom: 9px; }
    .footer-bottom { font-size: 10px; gap: 9px; }
    .final-panel { padding: 37px 25px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
    .reveal.will-reveal, .reveal.will-reveal.in { opacity: 1 !important; transform: none !important; }
  }
  @media (forced-colors: active) {
    .btn, .card, .code-panel, .final-panel, .verdict { border: 1px solid CanvasText; }
    .section-label::before, .faq-plus::before, .faq-plus::after, .hero-note::before { background: CanvasText; }
    .page-hero::before, .final-panel::before { display: none; }
  }