/* Znovuweb prototype. One family (Archivo), contrast by width: expanded for headings, normal for text.
   Blue means clickable, nothing else is blue. */

:root {
  --paper: #f3f4f7;
  --white: #ffffff;
  --chrome: #e6e9ef;
  --chrome-line: #d2d7e0;
  --ink: #0f1324;
  --mist: #535a6e;
  --link: #1c1cf0;
  --link-press: #0f0fb4;
  --select: #d6ddff;
  --night: #0a0e22;
  --night-2: #151b38;
  --night-line: #262e52;
  --night-ink: #eef0f8;
  --night-mist: #a4aac3;
  --night-link: #a3adff;
  --error: #b42318;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-frame: 14px;
  --r-ui: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --t-small: 14px;
  --t-body: 17px;
  --t-lead: clamp(17px, 1.45vw, 20px);
  --t-h3: 24px;
  --t-h2: clamp(34px, 4.6vw, 64px);
  --t-h1: clamp(46px, 7.9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--select); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--link); color: var(--white); padding: 10px 16px; border-radius: var(--r-ui); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- links and buttons: blue is the only clickable colour ---------- */
.link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: text-decoration-thickness .2s var(--ease), color .2s var(--ease);
}
.link:hover { text-decoration-thickness: 3px; }
.link--night { color: var(--night-link); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--r-ui);
  background: var(--link); color: var(--white);
  font-weight: 600; font-stretch: 108%; letter-spacing: .005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--link-press); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--quiet { background: transparent; color: var(--link); }
.btn--quiet:hover { background: var(--select); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top__bar { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo__mark { width: 26px; height: 26px; fill: none; stroke: var(--link); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease); }
.logo:hover .logo__mark { transform: rotate(360deg); }
.logo__word { font-size: 21px; font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; line-height: 1; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 8px; background: linear-gradient(var(--link), var(--link)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease), color .2s; }
.top__nav a:hover { color: var(--link); background-size: 100% 2px; }
.top__toggle { display: none; }
/* over the work the bar turns to night with the page */
.top { transition: background-color .3s var(--ease); }
.top--night { background: color-mix(in srgb, var(--night) 86%, transparent); }
.top--night .logo, .top--night .top__nav a { color: var(--night-ink); }
.top--night .logo__mark { stroke: var(--night-link); }
.top--night .top__nav a:hover { color: var(--night-link); }
.top--night .top__toggle { background: var(--night-2); border-color: var(--night-line); }
.top--night .top__toggle svg { stroke: var(--night-ink); }

@media (max-width: 899px) {
  .top__bar { gap: 12px; }
  .top__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--chrome-line); border-radius: var(--r-ui); background: var(--white); cursor: pointer; }
  .top__toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
  .top__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--chrome-line); }
  .top--night .top__nav { background: var(--night); border-color: var(--night-line); }
  .top--night .top__nav a { border-color: var(--night-line); }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 14px 0; font-size: 19px; border-top: 1px solid var(--chrome-line); background: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 5vh, 64px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero__head { display: grid; gap: clamp(16px, 2vw, 24px); margin-bottom: clamp(28px, 4vh, 44px); }
.hero h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  font-stretch: 116%;
  line-height: .96;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.hero__lead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.hero__lead p { font-size: var(--t-lead); line-height: 1.5; color: var(--mist); max-width: 60ch; }
