/*
 * Agent Work landing page.
 * Full-width sections, white rounded cards, one orange accent and one type family.
 */

:root {
  --bg: #ffffff;
  --soft: #faf8f6;
  --ink: #1c1917;
  --body: #57534e;
  --muted: #8c847d;
  --line: #ece7e2;
  --line-strong: #ddd6cf;

  --accent: #ff5c02;
  --accent-strong: #cf4800;
  --accent-hover: #b63f00;
  --accent-ink: #b8400a;
  --accent-soft: #fff3ea;
  --accent-line: #ffd9bf;

  --radius: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --wrap: 1120px;
  --header: 64px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-logo: "Syne", var(--font);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
}

.lead {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* Sections: each one takes the full width of the window. */

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section-soft {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.section-glow {
  border-block: 1px solid var(--line);
  background: linear-gradient(#ffffff, #fff4ea 60%, #fffaf5);
}

.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

.head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.btn-accent {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.25),
    0 1px 2px rgb(120 44 0 / 0.35);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-white {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.btn-white:hover {
  border-color: #c4bbb2;
}

.btn-lg {
  min-height: 46px;
  padding: 12px 22px;
  font-size: 15px;
}

/* Header: a full-width bar at the top edge. Clear over the hero, white after the page scrolls. */

.site-header {
  --nav-ink: var(--ink);
  --nav-muted: var(--muted);
  --nav-line: var(--line);
  --nav-toggle: #ffffff;

  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.site-header.is-stuck {
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

/*
 * At the top of the page the header is clear, with light text, over the dark hero. The script sets
 * `js` on the root element and `is-stuck` after the page scrolls; with no script the header stays white.
 */
.js:not(.menu-open) .site-header:not(.is-stuck) {
  --nav-ink: #ffffff;
  --nav-muted: rgb(255 255 255 / 0.72);
  --nav-line: rgb(255 255 255 / 0.24);
  --nav-toggle: transparent;

  border-bottom-color: transparent;
  background: transparent;
}

/* The wrapper needs a height too, or the bar's 100% has nothing to fill and the items stay at the top. */
.site-header > .wrap {
  height: 100%;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.logo svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.site-header .logo {
  color: var(--nav-ink);
  transition: color 0.2s;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}

.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--nav-muted);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--nav-ink);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  border: 1px solid var(--nav-line);
  border-radius: var(--radius);
  background: var(--nav-toggle);
  color: var(--nav-ink);
  cursor: pointer;
}

.menu-toggle .icon-close,
.menu-open .menu-toggle .icon-menu {
  display: none;
}

.menu-open .menu-toggle .icon-close {
  display: block;
}

/* Hero: a dark band with an orange glow at its foot, as in the final call. It starts at the top edge, under the header. */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header));
  padding-top: var(--header);
  background:
    radial-gradient(62% 46% at 50% 104%, rgb(255 92 2 / 0.5), rgb(255 92 2 / 0) 72%),
    radial-gradient(44% 30% at 50% 0%, rgb(255 92 2 / 0.12), rgb(255 92 2 / 0) 72%), var(--ink);
}

.hero-stage {
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: clamp(56px, 7vw, 100px) clamp(44px, 5vw, 64px);
  color: #ffffff;
  text-align: center;
}

.hero .eyebrow {
  color: #ff9a5c;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
}

/* The app mark as a tile inside the headline. */
.app-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.98em;
  height: 0.98em;
  margin-inline: 0.1em;
  border-radius: 0.24em;
  background: linear-gradient(160deg, #ff8a3d, #e04e00);
  color: #ffffff;
  vertical-align: -0.14em;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    0 14px 24px -10px rgb(224 78 0 / 0.65);
  transform: rotate(-6deg);
}

.app-tile svg {
  width: 0.7em;
  height: 0.7em;
}

.hero .lead {
  max-width: 560px;
  color: #c9c0b8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-note {
  font-size: 13.5px;
  color: #a8a099;
}

/* Faint pieces of the product beside the hero copy. */
.float {
  position: absolute;
  z-index: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.3;
  color: #d6cec6;
  pointer-events: none;
}

.float-left {
  left: 0;
  top: 52%;
  align-items: flex-start;
}

.float-right {
  right: 0;
  top: 44%;
  align-items: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9d6b;
}

.chip.faded {
  margin-inline-start: 40px;
  opacity: 0.65;
}

.float-right .chip.faded {
  margin-inline: 0 40px;
}

/* The product window at the foot of the hero. */

.shot {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin-inline: auto;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.app {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: start;
  box-shadow: 0 40px 100px -30px rgb(255 92 2 / 0.4);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.app-dots {
  display: inline-flex;
  gap: 6px;
}

.app-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e7e1db;
}

.app-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 420px;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-inline-end: 1px solid var(--line);
  background: #fcfbfa;
}

.app-search {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
}

.app-list li.on {
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.app-list b {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-list b span {
  margin-inline-start: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.app-list small {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-list time {
  align-self: start;
  padding-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

/* An agent in the product: a round picture with its initial. */
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #ffe6d3;
  color: #b8400a;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
}

.av-2 {
  background: #dcf5ec;
  color: #157a55;
}

.av-3 {
  background: #e4eaff;
  color: #3550d8;
}

.av-4 {
  background: #fde3ee;
  color: #b0336a;
}

.av-ch {
  background: #f0ece8;
  color: #6f675f;
}

.app-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-chat-head,
.view-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.app-chat-head {
  justify-content: flex-start;
}

.app-chat-head b,
.view-head b {
  font-size: 14.5px;
  font-weight: 500;
}

.app-chat-head span,
.view-head span {
  font-size: 12.5px;
  color: var(--muted);
}

.app-msgs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.msg {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  max-width: 540px;
}

.msg b {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.msg p {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 12px;
  background: #f5f2ef;
  color: var(--ink);
}

.msg-you {
  align-self: flex-end;
  max-width: 430px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
}

.app-event {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
}

/* Facts under the hero */

.facts {
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.facts dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.facts dl > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.facts dt {
  font-size: 13px;
  color: var(--muted);
}

.facts dd {
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -30px rgb(80 40 10 / 0.35);
}

.card .tile {
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  font-size: 14.5px;
  color: var(--body);
}

/* Connections: the apps of one kind, as small labels in a card. */

.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.apps li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 13.5px;
}

/* Feature cards: the copy beside a view of the product. */

.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 44px);
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.feature-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.feature-copy > p:not(.eyebrow) {
  color: var(--body);
}

/* An example under the list of a feature. */
.feature-copy > p.example {
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 14.5px;
  color: var(--ink);
}

.points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--body);
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.points .icon {
  margin-top: 3px;
  color: var(--accent-strong);
  stroke-width: 2.2;
}

.feature-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(160deg, #fff6ee, #fbf8f5);
}

/* A view of the product inside a feature card. */
.view {
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 24px 46px -30px rgb(110 50 10 / 0.45);
}

.view-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: baseline;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.view-rows b {
  font-weight: 500;
}

.view-rows span,
.view-rows time {
  font-size: 12.5px;
  color: var(--muted);
}

/* The settings of one agent: who answers for it, where it works, and its level in each tool. */
.view-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.view-facts dt {
  font-size: 12px;
  color: var(--muted);
}

.view-facts dd {
  font-weight: 500;
}

.view-rows .level {
  padding: 3px 9px;
  border-radius: 7px;
  background: #f5f2ef;
  color: var(--ink);
}

.view-rows .level.ask {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.view-label {
  padding: 14px 18px 2px;
  font-size: 12px;
  color: var(--muted);
}

.view-can {
  padding: 0 18px 12px;
}

.view-can li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--body);
}

.view-can b {
  font-weight: 500;
  color: var(--muted);
}

.view-can .yes {
  color: #1a7f4b;
}

.approval {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 18px 18px;
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
}

.approval-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.approval-head b {
  font-weight: 500;
}

.approval-head span {
  margin-inline-start: auto;
  font-size: 12.5px;
  color: var(--accent-ink);
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.app-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 500;
  text-align: center;
}

.app-btn.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.browser-url {
  overflow: hidden;
  margin: 14px 18px 0;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f5f2ef;
  font-size: 12px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.browser-page h4 {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.field small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.field.wide {
  grid-column: 1 / -1;
}

.field.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(255 92 2 / 0.16);
}

.browser-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--muted);
}

.browser-status .av {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

/* AI models */

.models {
  text-align: center;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.tiles li {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 10px 20px -16px rgb(110 50 10 / 0.5);
}

.models .card {
  text-align: start;
}

/* Deployment: three steps and the proposal */

.steps {
  counter-reset: step;
}

.steps .card {
  position: relative;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}

.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background: linear-gradient(120deg, #fff6ee, #ffffff 70%);
}

.offer h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.offer p {
  max-width: 62ch;
  color: var(--body);
}

/* Security: heading on one side, a card of rows on the other */

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.trust-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.trust-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.trust-card {
  padding: 6px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.trust-card > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.trust-card > div:first-child {
  border-top: 0;
}

.trust-card dt {
  margin-bottom: 4px;
  font-weight: 500;
}

.trust-card dd {
  font-size: 14.5px;
  color: var(--body);
}

/* Questions */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  font-size: 15.5px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-inline-start: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] {
  border-color: var(--accent-line);
}

.faq details[open] summary {
  color: var(--accent-ink);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--body);
}

.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 720px;
  margin: 14px auto 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #ffffff;
}

.ask > div {
  flex: 1;
  min-width: 220px;
}

.ask b {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.ask span {
  font-size: 13.5px;
  color: #b9b0a8;
}

/* Final call */

.closing {
  position: relative;
  overflow: hidden;
  background: radial-gradient(50% 80% at 50% 120%, rgb(255 92 2 / 0.4), rgb(255 92 2 / 0) 70%), var(--ink);
  color: #ffffff;
  text-align: center;
}

.closing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: clamp(72px, 9vw, 120px);
}

.closing h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}

.closing .lead {
  max-width: 520px;
  color: #c9c0b8;
}

/* Footer: a full-width band, content on the page grid */

.site-footer {
  padding-block: 56px 32px;
  background: var(--soft);
}

.footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  grid-column: 1 / -1;
}

