/* Brand colours and fonts of the school; the same values as customer/frontend.json. */
@font-face {
  font-family: "Wix Madefor Display";
  src: url("/brand/fonts/WixMadeforDisplay.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("/brand/fonts/WixMadeforText.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --accent: #2259d4;
  --accent-bright: #4a81fc;
  --accent-soft: #e0e8f5;
  --gradient: linear-gradient(100deg, #2259d4, #4a81fc);
  --navy: #071a4d;
  --navy-2: #0a2a7a;
  --ink: #1f2430;
  --muted: #5a6070;
  --faint: #8a90a0;
  --rule: #dde3ee;
  --ground: #ffffff;
  /* Every other section. */
  --tint: #f3f6fb;
  /* Cards and windows. */
  --surface: #ffffff;
  /* Filled cards on the plain ground. */
  --soft: #f3f6fb;
  /* Fields, the side of the demo, the head of the table. */
  --sunken: #f6f8fc;
  /* Bubbles and bars inside a card. */
  --raised: #eef1f6;
  /* Text on a chip or a tab filled with the ink. */
  --on-ink: #ffffff;
  --danger: #d0453a;
  --top-bg: rgba(255, 255, 255, 0.92);
  /* The made-up covers of the lessons in the demo. */
  --cover-a: #dfe7f6;
  --cover-b: #b7c8ec;
  --cover-ring: #c9d7f3;
  --cover-edge: #9fb6e6;
  --cover-dot: #ffffff;
  --radius: 20px;
  --radius-small: 12px;
  --display: "Wix Madefor Display", "Segoe UI", system-ui, sans-serif;
  --text: "Wix Madefor Text", "Segoe UI", system-ui, sans-serif;
  --top-height: 68px;
}

/* The dark theme of the application (frontend/src/app/globals.css and the dark colours of
   customer/frontend.json): chosen with the switch in the header, never by the system. The
   navy blocks of the brand stay as they are. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #7fa6ff;
  --accent-bright: #4a81fc;
  --accent-soft: #1b2c47;
  --ink: #f2f2f2;
  --muted: #b0b0b0;
  --faint: #808080;
  --rule: #333333;
  --ground: #121212;
  --tint: #181818;
  --surface: #1e1e1e;
  --soft: #1e1e1e;
  --sunken: #181818;
  --raised: #2a2a2a;
  --on-ink: #121212;
  --danger: #ec8b7b;
  --top-bg: rgba(18, 18, 18, 0.9);
  --cover-a: #1b2c47;
  --cover-b: #2b4a85;
  --cover-ring: #2f4f8f;
  --cover-edge: #4a81fc;
  --cover-dot: #7fa6ff;
}

/* The ticks and the plus are pictures: their colour follows the accent of the theme here. */
:root[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%237fa6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%237fa6ff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* As in the application: on a dark page the coloured lion sits on a light disc. */
:root[data-theme="dark"] .demo-brand img {
  border-radius: 50%;
  background: var(--ink);
  padding: 1px;
}

:root[data-theme="dark"] .demo-brand {
  color: var(--ink);
}

/* The soft accent is lost on the grey of a bar: the share of a theme needs more blue. */
:root[data-theme="dark"] .art-bar::before {
  background: #27467f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 21px;
  font-weight: 650;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(34, 89, 212, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px -10px rgba(34, 89, 212, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 11px;
}

.ico {
  width: 18px;
  height: 18px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--top-bg);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--rule);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--top-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
}

/* The logo of the school with its name, as in the brand book (page 2). */
.brand-logo {
  display: block;
  width: auto;
  height: 44px;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 34px;
  }
}

/* The version for dark grounds from the same page: white letters, the lion in a white ring. */
.brand-logo-dark,
:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

/* The switch of the theme, as in the application: the icon shows the theme it turns to. */
.theme-switch {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-switch:hover {
  background: var(--raised);
  color: var(--ink);
}

.theme-switch svg {
  width: 20px;
  height: 20px;
}

.theme-sun,
:root[data-theme="dark"] .theme-moon {
  display: none;
}

:root[data-theme="dark"] .theme-sun {
  display: block;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--accent);
}

.top-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.top-menu span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.top-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .top-menu {
    display: flex;
  }

  .theme-switch {
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: var(--top-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 16px 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 30px -20px rgba(7, 26, 77, 0.25);
    display: none;
  }

  .top-nav.is-open {
    display: flex;
  }

  .top-nav a {
    padding: 14px 4px;
    font-size: 17px;
  }

  /* Lines between the items only: the last one shown depends on the width. */
  .top-nav a + a {
    border-top: 1px solid var(--rule);
  }
}

.top-nav .top-demo {
  display: none;
}

@media (max-width: 480px) {
  .top-cta {
    display: none;
  }

  .top-nav .top-demo {
    display: block;
    color: var(--accent);
    font-weight: 650;
  }
}

/* Block 1: hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, var(--navy-2) 0%, var(--navy) 55%, #050f2e 100%);
  color: #fff;
  padding: 72px 0 64px;
}

.hero-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 129, 252, 0.55) 0%, rgba(74, 129, 252, 0) 62%);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translate(-80px, -60px) scale(1.08);
  }
}

.hero-inner {
  position: relative;
}

.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-points {
  list-style: none;
  max-width: 720px;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(74, 129, 252, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stats b {
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 750;
  white-space: nowrap;
}

.stats span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 44px 0 40px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats {
    margin-top: 40px;
    gap: 8px;
  }

  .stats li {
    padding: 14px;
  }
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--tint);
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }
}

/* Ticked list, shared by roles and plans */
.ticks {
  list-style: none;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%232259d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Block 2 */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.features li {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--soft);
}

.feature-num {
  display: inline-block;
  margin-bottom: 36px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.features p {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature-num {
    margin-bottom: 14px;
  }
}

/* Block 3: assistant demo, drawn like the application itself */
.demo {
  margin: 48px 0 0;
}

.demo-window {
  display: grid;
  grid-template-columns: 230px 1fr;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(7, 26, 77, 0.35), 0 0 0 1px var(--rule);
  overflow: hidden;
  font-size: 15px;
}

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  background: var(--sunken);
  border-right: 1px solid var(--rule);
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.demo-nav {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
}

.demo-nav.is-on {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

.demo-sub {
  padding-left: 24px;
}

/* A chat of a fixed height, as in the application: the answer scrolls inside it. */
.demo-window {
  height: 640px;
}

.demo-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0 32px 22px;
}

.demo-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 0 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  /* The words measure their place from here while the chat follows them. */
  position: relative;
}

.demo-q {
  align-self: flex-end;
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--raised);
}

.demo-typing {
  display: none;
  gap: 5px;
  padding: 6px 2px;
}

.demo-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: blink 1s infinite ease-in-out;
}

