/* Copley Digitals LLC | site styles */
:root {
  --paper: #F6F7F4;
  --white: #FFFFFF;
  --ink: #13242E;
  --ink-soft: #2A3B45;
  --slate: #56666D;
  --moss: #2E6A4E;
  --moss-dark: #1F4D38;
  --mark: #F4C54A;
  --mist: #E4EAE6;
  --line: #CFD8D3;
  --error: #A3321F;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serp: Arial, "Helvetica Neue", sans-serif;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(19, 36, 46, .06), 0 12px 32px -12px rgba(19, 36, 46, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--moss-dark); text-underline-offset: 3px; }
a:hover { color: var(--moss); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; border-radius: 3px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--slate); }
.small { font-size: .92rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink a:not(.btn) { color: var(--mark); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--mark); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.35rem; border-radius: 6px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--moss); color: var(--white); }
.btn--primary:hover { background: var(--moss-dark); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--mark { background: var(--mark); color: var(--ink); }
.btn--mark:hover { background: #E8B530; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 244, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.brand span small { display: block; font-weight: 500; font-size: .72rem; color: var(--slate); letter-spacing: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moss); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--mark); }
.nav .btn { padding: .6rem 1.05rem; font-size: .95rem; }
.nav .btn--primary, .nav .btn--primary:hover { color: var(--white); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: .45rem .7rem; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 11.5em; }
.hero-meta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .95rem; color: var(--slate); }
.hero-meta strong { color: var(--ink); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Search results illustration: the signature element */
.serp {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.3rem; font-family: var(--serp); position: relative;
}
.serp-bar {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid #DADCE0; border-radius: 999px; padding: .6rem 1rem; font-size: .95rem; color: #202124;
}
.serp-bar svg { width: 18px; height: 18px; flex: none; }
.serp-caption { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem .2rem .3rem; font-family: var(--font); font-size: .82rem; color: var(--slate); }
.serp-month { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.serp ol { list-style: none; margin: 0; padding: 0; position: relative; }
.serp li {
  padding: .6rem .7rem; border-radius: 8px; display: grid; grid-template-columns: 1.6rem 1fr; gap: .2rem .5rem;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), background-color .4s;
}
.serp .pos { grid-row: span 3; font-family: var(--font); font-size: .8rem; color: #70757A; font-variant-numeric: tabular-nums; padding-top: .15rem; }
.serp .url { font-size: .76rem; color: #4D5156; }
.serp .ttl { font-size: 1.02rem; color: #1A0DAB; line-height: 1.25; }
.serp .dsc { font-size: .8rem; color: #4D5156; line-height: 1.35; }
.serp li.is-you { background: #FFF6D9; box-shadow: inset 3px 0 0 var(--mark); }
.serp li.is-you .ttl { font-weight: 700; }
.serp-note { margin: .8rem .2rem 0; font-family: var(--font); font-size: .78rem; color: var(--slate); }

/* Services list */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 2px solid var(--ink); }
.service-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.service-item svg { width: 36px; height: 36px; color: var(--moss); }
.service-item h3 { margin-bottom: .3rem; }
.service-item h3 a { color: var(--ink); text-decoration: none; }
.service-item h3 a:hover { color: var(--moss); text-decoration: underline; }
.service-item p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

/* Process (a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--mark); color: var(--ink); font-weight: 800;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3rem; right: -.75rem; height: 2px; background: rgba(246, 247, 244, .25); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: #C9D4D8; font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.8rem; display: flex; flex-direction: column; }
.plan--feature { border: 2px solid var(--moss); }
.plan-tag { align-self: flex-start; background: var(--moss); color: var(--white); font-size: .8rem; font-weight: 650; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .9rem; }
.plan h3 { margin-bottom: .2rem; }
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: .4rem 0 .2rem; }
.price small { font-size: 1rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.plan li { padding: .45rem 0 .45rem 1.7rem; position: relative; border-top: 1px solid var(--mist); }
.plan li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .7rem; height: .38rem; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split--wide { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--slate); font-size: .95rem; }
.facts a { color: inherit; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding: .5rem 0 .5rem 1.9rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: .25rem; top: .95rem; width: .75rem; height: .4rem; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.8rem; }
.panel h2, .panel h3 { font-size: 1.3rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 650; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--moss); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 44rem; }

/* Page header for inner pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; color: var(--slate); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line); }
.crumbs a { color: var(--slate); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 16em; }

/* Prose (articles, legal) */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.post-meta { color: var(--slate); font-size: .95rem; }
.post-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.post-card { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 1.45rem; margin-bottom: .35rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--moss); text-decoration: underline; }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 18em; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--slate); font-size: .85rem; }
.input, .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="url"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C5BF; border-radius: 6px; padding: .72rem .85rem;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(46, 106, 78, .2); }
.form .is-invalid { border-color: var(--error) !important; }
.err { color: var(--error); font-size: .88rem; margin-top: .3rem; min-height: 0; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 1rem 1.2rem; font-size: .98rem; }
.notice--info { background: #FFF6D9; border: 1px solid #EBD28A; }
.notice--ok { background: #E3F1E8; border: 1px solid #A9CDB7; }
.notice--error { background: #F8E4DF; border: 1px solid #E0B1A6; }
.check { display: grid; grid-template-columns: 1.3rem 1fr; gap: .6rem; font-size: .92rem; color: var(--ink-soft); align-items: start; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--moss); }

/* Payments */
.pay-shell { display: grid; grid-template-columns: 1fr 22rem; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .pay-shell { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: .4rem; background: var(--mist); padding: .35rem; border-radius: 10px; margin-bottom: 1.5rem; }
.tab { flex: 1; font: inherit; font-weight: 650; border: 0; background: transparent; padding: .75rem 1rem; border-radius: 7px; cursor: pointer; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.tab svg { width: 20px; height: 20px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 36, 46, .15); }
.card-input { position: relative; }
.card-input .brand-badge { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: .75rem; font-weight: 700; color: var(--slate); pointer-events: none; }
.gateway-slot { border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; background: var(--white); }
.gateway-slot .slot-label { font-size: .8rem; color: var(--slate); margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; }
.gateway-slot .slot-label svg { width: 14px; height: 14px; }
.summary-box dl { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; margin: 0 0 1rem; }
.summary-box dt { color: var(--slate); }
.summary-box dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.summary-box .total { border-top: 1px solid var(--line); padding-top: .8rem; font-size: 1.2rem; }
.trust { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .9rem; color: var(--slate); }
.trust li { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; }
.trust svg { width: 16px; height: 16px; flex: none; margin-top: .25rem; color: var(--moss); }

/* Footer */
.site-footer { background: var(--ink); color: #C9D4D8; padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-footer a { color: #E8EEF0; text-decoration: none; }
.site-footer a:hover { color: var(--mark); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; color: var(--white); letter-spacing: 0; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand span small { color: #9FB0B6; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; color: #9FB0B6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* v2: logo, four-plan pricing, custom work, card logos */
.brand .logo-mark { width: 36px; height: 36px; color: var(--ink); flex: none; }
.brand > span { line-height: 1.1; }
.brand span small { margin-top: 2px; }
.site-footer .brand .logo-mark { color: var(--paper); --logo-line: #7CC39E; }
.nav ul { gap: 1.15rem; }
.nav a { font-size: .95rem; }
@media (max-width: 1120px) and (min-width: 961px) { .nav ul { gap: .85rem; } .nav a { font-size: .9rem; } }

.plans { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan-tag--quiet { background: var(--mist); color: var(--ink); }
.plan h3 { min-height: 0; }

.custom-work {
  margin-top: 1.5rem; padding: 1.8rem; border-radius: 10px; border: 1.5px dashed #9DB0A6;
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between;
}
.custom-work > div:first-child { max-width: 40rem; }
.custom-work h3 { margin-bottom: .3rem; }
.custom-work p { margin: 0; color: var(--ink-soft); }

.slot-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.slot-head .slot-label { margin: 0; font-weight: 600; color: var(--ink); font-size: .92rem; }
.card-logos { width: 200px; height: auto; }
@media (max-width: 420px) { .card-logos { width: 170px; } }
.plan-tag--empty { visibility: hidden; }
@media (max-width: 640px) { .plan-tag--empty { display: none; } }
.summary-box dl { column-gap: 0; }
.summary-box dt { padding-right: 1rem; }
.card-logos { width: 230px; }

/* v3: authorization flow, verification, admin */
.btn--sm { padding: .5rem .85rem; font-size: .9rem; }
.btn--block { width: 100%; }
.flow-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; gap: .6rem; flex-wrap: wrap; font-size: .92rem; font-weight: 600; color: var(--slate); }
.flow-steps li { display: flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: var(--mist); }
.flow-steps li span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); font-size: .85rem; }
.flow-steps li.is-current { background: var(--ink); color: var(--white); }
.flow-steps li.is-current span { background: var(--mark); }
.flow-steps li.is-done span { background: var(--moss); color: var(--white); }

.auth-shell { display: grid; grid-template-columns: 22rem 1fr; gap: 2rem; align-items: start; }
.txn-panel { position: sticky; top: 92px; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .txn-panel { position: static; } }
.txn { display: grid; grid-template-columns: 7.5rem 1fr; gap: .55rem 1rem; margin: 0; }
.txn dt { color: var(--slate); font-size: .92rem; }
.txn dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.txn .txn-total { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .3rem; font-size: 1.25rem; }
.txn dd.txn-total { font-weight: 800; }
.txn .txn-total small { font-size: .8rem; color: var(--slate); font-weight: 500; }

.auth-form fieldset { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 1.3rem 1.4rem 1.4rem; margin: 0; display: grid; gap: 1.1rem; }
.auth-form legend { font-weight: 750; font-size: 1.1rem; padding: 0 .4rem; margin-left: -.4rem; }
.row--3 { grid-template-columns: 1.4fr 1fr 1fr !important; }
@media (max-width: 560px) { .row--3 { grid-template-columns: 1fr !important; } }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { display: flex; align-items: center; gap: .5rem; border: 1.5px solid #B9C5BF; border-radius: 8px; padding: .6rem .9rem; cursor: pointer; font-size: .96rem; }
.choice:has(input:checked) { border-color: var(--moss); background: #EEF5F0; }
.choice input { accent-color: var(--moss); }
.auth-statement { background: #F3F6F4; border-left: 4px solid var(--moss); padding: 1rem 1.1rem; border-radius: 0 8px 8px 0; font-size: .98rem; line-height: 1.6; }
.acks { display: grid; gap: .5rem; }
.acks .err:empty { display: none; }
.acks .check { font-size: .95rem; }

.sig-wrap { position: relative; border: 1.5px dashed #9DB0A6; border-radius: 10px; background: #FCFDFC; height: 190px; touch-action: none; }
.sig-wrap.is-invalid { border-color: var(--error); }
.sig-wrap canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.sig-line { position: absolute; left: 6%; right: 6%; bottom: 42px; border-bottom: 1px solid #C9D3CE; pointer-events: none; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .85rem; color: var(--slate); pointer-events: none; }
.sig-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }

.prefill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.prefill-head h2 { margin: 0; }
.howto { padding-left: 1.2rem; margin: 0 0 1rem; }
.howto li { margin-bottom: .6rem; font-size: .96rem; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 180px; border: 2px dashed #9DB0A6; border-radius: 12px; background: var(--white); cursor: pointer; text-align: center; padding: 1.5rem; }
.dropzone.is-over { border-color: var(--moss); background: #EEF5F0; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--mark); outline-offset: 2px; }
.dropzone strong { font-size: 1.1rem; color: var(--moss-dark); }
#verify-result { margin-top: 1.5rem; }
.verify-card { border-radius: 10px; padding: 1.4rem; border: 1px solid; }
.verify-card h2 { font-size: 1.3rem; }
.verify-card--ok { background: #E8F3EC; border-color: #A9CDB7; }
.verify-card--bad { background: #F8E4DF; border-color: #E0B1A6; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .93rem; }
.admin-table th, .admin-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--mist); font-weight: 650; white-space: nowrap; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .8rem; font-weight: 650; padding: .2rem .6rem; border-radius: 999px; background: var(--mist); color: var(--ink); white-space: nowrap; }
.pill--signed, .pill--payment_pending, .pill--under_review { background: #FFF1C9; }
.pill--payment_successful, .pill--settled, .pill--used { background: #D9EEE1; color: var(--moss-dark); }
.pill--failed, .pill--void, .pill--refunded, .pill--superseded { background: #F4DCD6; color: var(--error); }
.preset-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
body.admin .nav a { margin-right: .8rem; }

/* v4 */
.form input[type="password"] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid #B9C5BF; border-radius: 6px; padding: .72rem .85rem; }
.sig-preview { display: block; max-width: 240px; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin: .2rem 0 .4rem; }
.sig-wrap { height: 210px; }
.form select { min-height: 2.9rem; }
