/* Daycount: public site */
:root {
  --paper: #F6F3EC; --paper-2: #EFEAE0; --white: #FFFFFF; --ink: #172033; --ink-2: #3F4A5C; --line: #E2DBCD;
  --navy: #182B47; --navy-2: #22395E; --brass: #B47B26; --brass-soft: #F3E6CF; --sage: #2E6650; --sage-soft: #E3EFE8;
  --todo: #FCEFD3; --todo-ink: #7A4F00;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif; --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 760px; }  /* readable column, same left edge as the rest */

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(246,243,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { height: 34px; width: auto; }
.site-foot .brand svg { height: 34px; }
.site-head nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-head nav a { color: var(--ink-2); text-decoration: none; padding: 9px 13px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.site-head nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-head nav a[aria-current="page"] { color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.site-head nav a.cta { background: var(--navy); color: #fff; margin-left: 6px; }
.site-head nav a.cta:hover { background: var(--navy-2); color: #fff; }

/* type */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 6.4vw, 78px); }
h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.25; }
p { margin: 0 0 14px; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); line-height: 1.6; max-width: 640px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-2); }

/* sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-navy { background: var(--navy); color: #E7ECF4; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .muted, .band-navy p { color: #C9D3E3; }
.section-head { max-width: 680px; margin-bottom: 40px; }

/* hero */
.hero { padding: 92px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brass); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.band-navy .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.band-navy .btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #9C6A1F; color: #fff; }

/* hero visual: an invoice ledger card */
.ledger { background: var(--white); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(23,32,51,.35), 0 0 0 1px var(--line); transform: rotate(-1.2deg); }
.ledger .lh { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.ledger .row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger .late { color: var(--brass); font-weight: 600; }
.ledger .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.ledger .tot b { font: 400 38px/1 var(--display); color: var(--navy); }
.ledger .tag { display: inline-block; background: var(--sage-soft); color: var(--sage); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-top: 14px; }

/* figures band */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.figures div { padding: 6px 28px; border-left: 1px solid rgba(255,255,255,.18); }
.figures div:first-child { border-left: none; padding-left: 0; }
.figures b { display: block; font: 400 clamp(36px, 4vw, 52px)/1.05 var(--display); color: #fff; margin-bottom: 8px; }
.figures span { font-size: 15px; color: #C9D3E3; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--r); padding: 30px 28px; box-shadow: 0 0 0 1px var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 400 22px/1 var(--display); color: var(--brass); display: block; margin-bottom: 16px; }
.band-white .step { background: var(--paper); box-shadow: none; }

/* cards and grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--white); border-radius: var(--r); padding: 30px 28px; box-shadow: 0 0 0 1px var(--line); }
.card.soft { background: var(--paper); box-shadow: none; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); margin-bottom: 18px; }
.icon.sage { background: var(--sage-soft); color: var(--sage); }
.icon.navy { background: #E3E9F3; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: var(--white); box-shadow: 0 0 0 1px var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 12px 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--sage-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232E6650' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 18px; }

/* split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* tables / details */
.calc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.calc td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.calc td:last-child { text-align: right; font-weight: 600; }
.calc tr.total td { border-bottom: none; font-size: 18px; color: var(--navy); }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 0; }
dl.details dt { color: var(--ink-2); }
dl.details dd { margin: 0; font-weight: 600; }
.refbox { display: inline-block; font: 600 22px/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .08em; background: var(--paper); padding: 12px 16px; border-radius: 10px; color: var(--navy); }
details { background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
details summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 400 24px/1 var(--display); color: var(--brass); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 24px 20px; color: var(--ink-2); }

/* legal prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 42px 0 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.page-head { padding: 72px 0 36px; }
.page-head .lead { margin-top: 16px; }
.draft { display: inline-block; background: var(--brass-soft); color: #7A4F00; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }

.todo { background: var(--todo); color: var(--todo-ink); padding: 0 5px; border-radius: 5px; font-weight: 500; }

/* footer */
.site-foot { background: var(--ink); color: #AEB8C9; font-size: 14px; padding: 64px 0 40px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-foot h4 { color: #fff; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.site-foot a { color: #DCE3EE; text-decoration: none; display: block; margin-bottom: 8px; }
.site-foot a:hover { color: #fff; }
.site-foot .brand b { color: #fff; }
.site-foot .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; line-height: 1.7; }
.site-foot .todo { background: rgba(252,239,211,.15); color: #F3D9A5; }

@media (max-width: 900px) {
  .hero .wrap, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .figures div:nth-child(3) { border-left: none; padding-left: 0; }
  .site-foot .cols { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .ledger { transform: none; }
}
@media (max-width: 560px) { dl.details { grid-template-columns: 1fr; } .figures { grid-template-columns: 1fr; } .figures div { border-left: none; padding-left: 0; } }

/* access code form (make a payment) */
.code-form { margin-top: 16px; }
.code-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.code-form input { font: inherit; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; width: 100%; max-width: 340px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: var(--white); display: block; }
.code-form button { margin-top: 14px; cursor: pointer; border: 0; }
