/* Descarte — one stylesheet for every page. Light, with dark bands. */
:root {
  --paper: #ECEDEF;
  --card: #F7F7F8;
  --ink: #131418;
  --ink-2: #2D3038;
  --ink-3: #4A4D57;
  --rule: #D5D7DC;
  --rule-2: #C9CCD2;
  --violet: #5B3FD9;
  --violet-hover: #43299F;
  --violet-on-dark: #7B61F0;
  --band: #17181D;
  --band-text: #EEEFF2;
  --band-dim: #B4B7C1;
  --band-faint: #9A9DA8;
  --mark: #D0362B;
  --gutter: clamp(16px, 7vw, 120px);
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wordmark: "Unbounded", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-hover); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2, h3 { overflow-wrap: break-word; }
/* German, French, Spanish, Italian and Portuguese have long words; let headings hyphenate on a phone rather than overflow */
html:not([lang="en-GB"]) :is(h1, h2, h3) { -webkit-hyphens: auto; hyphens: auto; }
p { margin: 0; }

.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.display { font-size: clamp(40px, 6vw, 72px); line-height: 1.0; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; font-stretch: 106%; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 760px; }
.body { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.small { font-size: 16px; color: var(--ink-3); }
.mono { font-family: var(--mono); }

/* Keys */
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 7px; box-sizing: border-box;
  border: 1px solid #B9BCC4; border-bottom-width: 3px; border-radius: 6px;
  background: var(--card); color: var(--ink);
  font-family: var(--mono); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.band kbd { border-color: #4A4D57; background: #26282F; color: #F4F5F7; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
/* A key that is a long menu path may wrap on a phone, rather than widen the page */
.keys kbd { max-width: 100%; height: auto; min-height: 30px; padding-block: 4px; white-space: normal; text-align: center; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 12px; background: var(--violet); color: #FFFFFF; font-weight: 700; font-size: 18px; text-decoration: none;
}
.button:hover { background: var(--violet-hover); color: #FFFFFF; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); }
.band .button { background: var(--violet-on-dark); }
.band .button:hover { background: var(--violet); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
/* The header stays put and the page slides under it, softly blurred */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(236, 237, 239, 0.72); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--paper); } }
.site-header .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand span { font-family: var(--wordmark); font-size: 24px; font-weight: 700; letter-spacing: -0.035em; text-transform: lowercase; }
.brand:hover { color: var(--ink); }
/* The mark sits on the centre of the lower-case letters' body, not the line box */
.brand svg { transform: translateY(3.5px); }
.site-footer .brand-line svg { transform: translateY(2.3px); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 19px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); padding-bottom: 4px; }
.site-nav .button { min-height: 44px; padding: 0 20px; font-size: 18px; color: #FFFFFF; }
@media (max-width: 760px) {
  .site-header .wrap { height: 64px; }
  .site-nav .hide-narrow { display: none; }
  .brand span { font-size: 22px; }
}

/* The language menu: a <details> at the end of the header, each language in its own name */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 2px; cursor: pointer; color: var(--ink); font-size: 17px; font-weight: 500; border-radius: 8px; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; margin-left: 1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-menu summary:hover { color: var(--violet); }
.lang-menu summary svg { flex: none; }
.lang-menu .lang-code { display: none; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--rule-2); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(19, 20, 24, 0.45); }
.lang-menu li a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; font-size: 17px; font-weight: 500; }
.site-nav .lang-menu li a:hover { background: var(--paper); color: var(--ink); }
.lang-menu li a[aria-current] { font-weight: 700; }
.lang-menu li a[aria-current]::after { content: "✓"; color: var(--violet); }
@media (max-width: 1240px) {
  .lang-menu .lang-name { display: none; }
  .lang-menu .lang-code { display: inline; }
}
/* Between a phone and a laptop, the header tightens so every language's menu fits on one line */
@media (min-width: 761px) and (max-width: 1080px) {
  .site-header .wrap { gap: 16px; }
  .site-nav { gap: 14px; font-size: 16px; }
  .site-nav .button { min-height: 40px; padding: 0 14px; font-size: 16px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .site-header .wrap { gap: 10px; }
  .site-nav { gap: 11px; font-size: 15px; }
  .site-nav .button { padding: 0 12px; font-size: 15px; }
  .lang-menu summary svg { display: none; }
  .brand span { font-size: 22px; }
}
@media (max-width: 520px) {
  .site-header .wrap { gap: 12px; }
  .site-nav { gap: 12px; }
  .site-nav .button { min-height: 40px; padding: 0 14px; font-size: 16px; }
  .lang-menu summary svg { display: none; }
}
/* On a phone, the header keeps the name and the language; the download is on the page */
@media (max-width: 440px) { .site-nav .button { display: none; } }

/* Sections */
.section { padding-top: clamp(72px, 9vw, 140px); }
.band { background: var(--band); color: var(--band-text); margin-top: clamp(72px, 9vw, 120px); padding-block: clamp(48px, 7vw, 96px); }
.band .body, .band .lead { color: var(--band-dim); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.split-head > .h2 { max-width: 660px; }
.split-head > p { max-width: 480px; }

/* Screenshots */
.shot { border-radius: 12px; overflow: hidden; background: #1E1F24; box-shadow: 0 24px 60px -28px rgba(19,20,24,0.55); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: 18px; line-height: 1.45; color: var(--ink-3); margin-top: 14px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(22px, 3vw, 40px); }
.circled { position: relative; display: inline-block; }
.circled svg { position: absolute; left: -3%; top: -14%; width: 106%; height: 128%; overflow: visible; pointer-events: none; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; }
.hero-row .lead { max-width: 640px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-actions .buttons { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero-actions { align-items: stretch; width: 100%; }
  .hero-actions .buttons { flex-direction: column; }
  .hero-actions .buttons .button { width: 100%; }
  .hero-actions .small { text-align: center; }
}

/* Keys band */
.strip { border-radius: 8px; overflow: hidden; }
.strip img { width: 100%; }
@media (max-width: 700px) { .strip img { height: 120px; object-fit: cover; object-position: 38% 50%; } }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.legend div { display: flex; align-items: center; gap: 12px; color: var(--band-dim); }
@media (max-width: 900px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .legend { grid-template-columns: 1fr; gap: 14px; } }

/* Pillars */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 960px) { .cols-3 { grid-template-columns: 1fr; gap: 40px; } }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
@media (max-width: 960px) { .cols-2 { grid-template-columns: 1fr; gap: 40px; } }
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 8px 32px; border-left: 4px solid var(--ink); }
.quote blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.pillar { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 2px solid var(--ink); }
.pillar ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pillar li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.pillar li kbd { width: 64px; height: 28px; padding: 0 4px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }
.tile .shot { aspect-ratio: 3 / 2; }
.tile-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.tile-title span { font-size: 24px; font-weight: 700; font-stretch: 106%; }
.tile p { margin-top: 6px; }

/* Two-column feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } }

/* Hand-off cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); }
.card .mono { font-size: 22px; font-weight: 600; }
.card strong { font-size: 18px; }
@media (max-width: 520px) { .card { padding: 16px; } .card .mono { font-size: 18px; } }
.card .small { overflow-wrap: anywhere; }

/* Download band */
.download { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; }
.download img { width: 160px; height: 160px; border-radius: 22.5%; }
.download .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.download .actions .small { color: var(--band-faint); }
.mac-only { display: none; }
@media (max-width: 900px) {
  .download { grid-template-columns: 1fr; }
  .download img { width: 96px; height: 96px; }
  .download .actions { align-items: flex-start; }
}
.band .languages-note { color: var(--band-faint); }
@media (hover: none) and (max-width: 760px) { .mac-only { display: block; color: var(--band-dim); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px 64px; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }
.faq dl { margin: 0; }
.faq dt { font-size: 22px; font-weight: 700; padding-top: 22px; border-top: 1px solid var(--rule-2); }
.faq dd { margin: 8px 0 22px; max-width: 680px; }
.faq dl > :last-child { padding-bottom: 22px; border-bottom: 1px solid var(--rule-2); margin-bottom: 0; }

/* Features page */
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1100px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid #B9BCC4; color: var(--ink); text-decoration: none; font-size: 18px; }
.chips a:hover { border-color: var(--ink); }
.wipe { max-width: 820px; margin-top: 48px; }
.wipe-frame { position: relative; aspect-ratio: 1191 / 953; }
.wipe-frame img { display: block; position: absolute; inset: 0; }
.wipe-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--at)); }
.wipe-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--at); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.4); pointer-events: none; }
.wipe-frame::before { content: "↔"; position: absolute; z-index: 1; top: 50%; left: var(--at); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #131418; font-size: 20px; line-height: 44px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.35); pointer-events: none; }
.wipe-label { position: absolute; top: 14px; z-index: 1; padding: 4px 10px; border-radius: 6px; background: rgba(19,20,24,0.62); color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; pointer-events: none; }
.wipe input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.vignettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
@media (max-width: 760px) { .vignettes { grid-template-columns: 1fr; } }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 1000px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .items { grid-template-columns: 1fr; gap: 28px; } }
.item { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule-2); }
.item h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.item p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.item .keys { margin-top: 4px; }
section[id] { scroll-margin-top: 24px; }