/* the second way in: no site yet */
.hero__alt { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: var(--t-lead); font-weight: 500; }
.btn--outline { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.btn--outline:hover { background: var(--select); }

/* ---------- the browser: tabs, bar, viewport ---------- */
.browser {
  position: relative;
  margin: 0;
  background: var(--chrome);
  border-radius: var(--r-frame);
  box-shadow: 0 0 0 1px var(--chrome-line), 0 30px 60px -30px rgba(15, 19, 36, .35), 0 12px 24px -16px rgba(15, 19, 36, .18);
}
.browser__tabs { display: flex; align-items: flex-end; gap: 6px; height: 44px; padding: 0 12px; }
.browser__dots { display: flex; gap: 7px; align-self: center; margin-right: 12px; }
.browser__dots i { width: 12px; height: 12px; border-radius: 50%; background: #c4c9d3; }
.browser__tab {
  position: relative;
  display: inline-flex; align-items: center;
  height: 36px; min-width: 0; max-width: 240px;
  border-radius: 10px 10px 0 0;
  transition: background-color .15s;
}
.browser__tab[hidden] { display: none; }
.browser__tab.is-active { background: var(--white); }
.browser__tab:not(.is-active):hover { background: #dadee5; }
.browser__tab--new:not([hidden]) { animation: tab-in .35s var(--ease); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
.browser__tablabel {
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%; min-width: 0; padding: 0 40px 0 14px;
  border: 0; border-radius: inherit; background: none;
  color: var(--mist); font-size: 13px; font-weight: 500; white-space: nowrap;
  cursor: pointer;
}
.browser__tab.is-active .browser__tablabel { color: var(--ink); cursor: default; }
.browser__tab--new .browser__tablabel { padding-right: 38px; }
.browser__tablabel img { width: 16px; height: 16px; border-radius: 3px; }
.browser__tabicon { width: 16px; height: 16px; fill: none; stroke: var(--link); stroke-width: 1.5; stroke-linecap: round; }
.browser__close { position: absolute; right: 7px; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -12px; border: 0; border-radius: 6px; background: none; color: var(--mist); cursor: pointer; }
.browser__close:hover { background: var(--chrome); color: var(--ink); }
.browser__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.browser__newtab { align-self: center; display: grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.browser__newtab:hover { background: var(--chrome-line); }
.browser__newtab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.browser__bar {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 8px;
  background: var(--white);
  border-bottom: 1px solid var(--chrome-line);
}
.browser__nav { display: flex; gap: 2px; }
.ibtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.ibtn:hover { background: var(--chrome); }
.ibtn:active { background: var(--chrome-line); }
.ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.ibtn--reload:hover svg { transform: rotate(180deg); }

.omnibox {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px;
  background: var(--chrome); border-radius: 22px;
  box-shadow: inset 0 0 0 0 var(--link);
  transition: background-color .15s, box-shadow .15s;
  cursor: text;
}
.omnibox:hover { background: #dde1e8; }
.omnibox:focus-within { background: var(--white); box-shadow: inset 0 0 0 2px var(--link); }
.omnibox__icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--mist); stroke-width: 1.4; }
.omnibox__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; letter-spacing: .005em; }
.omnibox__input::placeholder { color: var(--mist); opacity: 1; }
.omnibox.is-invalid { box-shadow: inset 0 0 0 2px var(--error); }
.browser__go { flex: none; }

.browser__progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--link); opacity: 0; pointer-events: none; }
.browser__progress.is-running { animation: load .9s var(--ease) forwards; }
@keyframes load { 0% { width: 0; opacity: 1; } 80% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

.browser__error { padding: 10px 16px; background: var(--white); color: var(--error); font-size: var(--t-small); font-weight: 500; border-bottom: 1px solid var(--chrome-line); }

/* the before/after viewport */
.compare {
  --pos: 50%;
  --knob-y: min(50%, 210px);
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0 0 var(--r-frame) var(--r-frame);
  background: var(--white);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.compare__layer, .compare__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__layer img { object-fit: cover; object-position: 50% 0; pointer-events: none; -webkit-user-drag: none; }
.compare__layer--after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: var(--link);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: var(--knob-y); left: 50%;
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--link); color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 10px 24px -8px rgba(15, 19, 36, .6);
  transition: transform .2s var(--ease);
}
.compare__knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare:hover .compare__knob, .compare.is-dragging .compare__knob { transform: scale(1.08); }
.compare:has(.compare__range:focus-visible) .compare__knob { outline: 3px solid var(--ink); outline-offset: 4px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; pointer-events: none; }
.compare__chip {
  position: absolute; top: var(--knob-y);
  transform: translateY(-50%);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700; font-stretch: 112%; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .25s;
}
.compare__chip--after { right: 40px; background: var(--ink); color: var(--white); }
.compare__chip--before { left: 40px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--chrome-line); }
.compare[data-side="after"] .compare__chip--before, .compare[data-side="before"] .compare__chip--after { opacity: 0; }