.footer-brand p {
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-col b {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-legal p + p {
  margin-top: 4px;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* Not-found page: one centred message between the header and the footer. The page fills the
   window, so the footer stays at the bottom edge. */

.page-fill {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-fill main {
  display: grid;
  flex: 1;
  align-items: center;
}

.notfound .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: clamp(88px, 14vw, 176px);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.notfound .lead {
  max-width: 46ch;
}

.notfound .hero-actions {
  margin-top: 12px;
}

/* Legal pages: a plain heading band, an index at the side and the text. */

.legal-hero {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.legal-hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: clamp(44px, 6vw, 80px);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.legal-date {
  font-size: 14px;
  color: var(--muted);
}

.legal-intro {
  max-width: 68ch;
  color: var(--body);
}

.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(40px, 6vw, 80px);
}

.toc {
  font-size: 14px;
}

.toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.toc ol {
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--muted);
}

.toc a::before {
  content: counter(toc) ".";
  min-width: 1.7em;
}

.toc a:hover {
  color: var(--ink);
}

.prose {
  max-width: 720px;
  color: var(--body);
}

.prose section + section {
  margin-top: 44px;
}

.prose h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  color: var(--ink);
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 12px;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline-start: 20px;
  list-style: disc;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
  }
}

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

/* Larger screens */

@media (min-width: 720px) {
  .facts dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

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

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

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

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

  .offer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

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

@media (min-width: 940px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .legal-body {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
  }

  .toc {
    position: sticky;
    top: calc(var(--header) + 24px);
    align-self: start;
  }

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

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

  .feature.flip .feature-copy {
    order: 2;
  }

  .trust {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 56px;
  }

  .footer {
    grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 1180px) {
  .float {
    display: flex;
  }
}

/* Smaller screens */

@media (max-width: 939px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav,
  .nav-actions {
    display: none;
  }

  .menu-open .site-nav,
  .menu-open .nav-actions {
    display: flex;
  }

  .menu-open .site-header {
    height: auto;
    border-bottom-color: var(--line);
    background: #ffffff;
  }

  .menu-open .nav-bar {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px 18px;
    row-gap: 6px;
  }

  .menu-open .site-nav {
    flex-direction: column;
    order: 3;
    gap: 0;
    width: 100%;
    margin: 0;
  }

  .menu-open .site-nav a {
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink);
  }

  .menu-open .nav-actions {
    order: 4;
    width: 100%;
    padding-top: 10px;
  }

  .menu-open .nav-actions .btn {
    flex: 1;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .app-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .app-side {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

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

  .app-dots {
    display: none;
  }

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

  .offer .btn,
  .ask .btn {
    width: 100%;
  }

  .trust-card {
    padding-inline: 20px;
  }
}
