/* EasyClose — ledger paper, blue ink */
:root {
  --paper: #f2f4ef;
  --paper-2: #e7ece4;
  --card: #fbfcfa;
  --ink: #15241c;
  --ink-2: #4b5b51;
  --rule: #c5d0c6;
  --rule-soft: #dce4dc;
  --blue: #2546b0;
  --blue-dark: #1a3488;
  --deep: #123b2a;
  --deep-2: #1a4d38;
  --mint: #a8dcbd;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 44rem; margin-bottom: 48px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--mint); color: var(--deep); }
.btn--light:hover { background: #c2ead2; color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 239, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .tag { font-size: .7rem; font-weight: 700; color: var(--deep); background: var(--mint); padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.header-cta { padding: 10px 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule-soft); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}
@media (min-width: 961px) { .nav .nav-cta-mobile { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 11ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Journal entry (signature element) */
.journal {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(21, 36, 28, .35);
  position: relative;
  overflow: hidden;
}
.journal__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 2px solid var(--ink); font-size: .88rem; }
.journal__head strong { font-size: 1rem; }
.journal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.journal th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--ink-2); padding: 10px 22px 6px; border-bottom: 1px solid var(--rule); }
.journal th.num, .journal td.num { text-align: right; width: 27%; white-space: nowrap; }
.journal td.num + td.num, .journal th.num + th.num { border-left: 1px solid var(--rule-soft); }
.journal td { padding: 9px 22px; border-bottom: 1px solid var(--rule-soft); }
.journal td.cr { padding-left: 46px; color: var(--ink-2); }
.journal tfoot td { font-weight: 700; border-bottom: 0; padding-top: 14px; padding-bottom: 18px; }
.journal .total { position: relative; display: inline-block; }
.journal .total::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 5px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform-origin: right; }
.journal__note { padding: 12px 22px; font-size: .82rem; color: var(--ink-2); border-top: 1px solid var(--rule); background: var(--paper); }
.stamp {
  position: absolute; left: 110px; bottom: 56px;
  border: 2.5px solid var(--blue); color: var(--blue);
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  padding: 4px 14px; border-radius: 6px; transform: rotate(-8deg);
  background: rgba(251, 252, 250, .85);
}

