@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-400.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-600.ttf") format("truetype"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/fraunces-500.ttf") format("truetype"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/caveat-500.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --page: #191814;
  --page-alt: #1e1c18;
  --surface: #282621;
  --surface-raised: #312e28;
  --surface-soft: #373229;
  --field: #181713;
  --text: #f1eadf;
  --text-muted: #b9b0a2;
  --text-faint: #8f877a;
  --accent: #c38c4c;
  --accent-strong: #dfa660;
  --olive: #718063;
  --red: #b95c4a;
  --line: rgba(241, 234, 223, .14);
  --line-strong: rgba(241, 234, 223, .25);
  --accent-line: rgba(195, 140, 76, .56);
  --accent-soft: rgba(195, 140, 76, .16);
  --danger-line: rgba(185, 92, 74, .48);
  --danger-soft: rgba(185, 92, 74, .14);
  --danger-text: #e09a8d;
  --hero-edge: #9e6a33;
  --header-glass: rgba(25, 24, 20, .93);
  --footer: #11110f;
  --shadow: 0 22px 55px rgba(0, 0, 0, .26);
  --radius: 1.35rem;
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Iowan Old Style, Baskerville, Georgia, serif;
  --script: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-family: var(--display);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #eee6d9;
  --page-alt: #e5dacc;
  --surface: #d2c6b5;
  --surface-raised: #ded3c3;
  --surface-soft: #e8dece;
  --field: #f6f0e6;
  --text: #25231e;
  --text-muted: #5d574e;
  --text-faint: #797166;
  --accent: #a96e38;
  --accent-strong: #8b562a;
  --olive: #59694f;
  --red: #9d4a3c;
  --line: rgba(37, 35, 30, .15);
  --line-strong: rgba(37, 35, 30, .27);
  --accent-line: rgba(169, 110, 56, .5);
  --accent-soft: rgba(169, 110, 56, .13);
  --danger-line: rgba(157, 74, 60, .4);
  --danger-soft: rgba(157, 74, 60, .12);
  --danger-text: #7f3c31;
  --hero-edge: #9a6633;
  --header-glass: rgba(238, 230, 217, .94);
  --footer: #25231e;
  --shadow: 0 18px 48px rgba(52, 43, 31, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; overflow-x: hidden; background: var(--page); color: var(--text); line-height: 1.58; transition: background .28s ease, color .28s ease; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1180px, calc(100% - clamp(2rem, 7vw, 7rem))); margin-inline: auto; }