.demo-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.demo-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.demo-a {
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.demo-a ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.demo-a .w {
  transition: opacity 0.35s ease;
}

.demo-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.demo-lessons ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-lessons li {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--rule);
  overflow: hidden;
  padding-bottom: 12px;
}

.demo-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 50%, var(--cover-dot) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, var(--cover-ring) 0 30%, var(--cover-edge) 31% 32%, transparent 33%),
    linear-gradient(135deg, var(--cover-a), var(--cover-b));
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(31, 36, 48, 0.75);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.demo-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.demo-title {
  padding: 10px 12px 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.demo-origin {
  padding: 4px 12px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.demo-time {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  margin: 10px 12px 0;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-time svg {
  width: 11px;
  height: 11px;
}

.demo-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--faint);
}

.demo-send {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.55;
}

.demo figcaption {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--muted);
}

.demo-replay {
  display: block;
  margin: 12px auto 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}

.demo-replay[hidden] {
  display: none;
}

/* The steps of the demo: only while it plays, so that without scripts all of it shows. */
.demo.is-armed .demo-q,
.demo.is-armed .demo-lessons {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.demo.is-armed .w {
  opacity: 0;
}

.demo.is-armed .w.on {
  opacity: 1;
}

.demo.is-armed .demo-a li::marker {
  color: transparent;
}

.demo.is-armed .demo-a li:has(.w.on)::marker {
  color: inherit;
}

.demo.show-q .demo-q,
.demo.show-lessons .demo-lessons {
  opacity: 1;
  transform: none;
}

.demo.show-typing .demo-typing {
  display: flex;
}

@media (max-width: 860px) {
  .demo-window {
    grid-template-columns: 1fr;
  }

  .demo-side {
    display: none;
  }

  .demo-window {
    height: min(600px, 78svh);
  }

  .demo-main {
    padding: 0 14px 14px;
  }

  .demo-scroll {
    padding-top: 18px;
  }

  .demo-q {
    max-width: 92%;
  }

  .demo-lessons ul {
    grid-template-columns: 1fr;
  }

  .demo-lessons li {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
    padding: 10px;
  }

  .demo-cover {
    grid-row: 1 / 4;
    border-radius: 8px;
    align-self: start;
  }

  .demo-title,
  .demo-origin {
    padding: 0;
  }

  .demo-time {
    margin: 8px 0 0;
  }
}

/* Tabs: roles */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tabs button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tabs button:hover {
  background: var(--accent-soft);
}

.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
  animation: rise 0.35s ease;
}

