/* ==========================================================================
   Clasent preview: daylight
   A black hero with the product on stage, then a white page where the product screens
   and the colours of the four themes carry the colour.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --night: #07070A;
  --ink: #0B0C10;
  --ink-2: #4D5160;
  --ink-3: #666A79;
  --line: #E8E9EF;
  --line-2: #D7D9E2;
  --tint: #F3F4F8;

  --brand: #4F46E5;
  --brand-fill: #6366F1;
  --lilac: #A5B4FC;
  --violet: #8B5CF6;

  --display: "Hubot Sans", "Mona Sans", system-ui, sans-serif;
  --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --shot: 0 0 0 1px rgba(11, 12, 16, .07), 0 2px 6px rgba(11, 12, 16, .04), 0 44px 90px -40px rgba(11, 12, 16, .42);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16.5px/1.65 var(--font);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
code { font: 500 .86em/1 var(--mono); }
:focus-visible { outline: 2px solid var(--brand-fill); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand-fill); color: #fff; }

[data-store="envato"] [data-only="codingest"],
[data-store="codingest"] [data-only="envato"] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 500; box-shadow: var(--shot); }
.skip:focus { top: 16px; }
@media (hover: none) { .hover-only { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.h2 { max-width: 780px; font: 700 clamp(34px, 3.9vw, 54px)/1.04 var(--display); font-stretch: 108%; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.h2--sm { font-size: clamp(30px, 3.1vw, 42px); }
.h3 { font: 700 clamp(22px, 2vw, 26px)/1.2 var(--display); font-stretch: 106%; letter-spacing: -.025em; color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font: 600 15px var(--font); color: var(--brand); }
.more .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.more:hover .ic { transform: translate(2px, -2px); }

/* ---------- Buttons: keys with soft corners, a slight fall of light and a line of light along the top ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 13px;
  font: 600 15.5px/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: box-shadow .25s, color .25s, transform .25s var(--ease);
}
/* The square's corners follow the button's: 14px outside, 7px of padding, 7px inside */
.btn > .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn--white > .ic, .btn--ink > .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--ghost:hover > .ic { transform: translateY(2px); }