/* the request that drops from the address bar */
.ask {
  position: absolute; z-index: 5;
  top: 100px; left: 132px;
  width: min(440px, calc(100% - 24px));
  display: grid; gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--r-frame);
  box-shadow: 0 0 0 1px var(--chrome-line), 0 24px 48px -16px rgba(15, 19, 36, .4);
  animation: drop .28s var(--ease);
}
.ask[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.ask__title { font-size: 19px; font-weight: 700; font-stretch: 110%; line-height: 1.3; overflow-wrap: anywhere; }
.ask__actions { display: flex; gap: 8px; }
.ask__status:empty { display: none; }
.ask__status { font-size: var(--t-small); color: var(--mist); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-small); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--mist); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--chrome-line); border-radius: var(--r-ui); background: var(--white); font-size: 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: var(--t-small); color: var(--error); }

@media (max-width: 899px) {
  .browser__nav .ibtn:not(.ibtn--reload) { display: none; }
  .ask { left: 12px; }
}
@media (max-width: 639px) {
  .hero__alt { width: 100%; }
  .hero__alt .btn { flex: 1 1 auto; }
  .browser { border-radius: 12px; }
  .browser__tabs { height: 40px; padding: 0 8px; }
  .browser__dots { display: none; }
  .browser__tabs { gap: 2px; }
  .browser__tab { height: 32px; }
  .browser__tablabel { font-size: 12px; padding: 0 12px 0 10px; }
  .browser__tab--new .browser__tablabel { padding-right: 32px; }
  .browser__close { right: 4px; }
  .browser__bar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .browser__nav { display: none; }
  .omnibox { flex-basis: 100%; }
  .browser__go { flex: 1 1 100%; }
  .compare { aspect-ratio: 390 / 640; border-radius: 0 0 12px 12px; }
  .compare { --knob-y: 46%; }
  .compare__knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .compare__chip { font-size: 13px; padding: 5px 11px; }
  .compare__chip--after { right: 34px; }
  .compare__chip--before { left: 34px; }
  .ask { top: 152px; left: 8px; width: calc(100% - 16px); padding: 16px; }
}

/* ---------- the work, on night ---------- */
/* every section opens the same way: the heading left, one plain sentence right */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; margin-bottom: clamp(44px, 6vw, 88px); }
.sec-head h2 { grid-column: 1 / span 7; font-size: var(--t-h2); font-weight: 800; font-stretch: 116%; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.sec-head p { grid-column: 9 / span 4; color: var(--mist); font-size: var(--t-lead); line-height: 1.5; }
[data-night] .sec-head p { color: var(--night-mist); }
.section-pad { padding-block: clamp(72px, 10vw, 144px); }

.work { background: var(--night); color: var(--night-ink); padding-block: clamp(72px, 10vw, 144px); }

.project { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: center; }
.project + .project { margin-top: clamp(88px, 11vw, 160px); }
.project__media { grid-column: 1 / span 8; position: relative; isolation: isolate; }
/* each client's own colour glows behind its site */
.project__media::before { content: ""; position: absolute; inset: 10% 8%; z-index: -1; border-radius: 50%; background: var(--glow); filter: blur(90px); opacity: .3; pointer-events: none; }
.project__info { grid-column: 10 / span 3; display: grid; gap: 20px; align-content: start; }
.project--flip .project__media { grid-column: 5 / span 8; grid-row: 1; }
.project--flip .project__info { grid-column: 1 / span 3; grid-row: 1; }

.project h3 { display: flex; align-items: center; gap: 12px; font-size: var(--t-h3); font-weight: 800; font-stretch: 114%; line-height: 1.15; letter-spacing: -.01em; }
.project h3 img { width: 28px; height: 28px; border-radius: 6px; }
.project__info > p { color: var(--night-mist); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.facts > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--night-line); }
.facts dt { font-size: 13px; color: var(--night-mist); }
.facts dd { font-size: 15px; line-height: 1.45; }

.frame {
  display: block; overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--night-2);
  box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -40px rgba(0, 0, 0, .8);
  color: var(--night-mist); text-decoration: none;
}
.frame__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; }
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.frame__url { flex: 1; max-width: 360px; margin-inline: auto; padding: 4px 14px; border-radius: 14px; background: var(--night); font-size: 13px; text-align: center; transition: color .2s; text-decoration: underline 1.5px transparent; text-underline-offset: .2em; }
.frame:hover .frame__url { color: var(--night-link); text-decoration-color: currentColor; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; transition: transform .6s var(--ease); }
.frame:hover img { transform: scale(1.015); }
.frame:focus-visible { outline-color: var(--night-link); }

