/* The Eye — shared theme for index.html and changelog.html.
   Forge palette, nav, buttons (flaming primary), sections, FAQ, feedback,
   hero/eye animations, and reveal motion. One source of truth for the look. */

    :root {
      --ap-forge-0:#08070a; --ap-forge-1:#100e13; --ap-forge-2:#16131a; --ap-forge-3:#211c26;
      --ap-iron-edge:#3a3340; --ap-iron-hi:rgba(255,255,255,.06);
      --ap-ink:#e9e3d8; --ap-muted:#a9a39b; --ap-faint:#6f6a64;
      --ap-bronze:#c9a24b; --ap-bronze-dim:#8a7a52;
      --ap-accent:#FF7A18;          /* the fire — single accent */
      --ap-accent-soft:rgba(255,122,24,.10);
      --ap-fire:linear-gradient(180deg,#FFC65A,#FF7A18 55%,#d9531a);
      --ap-red:#E5484D; --ap-green:#3f9d6b;
      --ap-radius:16px; --ap-radius-sm:12px;
      --ap-maxw:1080px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0; color: var(--ap-ink);
      font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
      background:
        radial-gradient(130% 60% at 50% -8%, #261a12 0%, rgba(38,26,18,0) 55%),
        radial-gradient(120% 90% at 50% 0%, #1a1620 0%, var(--ap-forge-1) 52%, var(--ap-forge-0) 100%);
      background-attachment: fixed;
    }
    a { color: inherit; text-decoration: none; }
    .ap-wrap { max-width: var(--ap-maxw); margin: 0 auto; padding: 0 24px; }
    h1, h2, h3 { font-family: "Cinzel", serif; letter-spacing: .015em; line-height: 1.12; margin: 0; color: var(--ap-bronze); font-weight: 600; }
    h2 { font-size: clamp(25px, 3.6vw, 34px); }
    .ap-eyebrow {
      font-family: "Cinzel", serif; font-size: 12px; font-weight: 700; letter-spacing: .26em;
      text-transform: uppercase; color: var(--ap-bronze-dim); margin: 0 0 16px;
    }
    .ap-lead { color: #cfc6ba; font-family: "EB Garamond", serif; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; }

    /* Buttons */
    .ap-btn {
      display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px;
      padding: 13px 24px; border-radius: var(--ap-radius-sm); border: 1px solid transparent;
      cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .ap-btn svg { width: 18px; height: 18px; }
    /* Primary buttons burn like the app's flaming title bar (its FlameFill header):
       the app's amber flame palette — crest #FFE085 → ember #FF7A18 → deep #C74D0D —
       washed with a subtle, living flicker + ember glow. Settles to a steady ember
       under prefers-reduced-motion (see the media query at the end of this block). */
    .ap-btn-primary { background: linear-gradient(180deg,#FFE085 0%, #FF7A18 45%, #C74D0D 100%); color: #1a120a;
      box-shadow: 0 0 0 1px rgba(255,170,60,.4), 0 10px 30px rgba(255,100,20,.28), inset 0 1px 0 rgba(255,255,255,.45);
      animation: ap-btnBurn 4.6s ease-in-out infinite; }
    .ap-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,170,60,.5), 0 14px 38px rgba(255,100,20,.38), inset 0 1px 0 rgba(255,255,255,.5); }
    /* The flicker: brightness rides up and down while an ember halo breathes around
       the button — the same fire language as the app's title bar, kept gentle so the
       label stays crisp. The glow is a filter:drop-shadow so it traces the button. */
    @keyframes ap-btnBurn {
      0%,100% { filter: brightness(1)    drop-shadow(0 0 6px  rgba(255,122,24,.30)); }
      28%     { filter: brightness(1.06) drop-shadow(0 0 14px rgba(255,138,30,.50)); }
      52%     { filter: brightness(1)    drop-shadow(0 0 8px  rgba(255,122,24,.34)); }
      74%     { filter: brightness(1.04) drop-shadow(0 0 12px rgba(255,150,40,.46)); }
    }
    .ap-btn-ghost { background: transparent; color: var(--ap-bronze); border-color: var(--ap-iron-edge); }
    .ap-btn-ghost:hover { border-color: var(--ap-bronze-dim); }
    /* Top nav Download keeps pure-black text on the fire gradient. */
    .ap-btn-primary.ap-nav-cta { color: #000; }

    /* Nav */
    .ap-nav {
      position: sticky; top: 0; z-index: 50; background: rgba(12,11,15,.72);
      backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid #1b1820;
    }
    .ap-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .ap-brand { display: flex; align-items: center; gap: 11px; font-family: "Cinzel", serif; font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--ap-bronze); }
    .ap-brand img { width: 30px; height: 30px; border-radius: 8px; }
    .ap-nav-links { display: flex; align-items: center; gap: 28px; }
    .ap-nav-links a { color: var(--ap-muted); font-size: 15px; font-weight: 500; transition: color .15s; }
    /* Scope the text-link hover to actual links — the Download CTA is also an <a> in
       here, and this rule would otherwise out-specify its #000 and flip it near-white. */
    .ap-nav-links a:not(.ap-nav-cta):hover { color: var(--ap-ink); }
    @media (max-width: 720px) { .ap-nav-links a:not(.ap-nav-cta) { display: none; } }

    /* Hero */
    .ap-hero { padding: 84px 0 76px; }
    .ap-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
    .ap-hero-grid > * { min-width: 0; }
    /* Two-column copy+visual band (e.g. the product mock). Collapses to one column
       on narrow screens — see the 900px breakpoint — so neither side gets cramped. */
    .ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .ap-split > * { min-width: 0; }
    .ap-inscription { font-family: "Cinzel", serif; font-weight: 700; color: var(--ap-bronze); font-size: 13px;
      letter-spacing: .32em; text-transform: uppercase; margin: 0 0 22px; text-shadow: 0 0 18px rgba(201,162,75,.22); }
    .ap-hero h1 { font-size: clamp(36px, 5.2vw, 54px); font-weight: 700;
      background: linear-gradient(180deg,#f4e7c8 0%, var(--ap-bronze) 62%, var(--ap-bronze-dim) 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent; }
    .ap-hero .ap-lead { margin: 22px 0 18px; max-width: 32ch; }
    /* Names the supported agents in the first screen, where a reader (or an answer
       engine reading only the opening) decides whether this tool is for them. */
    .ap-hero-agents { color: var(--ap-faint); font-family: "Inter"; font-size: 15px; line-height: 1.6; margin: 0 0 30px; max-width: 42ch; }

    /* Hero verse — the inscription, written in with fire on load. Cinzel (the
       same engraved face as the menu-bar title) painted with the forge flame. */
    .ap-verse {
      font-family: "Cinzel", serif; font-weight: 600;
      font-size: clamp(15px, 1.9vw, 20px); line-height: 1.7; letter-spacing: .055em;
      margin: 0 0 24px;
      background: var(--ap-fire); -webkit-background-clip: text; background-clip: text; color: transparent;
      filter: brightness(1) drop-shadow(0 0 8px rgba(255,122,24,.32));
      animation: ap-verseBurn 5s ease-in-out infinite;
    }
    .ap-verse-line { display: block; }
    /* Each glyph carries its own flame fill. The burn-in gives every .ch a
       transform/filter (its own paint layer), which would otherwise escape the
       parent's background-clip:text and render transparent — so the gradient
       lives on the glyph itself. It's vertical, so per-char fill stays seamless. */
    .ap-verse .ch {
      position: relative;
      background: var(--ap-fire); -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    /* Typing state: hide the inscription until JS has wrapped its glyphs, then
       burn them in one at a time. Only switched on when motion is allowed (see
       the head script), so no-JS and reduce-motion visitors get steady full text. */
    .ap-type-on .ap-verse { visibility: hidden; }
    .ap-type-on .ap-verse.ap-ready { visibility: visible; }
    .ap-type-on .ap-verse .ch { opacity: 0; }
    .ap-type-on .ap-verse .ch.lit { animation: ap-charIn .5s ease forwards; }
    /* The travelling flame at the write head — a little ember that leads the text. */
    .ap-type-on .ap-verse .ch.head::after {
      content: ""; position: absolute; left: 100%; top: 50%;
      width: .4em; height: 1.05em; transform: translate(-1px, -52%);
      background: radial-gradient(52% 60% at 50% 38%, #FFE7A6 0%, #FF7A18 52%, rgba(217,83,26,0) 72%);
      border-radius: 50%; filter: blur(.3px); pointer-events: none;
      animation: ap-quill .16s steps(2, end) infinite;
    }
    @keyframes ap-verseBurn {
      0%,100% { filter: brightness(1)    drop-shadow(0 0 7px  rgba(255,122,24,.30)); }
      20%     { filter: brightness(1.07) drop-shadow(0 0 12px rgba(255,138,30,.46)); }
      43%     { filter: brightness(0.99) drop-shadow(0 0 8px  rgba(255,122,24,.30)); }
      61%     { filter: brightness(1.05) drop-shadow(0 0 13px rgba(255,150,40,.48)); }
      82%     { filter: brightness(1.01) drop-shadow(0 0 9px  rgba(255,122,24,.34)); }
    }
    @keyframes ap-charIn {
      0%   { opacity: 0; filter: brightness(2.1); transform: translateY(.1em); }
      60%  { opacity: 1; filter: brightness(1.5); transform: translateY(0); }
      100% { opacity: 1; filter: brightness(1);   transform: translateY(0); }
    }
    @keyframes ap-quill { from { opacity: .5; } to { opacity: 1; } }
    .ap-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
    .ap-req { color: var(--ap-faint); font-family: "Inter"; font-size: 14px; margin-top: 16px; }
    @media (max-width: 900px) {
      .ap-hero-grid { grid-template-columns: 1fr; gap: 44px; }
      .ap-split { grid-template-columns: 1fr; gap: 36px; }
      .ap-hero { padding: 56px 0; }
      .ap-mock { margin: 0 auto; }
    }
    @media (max-width: 480px) {
      .ap-hero h1 { font-size: 33px; }
      .ap-cta-row { flex-direction: column; align-items: stretch; }
      .ap-cta-row .ap-btn { width: 100%; justify-content: center; }
    }

    /* The Eye, hero render — drawn layered flames over an amber hue (as in the About window) */
    .ap-eye-stage { position: relative; display: flex; justify-content: center; align-items: center; }
    .ap-eye-stage::before {
      content: ""; position: absolute; z-index: 0; width: 92%; aspect-ratio: 1 / 1; border-radius: 50%;
      background: radial-gradient(circle, rgba(255,150,45,.30) 0%, rgba(255,112,22,.10) 50%, rgba(255,112,22,0) 72%);
      /* The warm hue behind the eye enlarges as the cursor nears a Download CTA.
         --ap-flare (0..1) is driven by JS; at 0 this is the idle glow, untouched. */
      filter: blur(34px) brightness(calc(1 + var(--ap-flare, 0) * .55));
      transform: scale(calc(1 + var(--ap-flare, 0) * .28));
      will-change: transform, filter;
    }
    .ap-eye-svg {
      position: relative; z-index: 1; width: min(384px, 82%); height: auto;
      overflow: visible;   /* let the flames grow past the icon frame near a Download CTA */
      filter: drop-shadow(0 28px 58px rgba(0,0,0,.55)) drop-shadow(0 0 44px rgba(255,138,30,.45));
    }

    /* Product mock — modelled on the real menu-bar window */
    .ap-mock {
      position: relative; width: 100%; max-width: 360px; margin-left: auto;
      border-radius: 14px; overflow: hidden;
      background: linear-gradient(180deg,#191622 0%, #121017 100%);
      border: 1px solid #2a2531;
      box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    }
    /* Header bar — warm/red while an agent is waiting, like the app */
    .ap-mh { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #fff;
      background: linear-gradient(180deg,#E5563B 0%, #B23420 100%); box-shadow: inset 0 -1px 0 rgba(0,0,0,.28); }
    .ap-mh-eye { width: 23px; height: auto; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
    .ap-mh-title { font-family: "Cinzel", serif; font-weight: 600; font-size: 13.5px; letter-spacing: .03em;
      text-shadow: 0 1px 1px rgba(0,0,0,.25); }
    .ap-mh-sp { margin-left: auto; display: inline-flex; align-items: center; gap: 13px; color: rgba(255,255,255,.92); }
    .ap-mh-sp svg { width: 15px; height: 15px; display: block; }
    /* Status dots (shared) */
    .ap-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
    .ap-dot.red { background: var(--ap-red); box-shadow: 0 0 8px var(--ap-red); }
    .ap-dot.green { background: var(--ap-green); box-shadow: 0 0 8px var(--ap-green); }
    .ap-dot.gray { background: #5a554f; }
    /* Section labels */
    .ap-msec { display: flex; align-items: center; gap: 8px; padding: 13px 14px 6px;
      font-size: 10.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ap-bronze-dim); }
    .ap-msec .ap-dot { width: 7px; height: 7px; box-shadow: none; }
    .ap-msec .ap-dot.red { box-shadow: 0 0 7px var(--ap-red); }
    /* Agent rows */
    .ap-mrow { display: flex; align-items: center; gap: 11px; padding: 7px 14px; }
    .ap-ti { width: 28px; height: 28px; border-radius: 7px; flex: none; display: grid; place-items: center;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 1px 2px rgba(0,0,0,.4); }
    .ap-ti svg { width: 17px; height: 17px; display: block; }
    .ap-ti.claude { background: radial-gradient(120% 120% at 30% 20%, #d8744e, #b9512f); }
    .ap-ti.codex  { background: #0d0d10; }
    .ap-ti.cursor { background: #17151c; }
    .ap-ti.vscode { background: #1f6fb6; }
    .ap-mrow-txt { display: flex; flex-direction: column; min-width: 0; }
    .ap-mrow-name { font-size: 13.5px; font-weight: 500; color: #e7e1d6; line-height: 1.25; }
    .ap-mrow.waiting .ap-mrow-name { color: #ff6f57; }
    .ap-mrow-sub { font-size: 11.5px; color: var(--ap-faint); margin-top: 1px; }
    /* Footer actions */
    .ap-mfoot { display: flex; align-items: center; gap: 18px; padding: 11px 14px;
      color: var(--ap-faint); font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.05); }
    .ap-mfoot span { display: inline-flex; align-items: center; gap: 5px; }
    .ap-mfoot .ap-sp { margin-left: auto; }
    .ap-mfoot svg { width: 13px; height: 13px; }

    /* Section shell */
    .ap-section { padding: 78px 0; }
    .ap-section.soft { background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0)); border-top: 1px solid #1b1820; border-bottom: 1px solid #1b1820; }
    .ap-section-head { max-width: 660px; margin-bottom: 48px; }
    .ap-section-head .ap-lead { margin-top: 14px; }

    /* Side-by-side positioning against orchestration dashboards. Stacks on narrow
       screens; the accented column is ours. */
    .ap-compare { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 36px; }
    .ap-compare-col { border-radius: var(--ap-radius); padding: 24px 26px;
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      border: 1px solid var(--ap-iron-edge); box-shadow: inset 0 1px 0 var(--ap-iron-hi); }
    .ap-compare-col.accent { border-color: rgba(255,122,24,.42); }
    .ap-compare-col h3 { font-family: "Cinzel", serif; font-size: 18px; letter-spacing: .02em; margin: 0 0 14px; }
    .ap-compare-col.accent h3 { color: var(--ap-accent); }
    .ap-compare-col ul { color: var(--ap-muted); font-size: 15px; line-height: 1.7; margin: 0; padding-left: 20px; }
    .ap-compare-col li + li { margin-top: 8px; }
    #compare .ap-req { margin-top: 22px; max-width: 62ch; }
    /* Supported-agents section: centered head + centered pill row (scoped to #tools). */
    #tools .ap-section-head { max-width: 660px; margin-left: auto; margin-right: auto; text-align: center; }
    #tools .ap-tools { justify-content: center; }

    /* Feature grid */
    .ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    @media (max-width: 880px) { .ap-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 560px) { .ap-grid { grid-template-columns: 1fr; } }
    .ap-card { border-radius: var(--ap-radius); padding: 26px 24px; transition: border-color .2s, transform .2s;
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      border: 1px solid var(--ap-iron-edge); box-shadow: inset 0 1px 0 var(--ap-iron-hi); }
    .ap-card:hover { border-color: var(--ap-bronze-dim); transform: translateY(-2px); }
    .ap-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px;
      background: var(--ap-accent-soft); color: var(--ap-accent); border: 1px solid rgba(255,122,24,.22); margin-bottom: 16px; }
    .ap-ico svg { width: 22px; height: 22px; }
    .ap-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 9px; letter-spacing: .02em; }
    .ap-card p { color: var(--ap-muted); font-size: 15px; margin: 0; }

    /* Steps */
    .ap-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    @media (max-width: 760px) { .ap-steps { grid-template-columns: 1fr; } }
    .ap-step-n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
      border: 1px solid var(--ap-bronze-dim); font-family: "Cinzel", serif; font-weight: 700; font-size: 16px; color: var(--ap-bronze); margin-bottom: 16px; }
    .ap-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 9px; }
    .ap-step p { color: var(--ap-muted); font-size: 15px; margin: 0; }

    /* Tools */
    .ap-tools { display: flex; flex-wrap: wrap; gap: 12px; }
    .ap-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--ap-iron-edge); border-radius: 999px;
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1)); font-weight: 500; font-size: 15px; color: var(--ap-ink); }
    .ap-pill svg { width: 16px; height: 16px; color: var(--ap-bronze); }

    /* FAQ — forged accordion. Centered head like #tools/#feedback; each row is a
       <details> styled as an iron panel that opens on click (no JS needed). */
    #faq .ap-section-head { max-width: 660px; margin-left: auto; margin-right: auto; text-align: center; }
    .ap-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
    .ap-faq-item {
      border: 1px solid var(--ap-iron-edge); border-radius: var(--ap-radius);
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      box-shadow: inset 0 1px 0 var(--ap-iron-hi); overflow: hidden;
      transition: border-color .2s;
    }
    .ap-faq-item[open] { border-color: var(--ap-bronze-dim); }
    .ap-faq-item > summary {
      list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
      padding: 18px 22px; font-family: "Cinzel", serif; font-weight: 600; font-size: 16px;
      letter-spacing: .015em; color: var(--ap-bronze);
    }
    .ap-faq-item > summary::-webkit-details-marker { display: none; }
    .ap-faq-item > summary:hover { color: #e6c976; }
    /* Chevron — rotates open. Pushed to the right with margin-left:auto. */
    .ap-faq-chev { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--ap-bronze-dim);
      transition: transform .22s ease; }
    .ap-faq-item[open] .ap-faq-chev { transform: rotate(180deg); }
    .ap-faq-a { padding: 0 22px 20px; color: var(--ap-muted); font-size: 15.5px; line-height: 1.6; }
    .ap-faq-a p { margin: 0 0 10px; }
    .ap-faq-a p:last-child { margin-bottom: 0; }
    .ap-faq-a a { color: var(--ap-bronze); text-decoration: underline; text-underline-offset: 2px; }
    .ap-faq-a a:hover { color: #e6c976; }
    @media (prefers-reduced-motion: reduce) { .ap-faq-chev { transition: none; } }

    /* Download CTA */
    .ap-cta { text-align: center; }
    .ap-cta h2 { margin-bottom: 14px; }
    .ap-cta .ap-lead { margin: 0 auto 28px; max-width: 48ch; }
    .ap-cta .ap-req { margin-top: 18px; }

    /* Feedback form — forged panel with inset wells, posts to the Netlify form */
    #feedback .ap-section-head { max-width: 660px; margin-left: auto; margin-right: auto; text-align: center; }
    .ap-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      border: 1px solid var(--ap-iron-edge); border-radius: var(--ap-radius);
      box-shadow: inset 0 1px 0 var(--ap-iron-hi); padding: 28px 26px; }
    /* The attribute selector must out-specify `.ap-form { display:flex }`, or setting
       the `hidden` property on submit won't actually hide the form. */
    .ap-form[hidden], .ap-thanks[hidden] { display: none; }
    .ap-field { display: flex; flex-direction: column; gap: 9px; }
    .ap-label { font-family: "Cinzel", serif; font-size: 12px; font-weight: 700; letter-spacing: .14em;
      text-transform: uppercase; color: var(--ap-bronze-dim); }
    .ap-label .ap-opt { font-family: "Inter", sans-serif; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ap-faint); }
    .ap-input, .ap-textarea {
      width: 100%; font-family: "Inter", sans-serif; font-size: 16px; color: var(--ap-ink);
      background: var(--ap-forge-0); border: 1px solid var(--ap-iron-edge); border-radius: var(--ap-radius-sm);
      padding: 12px 14px; transition: border-color .18s ease, box-shadow .18s ease; }
    .ap-textarea { resize: vertical; min-height: 124px; line-height: 1.5; }
    .ap-input::placeholder, .ap-textarea::placeholder { color: var(--ap-faint); }
    .ap-input:focus, .ap-textarea:focus { outline: none; border-color: var(--ap-accent); box-shadow: 0 0 0 3px var(--ap-accent-soft); }
    /* Kind selector — segmented radios styled as a pill pair */
    .ap-kind { display: inline-flex; gap: 8px; flex-wrap: wrap; }
    .ap-kind-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .ap-kind-opt span { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
      border: 1px solid var(--ap-iron-edge); background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      font-size: 15px; font-weight: 500; color: var(--ap-muted); cursor: pointer;
      transition: border-color .15s, color .15s, background .15s; }
    .ap-kind-opt input:hover + span { border-color: var(--ap-bronze-dim); color: var(--ap-ink); }
    .ap-kind-opt input:checked + span { border-color: var(--ap-accent); color: var(--ap-ink); background: var(--ap-accent-soft); }
    .ap-kind-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--ap-accent-soft); }
    /* Honeypot — kept out of view and out of the tab order */
    .ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    .ap-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .ap-form-status { margin: 0; font-size: 14px; color: var(--ap-muted); }
    .ap-form-status.err { color: var(--ap-red); }
    .ap-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; animation: none; filter: none; }
    /* Thank-you panel, shown in place of the form after a successful submit */
    .ap-thanks { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 28px;
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      border: 1px solid var(--ap-iron-edge); border-radius: var(--ap-radius); box-shadow: inset 0 1px 0 var(--ap-iron-hi); }
    .ap-thanks svg { width: 40px; height: 40px; color: var(--ap-accent); filter: drop-shadow(0 0 16px rgba(255,122,24,.45)); }
    .ap-thanks h3 { font-family: "Cinzel", serif; font-size: 22px; color: var(--ap-bronze); margin: 14px 0 8px; }
    .ap-thanks p { color: var(--ap-muted); font-size: 15px; margin: 0; }

    /* Footer */
    .ap-footer { border-top: 1px solid #1b1820; padding: 36px 0; color: var(--ap-faint); font-size: 14px; }
    .ap-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    /* Cross-site and agent-facing links: present on their own row, quieter than
       the in-page nav above them. */
    .ap-footer-more { flex-basis: 100%; font-size: 13px; opacity: .72; }
    .ap-footer a { color: var(--ap-muted); }
    .ap-footer a:hover { color: var(--ap-ink); }

    /* Reveal motion. Scoped under .ap-reveal-on, which the inline head script adds
       only when JS is running — so the hidden state never applies unless something
       is there to un-hide it. Without this scope the page defaults to opacity:0,
       which means a no-JS visitor, or a rendering crawler that never scrolls, sees
       a blank page where the content actually is. */
    .ap-reveal-on .ap-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
    .ap-reveal-on .ap-reveal.ap-in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      .ap-reveal-on .ap-reveal { opacity: 1; transform: none; transition: none; }
      html { scroll-behavior: auto; }
      .ap-verse { animation: none; }                                  /* steady ember, no flicker */
      .ap-verse .ch { opacity: 1 !important; animation: none !important; }
      .ap-verse .ch.head::after { display: none; }
      /* Buttons hold a steady ember instead of the living flicker. */
      .ap-btn-primary { animation: none; filter: brightness(1) drop-shadow(0 0 8px rgba(255,122,24,.34)); }
    }

    /* Changelog / releases page (changelog.html) */
    .ap-page-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
    .ap-page-head h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700;
      background: linear-gradient(180deg,#f4e7c8 0%, var(--ap-bronze) 62%, var(--ap-bronze-dim) 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent; }
    .ap-page-head .ap-lead { margin-top: 16px; }
    .ap-rel-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
    .ap-rel { border: 1px solid var(--ap-iron-edge); border-radius: var(--ap-radius);
      background: linear-gradient(180deg, var(--ap-forge-3), var(--ap-forge-1));
      box-shadow: inset 0 1px 0 var(--ap-iron-hi); padding: 26px 26px 24px; }
    .ap-rel-head { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; }
    .ap-rel-ver { font-family: "Cinzel", serif; font-weight: 700; font-size: 22px; color: var(--ap-bronze);
      margin: 0; letter-spacing: .02em; }
    .ap-rel-date { color: var(--ap-faint); font-size: 14px; }
    .ap-rel-badge { font-family: "Cinzel", serif; font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
      text-transform: uppercase; color: #1a120a; background: linear-gradient(180deg,#FFE085,#FF7A18 60%,#C74D0D);
      padding: 3px 10px; border-radius: 999px; box-shadow: 0 0 14px rgba(255,122,24,.32); }
    .ap-rel ul { margin: 16px 0 0; padding-left: 20px; color: var(--ap-muted); font-size: 15.5px; line-height: 1.6; }
    .ap-rel li { margin-bottom: 8px; }
    .ap-rel li:last-child { margin-bottom: 0; }
    .ap-rel li b { color: var(--ap-ink); font-weight: 600; }
    .ap-rel-dl { margin-top: 20px; }