.btn--white { color: var(--ink); background: linear-gradient(180deg, #FFFFFF, #F2F3F8); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(11, 12, 16, .1), 0 1px 2px rgba(0, 0, 0, .5), 0 16px 44px -16px rgba(165, 180, 252, .55); }
.btn--white:hover { background: linear-gradient(180deg, #FFFFFF, #F9F9FC); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(11, 12, 16, .1), 0 1px 2px rgba(0, 0, 0, .5), 0 18px 52px -12px rgba(165, 180, 252, .8); }
.btn--ghost { color: #fff; background: linear-gradient(180deg, #24252C, #15161B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .6); }
.btn--ghost:hover { background: linear-gradient(180deg, #2C2D35, #1A1B21); }
.btn--ink { color: #fff; background: linear-gradient(180deg, #24252C, #0B0C10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px -16px rgba(11, 12, 16, .7); }
.btn--ink:hover { background: linear-gradient(180deg, #2E2F37, #15161B); }
/* ---------- Navigation: light text over the hero, a white bar once the page turns white ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: #fff; transition: background-color .3s, box-shadow .3s, color .3s; }
.nav.is-scrolled { background: rgba(7, 7, 10, .62); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.nav.is-light { color: var(--ink); background: rgba(255, 255, 255, .84); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 100%; }
.nav__logo { display: grid; }
.nav__logo img { grid-area: 1 / 1; height: 32px; width: auto; transition: opacity .3s; }
.nav__logo-light { opacity: 0; }
.nav.is-light .nav__logo-dark { opacity: 0; }
.nav.is-light .nav__logo-light { opacity: 1; }
.nav__links { display: flex; gap: 30px; margin-inline: auto; }
.nav__links a { font-size: 15px; font-weight: 500; opacity: .66; transition: opacity .2s; }
.nav__links a:hover, .nav__links a.is-current { opacity: 1; }
.nav__demo-m { display: none; }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__demo { font-size: 15px; font-weight: 500; opacity: .66; transition: opacity .2s; }
.nav__demo:hover { opacity: 1; }
/* The gradient switches at once when the nav turns white, so the text colour must not fade after it */
.btn--nav { gap: 8px; height: 40px; padding: 0 15px 0 12px; border-radius: 11px; font-size: 14.5px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, #F2F3F8); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(11, 12, 16, .1); transition: transform .25s var(--ease); }
.btn--nav .ic { width: 18px; height: 18px; }
.nav.is-light .btn--nav { color: #fff; background: linear-gradient(180deg, #24252C, #0B0C10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.nav__toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.nav.is-light .nav__toggle { box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(44px, 5vw, 72px)); color: rgba(255, 255, 255, .64); background: var(--night); }
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: 0 0 auto; height: 900px;
  background:
    radial-gradient(42% 46% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%),
    radial-gradient(60% 50% at 50% 8%, rgba(99, 102, 241, .17), transparent 75%);
}

.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 5px; border-radius: 11px; font: 500 14px/1 var(--font); color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.badge__tag { padding: 6px 12px; border-radius: 7px; font: 500 13px/1 var(--mono); color: #fff; background: var(--brand); }
.hero__title {
  margin-top: 26px; padding-bottom: .14em; margin-bottom: -.14em; font: 700 clamp(42px, 5.8vw, 82px)/1 var(--display); font-stretch: 110%; letter-spacing: -.04em;
  background: linear-gradient(180deg, #FFFFFF 30%, #B9BDD0 125%); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance;
}
.hero__lead { max-width: 720px; margin-top: 24px; text-wrap: balance; font-size: clamp(16.5px, 1.4vw, 18.5px); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/*
 * The stage: the Horizon homepage large in the middle, Atlas and Mosaic behind it at the edges,
 * Stream on an iPhone in front on the right. --m is half the width of the middle screen.
 * The hero ends with the stage: the big screens run into its bottom edge and are cut off there.
 */
.stage { --m: min(430px, 31vw); position: relative; height: calc(var(--m) * 1.44); margin-top: clamp(44px, 4.5vw, 60px); }
.stage::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 18%; width: 90%; height: 90%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99, 102, 241, .45), rgba(167, 139, 250, .12) 55%, transparent); filter: blur(30px); }
.stage img { position: absolute; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -30px #000; }
.stage__main { z-index: 2; left: 50%; top: 0; width: calc(var(--m) * 2); transform: translateX(-50%); border-radius: 16px; }
.stage__side { z-index: 1; bottom: calc(var(--m) * -.06); width: calc(var(--m) * 1.6); filter: brightness(.5) saturate(.85); }
.stage__side--l { right: calc(50% + var(--m) * .62); }
.stage__side--r { left: calc(50% + var(--m) * .62); }
/* The phone: an iPhone drawn in CSS and sized from --w, overlapping the right edge of the main screen.
 * It stands on the hero's bottom edge, whole, so its bottom navigation bar shows. */
.stage__phone {
  --w: calc(var(--m) * .52);
  position: absolute; z-index: 3; bottom: 0; left: calc(50% + var(--m) * .74); width: var(--w); padding: calc(var(--w) * .035);
  border-radius: calc(var(--w) * .17); background: linear-gradient(145deg, #3A3B43, #101116 45%, #26272E);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 1px #000, 0 50px 100px -30px #000, 0 30px 90px -30px rgba(99, 102, 241, .55);
}
/* The camera island */
.stage__phone::before { content: ""; position: absolute; z-index: 1; left: 50%; top: calc(var(--w) * .062); width: 29%; height: calc(var(--w) * .082); border-radius: 99px; background: #000; transform: translateX(-50%); }
/* The side buttons: one on the right, two on the left */
.stage__phone::after {
  content: ""; position: absolute; top: 25%; right: -3px; width: 3px; height: 13%; border-radius: 0 2px 2px 0; background: #2C2D34;
  box-shadow: calc((var(--w) + 3px) * -1) calc(var(--w) * -.2) 0 #2C2D34, calc((var(--w) + 3px) * -1) calc(var(--w) * .12) 0 #2C2D34;
}
/* The status bar stays empty so the island does not cover the header of the screenshot */
.stage__screen { overflow: hidden; padding-top: calc(var(--w) * .13); border-radius: calc(var(--w) * .135); background: #fff; }
.stage__screen img { position: static; display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; pointer-events: none; }

/* Laptops: on a short screen the text takes less room, so more of the stage shows without scrolling */
@media (min-width: 901px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero__title { margin-top: 18px; font-size: clamp(42px, 4.6vw, 66px); }
  .hero__lead { margin-top: 16px; }
  .hero__actions { margin-top: 24px; }
  .stage { height: calc(var(--m) * 1.24); margin-top: 36px; }
}

/* The stage builds up in layers when the page opens */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes rise-x { from { opacity: 0; transform: translate(-50%, 28px); } }
.stage__main { animation: rise-x 1s var(--ease) .1s both; }
.stage__side { animation: rise 1s var(--ease) .3s both; }
.stage__phone { animation: rise 1s var(--ease) .5s both; }

/*
 * Strengths, right under the hero: the heading on top, then one white panel split in six by hairlines.
 * Each part is a link with a line icon, a title, a line of text and its facts as small tags; on hover it
 * takes a wash of its colour.
 */
.core { padding-top: clamp(80px, 9vw, 128px); }
.core__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 52px); }
.core__head p { max-width: 440px; margin: 0 0 16px; font-size: 17px; }
.core__panel {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden;
  border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(11, 12, 16, .03), 0 48px 90px -56px rgba(11, 12, 16, .3);
}
.cell { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(28px, 3vw, 40px); transition: background-color .4s var(--ease); }
.cell:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.cell:hover { background: color-mix(in oklab, var(--c) 4%, #fff); }
/* Line icons on a 48px grid, with one part in the colour of their part */
.glyph { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-line { stroke: var(--ink); }
.g-dim { stroke: var(--line-2); }
.g-accent { stroke: var(--c); }
.g-dot { fill: var(--ink); }
.g-spot { fill: var(--c); }
.cell .glyph { width: 50px; height: 50px; margin: -4px 0 0 -5px; }
.cell__go { position: absolute; top: clamp(40px, 3.9vw, 52px); right: clamp(28px, 3vw, 40px); display: grid; color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.cell__go .ic { width: 20px; height: 20px; }
.cell:hover .cell__go { color: var(--c); transform: translateX(3px); }
.cell__title { margin: 36px 0 0; font: 700 clamp(19px, 1.7vw, 22px)/1.2 var(--display); font-stretch: 108%; letter-spacing: -.02em; color: var(--ink); }
.cell__text { display: block; max-width: 34ch; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cell__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 26px; }
.cell__facts span { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--ink-2); background: var(--tint); transition: background-color .4s var(--ease), color .4s; }
.cell:hover .cell__facts span { color: var(--ink); background: color-mix(in oklab, var(--c) 10%, #fff); }

/* ---------- Sections ---------- */
.head { margin-bottom: clamp(36px, 4vw, 56px); }
.head p { max-width: 560px; margin-top: 18px; font-size: 17px; }
.head--center { max-width: 820px; margin-inline: auto; text-align: center; }
.head--center .h2, .head--center p { margin-inline: auto; }
.head .more { margin-left: 6px; }

/* Themes: two to a row; pointing at one scrolls its whole homepage inside the frame */
.themes { padding-top: clamp(80px, 9vw, 128px); }
.themes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 64px; margin-bottom: clamp(44px, 5vw, 68px); }
.themes__head p { max-width: 560px; margin-top: 18px; font-size: 17px; }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 4px; border-radius: 13px; background: var(--tint); }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font: 600 14.5px var(--font); color: var(--ink-3); transition: color .2s, background-color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg .ic { width: 15px; height: 15px; }
.seg [aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(11, 12, 16, .08), 0 0 0 1px rgba(11, 12, 16, .05); }
.themes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(28px, 3vw, 44px); }
.theme { position: relative; isolation: isolate; min-width: 0; }
.theme::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 34%; height: 58%; background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 40%, transparent), transparent); filter: blur(40px); opacity: .6; transition: opacity .6s var(--ease); }
.theme:hover::before { opacity: 1; }
.theme__shot { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; container-type: size; border-radius: 16px; background: var(--tint); box-shadow: var(--shot); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.theme__shot img { position: absolute; top: 0; left: 0; width: 100%; transition: transform 1.4s var(--ease), opacity .5s var(--ease); }
.theme__shot:hover, .theme__shot:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px color-mix(in oklab, var(--c) 45%, transparent), 0 2px 6px rgba(11, 12, 16, .05), 0 56px 100px -40px color-mix(in oklab, var(--c) 45%, rgba(11, 12, 16, .5)); }
.theme__shot:hover img, .theme__shot:focus-visible img { transform: translateY(calc(-100% + 100cqh)); transition: transform 9s cubic-bezier(.45, .05, .35, 1), opacity .5s var(--ease); }
.theme__dark { opacity: 0; }
[data-mode="dark"] .theme__dark { opacity: 1; }
[data-mode="dark"] .theme__light { opacity: 0; }
.theme__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 28px; }
.theme__name { display: flex; align-items: center; gap: 12px; }
.theme__meta h3 { display: flex; align-items: center; gap: 12px; font: 700 clamp(22px, 2vw, 28px)/1.15 var(--display); font-stretch: 108%; letter-spacing: -.03em; color: var(--ink); }
.theme__meta h3 i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.theme__tag { padding: 6px 9px; border-radius: 7px; font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--brand); background: #EEF0FF; }
.theme__meta p { max-width: 46ch; margin-top: 10px; font-size: 15.5px; }
.theme__meta .more { flex: none; margin-top: 6px; color: var(--ink); }

/*
 * Features: the list on the left opens one at a time, the stage on the right shows its screen,
 * lit in the colour of the theme it is shown in. While it plays, a line fills under the open item;
 * pointing at the section pauses it.
 */
@property --c {
  syntax: "<color>";
  inherits: true;
  initial-value: #6366F1;
}
.feats { position: relative; padding-top: clamp(120px, 13vw, 176px); overflow: hidden; transition: --c .8s var(--ease); }
.feats__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 5vw, 64px); }
.feats__head p { max-width: 440px; font-size: 17px; }
.feats__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(36px, 4.4vw, 64px); align-items: start; }

.feats__list { display: grid; gap: 6px; }
.feat { position: relative; padding: 0 20px; border-radius: 16px; transition: background-color .3s, box-shadow .3s; }
.feat:not(.is-on):hover { background: var(--tint); }
.feat.is-on { background: color-mix(in oklab, var(--c) 6%, #fff); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 18%, transparent); }
.feat__tab { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title go"; align-items: center; column-gap: 20px; width: 100%; padding: 44px 0 20px; text-align: left; }
/* The label sits above the title but stays out of the heading; clicks pass through to the button under it */
.feat__label { position: absolute; z-index: 1; top: 20px; left: 20px; display: flex; align-items: center; gap: 9px; font: 500 13px/1 var(--mono); color: var(--ink); pointer-events: none; }
.feat__label i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.feat__label span { color: var(--ink-3); }
.feat__title { grid-area: title; display: block; font: 700 clamp(19px, 1.7vw, 22px)/1.25 var(--display); font-stretch: 106%; letter-spacing: -.025em; color: var(--ink-2); transition: color .3s; }
.feat__tab:hover .feat__title, .feat.is-on .feat__title { color: var(--ink); }

/* The arrow square: points down to open, turns towards the screen once open */
.feat__go { grid-area: go; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -24px; border-radius: 10px; color: var(--ink-2); background: var(--tint); transition: background-color .3s, color .3s; }
.feat__go .ic { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .4s var(--ease); }
.feat:not(.is-on):hover .feat__go { color: #fff; background: var(--ink); }
.feat.is-on .feat__go { color: #fff; background: var(--c); }
.feat.is-on .feat__go .ic { transform: none; }

.feat__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.feat__body > div { min-height: 0; overflow: hidden; }
.feat__body > div::after { content: ""; display: block; height: 34px; }
.feat.is-on .feat__body { grid-template-rows: 1fr; }
.feat__body p { max-width: 460px; margin-top: -6px; font-size: 15.5px; }
.feat__shot { display: none; }

/* While it plays, a line fills along the bottom of the open item */
.feat__bar { position: absolute; left: 20px; right: 20px; bottom: 14px; height: 2px; border-radius: 2px; background: color-mix(in oklab, var(--c) 18%, transparent); opacity: 0; transition: opacity .3s; }
.feat__bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c); transform: scaleX(0); transform-origin: left; }
.feats.is-playing .feat.is-on .feat__bar { opacity: 1; }
.feats.is-playing .feat.is-on .feat__bar::before { animation: fill 7s linear both; }
.feats.is-playing:hover .feat.is-on .feat__bar::before { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } }

.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; color: var(--ink); }
.ticks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--c); stroke-width: 2.3; }

/* The stage ends on the right edge of the container, like every panel on the page */
.feats__stage { position: relative; isolation: isolate; display: grid; }
.feats__stage::before { content: ""; position: absolute; z-index: -1; inset: 26% 30% -22% -14%; background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 40%, transparent), color-mix(in oklab, var(--c) 12%, transparent) 62%, transparent); filter: blur(44px); }
.feats__stage img { grid-area: 1 / 1; width: 100%; aspect-ratio: 1800 / 1250; object-fit: cover; object-position: top left; border-radius: 16px; box-shadow: var(--shot); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.feats__stage img.is-on { opacity: 1; transform: none; }

/* Premium plans: laid out like the features, the copy on the left and the real plans page on the right with a soft glow
 * behind it. The payment methods follow in one white panel, like the strengths and the speed test. */
.premium { --c: var(--brand-fill); padding-top: clamp(120px, 13vw, 176px); }
.premium__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(36px, 4.4vw, 64px); align-items: start; }
.premium__copy > p { max-width: 440px; margin-top: 18px; font-size: 17px; }
.premium__copy .ticks { margin-top: 24px; }
.premium__copy .more { margin-top: 24px; }
.premium__stage { position: relative; isolation: isolate; }
.premium__stage::before { content: ""; position: absolute; z-index: -1; inset: 26% 30% -12% -14%; background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 34%, transparent), color-mix(in oklab, var(--c) 10%, transparent) 62%, transparent); filter: blur(30px); }
.premium__frame { overflow: hidden; border-radius: 16px; box-shadow: var(--shot); }
.premium__frame img { width: 100%; }

.pay, .access {
  position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(32px, 4.5vw, 60px); align-items: center;
  margin-top: clamp(64px, 7vw, 96px); padding: clamp(28px, 3.6vw, 44px) clamp(24px, 4.4vw, 56px); border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(11, 12, 16, .03), 0 48px 90px -56px rgba(11, 12, 16, .3);
}
.pay__copy .h3 { text-wrap: balance; }
.pay__copy p { margin-top: 10px; font-size: 15.5px; }
.pay__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 16px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.pay__grid li { display: grid; place-items: center; min-height: 100px; padding: 14px; background: #fff; }
.pay__grid img { width: 100%; max-width: 104px; height: 30px; object-fit: contain; }
.pay__grid .pay__bank { display: flex; flex-direction: column; justify-content: center; gap: 5px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink); }
.pay__bank img { width: 22px; height: 22px; }

/* Demo logins under the themes: the same white panel as the payment methods */
.access { align-items: start; }
.access__copy .h3 { text-wrap: balance; }
.access__copy p { max-width: 340px; margin-top: 10px; font-size: 15.5px; }
.access__copy .more { margin-top: 18px; }
.access .logins { margin-top: 0; }
.access .logins li:first-child { padding-top: 0; border-top: 0; }

/* Admin showcase */
.admin { padding-top: clamp(120px, 13vw, 176px); }
.admin__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 36px; }
.admin__bar .seg { justify-self: end; }
.admin__tabs { grid-column: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.admin__tabs button { position: relative; padding: 10px 16px; font: 600 15px var(--font); color: var(--ink-3); transition: color .25s; }
.admin__tabs button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand-fill); transform: scaleX(0); transition: transform .3s var(--ease); }
.admin__tabs button:hover { color: var(--ink-2); }
.admin__tabs [aria-selected="true"] { color: var(--ink); }
.admin__tabs [aria-selected="true"]::after { transform: none; }
.admin__stage { position: relative; isolation: isolate; }
.admin__stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 34%; width: 112%; height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99, 102, 241, .3), rgba(167, 139, 250, .12) 60%, transparent); filter: blur(44px); }
.admin__shot { display: grid; }
.admin__shot img { grid-area: 1 / 1; width: 100%; border-radius: 16px; box-shadow: var(--shot); }
.admin__dark { opacity: 0; transition: opacity .4s var(--ease); }
[data-mode="dark"] .admin__dark { opacity: 1; }
.admin__panel figcaption { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-3); }
.admin__panel:not([hidden]) { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }

/* Phones: a row of five screens, the middle one largest and highest, the others smaller and lower towards the edges */
.phones { padding-top: clamp(120px, 13vw, 176px); overflow: hidden; }
.phones__row { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2vw, 28px); padding: 24px 0 8px; }
.phones__row::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 18%; width: min(1100px, 100%); height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(194, 65, 12, .1), transparent), radial-gradient(40% 60% at 30% 50%, rgba(15, 118, 110, .1), transparent), radial-gradient(40% 60% at 70% 50%, rgba(99, 102, 241, .12), transparent); filter: blur(30px); }
.phones__row img { width: clamp(150px, 15vw, 220px); flex: none; border-radius: 30px; box-shadow: 0 0 0 7px var(--ink), 0 40px 70px -30px rgba(11, 12, 16, .55); }
.phones__row img:nth-child(2), .phones__row img:nth-child(4) { margin-top: 40px; }
.phones__row img:nth-child(3) { width: clamp(160px, 16vw, 236px); }
.phones__row img:nth-child(1), .phones__row img:nth-child(5) { width: clamp(136px, 13.4vw, 196px); margin-top: 84px; }

/* Modes and languages */
.modes { padding-top: clamp(120px, 13vw, 176px); overflow: hidden; }
.modes__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(36px, 4.4vw, 64px); align-items: center; }
.modes__copy > p { max-width: 460px; margin-top: 18px; font-size: 16.5px; }
.split { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shot); }
.split img { width: 100%; }
.split__dark { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.split::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 12, 16, .12), 0 0 18px 2px rgba(165, 180, 252, .8); }