.project__shot { position: relative; }
.phone {
  position: absolute; right: -4%; bottom: -12%;
  width: 20%;
  padding: 6px;
  border-radius: 28px;
  background: #05070f;
  box-shadow: 0 0 0 1px var(--night-line), 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.phone--left { right: auto; left: -4%; }
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: 50% 0; border-radius: 22px; }

.project__strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
/* the row of screens starts where the phone ends */
.project--flip .project__strip { margin-left: 19%; }
@media (max-width: 1023px) { .project--flip .project__strip { margin-left: 25%; } }
@media (max-width: 639px) { .project--flip .project__strip { margin-left: 33%; } }
.project__strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--night-line); }

@media (max-width: 1023px) {
  .sec-head h2 { grid-column: 1 / -1; }
  .sec-head p { grid-column: 1 / span 9; }
  .project__media, .project--flip .project__media { grid-column: 1 / -1; grid-row: 1; }
  .project__info, .project--flip .project__info { grid-column: 1 / span 8; grid-row: 2; }
  .project__info { margin-top: 48px; }
  .phone { right: 2%; }
  .phone--left { right: auto; left: 2%; }
}
@media (max-width: 639px) {
  .sec-head p, .project__info, .project--flip .project__info { grid-column: 1 / -1; }
  .phone { width: 27%; bottom: -16%; right: 3%; border-radius: 18px; padding: 4px; }
  .phone--left { right: auto; left: 3%; }
  .phone img { border-radius: 14px; }
  .project__info { margin-top: 64px; }
  .frame__bar { height: 32px; }
  .frame__dots { display: none; }
  .project__strip { gap: 10px; margin-top: 10px; }
}

/* ---------- services ---------- */
.services { padding-block: clamp(72px, 10vw, 144px); }
.svc-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc {
  display: grid; align-content: start; gap: 14px;
  padding: clamp(20px, 2.6vw, 36px);
  background: var(--white);
  border-radius: var(--r-frame);
  box-shadow: 0 0 0 1px var(--chrome-line);
}
.svc__art { width: 100%; height: auto; margin-bottom: 14px; border-radius: 10px; }
.svc h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; font-stretch: 114%; line-height: 1.1; letter-spacing: -.015em; }
.svc p { color: var(--mist); max-width: 52ch; }
.svc__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.svc__links .link { font-weight: 600; }
.link--quiet { color: var(--mist); text-decoration-color: var(--chrome-line); }
.link--quiet:hover { color: var(--link); text-decoration-color: currentColor; }