.role[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.role-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 44px;
}

.role-text h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.role-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 32px;
  background: radial-gradient(90% 90% at 70% 20%, #4a81fc 0%, #2259d4 45%, #0a2a7a 100%);
}

.art-card {
  width: min(100%, 340px);
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.45);
}

.art-title {
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 700;
}

.art-bar {
  position: relative;
  display: block;
  height: 34px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--raised);
  overflow: hidden;
}

.art-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 8px;
  background: var(--accent-soft);
}

.art-bar i {
  position: relative;
  display: block;
  padding: 0 12px;
  line-height: 34px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
}

.art-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.art-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.art-phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 210px;
  padding: 26px 16px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 0 0 7px #0d1f52, 0 30px 50px -20px rgba(0, 0, 0, 0.5);
}

.art-phone-q {
  align-self: flex-end;
  padding: 8px 10px;
  border-radius: 12px 12px 3px 12px;
  background: var(--raised);
  font-size: 12.5px;
  line-height: 1.35;
}

.art-phone-a {
  height: 9px;
  border-radius: 5px;
  background: var(--raised);
}

.art-short {
  width: 64%;
}

.art-phone-video {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b));
  color: var(--accent);
}

.art-phone-video svg {
  width: 26px;
  height: 26px;
}

.note {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--faint);
}

@media (max-width: 860px) {
  .role {
    grid-template-columns: 1fr;
  }

  .role-text {
    padding: 28px 22px;
  }

  .role-art {
    min-height: 260px;
    order: -1;
  }
}

/* Block 5: directions slider */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.chips button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chips button:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent-bright);
}

.chips button[aria-current="true"] {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: none;
}

@media (max-width: 860px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }
}

.slider {
  margin-top: 24px;
}

.slides {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* Room for the outlines of the cards, which the scrolling box would cut off. */
  padding: 4px;
  margin: -4px;
  scroll-padding: 0 4px;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
  transition: box-shadow 0.2s ease;
}

.slide.is-active {
  box-shadow: 0 0 0 2px var(--accent-bright);
}

.slide-count {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.slide > p:not(.slide-count) {
  color: var(--muted);
}

.slide dl {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 4px;
  font-size: 15px;
}

.slide dt {
  font-weight: 650;
}

.slide dd {
  margin: 0 0 8px;
  color: var(--muted);
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}

.slider-pos {
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 15px;
}

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.round-btn:hover:not(:disabled) {
  background: var(--accent-soft);
}

.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

.round-prev svg {
  transform: rotate(180deg);
}

@media (max-width: 1000px) {
  .slides {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .slides {
    grid-auto-columns: 86%;
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .slide {
    padding: 22px;
  }

  .slider-nav {
    justify-content: center;
  }
}

/* Blocks 6 and 8: cards */
.cards3,
.cards4 {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

.cards3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards3 li,
.cards4 li {
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule);
}

.cards3 li::before,
.cards4 li::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--gradient);
}

.cards3 p,
.cards4 p {
  margin-top: 10px;
  color: var(--muted);
}

.cards4 h3 {
  font-size: 19px;
}

@media (max-width: 1000px) {
  .cards4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .cards3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cards4 {
    grid-template-columns: 1fr;
  }

  .cards3 li,
  .cards4 li {
    padding: 22px;
  }
}

/* Block 7: banner with a short form */
.banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: radial-gradient(80% 120% at 100% 0%, #2259d4 0%, var(--navy) 60%);
  color: #fff;
}

.banner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.banner-text p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.banner-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 860px) {
  .banner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .banner-form {
    padding: 18px;
  }
}

