:root{--bg:#EEF1EE;--surface:#FFFFFF;--ink:#162E2C;--primary:#0E7C86;--accent:#F2A33A;--on-primary:#FFFFFF;}
@media (prefers-color-scheme: dark){:root{--bg:#0C2527;--surface:#133132;--ink:#EEF1EC;--primary:#6AAEB4;--accent:#F5BA6B;--on-primary:#111111;}}
/* The website's frame (web/site/build.mjs puts the app's colours in front of this as tokens): a header with the logo
   and the app's name, one column of content, a footer with the legal pages and the credits. Figtree for every word,
   Fraunces for the app's name alone. Light and dark follow the device. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/Figtree.8d3f31d656.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/Fraunces.8130e053bb.woff2) format("woff2"); }

:root {
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --muted: color-mix(in srgb, var(--ink) 68%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 13%, var(--bg));
  --soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --radius: 18px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 52px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.4vw, 28px); letter-spacing: -0.01em; }
h3 { font-size: 18px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: 720px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; padding-top: env(safe-area-inset-top, 0px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; display: block; }
.app-name { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; flex: none; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--soft); }
.top nav a.lang { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.top nav a.signin { background: var(--primary); color: var(--on-primary); }
.top nav a.signin:hover { background: color-mix(in srgb, var(--primary) 86%, #000); }
@media (max-width: 560px) { .top nav a.hide-phone { display: none; } .app-name { font-size: 18px; } }

main { flex: 1; }
main > section { padding: 48px 0; }
main > section + section { border-top: 1px solid var(--line); }

/* buttons and forms */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 999px; padding: 14px 22px; font: 600 16px/1.2 var(--sans); background: var(--soft); color: var(--ink); text-decoration: none;
  transition: background .15s, transform .05s; min-height: 48px; }
.btn:hover { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 86%, #000); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: color-mix(in srgb, #C2412D 12%, var(--surface)); color: #B3342E; }
.btn.danger.armed, .btn.danger:hover { background: #B3342E; color: #FFFFFF; }
.btn.apple { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.wide { width: 100%; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=email], input[type=text], input[type=search], select, textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px; min-height: 50px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.msg { min-height: 1.5em; font-size: 15px; color: var(--muted); }
.msg.bad { color: #B3342E; font-weight: 600; }
.msg.good { color: var(--primary); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the home page */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 22px; }
.hero .lead { font-size: clamp(19px, 2.4vw, 22px); color: var(--muted); max-width: 40ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--soft);
  font-weight: 600; font-size: 15px; }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.points .card h3 { margin-bottom: 6px; }
.points .card p { color: var(--muted); font-size: 16px; }
.newsbox { display: grid; gap: 14px; max-width: 560px; }
.newsbox form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsbox input[type=email] { flex: 1 1 240px; }
.newsbox .small { font-size: 14px; color: var(--muted); }

/* text pages (privacy, terms, support) */
.doc { padding: 40px 0 56px; }
.doc .wrap { display: grid; gap: 18px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 18px; font-size: 22px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .card h2 { margin-top: 0; }
.ticket { display: grid; gap: 16px; }
.ticket .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* the footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
.foot .wrap { display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--primary); }
.foot .credits { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot .credits a { color: var(--muted); }

/* the account page */
.acct { padding: 40px 0 64px; }
.acct .wrap { display: grid; gap: 18px; max-width: 560px; }
.acct .step { display: grid; gap: 16px; }
.acct .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.acct .or::before, .acct .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct .code { font: 600 28px/1 var(--sans); letter-spacing: .3em; text-align: center; }
.acct .who { display: flex; gap: 14px; align-items: center; }
.acct .who .face { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); display: grid; place-items: center;
  font: 700 22px/1 var(--sans); color: var(--primary); flex: none; }
.acct .who b { display: block; font-size: 19px; }
.acct .who span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.acct .seal { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: color-mix(in srgb, #C8A04A 22%, var(--surface)); color: color-mix(in srgb, #8A6A1E 80%, var(--ink)); }
.acct .seal.basic { background: var(--soft); color: var(--muted); }
.rows { display: grid; }
.rows > * { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows > *:first-child { border-top: 0; }
.rows .label { display: grid; gap: 2px; min-width: 0; }
.rows .label small { color: var(--muted); font-size: 14px; font-weight: 400; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.stack { display: grid; gap: 10px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* the account page's confirmation */
dialog.card { width: min(440px, calc(100% - 32px)); color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 24px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.notfound { padding: 72px 0; }
.notfound .wrap { display: grid; gap: 40px; }
.notfound [lang] { display: grid; gap: 14px; justify-items: start; }
#acct-view { display: grid; gap: 18px; }
.acct h2 { font-size: 20px; }