/* ---------- the "Nový web" tab: an empty page and a short request ---------- */
.newtab {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(24px, 4.5vw, 64px);
  background: var(--white);
  border-radius: 0 0 var(--r-frame) var(--r-frame);
}
.newtab[hidden] { display: none; }
/* one main button per view: in the new tab the form's own button is the one */
.browser.is-newtab .browser__go { display: none; }
.newtab__form { display: grid; gap: 14px; max-width: 460px; }
.newtab__title { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; font-stretch: 114%; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.newtab__lead { color: var(--mist); margin-bottom: 4px; }
.newtab__actions { display: flex; gap: 8px; margin-top: 4px; }
.newtab__art { width: 100%; height: auto; }
.newtab .field textarea::placeholder, .newtab .field input::placeholder { color: #8a90a2; opacity: 1; }
@media (max-width: 899px) {
  .newtab { grid-template-columns: 1fr; aspect-ratio: auto; }
  .newtab__art { display: none; }
}
@media (max-width: 639px) {
  .newtab { padding: 20px 16px 24px; border-radius: 0 0 12px 12px; }
  .newtab__actions .btn { flex: 1; }
}

/* the drawings: one browser, old half and new half, or a page being laid out */
.a-win { fill: var(--white); stroke: var(--chrome-line); stroke-width: 1.5; }
.a-chrome { fill: var(--chrome); }
.a-dot { fill: #c4c9d3; }
.a-old { fill: #3b3f47; }
.a-old-line { fill: #a9ad9b; }
.a-old-text { fill: #8d919a; }
.a-ink { fill: var(--ink); }
.a-soft { fill: var(--chrome); }
.a-img { fill: #cfd6c2; }
.a-blue { fill: var(--link); }
.a-knob { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-dash { fill: none; stroke: #b9c0cc; stroke-width: 1.5; stroke-dasharray: 5 4; }
.a-placed { fill: var(--select); stroke: var(--link); stroke-width: 1.5; }
.a-cursor { fill: var(--ink); stroke: var(--white); stroke-width: 1.4; stroke-linejoin: round; }

.svc-more { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.svc-more li { display: grid; align-content: start; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.svc-more svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.svc-more h3 { font-size: 19px; font-weight: 700; font-stretch: 110%; line-height: 1.25; }
.svc-more p { color: var(--mist); font-size: 16px; }

/* ---------- process: the page loads, step by step ---------- */
.steps { background: var(--white); padding-block: clamp(72px, 10vw, 144px); }
.track { --fill: 100%; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.track::before, .track::after { content: ""; position: absolute; left: 0; top: 44px; height: 3px; border-radius: 2px; }
.track::before { right: 0; background: var(--chrome); }
.track::after { width: var(--fill); background: var(--link); transition: width 2.4s cubic-bezier(.45, 0, .2, 1); }
.track.is-armed { --fill: 0%; }
.track.is-armed.is-in { --fill: 100%; }
.track__step { position: relative; display: grid; grid-template-rows: 32px 26px auto auto; gap: 0; align-content: start; }
.track__when { align-self: end; font-size: var(--t-small); font-weight: 600; color: var(--link); padding-bottom: 6px; }
.track__dot { position: relative; z-index: 1; align-self: center; width: 18px; height: 18px; border-radius: 50%; background: var(--link); box-shadow: 0 0 0 5px var(--white); transition: background-color .3s, transform .3s var(--ease); }
.track.is-armed .track__dot { background: var(--chrome-line); }
.track.is-armed.is-in .track__dot { background: var(--link); transform: scale(1.1); }
.track.is-armed.is-in .track__step:nth-child(2) .track__dot { transition-delay: .55s; }
.track.is-armed.is-in .track__step:nth-child(3) .track__dot { transition-delay: 1.05s; }
.track.is-armed.is-in .track__step:nth-child(4) .track__dot { transition-delay: 1.55s; }
.track.is-armed.is-in .track__step:nth-child(5) .track__dot { transition-delay: 2.1s; }
.track__step h3 { margin-top: 22px; font-size: 21px; font-weight: 800; font-stretch: 112%; line-height: 1.2; }
.track__step p { margin-top: 8px; color: var(--mist); font-size: 16px; max-width: 30ch; }

/* ---------- packages ---------- */
.pricing { padding-block: clamp(72px, 10vw, 144px); }
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--r-frame);
  box-shadow: 0 0 0 1px var(--chrome-line), 0 30px 60px -40px rgba(15, 19, 36, .3);
}
.plan { display: grid; align-content: start; gap: 6px; padding: clamp(24px, 3vw, 40px); }
.plan + .plan { border-left: 1px solid var(--chrome-line); }
.plan h3 { font-size: 22px; font-weight: 800; font-stretch: 114%; line-height: 1.2; }
.plan__for { color: var(--mist); font-size: 16px; }
.plan__price { margin-top: 22px; font-size: clamp(38px, 4vw, 56px); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan__pages { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--chrome-line); font-size: var(--t-small); font-weight: 600; }
.pages { display: flex; gap: 4px; }
.pages i { position: relative; width: 11px; height: 14px; border-radius: 2px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pages i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px 2px 0 0; background: var(--ink); }
.plan__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg); }
.plans__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 32px; }
.plans__foot p { color: var(--mist); }
.plans__foot .plans__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ink); }

/* ---------- support, on night ---------- */
.support { background: var(--night); color: var(--night-ink); padding-block: clamp(72px, 10vw, 144px); }
.support__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: center; }
.support__text { grid-column: 1 / span 6; display: grid; gap: 24px; }
.support h2 { font-size: var(--t-h2); font-weight: 800; font-stretch: 116%; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.support__lead { color: var(--night-mist); font-size: var(--t-lead); max-width: 46ch; }
.care { display: grid; grid-template-columns: auto 1fr; gap: 4px 32px; margin-top: 12px; padding: 24px 28px; border-radius: var(--r-frame); background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line); }
.care__name { grid-column: 1; font-weight: 700; font-stretch: 110%; }
.care__price { grid-column: 1; font-size: 40px; font-weight: 800; font-stretch: 112%; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.care__per { display: block; font-size: 15px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--night-mist); }
.care__list { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: center; font-size: 16px; }
.care__list li { position: relative; padding-left: 24px; }
.care__list li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--night-link); border-bottom: 2px solid var(--night-link); transform: rotate(-45deg); }

.mail { grid-column: 8 / span 5; margin: 0; overflow: hidden; border-radius: var(--r-frame); background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.mail__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--chrome); }
.mail__bar .frame__dots i { background: #c4c9d3; }
.mail__subject { font-size: 13px; font-weight: 600; }
.mail__msg { display: grid; gap: 6px; padding: 20px 22px; font-size: 16px; }
.mail__msg + .mail__msg { border-top: 1px solid var(--chrome-line); }
.mail__msg--out { background: #f7f8fb; }
.mail__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--mist); }
.mail__meta span:first-child { font-weight: 700; color: var(--ink); }
.mail__diff { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 15px; }
.mail__diff s { color: var(--mist); }
.mail__diff b { padding: 3px 10px; border-radius: 6px; background: var(--select); font-weight: 700; }

/* ---------- the last word ---------- */
.cta { background: var(--link); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; font-stretch: 116%; line-height: 1.02; letter-spacing: -.025em; max-width: 16ch; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: var(--t-lead); }
.btn--light { background: var(--white); color: var(--link); }
.btn--light:hover { background: var(--select); }
.btn--large { min-height: 56px; padding: 0 32px; font-size: 18px; }
.cta :focus-visible { outline-color: var(--white); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-mist); font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; padding-block: 56px 40px; }
.foot__brand { grid-column: 1 / span 5; display: grid; gap: 12px; align-content: start; }
.logo--night { color: var(--night-ink); margin-right: 0; justify-self: start; }
.logo--night .logo__mark { stroke: var(--night-link); }
.foot__links { grid-column: 7 / span 3; display: grid; gap: 6px; align-content: start; }
.foot__contact { grid-column: 10 / span 3; display: grid; gap: 6px; align-content: start; }
.foot a:not(.logo) { color: var(--night-ink); text-decoration: none; padding-block: 4px; }
.foot a:not(.logo):hover { color: var(--night-link); text-decoration: underline; text-underline-offset: .2em; }
.foot :focus-visible { outline-color: var(--night-link); }
.foot__legal { padding-block: 20px 32px; border-top: 1px solid var(--night-line); font-size: var(--t-small); }