/* Everything else: one row per group, the group's name stays in view while its features pass by */
.kit { padding-top: clamp(120px, 13vw, 176px); }
.kit__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 5vw, 72px); }
.kit__head p { max-width: 440px; font-size: 17px; }
.kit__head b { color: var(--ink); font-weight: 600; }
.group { position: relative; display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: 28px clamp(32px, 4vw, 64px); padding: clamp(32px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); }
.group:last-child { border-bottom: 1px solid var(--line); }
.group::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--g), color-mix(in oklab, var(--g) 0%, transparent) 70%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.group:hover::before { transform: none; }
.group__label { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.group__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--g); background: color-mix(in oklab, var(--g) 11%, #fff); }
.group__icon .ic { width: 21px; height: 21px; }
.group__label h3 { margin-top: 16px; font: 700 clamp(21px, 1.9vw, 25px)/1.2 var(--display); font-stretch: 106%; letter-spacing: -.025em; color: var(--ink); }
.group__label p { max-width: 300px; margin-top: 10px; font-size: 15px; }
.group__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.group__list li { position: relative; padding-left: 28px; }
.group__list .ic { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; color: var(--g); stroke-width: 2.3; }
.group__list h4 { font: 600 15.5px/1.4 var(--font); letter-spacing: -.01em; color: var(--ink); }
.group__list p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; }

