/* Valid8.it site. One strong colour (the logo teal) on a warm light page.
   Teal is the answer, orange is the problem. Tokens match the app's
   (src/ui/theme.css) so the screenshots sit in the page. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page: #faf9f7;
  --card: #ffffff;
  --tile: #f1efeb;
  --ink: #1a1917;
  --muted: #6b6964;
  --line: #e8e6e1;
  --line-strong: #d9d6cf;
  --teal: #00c2b2;
  --teal-ink: #00796f;
  --teal-soft: #dff6f3;
  --orange: #f0641e;
  --orange-ink: #a23b05;
  --orange-soft: #ffe6d6;
  --bad: #c1402f;
  --warn: #c77a12;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--pad); }

/* Top bar: clear over the teal, page-coloured once you scroll */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; --mark: var(--ink); transition: background 0.25s, box-shadow 0.25s; }
.top.scrolled { --mark: var(--teal); background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.top .logo { display: block; }
.top .logo svg { display: block; height: 28px; width: auto; }
.top .logo svg .mark { fill: var(--mark); transition: fill 0.25s; }
.top nav { display: flex; gap: 30px; margin-left: auto; }
.top nav a { font-size: 15px; font-weight: 600; text-decoration: none; opacity: 0.72; transition: opacity 0.15s; }
.top nav a:hover { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.btn:hover { background: #33312d; border-color: #33312d; }
.btn:active { transform: scale(0.97); }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--page); border-color: var(--page); }

/* Headings arrive once, from behind their own baseline, then stand still. */
.js .rv { display: block; clip-path: inset(0 0 100% 0); transform: translateY(0.32em); }
.js .rv.in { clip-path: inset(-0.15em -0.1em -0.25em -0.1em); transform: none; transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--dl, 0s); }
.js .fd { opacity: 0; }
.js .fd.in { opacity: 1; transition: opacity 0.8s ease-out; transition-delay: var(--dl, 0s); }

