/* CopperClerk site. Clean standard: white ground, navy ink, hairline structure, copper only on the call to action. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0F1B2D;
  --muted: #4A5568;
  --faint: #6B7585;      /* white ground only: 4.66:1 */
  --line: #DFE3E8;
  --band: #F5F6F8;
  --copper: #A3461C;     /* the call to action, and nothing else */
  --copper-dk: #87391A;
  --select: #F2DED3;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1200px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--copper); }
@media (min-width: 720px) { body { font-size: 18px; } }
::selection { background: var(--select); color: var(--ink); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, .display { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

/* Ruled sheet: the container's edges are drawn as hairlines on wide screens. */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sheet { max-width: calc(var(--max) + 2px); margin: 0 auto; }
@media (min-width: 1240px) { .sheet { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.rule { border-top: 1px solid var(--line); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .top { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); } }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font: 700 20px/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.wordmark svg { flex: none; }

/* The one call to action */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 6px; background: var(--copper); color: #fff; font: 600 17px/1.2 var(--display); letter-spacing: -.005em; text-decoration: none; transition: background-color .15s ease-out; }
.cta:hover { background: var(--copper-dk); text-decoration: none; }
.cta:active { background: #6F2F15; }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 420px) { .top .cta.small { padding: 0 12px; font-size: 14px; } }

/* Type scale */
.h-xl { font-weight: 600; font-size: clamp(42px, 7.2vw, 84px); line-height: 1.0; letter-spacing: -.04em; }
.h-l { font-weight: 600; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.032em; }
.h-m { font-weight: 600; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.015em; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.note { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 112px 0; } }
.grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(12, 1fr); gap: 0 40px; }
  .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-10 { grid-column: span 10; } .c-12 { grid-column: 1 / -1; }
  .s-6 { grid-column: 6 / -1; }
}

/* Hero */
.hero { padding: 64px 0 72px; }
@media (min-width: 960px) { .hero { padding: 120px 0 112px; } }
.aud { display: none; font-size: 15px; color: var(--muted); padding-left: 16px; margin-left: 16px; border-left: 1px solid var(--line); line-height: 20px; }
.top .brand { display: flex; align-items: center; min-width: 0; }
@media (min-width: 720px) { .aud { display: block; } .aud-m { display: none; } }
.hero h1 { max-width: 940px; }
.hero .below { margin-top: 36px; align-items: end; }
@media (min-width: 960px) { .hero .below { margin-top: 56px; } }
.act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.act .note { max-width: 34ch; }
@media (min-width: 960px) { .act { padding-left: 32px; border-left: 1px solid var(--line); } }

/* Problem */
.problem p { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; max-width: 36em; }

/* Before / after table */
.compare { width: 100%; border-collapse: collapse; margin-top: 40px; }
.compare th { text-align: left; font: 600 clamp(19px, 1.9vw, 24px)/1.2 var(--display); letter-spacing: -.015em; padding: 0 0 16px; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.compare th:first-child { color: var(--muted); }
.compare td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); padding-right: 40px; }
.compare td:last-child { font-weight: 500; }
.compare .none { color: var(--faint); }
@media (max-width: 719px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare td { display: block; width: auto; }
  .compare thead tr { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
  .compare th { font-size: 15px; padding: 0; border: 0; }
  .compare th:first-child::after { content: " → "; font-weight: 400; color: var(--muted); }
  .compare tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare td { border: 0; padding: 0; }
  .compare td:first-child { font-size: 15px; padding-right: 0; }
  .compare td:last-child { font-size: 17px; font-weight: 600; margin-top: 4px; }
  .compare td.empty { display: none; }
}

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.steps li { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.steps .n { font: 600 15px/1 var(--display); color: var(--muted); display: block; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }
.steps li:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 28px 32px 36px 0; border-bottom: 0; }
  .steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
}
.steps-4 .item { font: 500 clamp(18px, 1.6vw, 20px)/1.45 var(--display); color: var(--ink); letter-spacing: -.005em; }
@media (min-width: 720px) and (max-width: 959px) { .steps-4 { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 960px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.calc-act { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.total { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .total { margin-top: 0; } }
.total b { font: 600 18px/1.3 var(--display); }

/* Calculator */
.calc-band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-band .intro { color: var(--muted); margin-top: 16px; max-width: 34em; }
.calc { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 960px) { .calc { grid-template-columns: 5fr 7fr; gap: 40px; } }
.example { font: 600 14px/1.4 var(--display); color: var(--muted); margin-bottom: 8px; }
.field { padding: 16px 0; border-top: 1px solid var(--line); }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.inp { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.inp input { width: 9.5em; font: 600 20px/1 var(--display); color: var(--ink); padding: 12px 12px; border: 1px solid #B8C0CB; border-radius: 4px; background: #fff; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.inp input::-webkit-outer-spin-button, .inp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inp input:hover { border-color: var(--muted); }
.inp input:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.hint { font-size: 15px; color: var(--muted); margin-top: 8px; }
.result { border-top: 2px solid var(--ink); padding-top: 20px; align-self: start; }
.estlabel { font: 600 14px/1.4 var(--display); color: var(--muted); }
.big { font: 600 clamp(34px, 10.5vw, 72px)/1.02 var(--display); letter-spacing: -.035em; margin: 12px 0 8px; white-space: nowrap; }
@media (min-width: 960px) { .big { font-size: clamp(48px, 5.4vw, 72px); } }
.result .what { color: var(--muted); font-size: 16px; max-width: 34em; }
.math { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.math td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.math tr:last-child td { border-bottom: 1px solid var(--line); }
.math td:last-child { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 600; padding-left: 16px; }
@media (max-width: 479px) {
  .math tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .math tr:last-child { border-bottom: 1px solid var(--line); }
  .math td, .math tr:last-child td { display: block; border: 0; padding: 0; text-align: left; }
  .math td:last-child { padding: 2px 0 0; text-align: left; }
}
.verdict { font-weight: 500; }
.result .fine { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* You stay in control */
.control { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.control div { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.control dt { font: 600 19px/1.3 var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.control dd { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .control { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Placeholders the deploy build fills in */
.ph { background: #FFF4D6; outline: 1px dashed #B7791F; outline-offset: 1px; color: #5F3B00; padding: 0 4px; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 12px; margin: 0 -12px; font: 600 clamp(18px, 1.7vw, 21px)/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper-dk); }
.faq .pm { flex: none; width: 16px; height: 16px; position: relative; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .2s ease-out; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 40em; }

/* Final call to action */
.final h2 { max-width: 940px; }
.final .below { margin-top: 32px; align-items: end; }
@media (min-width: 960px) { .final .below { margin-top: 48px; } }

/* Homepage doors */
.doors { display: grid; grid-template-columns: 1fr; margin-top: 48px; border-top: 2px solid var(--ink); }
.door { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; padding: 28px 0 32px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.door h2 { grid-column: 1; }
.door p { grid-column: 1; color: var(--muted); font-size: clamp(18px, 1.6vw, 20px); }
.door svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink); transition: transform .2s ease-out; }
.door:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.door:hover svg { transform: translateX(4px); }
@media (min-width: 960px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .door { padding: 36px 40px 40px 0; border-bottom: 0; min-height: 220px; }
  .door + .door { padding-left: 40px; border-left: 1px solid var(--line); }
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
footer .grid { gap: 28px; }
footer strong { display: block; color: var(--ink); font: 600 15px/1.4 var(--display); margin-bottom: 6px; }
footer address { font-style: normal; }
footer .legal { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
footer a { color: var(--muted); }

/* Privacy page */
.doc { max-width: 720px; }
.doc h1 { margin-bottom: 8px; }
.doc h2 { font-weight: 600; font-size: 24px; letter-spacing: -.015em; margin: 48px 0 12px; }
.doc p, .doc li { color: #2D3748; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc .summary { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 8px 0 20px; }
.doc .summary h2 { margin-top: 20px; }
.template-note { border: 2px solid #B7791F; background: #FFF8E6; color: #5F3B00; padding: 14px 18px; border-radius: 4px; margin-bottom: 32px; font-size: 16px; }

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