/* Speed test: the rule under each row is also its measure. The coloured part is the time with cache on,
 * the full width is 2 seconds, and it runs at real speed the first time the table is in view. */
.speed { --c: #EA580C; padding-top: clamp(120px, 13vw, 176px); }
.speed__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 52px); }
.speed__head p { max-width: 440px; font-size: 17px; }
.speed__panel {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); overflow: hidden;
  border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(11, 12, 16, .03), 0 48px 90px -56px rgba(11, 12, 16, .3);
}
.speed__results { min-width: 0; padding: clamp(24px, 2.6vw, 34px) clamp(24px, 3vw, 40px) clamp(24px, 2.8vw, 36px); }
.runs, .runs thead, .runs tbody { display: block; width: 100%; }
.runs tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px 124px; gap: 12px; align-items: baseline; }
.runs th, .runs td { padding: 0; text-align: right; font-weight: 400; }
.runs th:first-child { text-align: left; }
.runs thead th { padding-bottom: 14px; font-size: 13.5px; line-height: 1.3; color: var(--ink-3); }
.runs thead tr { border-bottom: 1px solid var(--line); }
.runs tbody tr { padding: 21px 0; border-bottom: 1px solid var(--line); }
.runs tbody tr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c);
  transform: scaleX(calc(var(--t) / 2)); transform-origin: left; transition: transform calc(var(--t) * 1s) linear;
}
.runs.is-waiting tbody tr::after { transform: scaleX(0); transition: none; }
.runs tbody th { font: 600 17px/1.35 var(--font); letter-spacing: -.012em; color: var(--ink); }
.runs tbody th span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.runs td { font-size: 17px; line-height: 1.2; color: var(--ink-3); }
.runs td b { font-size: 25px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.runs td small { font-size: 13.5px; }
.runs abbr { text-decoration: none; }
.runs__unit { display: block; margin-top: 2px; font-size: 13px; }
.runs__note { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.speed__setup { min-width: 0; padding: clamp(24px, 2.6vw, 34px) clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); }
.speed__setup .reqs { margin-top: 16px; }
.speed__setup .reqs div { grid-template-columns: 84px minmax(0, 1fr); padding: 9px 0; font-size: 14px; line-height: 1.45; }
.speed__setup .reqs div:first-child { border-top: 0; }

/* FAQ */
.faq { padding-top: clamp(120px, 13vw, 176px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__grid header p { max-width: 340px; margin-top: 16px; font-size: 15.5px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 17.5px/1.4 var(--font); letter-spacing: -.015em; color: var(--ink); cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ic { color: var(--ink-3); transition: transform .3s var(--ease), color .2s; }
.faq__list summary:hover .ic { color: var(--ink); }
.faq__list details[open] summary .ic { transform: rotate(45deg); color: var(--brand); }
.faq__list details p { max-width: 620px; padding-bottom: 24px; font-size: 15.5px; }

/* Demo accounts and requirements */
.specs { padding-top: clamp(104px, 11vw, 150px); }
.specs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); }
.specs__copy p { max-width: 340px; margin-top: 10px; font-size: 15.5px; }
.specs .reqs { margin-top: 0; }
.specs .reqs div:first-child { padding-top: 0; border-top: 0; }
.reqs { margin-top: 24px; }
.logins li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.logins__who { min-width: 0; font-size: 13.5px; color: var(--ink-3); }
.logins__who b { display: block; font: 600 15.5px/1.35 var(--font); color: var(--ink); }
.logins__cred { display: flex; align-items: center; gap: 4px; min-width: 0; }
.logins__cred code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.logins__pass { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.logins__pass code { padding: 5px 8px; font-size: 13px; border-radius: 7px; color: var(--ink); background: var(--tint); }
.copy { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; color: var(--ink-3); transition: background-color .2s, color .2s; }
.copy:hover { color: var(--ink); background: var(--tint); }
.copy .ic { width: 15px; height: 15px; }
.copy.is-done { color: #059669; }
.reqs div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.reqs dt { color: var(--ink-3); }
.reqs dd { color: var(--ink); }

/* Closing: the four theme colours rise like the morning at the bottom of the page */
.closing { position: relative; isolation: isolate; margin-top: clamp(96px, 11vw, 150px); padding: clamp(104px, 12vw, 168px) 0 clamp(120px, 13vw, 184px); text-align: center; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -46%; width: min(1500px, 140%); height: 100%; transform: translateX(-50%); filter: blur(50px);
  background:
    radial-gradient(30% 50% at 22% 60%, rgba(15, 118, 110, .2), transparent),
    radial-gradient(30% 50% at 40% 50%, rgba(99, 102, 241, .28), transparent),
    radial-gradient(30% 50% at 60% 52%, rgba(220, 38, 38, .14), transparent),
    radial-gradient(30% 50% at 78% 60%, rgba(194, 65, 12, .18), transparent);
}
.closing__title { max-width: 1000px; margin-inline: auto; font: 700 clamp(40px, 5.4vw, 78px)/1 var(--display); font-stretch: 110%; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.closing__inner > p { margin-top: 20px; font-size: 17.5px; }
.closing__inner > p b { color: var(--ink); font-weight: 600; }

.footer { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.footer img { height: 32px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 24px; }
.footer p a { padding-block: 3px; }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .admin__bar { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .admin__tabs { grid-column: auto; }
  .admin__bar .seg { justify-self: center; }
  .nav__links { gap: 22px; }
  .core__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell:not(:nth-child(3n)), .cell:nth-child(-n+3) { border: 0; }
  .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .cell:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .group__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 22px; --nav-h: 64px; }
  .nav__toggle { display: inline-grid; }
  .nav__demo { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px var(--gutter) 18px;
    background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { background: var(--night); }
  .nav.is-light .nav__links, .nav.is-light.is-open { background: #fff; border-color: var(--line); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 0; font-size: 17px; opacity: 1; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav.is-light .nav__links a { border-color: var(--line); }
  .nav__demo-m { display: block; }

  .core__head { grid-template-columns: minmax(0, 1fr); }

  /* On narrower screens the middle screen grows and the phone stays in front */
  .stage { --m: 44vw; }
  .stage__side { display: none; }
  .stage__phone { --w: calc(var(--m) * .56); left: auto; right: 2vw; }

  /* Rows stack: copy first, then the screenshot */
  .feats__head, .feats__grid, .modes__grid, .faq__grid, .kit__head, .speed__head, .speed__panel, .group { grid-template-columns: minmax(0, 1fr); }
  .speed__setup { border-top: 1px solid var(--line); border-left: 0; }
  .premium__grid, .pay, .access { grid-template-columns: minmax(0, 1fr); }
  .group__label { position: static; }
  /* Phones and tablets: an accordion, each open item shows its own screen */
  .feats__stage { display: none; }
  .feat.is-on .feat__go .ic { transform: rotate(-90deg); }
  .feat__shot { display: block; width: 100%; margin-top: 24px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(11, 12, 16, .07), 0 18px 40px -24px rgba(11, 12, 16, .4); }
  .themes__head { flex-direction: column; align-items: flex-start; }
  .specs__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .nav__inner { gap: 12px; }
  .nav__logo { flex: none; }
  .nav__logo img, .footer img { height: 30px; }
  .nav__actions { gap: 10px; }
  .hero__title { font-size: min(8.8vw, 38px); letter-spacing: -.04em; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* Phones: the six parts one under the other */
  .core__panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .cell:nth-child(odd) { border-right: 0; }
  .cell:nth-child(-n+5) { border-bottom: 1px solid var(--line); }
  .cell { padding: 26px 22px; }
  .cell__title { margin-top: 24px; }
  .cell__facts { padding-top: 18px; }
  .pay, .access { border-radius: 22px; }
  /* Phones: the email gets its own line under the role, so it is never cut off */
  .logins li { flex-direction: column; align-items: stretch; gap: 6px; }
  .logins__cred { justify-content: space-between; margin-right: -6px; }
  .pay__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay__grid li { min-height: 84px; }
  .speed__panel { border-radius: 22px; }
  .speed__results, .speed__setup { padding-inline: 20px; }
  .runs tr { grid-template-columns: minmax(0, 1fr) 62px 76px; gap: 8px; }
  .runs tbody tr { padding: 17px 0; }
  .runs tbody th { font-size: 15px; }
  .runs tbody th span { font-size: 13px; }
  .runs thead th { font-size: 13px; }
  .runs td { font-size: 14px; }
  .runs td b { font-size: 19px; }
  .runs td small { font-size: 13px; }
  .themes__grid { grid-template-columns: minmax(0, 1fr); }
  .theme__meta { flex-direction: column; gap: 14px; }
  .theme__meta .more { margin-top: 0; }
  .phones__row img, .phones__row img:nth-child(3) { width: 40vw; border-radius: 20px; box-shadow: 0 0 0 4px var(--ink), 0 30px 60px -24px rgba(11, 12, 16, .55); }
  .phones__row img:nth-child(1), .phones__row img:nth-child(5) { display: none; }

  /* Phones: the feature names only, two to a row */
  .group { gap: 20px; padding: 28px 0; }
  .group__label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
  .group__icon { width: 38px; height: 38px; border-radius: 10px; }
  .group__icon .ic { width: 19px; height: 19px; }
  .group__label h3 { margin: 0; font-size: 21px; }
  .group__label p { display: none; }
  .group__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
  .group__list li { padding-left: 24px; }
  .group__list .ic { top: 2px; width: 15px; height: 15px; }
  .group__list h4 { font-size: 14.5px; }
  .group__list p { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
