:root {
  --bg: #ffffff; --surface: #f6f6fa; --fg: #17171c; --muted: #5d5d6b; --line: #e3e3ec;
  --accent: #534ab7; --accent-2: #1d9e75; --on-accent: #ffffff; --radius: 14px;
  /* the primary buttons' gradient: white text is 6.9:1 on its indigo end and 5.3:1 on its green end (WCAG 1.4.3) */
  --btn-1: #534ab7; --btn-2: #157a5a;
  /* green as text (a heading in capitals), red of a button that takes money back, the border of a field, a lit star:
     each 4.5:1 (text) or 3:1 (a field's border, a star) on the page in both appearances */
  --accent-2-text: #157a5a; --danger: #b42318; --field-line: #8a8a99; --star: #b7791f;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15161b; --surface: #1e1f26; --fg: #f2f2f6; --muted: #a3a3b3; --line: #2e2f3a; --accent: #8c84f0; --on-accent: #111118;
    --accent-2-text: #1d9e75; --danger: #ff8a8a; --field-line: #75768a; --star: #e8a317; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; gap: 12px; padding: 12px 0; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
header.top img { width: 36px; height: 36px; }
header.top .name { font-weight: 700; font-size: 20px; color: var(--fg); text-decoration: none; }
header.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
.hero { padding: 48px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0 auto 26px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: var(--surface); cursor: pointer; font-size: 17px; }
.btn.primary { background: linear-gradient(90deg, var(--btn-1), var(--btn-2)); color: #fff; border: none; }
.btn.small { padding: 8px 14px; font-size: 15px; border-radius: 10px; white-space: nowrap; }
/* a <button> draws its text in the system's font and line height unless told: the same size as a link's .btn */
button.btn { font-family: inherit; line-height: inherit; }
/* a button that waits (the sign-in's "Send a new code" for a minute) looks so */
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.hero p.note { font-size: 14px; margin: 12px auto 0; }
.send .btn { margin-left: 6px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 22px 0 0; }
.badges li { font-size: 14.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.badges li::before { content: "✓"; color: var(--accent-2-text); font-weight: 700; margin-right: 7px; }
#for .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; margin: -8px 0 24px; }
.cta { text-align: center; margin: 30px 0 0; }
.trial { text-align: center; font-size: 17px; margin: 22px 0 6px; }
.final { text-align: center; padding: 64px 20px; margin: 20px 0 44px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); }
.final h2 { font-size: clamp(28px, 4.6vw, 40px); margin-bottom: 10px; }
.final p { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.shot { margin: 34px auto 0; max-width: 940px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot video { background: #0e1014; }
.clips { display: grid; gap: 26px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clip { margin: 0; }
.clip video { display: block; width: 100%; height: auto; background: #0e1014; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.16); }
.clip figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.clip figcaption strong { color: var(--fg); }
@media (max-width: 760px) {
  .clips { grid-template-columns: 1fr; }
  header.top nav a:not([lang]) { display: none; }
  #for .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero p { font-size: 18px; }
}
section { padding: 52px 0; }
section h2 { font-size: 30px; margin: 0 0 22px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* the buttons of cards of different heights in one line: the list takes the room left */
.price { text-align: center; display: flex; flex-direction: column; align-items: center; }
.price ul { flex: 1 0 auto; }
.price .for { font-size: 15px; margin: 0 0 6px; }
.price { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.price .guarantee { font-size: 13.5px; margin: 12px 0 0; }
.price .guarantee::before { content: "✓ "; color: var(--accent-2-text); font-weight: 700; }
.price .amount { font-size: 40px; font-weight: 700; margin: 6px 0; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 18px; margin-left: 6px; font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 14px 0 18px; color: var(--muted); font-size: 15.5px; }
.price li { margin: 4px 0; }
/* the thank-you window after a payment (buy.js): a dialog over the page */
#license, #app, #start, #notice { margin: auto; width: min(560px, calc(100vw - 32px)); padding: 28px 28px 24px; color: var(--fg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); }
#license:not([open]), #app:not([open]), #start:not([open]), #notice:not([open]) { display: none; }
#license::backdrop, #app::backdrop, #start::backdrop, #notice::backdrop { background: rgba(8, 10, 16, 0.6); backdrop-filter: blur(3px); }
#license h3, #start h3, #notice h3 { margin: 0 32px 10px 0; }
#notice .notice-text { color: var(--muted); margin: 0 0 18px; }
#license .state { margin: 0 0 18px; }
#license .actions, #start .actions, #notice .actions { margin: 0; }
#start .start-text { color: var(--muted); margin: 0 0 12px; }
#start .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 6px 0 18px; }
#start .check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
#license .close, #app .close, #start .close, #notice .close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: none; border-radius: 8px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
#license .close:hover, #app .close:hover, #start .close:hover, #notice .close:hover { background: var(--line); color: var(--fg); }
#license textarea { width: 100%; min-height: 110px; font: 13px/1.4 ui-monospace, Menlo, monospace; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); }
.doc { max-width: 760px; padding-bottom: 40px; }
.doc h1 { font-size: 34px; letter-spacing: -0.01em; margin: 26px 0 6px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc .date { color: var(--muted); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.placeholder { background: #ffe9a8; color: #5c4400; padding: 0 4px; border-radius: 4px; }

/* the withdrawal form of the refund page */
.withdrawal { display: grid; gap: 12px; max-width: 520px; margin: 14px 0 6px; }
.withdrawal label { display: grid; gap: 5px; font-size: 15px; color: var(--muted); min-width: 0; }
.withdrawal input, .withdrawal textarea { font: inherit; color: var(--fg); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--bg); }
.withdrawal .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.withdrawal .btn { justify-self: start; }
/* what the money is asked back for: three options, one to choose */
.withdrawal .choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.withdrawal .choice legend { padding: 0; margin-bottom: 5px; font-size: 15px; color: var(--muted); }
.withdrawal label.check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--fg); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.withdrawal label.check:has(input:checked) { border-color: var(--accent); }
.withdrawal label.check input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
/* the answer of the withdrawal form comes in the page's window (#notice): its text may run to a few lines */
#notice .notice-text { white-space: pre-line; }

/* under the last call of the landing: the way to the review form for those who already use the app */
.review-ask { text-align: center; color: var(--muted); font-size: 16px; margin: -20px 0 40px; }

/* the review form: five stars (the ones up to the chosen one are lit), the text, and the consent to publish */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.review .field { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.review .stars { display: flex; gap: 2px; }
.review .stars label { display: block; position: relative; font-size: 40px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; padding: 0 2px; }
.review .stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.review .stars label:has(input:checked), .review .stars label:has(~ label input:checked) { color: var(--star); }
.review .stars:hover label { color: var(--muted); }
.review .stars label:hover, .review .stars label:has(~ label:hover) { color: var(--star); }
.review .stars label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.review small { font-size: 13.5px; }
/* the text of a review: a field of one size, not to be dragged larger or smaller */
.review textarea { resize: none; }
/* a sent form shows its answer alone: the rules above would keep a hidden field on the page */
.withdrawal [hidden] { display: none !important; }
.review label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--fg); }
.review label.check input { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }

/* the languages with their flags, under the features */
.langs-h { text-align: center; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2-text); margin: 34px 0 0; }
.langs { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 14px 0 0; }
.langs li { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.langs img { height: 20px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }

/* a legal page with a first screen of its own (the refund policy): the promise, its three steps, then the text */
.doc.wide { max-width: 860px; }
.doc-hero { margin: 24px 0 18px; padding: 34px 28px 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); }
.doc-hero h1 { margin: 0 0 10px; }
.doc-hero .lead { margin: 0 0 18px; max-width: 640px; color: var(--fg); }
.doc-hero .badges { justify-content: flex-start; margin: 0 0 22px; }
.doc-hero .cta { text-align: left; margin: 0; }
.doc-hero .date { margin-top: 16px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 10px; counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card h3::before { content: counter(step); display: inline-block; width: 28px; height: 28px; line-height: 28px; margin-right: 10px; border-radius: 50%; text-align: center; font-size: 14px; color: #fff; background: linear-gradient(90deg, var(--btn-1), var(--btn-2)); }
.form-card { max-width: 600px; margin: 14px 0 6px; }
.form-card .withdrawal { margin: 0; max-width: none; }
/* the review page: its form is the page, as wide as the block above it */
.form-card.wide { max-width: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .doc-hero { padding: 26px 20px 22px; } }

/* the account page (account.html, account.js) */
#app h2, #notice h2 { margin: 0 32px 10px 0; font-size: 22px; }
#notice .buttons { margin: 0; }
#app .app-text { color: var(--muted); margin: 0 0 18px; }
#app .buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; margin: 0; }
/* the account: who is signed in, then a card per purchase (site/account.js) */
.who { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 14px 0 22px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--accent-2) 8%, var(--surface))); }
.who .email { font-weight: 600; margin-right: auto; overflow-wrap: anywhere; }
.holding { margin: 16px 0; padding: 22px 24px; }
/* a bar of the card's own colour at the top: a running purchase is lit, a past one is grey */
.holding { position: relative; overflow: hidden; }
.holding::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--btn-1), var(--btn-2)); }
.holding.past::before { background: var(--line); }
/* a card that is not a purchase (the invoice details, the news box) carries no coloured bar */
.holding.flat::before { content: none; }
.holding-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.holding-head h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.holding h3 { margin: 0 0 4px; }
/* where the purchase stands, in a word */
.pill { margin-left: auto; font-size: 13.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.pill.good { color: var(--accent-2-text); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); background: color-mix(in srgb, var(--accent-2) 10%, transparent); }
.pill.warn { color: var(--star); border-color: color-mix(in srgb, var(--star) 45%, transparent); background: color-mix(in srgb, var(--star) 10%, transparent); }
.pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
/* the facts: a label and its value per line, so the plan, the payment method and the Macs each stand out */
.facts-grid { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0; margin: 0; font-size: 15.5px; }
.facts-grid dt { color: var(--muted); padding: 7px 16px 7px 0; border-top: 1px solid var(--line); }
.facts-grid dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.facts-grid dt:first-of-type, .facts-grid dd:first-of-type { border-top: 0; }
.holding .facts { color: var(--muted); margin: 0 0 12px; }
.holding .facts.hint { margin: 14px 0 0; font-size: 15px; }
.holding .allowance { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.holding .allowance .facts { margin: 0; font-size: 14.5px; }
.holding .keybox { position: relative; }
.holding .keybox .key { padding-right: 52px; min-height: 52px; }
.holding .keybox .copy { position: absolute; top: 8px; right: 8px; }
/* a square button with an icon only (the key's copy button) */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: var(--fg); border-color: var(--muted); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.done { color: #3fbf86; border-color: rgba(63, 191, 134, 0.5); }
.holding .key { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.holding textarea { width: 100%; min-height: 64px; resize: none; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.holding .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }
.holding ul.macs { list-style: none; padding: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.holding ul.macs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 15.5px; }
.holding ul.macs li:first-child { border-top: 0; }
.holding .meter { height: 16px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 0 0 10px; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
.holding .meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--btn-1), var(--btn-2)); min-width: 6px; transition: width .3s; }
.holding .done { color: var(--muted); }
.holding .btn.refund { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); }
.holding .btn.refund:disabled { opacity: 0.4; cursor: not-allowed; }
.holding .confirm { border: 1px solid rgba(229, 90, 90, 0.4); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; }
.holding .confirm p { margin: 0 0 4px; }
.holding .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 4px 0 8px; }
.holding .check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
#items .empty { color: var(--muted); }
.offer .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }

/* an element the page hides is hidden whatever its own display says */
[hidden] { display: none !important; }
.btn.disabled { opacity: 0.55; pointer-events: none; }

/* the account's payments: a list under each purchase that opens when asked, each payment with its invoice (account.js) */
.holding details.payments { margin: 18px -24px -22px; border-top: 1px solid var(--line); padding: 12px 24px 16px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.holding details.payments summary { cursor: pointer; font-weight: 600; color: var(--fg); padding: 4px 0; }
.holding .pay-list { margin: 8px 0 0; }
.holding .pay { display: grid; grid-template-columns: minmax(110px, auto) 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.holding .pay:first-child { border-top: 0; }
.holding .pay .when { color: var(--muted); white-space: nowrap; }
.holding .pay .what { overflow-wrap: anywhere; }
.holding .pay .sum { font-weight: 600; white-space: nowrap; text-align: right; }
.holding .pay .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .holding .pay { grid-template-columns: 1fr auto; } .holding .pay .what { grid-column: 1 / -1; grid-row: 2; } }
.past-title { margin: 30px 0 4px; font-size: 20px; }
.holding.past h3 { color: var(--muted); }
/* the invoice details form */
.details-form { max-width: 560px; }
.withdrawal select { font: inherit; color: var(--fg); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--bg); width: 100%; max-width: 100%; min-width: 0; }
.details-form[hidden] { display: none; }
#notice .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
#notice .btn.refund { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); }

/* the landing's link past the header to its content: hidden until it has the keyboard's focus */
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 14px; border-radius: 10px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.skip:focus { top: 12px; }
/* a language's own name in the list of languages, with the page's word for it beside */
.langs li > span > span { unicode-bidi: isolate; }
@media (max-width: 560px) {
  .holding { padding: 18px 16px; }
  .holding details.payments { margin: 18px -16px -18px; padding: 12px 16px 14px; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid dt { padding: 8px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
  .facts-grid dd { padding: 0 0 8px; border-top: 0; }
  .facts-grid dd:first-of-type { padding-top: 0; }
  .pill { margin-left: 0; }
}