/* Compare page */
.wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 1000px) { .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wins { grid-template-columns: 1fr; } }
.win { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--ink); }
.win h3 { font-size: 20px; line-height: 1.25; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.matrix { --c1: 340px; --c2: 116px; width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: 18px; }
/* When the table scrolls sideways, the feature names and Descarte's column stay put */
.matrix tr > :first-child { position: sticky; left: 0; z-index: 2; width: var(--c1); min-width: var(--c1); background: var(--paper); }
.matrix tr > :nth-child(2) { position: sticky; left: var(--c1); z-index: 2; width: var(--c2); min-width: var(--c2); }
@media (max-width: 1080px) { .matrix tr > :nth-child(2) { box-shadow: 8px 0 10px -8px rgba(19, 20, 24, 0.35); } }
@media (max-width: 700px) {
  table.matrix { --c1: 132px; --c2: 76px; min-width: 700px; font-size: 14px; }
  .matrix th, .matrix td { padding: 8px 6px; }
  .matrix th[scope="row"] { padding: 8px 10px 8px 0; }
  .matrix thead th { font-size: 13px; overflow-wrap: anywhere; }
  .matrix tr.price th, .matrix tr.price td { font-size: 13px; }
}
.matrix th, .matrix td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.matrix thead th { border-bottom: 2px solid var(--ink); font-size: 16px; line-height: 1.2; }
.matrix th[scope="row"] { text-align: left; font-weight: 400; padding-right: 32px; line-height: 1.35; }
.matrix .us { background: #E1DCF8; font-weight: 700; }
.matrix tr:has(+ tr.sub) > * { border-bottom: 0; }
.matrix tr.sub > * { padding-top: 0; padding-bottom: 12px; }
.matrix tr.sub th { padding-left: 20px; text-indent: -14px; font-size: 16px; line-height: 1.4; color: var(--ink-3); }
.matrix tr.sub th::before { content: "– "; }
.matrix tr.group > * { padding: 36px 8px 10px; border-bottom: 2px solid var(--ink); }
.matrix tr.group th { padding-left: 0; text-align: left; font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.matrix tr.price th, .matrix tr.price td { font-size: 16px; }
.matrix tr.price th { font-weight: 700; font-size: 18px; }
.dot { display: inline-block; width: 12px; height: 12px; box-sizing: border-box; border-radius: 6px; vertical-align: middle; }
.dot.yes { background: var(--ink); }
.dot.part { border: 2px solid var(--ink); }
.dot.no { height: 2px; border-radius: 1px; background: #8A8D96; }
.dot-legend { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--ink-3); }
.dot-legend span { display: inline-flex; align-items: center; gap: 10px; }
.notes > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 24px; padding-block: 18px; border-top: 1px solid var(--rule-2); }
@media (max-width: 700px) { .notes > div { grid-template-columns: 1fr; } }
.notes h3 { font-size: 20px; }

/* Privacy */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 44px; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-size: 28px; line-height: 1.2; font-weight: 700; font-stretch: 106%; }

/* Footer */
.site-footer { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-block: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; font-size: 16px; color: var(--ink-3); }
.site-footer .brand-line { display: flex; align-items: center; gap: 10px; }
.site-footer .brand-line strong { color: var(--ink); font-family: var(--wordmark); font-weight: 700; letter-spacing: -0.035em; text-transform: lowercase; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-3); }
.site-footer .languages { flex-basis: 100%; }
