/* esigit design system: Paper & Seal. Tokens mirror the Figma file "EsigIt Rebrand + Rebuild 2026".
   Rules: one accent (seal) marks action only. Signed green and error red are semantic and always carry words.
   Hover changes colour/opacity only. One easing curve. 44px is the module. */

/* Self-hosted from Google Fonts (OFL): Newsreader, Instrument Sans. latin + latin-ext only. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-ext-21fac8da.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-6219bc4b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-ext-21fac8da.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-6219bc4b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-ext-21fac8da.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-normal-latin-6219bc4b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin-ext-2da7946e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic-latin-fe65f59a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* the signature script: typed signatures and initials, and the preview while placing fields (OFL, self-hosted) */
@font-face {
  font-family: 'Herr Von Muellerhoff';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/herr-von-muellerhoff-latin-ext-6104a20d.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Herr Von Muellerhoff';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/herr-von-muellerhoff-latin-180aa0b7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-ext-cbca0011.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-01817351.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-ext-cbca0011.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal-latin-01817351.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --paper: #FBFAF7;
  --band: #F2F0EA;
  --ink: #1D1C1A;
  --script: 'Herr Von Muellerhoff', Newsreader, 'Iowan Old Style', Georgia, serif;
  --ink-2: #46433E;
  --ink-3: #6B675F;
  --rule: #DCD8CF;
  --seal: #8E2B2B;
  --seal-hover: #742120;
  --seal-on-dark: #E8A194;
  --signed: #2E6B3F;
  --error: #B42318;
  --signer-1: #8E2B2B; --signer-1-tint: #F3E3E0;
  --signer-2: #2E6B3F; --signer-2-tint: #E3ECE5;
  --signer-3: #3D4B63; --signer-3-tint: #E6E9EF;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --text: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --pill: 980px;
  --card: 18px;
  --field: 10px;
  --module: 44px;
  --gutter: clamp(20px, 6vw, 120px);
  --measure: 640px;
  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --t-color: 0.32s;
  --t-opacity: 0.24s;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/25px var(--text); letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--seal); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-color) var(--ease); }
a:hover { color: var(--seal-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 14px; overflow: visible; white-space: normal; background: var(--ink); color: var(--paper); border-radius: 8px; }
::selection { background: var(--signer-1-tint); }

/* ---------- Type ---------- */
h1, h2, h3, .h1, .h2, .h3, .display { font-family: var(--display); font-weight: 500; color: var(--ink); margin: 0; font-optical-sizing: auto; }
h1, .h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.5px; }
h2, .h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.3px; font-weight: 600; }
h3, .h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 600; }
h4 { font: 500 17px/25px var(--text); margin: 0; }
h1, h2, h3, .h1, .h2, .h3 { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0; }
p + p { margin-top: 0.8em; }
.lead { font-size: 21px; line-height: 29px; letter-spacing: 0.1px; color: var(--ink-2); }
.small { font-size: 14px; line-height: 20px; letter-spacing: -0.1px; }
.caption { font-size: 12px; line-height: 16px; color: var(--ink-3); letter-spacing: -0.1px; }
.eyebrow { font: 500 14px/18px var(--text); color: var(--ink-3); letter-spacing: -0.1px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 0.8em; }
.stack-lg > * + * { margin-top: 24px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--measure); }
.wrap.narrow, .wrap.prose { max-width: 1200px; }
.wrap.narrow > * { max-width: var(--measure); }
.wrap.prose > * { max-width: 720px; }
.wrap.prose > :is(.table-scroll, table, .grid-2, .grid-3, .grid-4, .card) { max-width: none; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.band { background: var(--band); }
.dark { background: var(--ink); color: var(--rule); }
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.dark a { color: var(--seal-on-dark); }
.dark :focus-visible { outline-color: var(--paper); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.86); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav .logo img { height: 34px; width: auto; }
.nav .links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--ink); }
.nav .links a.btn-primary, .nav .links a.btn-primary:hover { color: var(--paper); }
.nav .menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; min-height: var(--module); color: var(--ink); font: 500 14px var(--text); cursor: pointer; }
@media (max-width: 900px) {
  .nav .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav .links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--band); }
  .nav .links .btn { margin-top: 12px; }
  .nav.open .links { display: flex; }
  .nav .menu-btn { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--module); padding: 11px 22px; border-radius: var(--pill); border: 1px solid transparent; font: 400 17px/1 var(--text); letter-spacing: -0.2px; text-decoration: none; cursor: pointer; transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), opacity var(--t-opacity) var(--ease); white-space: nowrap; }