.narrow { width: min(830px, calc(100% - clamp(2rem, 7vw, 7rem))); margin-inline: auto; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { top: 1rem; left: 1rem; z-index: 100; padding: .75rem 1rem; border-radius: .7rem; background: var(--text); color: var(--page); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eyebrow { display: block; margin-bottom: .5rem; color: var(--accent-strong); font-size: .71rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.script-note { margin: 0 0 .55rem; color: #efb36b; font-family: var(--script); font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1; }
.lead { max-width: 660px; color: var(--text-muted); font-size: 1rem; }
.tiny-note { margin: 1rem 0 0; color: var(--text-faint); font-size: .82rem; }
.text-link { color: var(--accent-strong); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: .17em; }

/* Navigation and theme switch */
.header { position: sticky; top: 0; z-index: 30; padding: .78rem 0; background: transparent; }
.nav { display: flex; min-height: 4.1rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .65rem .5rem 1.1rem; border: 1px solid var(--line); border-radius: 1.05rem; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .11); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--text); font-size: 1.36rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; text-transform: lowercase; }
.brand::before { width: 1.32rem; height: 1.32rem; margin-right: .44rem; background: url("/brand/macunfilm-mark.svg") center / contain no-repeat; content: ""; }
.brand span { color: var(--accent-strong); }
.links { display: flex; align-items: center; gap: .16rem; color: var(--text-muted); font-size: .75rem; font-weight: 600; }
.links > a { padding: .55rem .7rem; border-radius: .7rem; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.links > a:hover, .links > a:focus-visible { background: var(--surface-raised); color: var(--text); }
.links > a.is-active { background: var(--accent); color: #17130f; }
.links > a.is-active:hover, .links > a.is-active:focus-visible { background: var(--text); color: var(--page); }
.theme-toggle { display: inline-grid; width: 3.35rem; height: 2rem; margin-left: .3rem; padding: 0; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--field); color: var(--text); }
.theme-track { position: relative; display: block; width: 2.75rem; height: 1.42rem; }
.theme-moon, .theme-sun { position: absolute; top: 50%; z-index: 1; color: var(--text-faint); font-size: .53rem; line-height: 1; transform: translateY(-50%); }
.theme-moon { left: .27rem; }
.theme-sun { right: .22rem; color: var(--accent); font-size: .64rem; }
.theme-knob { position: absolute; top: .14rem; left: .14rem; z-index: 2; width: 1.14rem; height: 1.14rem; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.2, .75, 0, 1), background .2s ease; }
[data-theme="light"] .theme-knob { background: var(--text); transform: translateX(1.34rem); }

/* Buttons and inputs */
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .5rem; padding: .66rem 1.08rem; border: 1px solid transparent; border-radius: .82rem; font-size: .83rem; font-weight: 600; text-align: center; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-primary { background: var(--accent); color: #18130f; }
.button-primary:hover { background: var(--accent-strong); }
.button-ghost { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button-ghost:hover { border-color: var(--accent); background: var(--surface-raised); }
.button-small { min-height: 2.3rem; padding: .46rem .82rem; }
.button-danger { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger-text); }
.button-danger:hover { background: var(--danger-line); }
.action-row, .success-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.success-actions-spaced { margin-top: 1rem; }
.form-row { display: grid; gap: .62rem; margin: 1.2rem 0; }
.form-row label { color: var(--text-muted); font-size: .87rem; font-weight: 600; }
.form-row input { width: 100%; padding: .86rem .94rem; border: 1px solid var(--line-strong); border-radius: .82rem; background: var(--field); color: var(--text); }
.form-row input::placeholder { color: var(--text-faint); }
.form-row input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.alert { margin: 1rem 0 0; padding: .88rem 1rem; border: 1px solid var(--danger-line); border-radius: .82rem; background: var(--danger-soft); color: var(--danger-text); }

/* Home and cinematic hero */
.home-main { display: grid; gap: clamp(5.8rem, 9vw, 9rem); padding: clamp(2.3rem, 4.5vw, 4.2rem) 0 clamp(5.5rem, 9vw, 9rem); }
.hero-reel { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 1.45rem; background: #14130f; box-shadow: 14px 16px 0 var(--hero-edge), var(--shadow); }
.hero-reel::before { position: absolute; inset: 0; z-index: 1; background: rgba(10, 9, 7, .39); content: ""; pointer-events: none; }
.hero-reel::after { position: absolute; inset: .75rem; z-index: 2; border: 1px solid rgba(246, 239, 226, .38); border-radius: .94rem; content: ""; pointer-events: none; }
.field-film { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: clamp(2.1rem, 5vw, 5rem); left: clamp(2rem, 6vw, 5.6rem); z-index: 3; width: min(73%, 850px); }
.hero-overlay h1 { margin: 0; color: #f6efe3; font-size: clamp(3.3rem, 7.1vw, 7.5rem); font-weight: 600; letter-spacing: -.075em; line-height: .9; word-spacing: .05em; text-shadow: 0 3px 30px rgba(0, 0, 0, .48); }
.hero-overlay h1 span { color: #e0a35a; }
.hero-copy { max-width: 34rem; margin: 1.25rem 0 0; color: #e0d7ca; font-size: .94rem; text-shadow: 0 2px 15px rgba(0, 0, 0, .55); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.35rem; }
.hero-overlay .button-primary { background: #d49a55; }
.text-action { display: inline-flex; align-items: center; gap: .35rem; color: #f1e6d6; font-size: .84rem; font-weight: 600; }
.text-action span { transition: transform .18s ease; }
.text-action:hover span { transform: translateX(.28rem); }
.hero-reel figcaption { position: absolute; top: 1.5rem; right: 1.65rem; z-index: 3; margin: 0; color: #f1e7d8; font-family: var(--script); font-size: clamp(1.15rem, 1.8vw, 1.65rem); line-height: 1; text-shadow: 0 2px 15px rgba(0, 0, 0, .55); }

.section-heading { max-width: 800px; margin-bottom: 2rem; }
.section-heading h2, .faq-heading h2 { margin: .38rem 0 0; font-size: clamp(2.6rem, 5vw, 4.9rem); font-weight: 600; letter-spacing: -.055em; line-height: .98; word-spacing: .06em; }
.section-copy { max-width: 39rem; margin: 1.1rem 0 0; color: var(--text-muted); }

/* Interactive film tools */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.surface, .tool-card, .plan-card, .status-card, .editorial-card, .admin-customer-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .09); }
.tool-card { min-height: 12.8rem; padding: 1.45rem; cursor: default; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.tool-card:hover, .tool-card:focus { border-color: var(--accent-line); background: var(--surface-raised); box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-card-head { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1.05rem; align-items: center; }
.tool-card h3 { margin: 0 0 .35rem; font-size: clamp(1.45rem, 2.35vw, 2.1rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; word-spacing: .04em; }
.tool-summary { margin: 0; color: var(--text-muted); font-size: .88rem; }
.tool-detail { display: grid; grid-template-rows: 0fr; margin-top: 0; padding-top: 0; border-top: 1px solid transparent; opacity: 0; transition: grid-template-rows .35s cubic-bezier(.2, .75, 0, 1), margin .35s ease, padding .35s ease, border-color .35s ease, opacity .25s ease; }
.tool-detail > div { overflow: hidden; }
.tool-detail p { max-width: 35rem; margin: 0; color: var(--text-muted); font-size: .88rem; }
.tool-guide-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; color: var(--accent-strong); font-size: .78rem; font-weight: 600; }
.tool-guide-link span { transition: transform .18s ease; }
.tool-guide-link:hover span { transform: translateX(.25rem); }
.tool-card:hover .tool-detail, .tool-card:focus .tool-detail { grid-template-rows: 1fr; margin-top: 1.1rem; padding-top: 1rem; border-color: var(--line); opacity: 1; }
.tool-prompt { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; margin-top: 1rem; color: var(--text-faint); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tool-prompt i { font-style: normal; transition: transform .25s ease; }
.tool-card:hover .tool-prompt i, .tool-card:focus .tool-prompt i { transform: rotate(180deg); }

.feature-icon { position: relative; display: block; width: 3.8rem; height: 3.8rem; color: var(--accent); }
.feature-icon i, .feature-icon b { position: absolute; display: block; font-style: normal; }
.icon-color::before, .icon-color::after, .icon-color i { position: absolute; width: 2rem; height: 2rem; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.icon-color::before { top: .2rem; left: .9rem; color: #c77652; }
.icon-color::after { bottom: .15rem; left: .25rem; color: #788b72; }
.icon-color i { right: .2rem; bottom: .15rem; color: #c5a35e; }
.icon-color b { top: 1.52rem; left: 1.63rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--text); opacity: .75; }
.tool-card:hover .icon-color::before { animation: chroma-drift 2.5s ease-in-out infinite alternate; }
.tool-card:hover .icon-color i { animation: chroma-drift 2.5s ease-in-out -.8s infinite alternate-reverse; }

.icon-intelligence::before { position: absolute; top: .75rem; left: .38rem; width: 3rem; height: 2rem; border: 1px solid currentColor; border-radius: 70% 28% 70% 28%; content: ""; transform: rotate(45deg); }
.icon-intelligence i { top: 1.38rem; left: 1.38rem; width: 1rem; height: 1rem; border: 1px solid var(--accent-strong); border-radius: 50%; }
.icon-intelligence i::after { position: absolute; inset: .28rem; border-radius: 50%; background: var(--accent-strong); content: ""; }
.icon-intelligence b { top: .18rem; left: 1.75rem; width: .28rem; height: .28rem; border-radius: 50%; background: currentColor; box-shadow: -1.45rem 1.55rem 0 currentColor, 1.45rem 1.55rem 0 currentColor, 0 3.08rem 0 currentColor; }
.tool-card:hover .icon-intelligence i { animation: intelligence-focus 2.2s ease-in-out infinite; }

.icon-balance::before { position: absolute; top: .62rem; left: 1.82rem; width: 1px; height: 2.85rem; background: currentColor; content: ""; }
.icon-balance::after { position: absolute; top: .85rem; left: .3rem; width: 3.2rem; height: 1px; background: currentColor; content: ""; transform: rotate(-6deg); transform-origin: center; }
.icon-balance i { top: .9rem; left: .25rem; width: .8rem; height: .8rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 0 0 50% 50%; transform: translateY(.4rem); }
.icon-balance i::after { position: absolute; top: -.2rem; left: 2.52rem; width: .8rem; height: .8rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 0 0 50% 50%; content: ""; transform: translateY(-.25rem); }
.icon-balance b { bottom: .25rem; left: 1.15rem; width: 1.4rem; height: 1px; background: currentColor; }
.tool-card:hover .icon-balance::after { animation: balance-settle 2.4s ease-in-out infinite; }

.icon-compression::before, .icon-compression::after { position: absolute; top: .55rem; width: .95rem; height: 2.7rem; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; }
.icon-compression::before { left: .15rem; border-left: 1px solid currentColor; }
.icon-compression::after { right: .15rem; border-right: 1px solid currentColor; }
.icon-compression i { top: 1.18rem; left: 1.15rem; width: 1.5rem; height: 1px; background: currentColor; box-shadow: 0 .62rem 0 currentColor, 0 1.24rem 0 currentColor; }
.icon-compression b { top: 1.63rem; left: .55rem; width: .45rem; height: .45rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.icon-compression b::after { position: absolute; top: -1.86rem; left: 2.17rem; width: .45rem; height: .45rem; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; content: ""; }
.tool-card:hover .icon-compression::before { animation: compress-left 2.4s ease-in-out infinite; }
.tool-card:hover .icon-compression::after { animation: compress-right 2.4s ease-in-out infinite; }

.icon-emulation::before, .icon-emulation::after, .icon-emulation i { position: absolute; width: 2.45rem; height: 2.75rem; border: 1px solid currentColor; border-radius: .35rem; content: ""; }
.icon-emulation::before { top: .15rem; left: .2rem; opacity: .35; }
.icon-emulation::after { top: .45rem; left: .57rem; opacity: .62; }
.icon-emulation i { top: .78rem; left: .95rem; background: var(--surface); }
.icon-emulation i::before, .icon-emulation i::after { position: absolute; left: .32rem; width: .3rem; height: .3rem; border-radius: 50%; background: currentColor; box-shadow: 1.48rem 0 0 currentColor; content: ""; }
.icon-emulation i::before { top: .38rem; }
.icon-emulation i::after { bottom: .38rem; }
.tool-card:hover .icon-emulation::before { animation: stock-shift 2.7s ease-in-out infinite alternate; }

.icon-grain::before { position: absolute; inset: .2rem; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.icon-grain i { top: .62rem; left: .75rem; width: .22rem; height: .22rem; border-radius: 50%; background: currentColor; box-shadow: 1rem -.18rem 0 currentColor, 1.95rem .25rem 0 currentColor, .45rem .8rem 0 currentColor, 1.55rem 1.05rem 0 currentColor, 2.1rem 1.55rem 0 currentColor, .08rem 1.85rem 0 currentColor, 1.05rem 2.15rem 0 currentColor, 1.85rem 2.35rem 0 currentColor; }
.icon-grain b { top: 1.7rem; left: 1.72rem; width: .36rem; height: .36rem; border-radius: 50%; background: var(--accent-strong); }
.tool-card:hover .icon-grain i { animation: grain-jitter .85s steps(2, end) infinite; }

.icon-halation::before, .icon-halation::after, .icon-halation i { position: absolute; border-radius: 50%; content: ""; }
.icon-halation::before { inset: .2rem; border: 1px solid #a9503d; }
.icon-halation::after { inset: .75rem; border: 1px solid #d17945; }
.icon-halation i { inset: 1.36rem; background: #e3a45a; box-shadow: 0 0 0 .32rem rgba(209, 121, 69, .14); }
.icon-halation b { top: .46rem; left: 1.78rem; width: .22rem; height: 2.88rem; background: rgba(215, 111, 65, .55); transform: rotate(42deg); }
.tool-card:hover .icon-halation::before { animation: halation-ring 2.8s ease-in-out infinite; }
.tool-card:hover .icon-halation::after { animation: halation-ring 2.8s ease-in-out -.55s infinite; }

.icon-bloom::before { position: absolute; top: 1.32rem; left: 1.32rem; width: 1.16rem; height: 1.16rem; border-radius: 50%; background: #e8bd78; box-shadow: 0 0 0 .38rem rgba(222, 164, 91, .22), 0 0 1.15rem .62rem rgba(222, 164, 91, .28); content: ""; filter: blur(.5px); }
.icon-bloom::after { position: absolute; inset: .42rem; border: 1px solid rgba(221, 168, 97, .58); border-radius: 50%; content: ""; }
.icon-bloom i { top: .03rem; left: 1.86rem; width: 1px; height: 3.72rem; background: rgba(221, 168, 97, .35); }
.icon-bloom b { top: 1.86rem; left: .03rem; width: 3.72rem; height: 1px; background: rgba(221, 168, 97, .35); }
.tool-card:hover .icon-bloom::before { animation: bloom-breathe 2.8s ease-in-out infinite; }
.tool-card:hover .icon-bloom::after { animation: bloom-ring 2.8s ease-in-out infinite; }

@keyframes chroma-drift { to { transform: translate(.16rem, .12rem); } }
@keyframes intelligence-focus { 50% { transform: scale(.72); opacity: .65; } }
@keyframes balance-settle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(3deg); } }
@keyframes compress-left { 50% { transform: translateX(.32rem); } }
@keyframes compress-right { 50% { transform: translateX(-.32rem); } }
@keyframes stock-shift { to { transform: translate(.18rem, .12rem); } }
@keyframes grain-jitter { 50% { transform: translate(.07rem, -.05rem); opacity: .62; } }
@keyframes halation-ring { 50% { transform: scale(.82); opacity: .42; } }
@keyframes bloom-breathe { 50% { transform: scale(1.3); box-shadow: 0 0 0 .52rem rgba(222, 164, 91, .18), 0 0 1.45rem .9rem rgba(222, 164, 91, .32); } }
@keyframes bloom-ring { 50% { transform: scale(1.12); opacity: .32; } }

/* Plans without artificial vertical gaps */
.access-heading { margin-inline: auto; text-align: center; }
.access-heading .section-copy { margin-inline: auto; }
.plan-grid { display: grid; width: min(100%, 820px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-inline: auto; align-items: start; }
.plan-card { padding: 1.7rem; }
.plan-label { margin: 0 0 .28rem !important; color: var(--accent-strong) !important; font-size: .76rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { margin: 0 0 .55rem; font-size: clamp(1.65rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.plan-card > p { margin-bottom: 0; color: var(--text-muted); font-size: .9rem; }
.plan-card ul { display: grid; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: .84rem; }
.plan-card li::before { margin-right: .48rem; color: var(--accent); content: "•"; }
.plan-card .button { width: 100%; margin-top: 1.35rem; }
.access-section .alert { width: min(100%, 820px); margin-inline: auto; }

/* Accordion reserves its open state so the footer never jumps */
.faq-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: start; }
.faq-heading { position: sticky; top: 7.2rem; }
.faq-list { min-height: 20.5rem; border-top: 1px solid var(--line); overflow-anchor: none; }
.faq-list details { border-bottom: 1px solid var(--line); overflow-anchor: none; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: var(--text); cursor: pointer; font-size: 1.07rem; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: 0 0 auto; color: var(--accent-strong); content: "+"; font-size: 1.2rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { max-width: 620px; margin: 0; padding: 0 2.25rem 1.35rem 0; color: var(--text-muted); font-size: .9rem; }

/* Account, licence, installer and legal pages */
.page-main { min-height: calc(100vh - 190px); padding: clamp(3.6rem, 8vw, 7rem) 0; background: var(--page); }
.page-main h1 { max-width: 780px; margin: .42rem 0 1rem; font-size: clamp(2.9rem, 6.5vw, 5.7rem); font-weight: 600; letter-spacing: -.06em; line-height: .98; word-spacing: .055em; }
.status-card, .admin-customer-card { margin-top: 1.45rem; padding: clamp(1.35rem, 3vw, 1.9rem); }
.status-card h2 { margin: 0 0 .52rem; font-size: 1.4rem; font-weight: 600; letter-spacing: -.03em; }
.status-message { margin: 0; color: var(--text-muted); }
.account-heading, .account-card-top, .release-heading-row, .admin-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.account-heading h1, .admin-heading h1 { margin-bottom: .7rem; }
.account-security-note, .early-access-panel { border-color: var(--accent-line); }
.account-license-list, .admin-license-list { display: grid; gap: 1rem; margin-top: 1rem; }
.account-license-card { margin-top: 0; }
.account-card-top { align-items: center; }
.account-card-top h2 { margin: 0; }
.status-badge { display: inline-flex; min-height: 1.85rem; align-items: center; padding: .26rem .62rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); color: var(--text); font-size: .69rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.status-active { border-color: var(--olive); background: var(--olive); color: #f6f0e6; }
.status-canceled, .status-payment_failed, .status-unpaid, .status-incomplete_expired, .status-manual_disabled { border-color: var(--red); background: var(--red); color: #fff1ea; }
.status-pending, .status-past_due, .status-incomplete, .status-paused { border-color: var(--accent); background: var(--accent); color: #17130f; }
.license-key { display: block; overflow-wrap: anywhere; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line-strong); border-radius: .84rem; background: var(--field); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(.86rem, 2.3vw, 1.04rem); letter-spacing: .035em; }
.license-key-masked { font-size: .92rem; }
.account-details { display: grid; grid-template-columns: minmax(110px, .65fr) 1fr; gap: .56rem 1rem; margin: 0 0 1.2rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.account-details dt { color: var(--text-faint); font-size: .82rem; }
.account-details dd { margin: 0; color: var(--text); font-size: .87rem; }
.section-rule { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.early-access-inline { margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--accent-line); border-radius: .95rem; background: var(--surface-raised); }
.early-access-inline strong { display: block; margin-bottom: .35rem; color: var(--accent-strong); }
.early-access-inline p { margin: 0; color: var(--text-muted); font-size: .84rem; }
.early-access-inline .release-hash { display: block; margin-top: .65rem; }
.early-access-inline .text-link { display: inline-block; margin-top: .65rem; }

.install-page { width: min(900px, calc(100% - clamp(2rem, 7vw, 7rem))); }
.release-channel { color: var(--accent-strong); font-size: .69rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.release-heading-row h2 { margin: .2rem 0 .5rem; }
.release-details { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .62rem 1rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.release-details dt { color: var(--text-faint); font-size: .78rem; }
.release-details dd { min-width: 0; margin: 0; }
.release-details code, .release-hash { overflow-wrap: anywhere; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; line-height: 1.55; user-select: all; }
.install-steps ol { display: grid; margin: 1.15rem 0 1.5rem; padding: 0; list-style: none; counter-reset: install-step; }
.install-steps li { display: grid; grid-template-columns: 2.2rem minmax(8rem, .4fr) minmax(0, 1fr); gap: .88rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); counter-increment: install-step; }
.install-steps li::before { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: var(--accent); color: #17130f; content: counter(install-step); font-size: .73rem; font-weight: 600; }
.install-steps li span { color: var(--text-muted); font-size: .87rem; }
.install-steps code { overflow-wrap: anywhere; }
.security-guidance { margin-top: 1.2rem; padding: 1.15rem 1.3rem; border: 1px solid var(--accent-line); border-radius: .95rem; background: var(--surface-raised); }
.security-guidance p { margin: .35rem 0 0; color: var(--text-muted); font-size: .87rem; }

.legal h1 { font-size: clamp(2.9rem, 6.5vw, 4.9rem); }
.legal h2 { margin: 2.2rem 0 .62rem; font-size: 1.5rem; font-weight: 600; }
.legal p, .legal li { color: var(--text-muted); }
.legal .important { padding: 1rem 1.08rem; border: 1px solid var(--accent-line); border-radius: .95rem; background: var(--surface-raised); color: var(--accent-strong); }

/* Journal and About */
.editorial-main { min-height: calc(100vh - 190px); padding: clamp(4rem, 9vw, 8rem) 0; }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .75fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: center; }
.editorial-intro h1 { max-width: 780px; margin: 0; font-size: clamp(3.3rem, 6.8vw, 6.6rem); font-weight: 600; letter-spacing: -.06em; line-height: .96; word-spacing: .055em; }
.editorial-lead { max-width: 36rem; margin: 1.45rem 0 0; color: var(--text-muted); }
.editorial-card { padding: clamp(1.55rem, 3.4vw, 2.3rem); }
.editorial-card h2 { margin: .4rem 0 1.45rem; font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.03; }
.editorial-card > p { margin: 1.05rem 0 0; color: var(--text-muted); }
.study-list { display: grid; gap: .72rem; margin: 0; padding: 0; list-style: none; color: var(--text-muted); }
.study-list li { position: relative; padding-left: 1.05rem; }
.study-list li::before { position: absolute; left: 0; color: var(--accent); content: "•"; }
.study-list a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: .16em; }
.study-list a:hover { color: var(--text); }

/* Administration */
.admin-wordmark { margin-left: .45rem; color: var(--text-faint); font-size: .6rem; font-weight: 600; letter-spacing: .12em; }
.admin-shell { width: min(1080px, calc(100% - clamp(2rem, 7vw, 7rem))); margin-inline: auto; }
.admin-security-note { border-color: var(--danger-line); }
.admin-search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.admin-search-form .form-row { flex: 1 1 420px; margin: 0; }
.admin-customer-card { padding: 1.45rem; }
.admin-email { overflow-wrap: anywhere; margin: 0; color: var(--accent-strong); font-size: 1.06rem; }
.admin-license-count { margin: .3rem 0 0; }
.admin-license-card { margin-top: 1.1rem; background: var(--surface-raised); }
.admin-license-card h3 { margin: 0; font-size: 1rem; }
.admin-license-key { user-select: all; font-size: clamp(.8rem, 1.8vw, .98rem); }

/* Shared footer */
.footer { margin-top: auto; padding: 1.15rem 0 1.55rem; background: transparent; }
.footer-row { display: flex; min-height: 5.1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-muted); box-shadow: 0 8px 24px rgba(0, 0, 0, .11); }
.footer .brand { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .24rem .84rem; font-size: .77rem; }
.footer nav a { padding: .4rem 0; transition: color .16s ease; }
.footer nav a:hover { color: #dfa660; }

/* Restrained entrance motion */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(1.05rem); transition: opacity .56s ease, transform .7s cubic-bezier(.2, .75, 0, 1); transition-delay: calc(var(--reveal-order, 0) * 65ms); }
.motion-ready [data-reveal="film"] { transform: translateY(1.15rem) scale(.988); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .editorial-layout { grid-template-columns: 1fr; }
  .hero-overlay { width: min(78%, 720px); }
}

@media (max-width: 760px) {
  .header { padding: .52rem 0; }
  .nav { min-height: 3.75rem; padding: .42rem .48rem .42rem .78rem; }
  .brand { font-size: 1.08rem; }
  .links { max-width: calc(100vw - 8.5rem); overflow-x: auto; scrollbar-width: none; }
  .links::-webkit-scrollbar { display: none; }
  .links > a { padding: .48rem .56rem; }
  .theme-toggle { position: sticky; right: 0; flex: 0 0 auto; width: 3rem; background: var(--field); }
  .home-main { gap: 4.8rem; padding-top: 1.9rem; }
  .hero-reel { border-radius: 1.05rem; box-shadow: 8px 9px 0 var(--hero-edge), var(--shadow); }
  .hero-reel::after { inset: .45rem; border-radius: .68rem; }
  .hero-overlay { bottom: .95rem; left: 1rem; width: 76%; }
  .hero-overlay .script-note { margin-bottom: .28rem; font-size: 1rem; }
  .hero-overlay h1 { font-size: clamp(1.85rem, 8.5vw, 3rem); line-height: .94; }
  .hero-copy { display: none; }
  .hero-actions { margin-top: .65rem; }
  .hero-actions .button { min-height: 2.15rem; padding: .4rem .68rem; font-size: .69rem; }
  .hero-actions .text-action { display: none; }
  .hero-reel figcaption { top: .75rem; right: .85rem; font-size: 1rem; }
  .tool-grid, .plan-grid, .faq-section { grid-template-columns: 1fr; }
  .tool-card { min-height: 12rem; }
  .faq-heading { position: static; }
  .faq-section { gap: 1.7rem; }
  .faq-list { min-height: 22.5rem; }
  .account-heading, .admin-heading { display: grid; }
  .footer-row { align-items: flex-start; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .release-details { grid-template-columns: 1fr; }
  .install-steps li { grid-template-columns: 2rem 1fr; }
  .install-steps li span { grid-column: 2; }
  .account-details { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .tool-prompt { color: var(--accent-strong); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
