/* Freelance page: navy brand on a light page. Responsive rules use container queries on .site. */
:root {
  --site: #fafbfb;
  --surface: #ffffff;
  --tint: #f1f4f7;
  --ink: #14181d;
  --muted: #4b535d;
  --soft: #6a727c;
  --line: #dde1e5;
  --brand: #1f3a5f;
  --brand-strong: #132742;
  --brand-tint: #e6edf5;
  --on-brand: #ffffff;
  --ok: #2e7d4f;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 16px; }
.sec, .contact { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--site); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* ---------- Site shared ---------- */
.site { container-type: inline-size; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--site) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-weight: 500; font-size: 0.8rem; color: var(--soft); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 0.95rem; line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--site); }
.nav .btn { min-height: 38px; padding: 8px 14px; color: var(--on-brand); }

.sec { padding-block: 64px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 68ch; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650; color: var(--brand); }
.h2 { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.6rem, 3.2cqi, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; }
.sec-head p { color: var(--muted); }
.price { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.from { font-size: 0.78rem; color: var(--soft); font-weight: 500; }

/* ---------- Business page ---------- */
.hero { padding-block: 64px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr); gap: 56px; align-items: start; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h2 { font-family: var(--font-display); font-weight: 650; font-size: clamp(2.3rem, 5.6cqi, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.8cqi, 1.25rem); color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.me { display: grid; gap: 16px; }
.me img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; }
.me-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.me-card .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); font-weight: 650; }
.me-card .mono { font-variant-numeric: tabular-nums; }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 64px; }
.door { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.door:hover { border-color: var(--brand); }
.door .who { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--brand); }
.door h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
.door p { color: var(--muted); font-size: 0.92rem; }
.door .go { font-weight: 600; font-size: 0.9rem; color: var(--brand); margin-top: 4px; }

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 22px 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; background: var(--site); }
.svc h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.svc p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.svc .price { font-size: 0.95rem; margin-top: 6px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.plan.pick { border: 2px solid var(--brand); }
.plans.single { grid-template-columns: minmax(0, 560px); }
.plan-extra { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.plan-extra b { color: var(--ink); font-weight: 600; }
.plans.single ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.plan .name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan .name h3 { font-size: 1.1rem; font-weight: 650; }
.plan .badge { font-size: 0.72rem; font-weight: 650; color: var(--on-brand); background: var(--brand); border-radius: 999px; padding: 3px 9px; }
.plan .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.plan .amount span { font-size: 0.95rem; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); font-weight: 650; background: var(--tint); }
td:first-child { font-weight: 600; }
td.num, th.num { text-align: right; }
td .sub { display: block; font-weight: 400; color: var(--soft); font-size: 0.84rem; }
.fine { margin-top: 12px; font-size: 0.84rem; color: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 650; font-size: 1.6rem; color: var(--brand); line-height: 1; }
.step h3 { font-size: 1rem; font-weight: 650; }
.step p { font-size: 0.88rem; color: var(--muted); }

.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; }
.skills div { display: grid; gap: 4px; }
.skills h3 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); font-weight: 650; }
.skills p { font-size: 0.92rem; }

.contact { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.contact .h2 { font-size: clamp(2rem, 4.4cqi, 3rem); margin-bottom: 14px; }
.contact p { color: var(--muted); max-width: 52ch; margin-bottom: 24px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.contact-list span:first-child { color: var(--soft); font-size: 0.84rem; }
.contact-list span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.site-foot { padding-block: 22px; font-size: 0.82rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Responsive (container queries on .site) ---------- */
@container (max-width: 900px) {
  .svc-grid, .skills, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 760px) {
  .hero-grid, .doors, .plans, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-block: 48px; }
  .hero { padding-block: 40px; }
  .nav { gap: 6px 16px; }
}
@container (max-width: 560px) {
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { padding: 0; border: 0; }
  td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 0.88rem; }
  .plans.single ul { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 520px) {
  .svc-grid, .skills, .steps { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: calc(100% - 32px); }
  .nav a:not(.btn) { display: none; }
}
.me-card a, .contact-list a { text-decoration: none; }
.me-card a:hover, .contact-list a:hover { color: var(--brand); }