/* Hero: the teal fills the screen, the film plays in it */
.hero { display: flow-root; background: var(--teal); padding-top: clamp(100px, 13vh, 132px); text-align: center; }
h1 { margin: 0; font-size: clamp(42px, 8.6vw, 132px); line-height: 0.96; font-weight: 700; letter-spacing: -0.03em; }
h1 .rv + .rv { --dl: 0.55s; }
h1 .rv { white-space: nowrap; }
h1 em { font-style: normal; color: #fff; }
.hero .sub { margin: clamp(18px, 2.2vw, 28px) auto 0; max-width: 36ch; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.38; font-weight: 500; color: #06302c; text-wrap: balance; --dl: 1.1s; }
.hero .join { margin-top: clamp(20px, 2.2vw, 28px); --dl: 1.25s; }
/* Sign up: one button that opens into an email field and a button, in the same space */
.join { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join .pill { display: flex; align-items: stretch; width: min(100%, 360px); height: 56px; padding: 4px; border-radius: 999px; background: var(--ink); }
.join input[type="email"] { flex: 0 1 0; width: 0; min-width: 0; padding: 0; border: 0; border-radius: 999px; background: #fff; font: inherit; font-size: 16.5px; color: var(--ink); outline: none; opacity: 0; transition: flex-grow 0.55s var(--ease), padding 0.55s var(--ease), opacity 0.3s; }
.join input::placeholder { color: #9a9892; }
.join button { flex: 1 1 auto; display: grid; place-items: center; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 17px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: flex-grow 0.55s var(--ease), background 0.15s; }
.join button span { grid-area: 1 / 1; transition: opacity 0.25s; }
.join button .b { opacity: 0; }
.join.open input[type="email"] { flex-grow: 1; padding: 0 18px; opacity: 1; }
.join.open button { flex-grow: 0; }
.join.open button .a { opacity: 0; width: 0; overflow: hidden; }
.join.open button .b { opacity: 1; }
.join.open button:hover { background: #33312d; }
.join.bad .pill { box-shadow: 0 0 0 3px var(--orange); }
.join input:focus-visible { box-shadow: inset 0 0 0 2px var(--teal-ink); }
.join .note { min-height: 1.5em; font-size: 15px; font-weight: 500; color: #06302c; }
.film { --fw: min(1180px, 100vw - 2 * var(--pad)); position: relative; z-index: 2; max-width: 1180px; margin: clamp(36px, 4vw, 56px) auto calc(var(--fw) * -0.3); border-radius: 24px; overflow: hidden; background: #f7f7f5; box-shadow: 0 40px 80px -34px rgba(3, 58, 53, 0.55), 0 2px 8px rgba(3, 58, 53, 0.16); --dl: 1.35s; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film .sound { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: background 0.15s, transform 0.15s var(--ease); }
.film .sound:hover { background: #33312d; }
.film .sound:active { transform: scale(0.94); }
.film .sound svg { width: 20px; height: 20px; }
.film .sound.restart { left: 68px; }
.film .sound .on, .film .sound[aria-pressed="true"] .off { display: none; }
.film .sound[aria-pressed="true"] .on { display: block; }

/* Sections */
section { padding-block: clamp(88px, 11vw, 168px); }
.after-hero { padding-top: calc(min(1180px, 100vw - 2 * var(--pad)) * 0.3 + clamp(88px, 11vw, 168px)); }
.band { background: var(--tile); }
.head { text-align: center; margin-bottom: clamp(36px, 5vw, 72px); }
h2.three { max-width: none; }
h2 { margin: 0 auto; max-width: 15ch; font-size: clamp(36px, 6vw, 92px); line-height: 0.98; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.head p { margin: clamp(16px, 2vw, 28px) auto 0; max-width: 56ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; color: var(--muted); text-wrap: balance; --dl: 0.25s; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.again { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 0.15s; }
.again:hover { background: var(--page); }
.again svg { width: 14px; height: 14px; }

/* The walk: a tester on her phone, and the findings it leaves, each with its fix */
.walk { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 6vw, 96px); padding: clamp(24px, 5vw, 80px); border-radius: 32px; background: var(--tile); }
.phone { position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 9 / 18.5; border-radius: 46px; border: 10px solid var(--ink); background: #f6f6f1; overflow: hidden; box-shadow: 0 40px 70px -34px rgba(26, 25, 23, 0.55); }
.phone::before { content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; width: 31%; height: 22px; margin-left: -15.5%; border-radius: 999px; background: var(--ink); }
.phone img { position: absolute; inset: 38px 0 0 0; width: 100%; height: calc(100% - 38px); object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.45s ease-out; }
.phone img.on { opacity: 1; }
.spot { position: absolute; z-index: 1; border-radius: 8px; box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 7px rgba(240, 100, 30, 0.2); opacity: 0; transition: opacity 0.35s; }
.spot.on { opacity: 1; }
.ico { width: 15px; height: 15px; flex: none; }
.walk-who .ai { display: inline-flex; align-items: center; gap: 5px; height: 24px; margin-right: 8px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; vertical-align: 1px; }
.tap.press { animation: press 0.45s ease-out; }
@keyframes press { 0% { transform: scale(1); } 40% { transform: scale(0.72); background: rgba(26, 25, 23, 0.4); } 100% { transform: scale(1); } }
.walk-h { display: flex; align-items: flex-start; gap: 16px; min-height: 74px; }
.walk-who { font-size: 16px; font-weight: 650; }
.walk-say { margin-top: 2px; font-size: 16px; line-height: 1.4; color: var(--muted); min-height: 2.8em; transition: opacity 0.3s; }
.walk-h .again { flex: none; margin-left: auto; }
.finds { display: grid; gap: 12px; margin-top: 18px; }
.find { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease-out, transform 0.6s var(--ease), box-shadow 0.2s; }
.find.on { opacity: 1; transform: none; }
.find:hover { box-shadow: 0 10px 30px -18px rgba(26, 25, 23, 0.4); }
.sw { position: relative; width: 36px; height: 20px; margin-top: 3px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background 0.2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease); }
.sw[aria-checked="true"] { background: var(--teal); }
.sw[aria-checked="true"]::after { transform: translateX(16px); }
.find .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.sev { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev.critical { color: var(--bad); background: #fbe9e6; }
.sev.major { color: #a05f08; background: #fcf0dc; }
.find .t { margin-top: 6px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.find .fix { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 10px; margin-top: 10px; min-height: 28px; font-size: 15.5px; line-height: 1.35; }
.find .fix b { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.find .fix .txt { opacity: 0; transition: opacity 0.5s ease-out; }
.find .fix .dots { display: inline-flex; gap: 4px; align-self: center; grid-area: 1 / 2; }
.find .fix .txt { grid-area: 1 / 2; }
.find .fix .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: think 0.9s ease-in-out infinite; }
.find .fix .dots i:nth-child(2) { animation-delay: 0.15s; }
.find .fix .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.find.fixed .fix .dots { display: none; }
.find.fixed .fix .txt { opacity: 1; }
.walk-foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; opacity: 0; transition: opacity 0.5s; }
.walk-foot.on { opacity: 1; }
.walk-foot .n { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The editor: the app's Edit room, drawn here with Nordlys's version A */
.ed { max-width: 1240px; margin-inline: auto; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(26, 25, 23, 0.45); font-size: 13.5px; line-height: 1.4; }
.ed-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ed-bar .crumb { color: var(--muted); }
.ed-bar .crumb i { font-style: normal; margin: 0 4px; opacity: 0.5; }
.ed-bar .vers { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--tile); }
.ed-bar .vers b { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ed-bar .vers b.on { background: var(--card); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(26, 25, 23, 0.14); }
.ed-bar .sp { flex: 1; }
.ed-bar .tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); font-weight: 500; }
.ed-bar .tool.dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.ed-body { display: grid; grid-template-columns: 180px minmax(0, 320px) minmax(0, 1fr); min-height: 520px; }
.ed-pages { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--page); }
.ed-pages small { padding: 0 10px 6px; font-size: 12px; color: var(--muted); }
.ed-pages span { padding: 6px 10px; border-radius: 7px; }
.ed-pages span.on { background: var(--card); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.ed-chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.ed-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ed-tabs b { padding: 12px 0 10px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.ed-tabs b.on { color: var(--ink); border-color: var(--ink); }
.ed-tabs i { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: var(--tile); font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--ink); transition: background 0.3s; }
.ed-tabs i.new { background: var(--teal); }
.ed-msgs { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; scrollbar-width: none; }
.ed-msgs::-webkit-scrollbar { display: none; }
.ed-msgs > :first-child { margin-top: auto; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.5s var(--ease); }
.msg.on { opacity: 1; transform: none; }
.msg.you { align-self: flex-end; background: var(--tile); }
.msg.ai { align-self: flex-start; border: 1px solid var(--line); }
.msg small { display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--muted); }
.msg .dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.msg .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: think 0.9s ease-in-out infinite; }
.msg .dots i:nth-child(2) { animation-delay: 0.15s; }
.msg .dots i:nth-child(3) { animation-delay: 0.3s; }
.ed-ask { display: flex; align-items: flex-end; gap: 10px; min-height: 84px; margin: 0 16px 16px; padding: 10px 10px 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); }
.ed-ask .txt { flex: 1; align-self: flex-start; }
.ed-ask .txt:has(#ed-ask:empty)::before { content: "Describe a change"; color: var(--muted); }
.ed-ask .caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ed-ask .go { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.15s var(--ease), background 0.15s; }
.ed-ask .go.press { transform: scale(0.9); background: #33312d; }
.ed-page { display: flex; flex-direction: column; background: var(--tile); }
.ed-ph { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; font-size: 14.5px; }
.ed-ph .hl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ed-ph .sw { margin: 0; cursor: default; }
.ed-ph .hl { border: 0; background: transparent; font: inherit; font-size: 13px; cursor: pointer; padding: 6px 0; }
.ed-ph .hl .sw { pointer-events: none; }
.ed-view { flex: 1; display: grid; margin: 0 16px 16px; border-radius: 10px; border: 1px solid var(--line-strong); overflow: hidden; background: #f6f6f1; }
/* The page inside the editor: version A's sign-up page, drawn so it can change */
.pg { position: relative; display: grid; place-items: center; padding: 56px 20px 40px; color: #16261f; }
.pg-brand { position: absolute; left: 28px; top: 22px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #1f3a2f; }
.pg-card { display: flex; flex-direction: column; align-items: stretch; width: min(100%, 400px); padding: 34px 32px 30px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -24px rgba(22, 38, 31, 0.35), 0 0 0 1px rgba(22, 38, 31, 0.05); }
.pg-chip { align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: #e7efe9; font-size: 12px; font-weight: 650; color: #1f3a2f; }
.pg-h { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.pg-s { margin-top: 4px; font-size: 14px; color: #55615b; }
.pg-l { margin-top: 18px; font-size: 13px; font-weight: 650; }
.pg-in { display: flex; align-items: center; height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 10px; border: 1px solid #dcdcd2; background: #fafaf6; font-size: 14.5px; color: #8a938d; }
.pg-hint { align-self: flex-start; margin-top: 6px; font-size: 12.5px; color: #6d7771; }
.pg-cta { display: grid; place-items: center; height: 46px; margin-top: 20px; border-radius: 10px; background: #1f3a2f; color: #fff; font-size: 15px; font-weight: 650; }
.pg-foot { margin-top: 14px; font-size: 13px; color: #6d7771; text-align: center; }
.pg .ch, .pg [data-until] { transition: box-shadow 0.4s, opacity 0.4s; }
.pg .gone { display: none; }
.pg .fresh { animation: fresh 0.6s var(--ease); }
@keyframes fresh { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.pg .ch.done { box-shadow: 0 0 0 2px var(--teal), 0 0 0 7px rgba(0, 194, 178, 0.18); }
.pg .pg-hint.ch.done { padding: 3px 8px; border-radius: 8px; margin-top: 10px; }
.ed.hl-off .pg .ch.done { box-shadow: none; }

/* Compare: the measures table */
.cmp { max-width: 1040px; margin-inline: auto; padding: clamp(20px, 3vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 40px 80px -50px rgba(26, 25, 23, 0.4); }
.cmp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.cmp-t { font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; letter-spacing: -0.01em; }
.cmp-g { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--tile); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 25, 23, 0.14); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); align-items: center; column-gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.cmp-row.hd { padding: 0 0 10px; border-top: 0; align-items: end; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.cmp-row .goal { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 7px; border-radius: 6px; background: var(--tile); font-size: 12px; font-weight: 600; color: var(--ink); }
.cmp-row .nm { display: flex; align-items: center; gap: 6px 10px; font-size: 16px; font-weight: 600; line-height: 1.25; }
.cmp-row .tag { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 650; }
.cmp-row .tag.live { border: 0; width: 12px; }
.cmp-row .tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.rec { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--teal-soft); color: var(--teal-ink); font-size: 12.5px; font-weight: 650; opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.45s var(--ease); }
.cmp.done .rec { opacity: 1; transform: none; }
.cell { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; column-gap: 10px; }
.cell .lab { display: none; }
.track { height: 6px; border-radius: 3px; background: var(--tile); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--teal); transition: width 1s var(--ease), background 0.3s; }
.cell .pct { text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--teal-ink); transition: color 0.3s; }
.cell.low .track i { background: var(--bad); }
.cell.low .pct { color: var(--bad); }

/* Three things you set up: drawn from the app's screens, Nordlys's data */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.room { display: flex; flex-direction: column; padding: 34px 32px 32px; border-radius: 28px; background: var(--tile); }
.room h3 { margin: 0; font-size: clamp(22px, 1.9vw, 26px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.room > p { margin: 8px 0 24px; font-size: 16.5px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.ui { flex: 1; display: grid; grid-auto-rows: 1fr; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 14.5px; line-height: 1.35; }
.ui .r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 84px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ui .r:first-child { border-top: 0; }
.ui b { font-weight: 600; }
.ui small { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.ui small.bad { color: var(--bad); }
.ui .end { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ui .who { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; }
.ui .who.people { background: var(--teal); color: var(--ink); }
.ui .who.dots { display: flex; justify-content: center; gap: 2px; background: transparent; }
.ui .who.dots i { width: 8px; height: 8px; border-radius: 50%; background: #1f3a2f; }
.ui .who.dots i:nth-child(2) { background: #9bc4b0; }
.ui .who.dots i:nth-child(3) { background: #e9e1c8; }
.ui .who.ok, .ui .who.no { width: 10px; height: 10px; margin: 0 10px; background: var(--teal); }
.ui .who.no { background: var(--bad); }
.ui .sw { margin: 0; cursor: default; }
.ui.bench .r { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 30px; }
.ui.bench .track { height: 8px; border-radius: 4px; }
.ui.bench .track i { background: #c4c0b7; border-radius: 4px; }
.ui.bench .best .track i { background: var(--teal); }
.ui.bench .num { font-size: 17px; font-weight: 650; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Close */
.close { background: var(--teal); text-align: center; }
.close h2 { max-width: none; font-size: clamp(54px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.04em; }
.close .join { margin-top: clamp(28px, 4vw, 56px); --dl: 0.3s; }

footer { background: var(--page); }
footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-block: 28px; font-size: 14.5px; color: var(--muted); }
footer img { height: 24px; width: auto; }
footer nav { display: flex; gap: 24px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Start page */
.start { min-height: calc(100vh - 81px); display: grid; align-content: center; padding-block: 120px 72px; }
.start h1 { max-width: 12ch; font-size: clamp(44px, 7vw, 104px); }
.start p { max-width: 44ch; margin: 24px 0 0; font-size: 19px; color: var(--muted); }
.start .addr-out { display: inline-block; margin-top: 28px; padding: 10px 14px; border-radius: 10px; background: var(--teal-soft); color: #064b45; font-weight: 600; word-break: break-all; }
.start .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

@media (max-width: 1000px) {
  .walk { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  .ed-body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .ed-pages, .ed-bar .tool:not(.dark) { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .top .wrap { height: 60px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .top .logo svg { height: 24px; }
  .hero { padding-top: 108px; }
  h1 { font-size: 9vw; }
  .film { border-radius: 14px; }
  .film .sound { left: 8px; bottom: 8px; width: 36px; height: 36px; }
  .film .sound.restart { left: 50px; }
  .head p br { display: none; }
  .ed { border-radius: 14px; }
  .ed-bar .crumb { display: none; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .ed-msgs { min-height: 170px; }
  .walk { border-radius: 22px; }
  .phone { width: min(100%, 230px); border-width: 8px; border-radius: 38px; }
  .walk-h { flex-wrap: wrap; }
  .find { padding: 14px; column-gap: 12px; }
  .find .fix { grid-template-columns: minmax(0, 1fr); }
  .find .fix .dots, .find .fix .txt { grid-area: 2 / 1; }
  .find .fix b { justify-self: start; }
  .cmp { border-radius: 18px; }
  .cmp-row { grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 16px 0; }
  .cmp-row.hd { display: none; }
  .cmp-row .nm { grid-column: 1 / -1; flex-wrap: wrap; }
  .cell { grid-template-columns: minmax(0, 1fr) 40px; row-gap: 4px; }
  .cell .lab { display: block; grid-column: 1 / -1; font-size: 12px; line-height: 1.25; color: var(--muted); }
  .rooms { gap: 16px; }
  .room { padding: 24px 20px 20px; border-radius: 22px; }
  .room h3 { font-size: 22px; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv.in { clip-path: none; transform: none; transition: none; }
  .js .fd { opacity: 1; transition: none; }
  .find, .find .fix .txt, .phone img, .track i, .sw, .sw::after, .rec, .walk-foot { transition: none; }
  .find .fix .dots i, .msg .dots i, .ed-ask .caret { animation: none; }
  .msg, .spot, .join input, .join button { transition: none; }
  .pg .fresh { animation: none; }
}