@media (max-width: 1023px) {
  .svc-more { grid-template-columns: 1fr 1fr; }
  .track { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .track::before, .track::after { left: 8px; top: 8px; bottom: 8px; width: 3px; height: auto; }
  .track::after { height: var(--fill); bottom: auto; transition-property: height; }
  .track__step { grid-template-rows: auto auto auto; padding-bottom: 36px; }
  .track__dot { position: absolute; left: -40px; top: 2px; }
  .track__when { padding-bottom: 2px; }
  .track__step h3 { margin-top: 4px; }
  .track__step p { max-width: 52ch; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--chrome-line); }
  .support__text, .mail { grid-column: 1 / -1; }
  .mail { max-width: 560px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__links { grid-column: 1 / span 6; }
  .foot__contact { grid-column: 7 / span 6; }
}
@media (max-width: 639px) {
  .svc-main { grid-template-columns: 1fr; }
  .svc-more { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .care { grid-template-columns: 1fr; padding: 20px; }
  .care__list { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .plans__ask .btn, .cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.nowrap { white-space: nowrap; }
.mail__diff s, .mail__diff b { white-space: nowrap; }
/* the three packages share their rows, so prices and lists line up whatever the text length */
@media (min-width: 1024px) {
  .plans { grid-template-rows: repeat(5, auto); }
  .plan { grid-row: span 5; grid-template-rows: subgrid; row-gap: 6px; }
}
