/* CodeShift website. Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --paper: #f4f5f7;
  --paper-2: #e9ebef;
  --ink: #0f1320;
  --slate: #4b5366;
  --line: #d3d7df;
  --cobalt: #2457e6;
  --cobalt-ink: #1a43b8;
  --night: #0e1016;
  --night-2: #181b24;
  --night-line: #2a2f3c;
  --night-text: #e8eaf0;
  --night-muted: #a4abbc;
  --sky: #9bb8ff;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
.night :focus-visible { outline-color: var(--sky); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; border-radius: 4px; }
.skip:focus { left: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-block: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; padding-bottom: 12px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; flex-basis: 100%; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 10px 0 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--cobalt); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Hero */
.hero { padding-block: 44px 56px; }
.hero__grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(2.35rem, 7.4vw, 4.7rem); line-height: 1.01; letter-spacing: -0.035em; max-width: 13ch; }
.hero__lead { margin-top: 22px; font-size: 1.2rem; color: var(--slate); max-width: 44ch; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.entries { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.entry { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; }
.entry:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entry img { width: 56px; height: 56px; border-radius: 13px; grid-row: span 3; }
.entry h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.entry p { color: var(--slate); font-size: 1rem; }
.entry .status { font-size: 0.92rem; color: var(--ink); font-weight: 600; }

.duo { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-block: 8px 0; }
.phone { position: relative; border-radius: 28px; padding: 7px; background: #0b0d12; box-shadow: 0 1px 0 #2b3040 inset, 0 30px 60px -28px rgba(15, 19, 32, 0.55), 0 8px 18px -10px rgba(15, 19, 32, 0.4); }
.phone img { border-radius: 21px; width: 100%; height: auto; }
.duo .phone:first-child { width: min(46%, 250px); }
.duo .phone:last-child { width: min(46%, 250px); margin-left: -6%; margin-top: 54px; }

/* Sections */
section { padding-block: 72px; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; color: var(--slate); font-size: 1.12rem; }
.ruled { border-top: 1px solid var(--line); }

/* Keyboard: mode switch (radio buttons drive it; no script needed) */
.mode { margin-top: 36px; position: relative; }
.mode > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mode__grid { display: grid; gap: 32px; }
.switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 12px; padding: 4px; background: #fff; gap: 4px; margin: 0; min-inline-size: 0; }
.switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.switch label { cursor: pointer; padding: 12px 22px; border-radius: 8px; font-weight: 600; min-width: 112px; text-align: center; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.switch label .mono { font-size: 0.95rem; }
#m-everyday:checked ~ .mode__grid label[for="m-everyday"],
#m-code:checked ~ .mode__grid label[for="m-code"] { background: var(--ink); color: #fff; }
#m-everyday:focus-visible ~ .mode__grid label[for="m-everyday"],
#m-code:focus-visible ~ .mode__grid label[for="m-code"] { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.stage { position: relative; width: min(100%, 300px); aspect-ratio: 640 / 1138; margin-inline: auto; }
.stage .phone { position: absolute; inset: 0; }
.stage .phone img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
#m-everyday:checked ~ .mode__grid .stage .shot-everyday,
#m-code:checked ~ .mode__grid .stage .shot-code { opacity: 1; }
.mode__text { display: grid; gap: 18px; align-content: start; }
.mode__text .when { display: none; }
#m-everyday:checked ~ .mode__grid .when-everyday,
#m-code:checked ~ .mode__grid .when-code { display: block; }
.when h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.when p { margin-top: 10px; color: var(--slate); }
.changes { margin-top: 14px; border-top: 1px solid var(--line); }
.changes li { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; }
.changes b { font-weight: 600; }
.changes span { color: var(--slate); }
.howto { padding: 16px 18px; background: #fff; border-left: 4px solid var(--cobalt); max-width: 52ch; }
.howto strong { font-weight: 600; }

/* Keyboard: feature compositions (deliberately different from each other) */
.band { margin-top: 64px; display: grid; gap: 28px; align-items: center; }
.band h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.025em; }
.band__lead { margin-top: 12px; color: var(--slate); }
.facts { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts--two { grid-template-columns: 1fr; }
.shot { width: min(100%, 290px); margin-inline: auto; }
.strip { margin-top: 28px; display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.strip figure { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: start; }
.strip figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--slate); }
.strip figcaption b { display: block; color: var(--ink); font-weight: 600; }

.subhead { margin-top: 84px; font-size: 1.5rem; letter-spacing: -0.02em; }
.lede { margin-top: 28px; font-size: 1.12rem; color: var(--slate); max-width: 62ch; }

.after { margin-top: 28px; }
.after strong { font-weight: 600; }
.foot .copy { margin-top: 14px; }

/* Terminal: dark band */
.night { background: var(--night); color: var(--night-text); }
.night a { color: var(--sky); }
.night .section-head p, .night .band__lead, .night .facts li, .night figcaption { color: var(--night-muted); }
.night .facts, .night .facts li { border-color: var(--night-line); }
.night h2, .night h3, .night b { color: #fff; }
.night .strip figcaption b { color: #fff; }
.night .phone { background: #000; box-shadow: 0 0 0 1px var(--night-line), 0 30px 60px -28px rgba(0, 0, 0, 0.9); }
.t-grid { margin-top: 44px; display: grid; gap: 40px; }
.t-cols { display: grid; gap: 34px; }
.t-cols h3 { font-size: 1.25rem; margin-bottom: 4px; }
.t-cols .facts { margin-top: 10px; }
.limits { margin-top: 36px; padding: 18px 20px; border: 1px dashed var(--night-line); color: var(--night-muted); max-width: 66ch; }
.limits strong { color: #fff; font-weight: 600; }
.t-shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.t-shots .phone { width: min(47%, 270px); }
.t-shots .phone:last-child { margin-top: 48px; }

/* Philosophy */
.pair { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.pair > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pair h3 { font-size: 1.3rem; }
.pair p { margin-top: 8px; color: var(--slate); }

/* Privacy */
.statement { font-size: clamp(2rem, 6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 18ch; }
.priv { margin-top: 44px; display: grid; gap: 36px; }
.priv h3 { font-size: 1.3rem; }
.policies { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--ink); max-width: 760px; }
.policies a { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.policies a span { color: var(--slate); font-size: 0.98rem; }
.policies a b { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cobalt); }
.policies a:hover b { text-decoration-thickness: 2px; }

/* Availability */
.avail { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.avail dl { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px 24px; }
.avail dt { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.015em; }
.avail dd { margin: 0; color: var(--slate); }
.avail dd b { color: var(--ink); font-weight: 600; }
.avail-note { margin-top: 22px; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--cobalt-ink); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; color: var(--slate); }
.faq .a p + p { margin-top: 10px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 0.98rem; color: var(--slate); }
.foot .wrap { display: grid; gap: 28px; }
.foot h2 { font-size: 1rem; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.foot ul { display: grid; gap: 6px; }
.foot a { color: var(--slate); }
.foot a:hover { color: var(--ink); }
.foot .legal { max-width: 70ch; }

/* Simple pages (privacy hub, 404) */
.page { padding-block: 48px 72px; }
.page h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); letter-spacing: -0.03em; max-width: 18ch; }
.page .lead { margin-top: 18px; font-size: 1.15rem; color: var(--slate); }
.page h2 { margin-top: 44px; font-size: 1.5rem; }
.page p, .page li { margin-top: 12px; }
.page ul.plain { margin-top: 12px; display: grid; gap: 8px; list-style: disc; padding-left: 1.2rem; max-width: 62ch; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { border-collapse: collapse; min-width: 560px; width: 100%; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; border-bottom: 1px solid var(--ink); }

@media (max-width: 559px) {
  .changes li { grid-template-columns: 1fr; gap: 2px; }
  .stage { width: min(100%, 262px); }
  .shot { width: min(100%, 262px); }
}

/* Larger screens */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .top .wrap { flex-wrap: nowrap; padding-block: 0; }
  .brand { padding-block: 18px; }
  .nav { flex-basis: auto; margin-left: auto; gap: 28px; }
  .nav a { padding-block: 24px; }
  .facts--two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .entry { grid-template-columns: 64px 1fr; }
  .entry img { width: 64px; height: 64px; }
}
@media (min-width: 640px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; }
  .hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.7rem); }
  .mode__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
  .mode__grid .switch { grid-column: 1 / -1; justify-self: start; }
  .stage { width: 260px; }
  .band { grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; }
  .band--flip { grid-template-columns: 250px minmax(0, 1fr); }
  .band--flip .band__text { order: 2; }
  .t-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .changes li { grid-template-columns: 7.5rem 1fr; gap: 14px; }
}
@media (min-width: 880px) {
  section { padding-block: 104px; }
  .hero { padding-block: 72px 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
  .mode__grid { grid-template-columns: 330px minmax(0, 1fr); gap: 72px; align-items: start; }
  .changes li { grid-template-columns: 9.5rem 1fr; gap: 12px; }
  .stage { width: 330px; }
  .band { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; margin-top: 96px; }
  .band--flip { grid-template-columns: 300px minmax(0, 1fr); }
  .band--flip .band__text { order: 2; }
  .t-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 64px; align-items: start; }
  .t-cols { grid-template-columns: 1fr 1fr; gap: 40px 36px; }
  .pair { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .pair > div { border-bottom: 0; }
  .priv { grid-template-columns: 1fr 1fr; gap: 56px; }
  .avail { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .avail dl { border-bottom: 0; }
  .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1200px) {
  .strip figure { width: 232px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .phone img { transition: none; }
}
@media (forced-colors: active) {
  .switch label { border: 1px solid ButtonText; }
  #m-everyday:checked ~ .mode__grid label[for="m-everyday"], #m-code:checked ~ .mode__grid label[for="m-code"] { outline: 3px solid Highlight; }
}