.btn-primary { background: var(--seal); color: var(--paper); }
.btn-primary:hover { background: var(--seal-hover); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--seal); border-color: var(--seal); }
.btn-secondary:hover { color: var(--seal-hover); border-color: var(--seal-hover); }
.btn-quiet { background: var(--band); color: var(--ink); }
.btn-quiet:hover { color: var(--ink); opacity: 0.8; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 600px) { .btn-row .btn { width: 100%; } }
@media (pointer: coarse) { .btn-sm { min-height: var(--module); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: var(--module); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 14px/18px var(--text); color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  min-height: var(--module); padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--field);
  background: var(--paper); color: var(--ink); font: 400 17px/24px var(--text); letter-spacing: -0.2px; width: 100%;
  transition: border-color var(--t-color) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 2px solid var(--ink); padding: 9px 13px; }
.field .help { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.field.invalid input, .field.invalid textarea { border: 2px solid var(--error); padding: 9px 13px; }
.field.invalid .help { color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--seal); flex: none; }

/* ---------- Messages ---------- */
.notice { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--field); background: var(--band); font-size: 14px; line-height: 20px; }
.notice::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-3); color: var(--paper); font: 600 12px/20px var(--text); text-align: center; }
.notice.error { background: #FBEDEB; color: var(--error); }
.notice.error::before { content: "!"; background: var(--error); }
.notice.ok { background: var(--signer-2-tint); color: var(--signed); }
.notice.ok::before { content: ""; background: var(--signed); -webkit-mask: var(--check) center / 14px no-repeat; mask: var(--check) center / 14px no-repeat; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font: 500 12px/16px var(--text); background: var(--band); color: var(--ink-2); }
.badge.signed { background: var(--signer-2-tint); color: var(--signed); }
.badge.waiting { background: var(--signer-1-tint); color: var(--seal); }
.badge.error { background: #FBEDEB; color: var(--error); }

/* ---------- Content blocks ---------- */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--card); padding: 24px; }
.band .card { border-color: transparent; }
.table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table th { text-align: left; font: 500 14px/18px var(--text); color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.table td { padding: 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.table td:first-child { color: var(--ink); }
.table tr.ours td { background: var(--signer-1-tint); color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .table.stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table.stacked, .table.stacked tbody, .table.stacked tr, .table.stacked td, .table.stacked th[scope="row"] { display: block; width: 100%; }
  .table.stacked tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .table.stacked td, .table.stacked th[scope="row"] { border: 0; padding: 4px 0; display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 12px; text-align: left; }
  .table.stacked td::before, .table.stacked th[scope="row"]::before { content: attr(data-label); font: 500 12px/18px var(--text); color: var(--ink-3); }
  .table.stacked td:first-child, .table.stacked th[scope="row"] { font-weight: 600; color: var(--ink); }
  .table.stacked tr.ours { background: var(--signer-1-tint); padding: 12px; border-radius: 10px; }
  .table.stacked tr.ours td { background: none; }
  .table-scroll:has(.table.stacked) { overflow: visible; }
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: 500 17px/25px var(--text); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: var(--module); }
.faq summary h3 { font: inherit; color: inherit; margin: 0; text-wrap: pretty; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 22px; line-height: 25px; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { margin: 0 0 20px; color: var(--ink-2); max-width: 760px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.4em; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }
.prose p, .prose ul, .prose ol { color: var(--ink-2); }
.prose p + p, .prose ul, .prose ol { margin-top: 0.8em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; }
.steps-list:not([class*="grid-"]) li + li { margin-top: 24px; }
.steps-list li > :first-child { margin-top: 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; font: 600 28px/32px var(--display); color: var(--ink-3); }

/* ---------- Kit motion (assets/kit/premium2.css + .js, wired by assets/js/motion.js) ---------- */
:root { --bg: var(--paper); --accent: var(--seal); --hair: var(--rule); --muted: var(--ink-3); }
.grade { opacity: 0.4; }                 /* the kit's vignette, toned down for paper */
.footer .footfx .aurora { opacity: 0.12; } /* specific enough to win over the kit CSS, which loads later */
.sprog { height: 2px; }
.split-line { padding-bottom: 0.08em; }  /* descenders survive the line mask */
nav::before { display: none; }            /* the kit's scrim is for a nav over video; esigit's nav is solid */
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } .split-line > span { transform: none !important; } .grain, .grade, .sprog, .footfx { display: none !important; } }

/* ---------- Hero film ---------- */
.hero-film { padding-bottom: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 80px); align-items: end; }
.hero-copy h1 { max-width: 13ch; }
.wrap.film { max-width: 1360px; padding: 0 clamp(4px, 2vw, 40px); margin-top: clamp(32px, 5vw, 64px); }
.film-frame { position: relative; aspect-ratio: 16 / 10; }
/* The film's ground is the page's paper; feathered edges melt it into the page so no rectangle shows. */
.film-v { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect; }
.film-toggle { position: absolute; right: clamp(8px, 3%, 28px); bottom: clamp(8px, 3%, 28px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule); background: rgba(251, 250, 247, 0.9); color: var(--ink); cursor: pointer; padding: 0; }
.film-toggle:hover { background: var(--paper); }
.film-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.film [hidden] { display: none !important; }
.film-toggle[data-state="playing"] .i-play, .film-toggle:not([data-state="playing"]) .i-pause { display: none; }
.film-steps { list-style: none; margin: 16px auto 0; padding: 0 clamp(16px, 4vw, 72px); max-width: 1200px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.film-steps button { display: block; width: 100%; min-height: 44px; padding: 12px 0 4px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink-3); font: 500 14px/18px var(--text); }
.film-steps .bar { display: block; height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.film-steps .bar i { display: block; height: 100%; background: var(--seal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.film-steps .lbl { display: block; margin-top: 10px; }
.film-steps button[aria-current] { color: var(--ink); }
.film-steps button:hover { color: var(--ink); }
.film-now { display: none; }
@media (max-width: 820px) {
  .hero-copy { grid-template-columns: 1fr; align-items: start; }
  .film-frame { aspect-ratio: 4 / 5; }
  .film-steps { gap: 6px; padding: 0 var(--gutter); }
  .film-steps .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .film-now { display: block; margin: 8px var(--gutter) 0; font: 500 15px/20px var(--text); color: var(--ink); min-height: 20px; }
}

/* ---------- Real screens (film/compose.py --screens) ---------- */
.device-shot { display: block; width: 100%; height: auto; }
.laptop-shot { max-width: 620px; margin-left: auto; }
.phone-shot { max-width: 300px; margin: 0 auto; }
.dark .phone-shot { background: radial-gradient(closest-side, rgba(142, 43, 43, 0.5), rgba(142, 43, 43, 0) 100%); }
@media (max-width: 900px) { .laptop-shot { margin: 0 auto; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { font: 500 14px/18px var(--text); color: var(--ink); margin-bottom: 10px; }
.footer a { color: var(--ink-2); text-decoration: none; display: block; padding: 12px 0; line-height: 20px; }
.footer a:hover { color: var(--ink); }
.footer .attribution a { display: inline; color: var(--ink-3); text-decoration: underline; }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: 1fr; } .footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.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; }
.hide-mobile { } @media (max-width: 600px) { .hide-mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