/* One orchestrated load sequence */
@media (prefers-reduced-motion: no-preference) {
  .journal.is-animated tbody tr { opacity: 0; transform: translateY(6px); animation: row-in .45s ease-out forwards; }
  .journal.is-animated tbody tr:nth-child(1) { animation-delay: .25s; }
  .journal.is-animated tbody tr:nth-child(2) { animation-delay: .45s; }
  .journal.is-animated tbody tr:nth-child(3) { animation-delay: .75s; }
  .journal.is-animated tbody tr:nth-child(4) { animation-delay: .95s; }
  .journal.is-animated tbody tr:nth-child(5) { animation-delay: 1.25s; }
  .journal.is-animated tbody tr:nth-child(6) { animation-delay: 1.45s; }
  .journal.is-animated tfoot { opacity: 0; animation: row-in .4s ease-out 1.8s forwards; }
  .journal.is-animated .total::after { transform: scaleX(0); animation: rule-draw .5s ease-out 2.1s forwards; }
  .journal.is-animated .stamp { opacity: 0; transform: rotate(-8deg) scale(1.6); animation: stamp-in .28s cubic-bezier(.2, .9, .3, 1.3) 2.6s forwards; }
}
@keyframes row-in { to { opacity: 1; transform: none; } }
@keyframes rule-draw { to { transform: scaleX(1); } }
@keyframes stamp-in { to { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* Product register (ledger rows) */
.register { border-top: 2px solid var(--ink); }
.register__row {
  display: grid; grid-template-columns: 1.1fr .9fr 2fr 130px; gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
a.register__row:hover { background: var(--paper-2); color: var(--ink); }
a.register__row:hover .register__name { color: var(--blue); }
.register__name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.register__std { color: var(--ink-2); font-size: .95rem; }
.register__desc { color: var(--ink-2); }
.register .status { justify-self: start; }
.status { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.status--live { color: var(--blue); }
.status--soon { color: var(--ink-2); border-style: dashed; }
.status--wait { color: var(--deep); background: var(--mint); border-color: var(--mint); }
.register__head { display: grid; grid-template-columns: 1.1fr .9fr 2fr 130px; gap: 24px; padding: 0 0 10px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) {
  .register__head { display: none; }
  .register__row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .register__std { grid-column: 1; grid-row: 2; }
  .register__desc { grid-column: 1 / -1; }
  .status { grid-column: 2; grid-row: 1; }
}

/* Close checklist */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.checklist strong { display: block; font-size: 1.05rem; }
.checklist span { color: var(--ink-2); font-size: .97rem; }
.tick { width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }

/* Feature ledger */
.features { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 72px); border-top: 2px solid var(--ink); }
.feature { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.taglist { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.taglist li { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 14px; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.taglist li svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* Sample panels on product pages */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 18px 40px -26px rgba(21, 36, 28, .35); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 22px; border-bottom: 2px solid var(--ink); }
.panel__head strong { font-size: 1rem; }
.sample-flag { font-size: .78rem; font-weight: 600; color: var(--ink-2); border: 1px dashed var(--ink-2); padding: 1px 8px; border-radius: 4px; }
.figs { display: grid; grid-template-columns: repeat(2, 1fr); }
.fig { padding: 18px 22px; border-bottom: 1px solid var(--rule-soft); }
.fig:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
.fig b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.fig span { font-size: .85rem; color: var(--ink-2); }
.fig--total { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0; background: var(--paper); }
.fig--total b { font-size: 2rem; }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; }

/* Aria band */
.aria { background: var(--deep); color: #e8f3ec; position: relative; overflow: hidden; }
.aria h2, .aria h1 { color: #fff; }
.aria .lede, .aria .muted { color: #b9d3c4; }
.aria a:not(.btn) { color: var(--mint); }
.aria-mark { font-weight: 800; font-size: clamp(6rem, 18vw, 15rem); line-height: .8; letter-spacing: -0.06em; color: var(--deep-2); user-select: none; }
.aria-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .aria-grid { grid-template-columns: 1fr; } .aria-mark { order: -1; } }
.pill { display: inline-block; font-size: .85rem; font-weight: 600; background: var(--mint); color: var(--deep); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.facts div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.facts span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { color: #b8c4bc; margin: 0; }
.cta-band .btn--ghost { color: #fff; border-color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); max-width: 16ch; }
.crumb { font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.crumb a { color: var(--ink-2); }

.prose { max-width: 40rem; }
.prose p { font-size: 1.08rem; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Forms + modal */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--rule); border-radius: 8px; padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 70, 176, .18); }
.field textarea { min-height: 96px; resize: vertical; }
.form-status { font-size: .95rem; margin: 0; padding: 12px 14px; border-radius: 8px; display: none; }
.form-status.is-ok { display: block; background: #e3efe6; color: var(--deep); }
.form-status.is-info { display: block; background: #e8ecf8; color: var(--blue-dark); }
.form-status.is-error { display: block; background: #f6e4e1; color: #8a2a1c; }
.aria .field label { color: #e8f3ec; }
.aria .field input, .aria .field select { border-color: transparent; }

dialog.modal { border: 0; padding: 0; border-radius: 10px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
dialog.modal::backdrop { background: rgba(21, 36, 28, .55); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 26px 0; }
.modal__head h2 { font-size: 1.7rem; margin: 0; }
.modal__body { padding: 12px 26px 26px; }
.modal__close { background: none; border: 0; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; border-radius: 6px; }
.modal__close:hover { background: var(--paper-2); }

.waitlist-card { background: #fff; color: var(--ink); border-radius: 10px; padding: 28px; }
.waitlist-card .field label { color: var(--ink); }
.waitlist-card .field input, .waitlist-card .field select { border-color: var(--rule); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding-top: 22px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 8px; } }

.partner-types { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.partner-types > div { border-top: 2px solid var(--ink); padding-top: 22px; }
@media (max-width: 760px) { .partner-types { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .journal table { font-size: .8rem; }
  .journal th, .journal td { padding-left: 12px; padding-right: 12px; }
  .journal td.cr { padding-left: 24px; }
  .journal th.num, .journal td.num { width: auto; }
  .journal__head { flex-direction: column; gap: 2px; padding: 14px 12px; }
  .journal__note { padding: 10px 12px; }
  .stamp { left: 56px; font-size: .95rem; bottom: 52px; }
  .aria-mark { font-size: 5.5rem; }
}
.aria .waitlist-card h2 { color: var(--ink); }

/* Announcement bar */
.announce { display: block; background: var(--deep); color: #dcefe3; text-align: center; text-decoration: none; font-size: .92rem; padding: 9px var(--pad); }
.announce:hover { color: #fff; }
.announce__new { display: inline-block; background: var(--mint); color: var(--deep); font-weight: 700; font-size: .75rem; padding: 1px 7px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.announce__cta { color: var(--mint); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }

/* Aria feature on homepage */
.aria-feature { padding: clamp(64px, 9vw, 112px) 0; }
.aria-feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.aria-feature__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; max-width: 14ch; }
.aria-points { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgba(168, 220, 189, .25); }
.aria-points li { padding: 14px 0; border-bottom: 1px solid rgba(168, 220, 189, .25); color: #b9d3c4; }
.aria-points strong { color: #fff; font-weight: 600; margin-right: 4px; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: #fff; color: var(--deep); }
@media (max-width: 900px) { .aria-feature__grid { grid-template-columns: 1fr; } }

.tasks { margin: 0; background: #0d2e20; border: 1px solid rgba(168, 220, 189, .22); border-radius: 8px; overflow: hidden; }
.tasks__head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 2px solid var(--mint); }
.tasks__head strong { color: #fff; }
.tasks__flag { font-size: .78rem; font-weight: 600; color: #b9d3c4; border: 1px dashed #b9d3c4; padding: 1px 8px; border-radius: 4px; }
.tasks__list { list-style: none; margin: 0; padding: 0; }
.tasks__list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: start; padding: 16px 20px; border-bottom: 1px solid rgba(168, 220, 189, .14); }
.tasks__list li:last-child { border-bottom: 0; }
.tasks__list b { display: block; color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.35; }
.tasks__list small { color: #9fbcac; font-size: .86rem; }
.tasks__list em { font-style: normal; font-size: .8rem; font-weight: 600; color: #9fbcac; white-space: nowrap; padding-top: 2px; }
.tasks__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #5f8a74; margin-top: 5px; }
.tasks__list .is-done .tasks__dot { background: var(--mint); border-color: var(--mint); }
.tasks__list .is-done b { color: #cfe6d8; }
.tasks__list .is-done em { color: var(--mint); }
.tasks__list .is-active { background: rgba(168, 220, 189, .08); }
.tasks__list .is-active .tasks__dot { border-color: var(--mint); }
.tasks__list .is-active em { color: #fff; }
.tasks__list .is-waiting .tasks__dot { border-color: #f0c96a; background: #f0c96a; }
.tasks__list .is-waiting em { color: #f0c96a; }
@media (prefers-reduced-motion: no-preference) {
  .tasks__list .is-active .tasks__dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(168, 220, 189, .25); } }
@media (max-width: 480px) { .tasks__list li { grid-template-columns: 14px 1fr; } .tasks__list em { grid-column: 2; } }
