/* Public website. Palette: ink, mist, marigold, leaf. One family: Schibsted Grotesk. */
:root {
  --ink: #1b2559;
  --ink-2: #2c3a7a;
  --muted: #59628a;
  --line: #d8dce8;
  --mist: #eef1f8;
  --paper: #ffffff;
  --marigold: #f2a900;
  --marigold-deep: #c98800;
  --leaf: #23784a;
  --leaf-soft: #e3f2e9;
  --radius-s: 6px;
  --radius-m: 12px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: clamp(2.2rem, 4.6vw, 3.6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.fine { font-size: var(--step--1); color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 38em; }
.link { color: var(--ink-2); text-underline-offset: 3px; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.15rem;
  border-radius: var(--radius-s); border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-lg { min-height: 52px; padding: .7rem 1.5rem; font-size: 1.06rem; }
.btn-solid { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.btn-solid:hover { background: var(--marigold-deep); border-color: var(--marigold-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--marigold); box-shadow: inset -6px -6px 0 var(--marigold-deep); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.nav-toggle, .nav-btn { display: none; }

@media (max-width: 900px) {
  .nav-btn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; cursor: pointer; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .nav-btn span::before { position: absolute; top: -7px; }
  .nav-btn span::after { position: absolute; top: 7px; }
  .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(--line); padding: .5rem 1.25rem 1.25rem; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: .8rem; }
  .nav-sep { display: none; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 1.25rem; margin: 0; cursor: pointer; z-index: 2; }
  .top-row { position: relative; }
}

.flash { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--leaf-soft); color: var(--leaf); border-radius: var(--radius-s); font-weight: 600; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-5); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .8rem; }

/* The daily sheet — the one loud element on the site */
.sheet {
  margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-m);
  box-shadow: 10px 10px 0 var(--ink); padding: 1.25rem 1.25rem 1rem; transform: rotate(-1.2deg);
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-bottom: .9rem; border-bottom: 2px dashed var(--line); }
.sheet-day { display: block; font-weight: 900; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; }
.sheet-date { color: var(--muted); font-weight: 600; }
.sheet-site { font-size: var(--step--1); background: var(--mist); padding: .25rem .6rem; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--mist); }
.sheet-list b { display: block; }
.sheet-list span { display: block; color: var(--muted); font-size: .95rem; }
.sheet-list em { display: block; margin-top: .2rem; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--leaf); }
.tick { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; margin-top: 2px; }
.sheet-list li.done .tick { background: var(--leaf); border-color: var(--leaf);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sheet-list li.done b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--leaf); }
.sheet-foot { display: flex; align-items: center; gap: .8rem; padding-top: .9rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.bar { flex: 0 0 90px; height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--leaf); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--mist); }
.band { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.band .prose p { color: #d5daf0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.h-big { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
.h-sec { font-size: var(--step-3); font-weight: 800; }
.h-article { font-size: var(--step-4); font-weight: 800; margin-top: .3em; }
.prose { font-size: 1.07rem; max-width: 40em; }
.prose p { margin-bottom: 1.1em; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font-weight: 900; font-size: var(--step-3); color: var(--marigold-deep); line-height: 1; margin-bottom: .5rem; }
.steps b { display: block; font-size: 1.08rem; margin-bottom: .3rem; }
.steps span { color: var(--muted); }

/* One topic → many */
.fan { position: relative; padding-left: 0; }
.fan-topic { background: var(--ink); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-m); font-weight: 700; font-size: 1.1rem; }
.fan-topic small { display: block; font-weight: 600; color: var(--marigold); font-size: .85rem; }
.fan-out { list-style: none; margin: 0 0 0 1.4rem; padding: .6rem 0 0 1.4rem; border-left: 2px solid var(--ink); }
.fan-out li { position: relative; padding: .55rem 0 .55rem .2rem; }
.fan-out li::before { content: ""; position: absolute; left: -1.4rem; top: 1.25rem; width: 1.1rem; height: 2px; background: var(--ink); }
.fan-out b { display: inline-block; min-width: 6.5rem; }

.nots { list-style: none; margin: 0; padding: 0; }
.nots li { padding: .9rem 0 .9rem 2.2rem; border-bottom: 1px solid var(--line); position: relative; font-size: 1.07rem; }
.nots li::before { content: "×"; position: absolute; left: .2rem; top: .7rem; font-weight: 900; font-size: 1.3rem; color: #b3261e; line-height: 1; }

/* Plans */
.plan-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: var(--radius-m); background: var(--paper); margin-top: 1.5rem; overflow: hidden; }
.plan-cell { padding: 1.4rem; border-right: 1px solid var(--line); }
.plan-cell:last-child { border-right: 0; }
.plan-cell h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.plan-pick { background: #fff8e6; }
.price { font-size: var(--step-3); font-weight: 900; letter-spacing: -0.03em; margin-bottom: .3rem; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; display: flex; flex-direction: column; background: var(--paper); }
.plan.plan-pick { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.plan h2 { font-size: var(--step-1); margin-bottom: .4rem; }
.plan .btn { margin-top: auto; }
.pick-note { font-size: var(--step--1); font-weight: 700; color: var(--marigold-deep); margin-bottom: .3rem; }
.ticks { list-style: none; padding: 0; margin: .8rem 0 1.4rem; }
.ticks li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 10px; height: 6px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

.table-scroll { overflow-x: auto; margin-top: 1.5rem; }
.compare { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--paper); min-width: 720px; }
.compare th, .compare td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 600; width: 24%; }

.qa dt { font-weight: 700; font-size: 1.08rem; margin-top: 1.4rem; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: .3rem 0 0; color: var(--ink-2); }
.qa a { font-weight: 600; }

/* Inner pages */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-5); font-weight: 900; letter-spacing: -0.035em; max-width: 18ch; }
.timeline { list-style: none; counter-reset: t; padding: 0; margin: 0; max-width: 780px; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 2.2rem 4rem; border-left: 2px solid var(--line); margin-left: 1.2rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: counter(t); position: absolute; left: -1.25rem; top: -.2rem; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--marigold); display: grid; place-items: center; font-weight: 900; }
.timeline h2 { font-size: var(--step-2); }
.timeline p { color: var(--ink-2); }
.feature-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
.feature-rows article { border-top: 2px solid var(--ink); padding-top: 1rem; }
.feature-rows h2 { font-size: var(--step-1); }
.feature-rows p { color: var(--ink-2); }
.post-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.post-list a { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.post-list span, .post-list time { color: var(--muted); }
.legal h2 { font-size: var(--step-1); margin-top: 1.8rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242,169,0,.45); }
.has-error input, .has-error textarea { border-color: #b3261e; }
.err { color: #b3261e; font-weight: 600; font-size: var(--step--1); margin: .35rem 0 0; }
.help { color: var(--muted); font-size: var(--step--1); margin: .3rem 0 0; }

/* Closer + footer */
.closer { background: var(--marigold); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.closer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.closer h2 { font-size: var(--step-3); font-weight: 900; max-width: 20ch; margin: 0; }
.closer .btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.closer .btn-solid:hover { background: var(--ink-2); }
.foot { background: var(--ink); color: #dfe3f5; padding: 3.5rem 0 1.5rem; }
.foot .brand { color: #fff; }
.foot .muted { color: #aab2d6; max-width: 26ch; margin-top: .8rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid a:not(.brand) { display: block; text-decoration: none; padding: .25rem 0; }
.foot-grid a:not(.brand):hover { text-decoration: underline; }
.foot-h { font-size: .95rem; color: #fff; margin-bottom: .6rem; }
.foot-base { border-top: 1px solid #34407a; margin-top: 2.5rem; padding-top: 1.2rem; font-size: var(--step--1); }

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero-grid, .split, .feature-rows { grid-template-columns: 1fr; }
  .hero { background: var(--paper); }
  .sheet { transform: none; box-shadow: 6px 6px 0 var(--ink); }
  .plan-strip { grid-template-columns: 1fr 1fr; }
  .plan-cell:nth-child(2) { border-right: 0; }
  .plan-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps, .plan-grid, .plan-strip { grid-template-columns: 1fr; }
  .plan-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Auth */
.auth { display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); border: 2px solid var(--ink); border-radius: var(--radius-m); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 8px 8px 0 var(--ink); background: var(--paper); }
.auth-card .form { margin: 1.2rem 0; }
.help ul { margin: .3rem 0 0; padding-left: 1.1rem; }