/* Forms */
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent-bright);
  background: var(--surface);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--danger);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.consent.is-invalid {
  color: var(--danger);
}

.form-msg {
  font-size: 14.5px;
  color: var(--muted);
}

.form-msg:empty {
  display: none;
}

/* Block 9: plans */
.plans {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}

.plan-best {
  box-shadow: 0 0 0 2px var(--accent-bright), 0 24px 40px -24px rgba(34, 89, 212, 0.55);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.plan h3 {
  font-size: 24px;
}

.plan-for {
  color: var(--muted);
  font-size: 15.5px;
  min-height: 3.1em;
}

.plan-price {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.plan-price b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}

.plan-hint {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  min-height: 2.8em;
}

.plan .ticks {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
}

@media (max-width: 1100px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 600px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .plan-for,
  .plan-hint {
    min-height: 0;
  }
}

.table-title {
  margin-top: 64px;
  font-size: 24px;
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}

.prices {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.prices th,
.prices td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.prices thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--sunken);
}

.prices thead small {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.prices tbody th {
  font-family: var(--display);
  font-weight: 700;
}

.prices tbody tr:last-child > * {
  border-bottom: 0;
}

.table-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.table-notes li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent-bright);
}

@media (max-width: 560px) {
  #pricing .btn {
    width: 100%;
  }
}

/* Block 10: clients and reasons to trust */
.logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 12px;
  border-radius: 16px;
  background: var(--soft);
  font-family: var(--display);
  font-weight: 750;
  font-size: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-title {
  margin-top: 64px;
  font-size: clamp(24px, 2.6vw, 32px);
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.trust li {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  background: var(--soft);
}

.trust li:nth-child(n + 5) {
  grid-column: span 4;
}

.trust b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.trust span {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .trust li,
  .trust li:nth-child(n + 5) {
    grid-column: span 6;
  }

  .trust li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .trust li,
  .trust li:nth-child(n + 5) {
    grid-column: 1 / -1;
  }
}

/* Block 11: final call */
.final {
  background: radial-gradient(90% 120% at 0% 100%, #2259d4 0%, var(--navy) 55%, #050f2e 100%);
  color: #fff;
}

.final-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.final-text p {
  margin-top: 18px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.8);
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.request-form .consent,
.request-form .btn,
.request-form .form-msg {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .final-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .request-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Block 12: FAQ */
.faq-wrap {
  max-width: 900px;
}

.faq {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  display: block;
  padding: 22px 52px 22px 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--soft) no-repeat center / 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%232259d4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq details > p,
.faq details > ul {
  max-width: 760px;
  padding-bottom: 22px;
  color: var(--muted);
}

.faq details > p + ul {
  margin-top: -12px;
}

.faq details > ul {
  padding-left: 20px;
}

.faq details > ul li + li {
  margin-top: 6px;
}

@media (max-width: 560px) {
  .faq summary {
    font-size: 17px;
    padding: 18px 46px 18px 0;
  }
}

/* Footer */
.foot {
  padding: 40px 0;
  background: #050f2e;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
}

/* The name and the links in one row, the copyright under a rule across the whole width. */
.foot-row {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px 32px;
}

.brand-foot {
  color: #fff;
}

.brand-foot img {
  border-radius: 50%;
  background: #fff;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.foot-links a {
  color: rgba(255, 255, 255, 0.85);
}

.foot-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .foot-row {
    grid-template-columns: 1fr;
  }

  .foot-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
