/* Teilo website: warm receipt paper, deep teal and the apricot slice of the app icon. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2-variations"), url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --paper: #fffdf8;
  --muted: #efebe3;
  --edge: #e4ded3;
  --line: rgba(20, 24, 27, 0.1);
  --ink: #14181b;
  --ink-2: #353d44;
  --dim: #59626b;
  --accent: #0f766e;
  --accent-ink: #0d6b64;
  --on-accent: #ffffff;
  --accent-soft: #dcf2ee;
  --apricot: #f08a4b;
  --apricot-ink: #a24b16;
  --apricot-soft: #fde9db;
  --plum: #7c5cfa;
  --mint: #6fd9c2;
  --positive: #13795b;
  --glass: rgba(255, 253, 248, 0.74);
  --shadow: 0 18px 40px -20px rgba(10, 60, 55, 0.38), 0 2px 6px rgba(10, 60, 55, 0.08);
  /* Ring slices on light ground: apricot, teal, mint. */
  --r1: #f08a4b;
  --r2: #0f766e;
  --r3: #6fd9c2;
  /* Members of the example group, as in the app. */
  --p-n: #0c8599;
  --p-l: #d6336c;
  --p-m: #1c7ed6;
  --p-s: #f08c00;
  --round: ui-rounded, "Nunito", "SF Pro Rounded", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1214;
    --surface: #1a2023;
    --paper: #1d2427;
    --muted: #232b2f;
    --edge: #2d373c;
    --line: rgba(255, 255, 255, 0.1);
    --ink: #f0f3f2;
    --ink-2: #d3dbdc;
    --dim: #a8b3b8;
    --accent: #2dd4bf;
    --accent-ink: #2dd4bf;
    --on-accent: #062421;
    --accent-soft: #123632;
    --apricot: #ffa36e;
    --apricot-ink: #ffa36e;
    --apricot-soft: #3a2618;
    --plum: #a48bff;
    --positive: #4ade9b;
    --glass: rgba(29, 36, 39, 0.72);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35);
    --r1: #ffa36e;
    --r2: #2dd4bf;
    --r3: #b5f5e6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(240, 138, 75, 0.7); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--apricot); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Colour drifting through warm paper, like the background of the app. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.blob { position: absolute; border-radius: 50%; animation: drift 28s ease-in-out infinite alternate; }
.blob.b1 { width: 760px; height: 760px; left: -300px; top: -320px; background: radial-gradient(closest-side, rgba(15, 118, 110, 0.34), rgba(15, 118, 110, 0.14) 45%, transparent); }
.blob.b2 { width: 680px; height: 680px; right: -260px; top: -160px; background: radial-gradient(closest-side, rgba(240, 138, 75, 0.32), rgba(240, 138, 75, 0.12) 45%, transparent); animation-duration: 33s; }
.blob.b3 { width: 720px; height: 720px; left: 30%; top: 30%; background: radial-gradient(closest-side, rgba(124, 92, 250, 0.14), rgba(124, 92, 250, 0.05) 45%, transparent); animation-duration: 37s; }
.blob.b4 { width: 640px; height: 640px; right: -200px; bottom: -280px; background: radial-gradient(closest-side, rgba(15, 118, 110, 0.22), rgba(15, 118, 110, 0.08) 45%, transparent); animation-duration: 31s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.07); }
  100% { transform: translate(-40px, 70px) scale(0.96); }
}
@media (prefers-color-scheme: dark) { .backdrop { opacity: 0.75; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Header */
header.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 800; font-size: 22px; letter-spacing: -0.3px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3); }
nav.links { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
nav.links a { color: var(--ink-2); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
@media (max-width: 760px) { nav.links { display: none; } }
a.back { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
a.back:hover { color: var(--ink); }
/* Language switch, also visible on phones where the section links are hidden. */
a.lang {
  font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 8px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
}
a.lang:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 18px; }

/* Type */
h1, h2, h3 { font-family: var(--round); color: var(--ink); }
h1 { font-size: clamp(44px, 7vw, 74px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 22px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 750; margin: 0 0 6px; }
mark { color: inherit; background: none; position: relative; white-space: nowrap; z-index: 0; }
mark::before {
  content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.34em; z-index: -1;
  border-radius: 0.2em; background: linear-gradient(90deg, #ffc48a, #ff8a55); opacity: 0.55;
}
@media (prefers-color-scheme: dark) { mark::before { opacity: 0.4; } }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); margin: 0 0 28px; max-width: 33em; }
.sub { font-size: 18px; color: var(--dim); margin: 0 0 34px; max-width: 40em; }
p { margin: 0 0 12px; }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; }

/* Eyebrow: the ring of the icon and a short label, like a line on a receipt. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim);
}
.ring { width: 18px; height: 18px; flex: none; overflow: visible; }

/* Buttons: teal capsules as in the app */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  font: 700 16px/1 var(--round); text-decoration: none; color: var(--on-accent); background: var(--accent);
  box-shadow: 0 12px 26px -12px rgba(15, 118, 110, 0.7); transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.soon { cursor: default; }
.btn.soon:hover { transform: none; }
.btn.secondary { background: var(--glass); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.note { font-size: 14px; color: var(--dim); margin-top: 18px; }

/* Avatars: initials on the member colour. Decorative, the name always stands next to them. */
.av {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--c); box-shadow: 0 0 0 2px var(--paper); vertical-align: middle;
}
.av::before { content: attr(data-i); font: 800 11px/1 var(--round); color: #fff; }
.av.n { --c: var(--p-n); }
.av.l { --c: var(--p-l); }
.av.m { --c: var(--p-m); }
.av.s { --c: var(--p-s); }

/* Receipt paper with a torn, zigzag bottom edge. */
.receipt-wrap { filter: drop-shadow(0 16px 22px rgba(10, 60, 55, 0.16)) drop-shadow(0 2px 3px rgba(10, 60, 55, 0.08)); }
@media (prefers-color-scheme: dark) { .receipt-wrap { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55)); } }
.receipt {
  --zig: 9px;
  background: var(--paper); color: var(--ink); padding: 22px 22px calc(24px + var(--zig));
  border-radius: 14px 14px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.receipt .dots { border: 0; border-top: 2px dotted var(--edge); margin: 12px 0; }

/* Phone frame around a real screenshot (1206 x 2622) */
.phone {
  --w: 300px;
  position: relative; width: var(--w); padding: 9px; border-radius: 48px;
  background: linear-gradient(150deg, #3a3a3d 0%, #141416 22%, #1e1e21 60%, #0c0c0e 100%);
  box-shadow: inset 0 0 0 1.5px #55555a, inset 0 0 0 3px #0a0a0b, var(--shadow), 0 40px 70px -32px rgba(10, 60, 55, 0.45);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 39px; background: var(--bg); }
.phone::after {
  content: ""; position: absolute; left: 50%; top: calc(9px + (var(--w) - 18px) * 0.026);
  width: calc((var(--w) - 18px) * 0.29); height: calc((var(--w) - 18px) * 0.084);
  transform: translateX(-50%); border-radius: 999px; background: #050506;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 44px 0 30px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } }
.hero-art { position: relative; height: 650px; }
@media (max-width: 900px) { .hero-art { height: auto; display: flex; justify-content: center; padding: 10px 0 20px; } }
.hero-art .phone.front { position: absolute; right: 30px; top: 0; z-index: 2; }
.hero-art .phone.back { --w: 262px; position: absolute; right: 222px; top: 74px; transform: rotate(-7deg); z-index: 1; }
.hero-art .chip { position: absolute; z-index: 3; left: -30px; bottom: 26px; width: 214px; transform: rotate(-4deg); }
.hero-art .chip .receipt { padding: 16px 16px calc(18px + var(--zig)); font-size: 13px; }
/* Narrow two-column layout (iPad portrait, small laptops): the second phone would cover the headline. */
@media (min-width: 901px) and (max-width: 1119px) {
  .hero-art .phone.back { display: none; }
  .hero-art .phone.front { right: auto; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .hero-art .phone.front { position: relative; right: auto; top: auto; --w: min(300px, 76vw); }
  .hero-art .phone.back, .hero-art .chip { display: none; }
}
.chip .r-head { font: 800 15px/1.2 var(--round); letter-spacing: -0.01em; }
.chip .r-total { display: flex; justify-content: space-between; font-weight: 700; margin-top: 2px; }
.chip ul { list-style: none; margin: 0; padding: 0; }
.chip li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.chip li .av { width: 18px; height: 18px; }
.chip li .av::before { font-size: 9px; }
.chip li b { margin-left: auto; font-weight: 600; }
.chip .r-sum { color: var(--dim); font-size: 11.5px; margin-top: 8px; }

/* Sections */
section { padding: 64px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-right { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 900px) { .split, .split.wide-right { grid-template-columns: 1fr; gap: 30px; } }

/* Key facts on small receipts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 16px; }
@media (max-width: 980px) { .facts { grid-template-columns: 1fr 1fr; } }
/* Phones: two small receipts side by side instead of four long ones. */
@media (max-width: 520px) {
  .facts { gap: 12px; }
  .facts .receipt { padding: 16px 14px calc(18px + var(--zig)); }
  .facts .big { font-size: 25px; }
  .facts .tag { margin-bottom: 10px; }
  .facts p { font-size: 14px; }
}
@media (max-width: 340px) { .facts { grid-template-columns: 1fr; } }
.facts .receipt { height: 100%; font-family: var(--sans); padding-top: 20px; }
.facts .receipt-wrap { height: 100%; }
.facts .big { font: 800 34px/1.1 var(--round); letter-spacing: -0.02em; color: var(--accent-ink); margin-bottom: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts .tag { font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.facts p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 22px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  margin-bottom: 14px; font: 800 16px/1 var(--round); color: var(--on-accent); background: var(--accent);
}
.step p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* Splitting a bill item by item */
.bill { display: grid; grid-template-columns: 1fr 190px; gap: 22px; align-items: center; }
@media (max-width: 560px) { .bill { grid-template-columns: 1fr; } }
.bill .receipt { font-size: 14px; }
.bill .r-title { font: 800 18px/1.2 var(--round); letter-spacing: -0.01em; }
.bill .r-meta { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.bill ol { list-style: none; margin: 0; padding: 0; }
.bill li { display: grid; grid-template-columns: 1fr auto 62px; align-items: center; gap: 10px; padding: 6px 0; }
.bill .who { display: inline-flex; }
.bill .who .av { width: 20px; height: 20px; margin-left: -5px; }
.bill .who .av:first-child { margin-left: 0; }
.bill .who .av::before { font-size: 9.5px; }
.bill .amt { text-align: right; }
.bill .sum { display: flex; justify-content: space-between; color: var(--dim); }
.bill .total { display: flex; justify-content: space-between; font-weight: 800; font-size: 15.5px; margin-top: 6px; }
.tickets { display: grid; gap: 12px; }
.ticket {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); border-left: 4px solid var(--c);
}
.ticket.n { --c: var(--p-n); }
.ticket.l { --c: var(--p-l); }
.ticket.m { --c: var(--p-m); }
.ticket b { font: 750 16px/1 var(--round); }
.ticket span { font: 800 18px/1 var(--round); font-variant-numeric: tabular-nums; }
.bill-check { grid-column: 1 / -1; text-align: center; font: 600 14px/1.4 var(--mono); color: var(--dim); margin: 6px 0 0; }
/* The three shares come off the receipt one after the other. */
.anim .ticket { animation: tear 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.anim .ticket:nth-child(2) { animation-delay: 0.18s; }
.anim .ticket:nth-child(3) { animation-delay: 0.36s; }
@keyframes tear { from { opacity: 0; transform: translateX(-26px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.js .bill:not(.anim) .ticket { opacity: 0; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.mode { padding: 18px 18px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.mode h3 { font-size: 18px; margin-bottom: 4px; }
.mode p { color: var(--dim); font-size: 15px; margin: 0; }

/* Sharing over iCloud */
.share-art { display: flex; justify-content: center; }
.share-art .phone { --w: 290px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
.points div { padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.points p { color: var(--dim); font-size: 15px; margin: 0; }

/* Settle up: a working copy of the card in the app */
.settle { padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); max-width: 470px; margin: 0 auto; width: 100%; }
.settle-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.settle-head h3 { font-size: 20px; margin: 0; }
.settle-head .count { font-size: 14px; color: var(--dim); white-space: nowrap; }
.transfers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.transfers li {
  display: grid; grid-template-columns: auto auto auto auto auto 1fr; align-items: center; gap: 7px;
  padding: 11px 12px; border-radius: 14px; background: var(--muted); font-weight: 600; font-size: 15px;
}
.transfers .to { color: var(--apricot-ink); font-weight: 800; }
.transfers b { justify-self: end; font: 800 16px/1 var(--round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.settle-note { color: var(--dim); font-size: 13px; margin: 10px 2px 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 16px; background: var(--muted); cursor: pointer; }
.toggle-row strong { display: block; font-size: 15.5px; }
.toggle-row small { display: block; color: var(--dim); font-size: 13px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: #c9c3b8; flex: none; transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease; }
@media (prefers-color-scheme: dark) { .switch { background: #4a555b; } }
#simplify:checked ~ .toggle-row .switch { background: var(--accent); }
#simplify:checked ~ .toggle-row .switch::after { transform: translateX(20px); }
#simplify:focus-visible ~ .toggle-row .switch { outline: 3px solid var(--accent); outline-offset: 3px; }
#simplify:checked ~ .direct, #simplify:checked ~ * .direct,
#simplify:not(:checked) ~ .simple, #simplify:not(:checked) ~ * .simple { display: none; }
.transfers li { animation: row-in 0.35s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.settle-list { list-style: none; padding: 0; margin: 26px 0 0; }
.settle-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
.settle-list li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--apricot); }

/* Statistics */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .insights { grid-template-columns: 1fr; } }
.insights div { position: relative; padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.insights p { color: var(--dim); font-size: 15px; margin: 0; }
.insights .tag { position: absolute; right: 14px; top: 14px; }
.tag { display: inline-block; font: 800 11px/1 var(--round); letter-spacing: 0.05em; padding: 5px 8px; border-radius: 999px; color: var(--accent-ink); background: var(--accent-soft); }
.tag.pro { color: var(--apricot-ink); background: var(--apricot-soft); }
.insights h3 { padding-right: 56px; }

/* Screenshot gallery */
.gallery {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  --inset: max(22px, calc(50vw - 538px));
  margin: 0 calc(-1 * var(--inset)); padding: 10px var(--inset) 34px; scroll-padding-inline: var(--inset);
}
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; }
.gallery .phone { --w: 232px; padding: 8px; border-radius: 38px; }
.gallery .phone img { border-radius: 31px; }
.gallery .phone::after { top: calc(8px + (var(--w) - 16px) * 0.026); width: calc((var(--w) - 16px) * 0.29); height: calc((var(--w) - 16px) * 0.084); }
.gallery figcaption { font-size: 14px; font-weight: 600; color: var(--dim); text-align: center; margin-top: 14px; }

/* The Mac app: a real window screenshot with its own shadow */
.mac-head { max-width: 46em; }
.mac-art { max-width: 980px; margin: 6px auto 0; }
.mac-art img { width: 100%; height: auto; filter: drop-shadow(0 28px 36px rgba(10, 60, 55, 0.26)) drop-shadow(0 2px 5px rgba(10, 60, 55, 0.12)); }
@media (prefers-color-scheme: dark) { .mac-art img { filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25)); } }
.mac-points { list-style: none; padding: 0; margin: 34px auto 0; max-width: 980px; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .mac-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mac-points { grid-template-columns: 1fr; } }
.mac-points li { padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.mac-points .tag { margin-left: 6px; vertical-align: 1px; }
kbd {
  font: 600 13px/1 var(--mono); padding: 3px 6px; border-radius: 6px; white-space: nowrap; color: var(--ink);
  background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 1px 0 var(--edge);
}

/* Extras as a two-column list */
.extras { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 760px) { .extras { columns: 1; } }
.extras li { break-inside: avoid; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.extras li::before { content: ""; position: absolute; left: 6px; top: 20px; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--mint)); transform: rotate(45deg); }
.extras .tag { margin-left: 6px; vertical-align: 1px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.plan { padding: 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.plan.pro {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #18a394, #0f766e 45%, #ff8a55) border-box;
}
.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plan-head img { width: 52px; height: 52px; border-radius: 12px; }
.plan h3 { font-size: 26px; margin: 0; }
.plan .price { color: var(--dim); font-size: 15px; margin: 2px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 15.5px; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 3px; top: 9px; font-weight: 800; color: var(--accent-ink); }
.plan-foot { color: var(--dim); font-size: 14px; margin: 16px 0 0; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }
.privacy div { padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.privacy p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* FAQ */
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; font-weight: 400; color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* Support */
.support { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.support h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 6px; }
.support p { color: var(--dim); margin: 0; max-width: 36em; }

/* Footer */
footer { padding: 40px 0 54px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer .cols { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dim); margin-right: 18px; text-decoration: none; }
footer a:hover { color: var(--ink); }
footer a.home { margin-right: 0; text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; }

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; }
article {
  background: var(--glass); border: 1px solid var(--line); border-radius: 26px; padding: 40px; margin-bottom: 20px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
@media (max-width: 560px) { article { padding: 24px 20px; border-radius: 20px; } }
article h1 { font-size: clamp(36px, 6vw, 50px); margin-bottom: 8px; }
article h2 { font-size: 23px; margin: 36px 0 10px; letter-spacing: -0.01em; }
article .meta { color: var(--dim); font-size: 14px; margin-bottom: 8px; }
article .lang { color: var(--dim); font-size: 14px; margin-bottom: 26px; }
article p, article li { font-size: 16px; color: var(--ink-2); }
article ul { padding-left: 20px; margin: 0 0 12px; }
article li { margin-bottom: 7px; }
article strong { color: var(--ink); }
.summary { padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--edge); border-left: 4px solid var(--accent); margin-bottom: 8px; }
.summary p { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
td { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Narrow screens: each row as a small block, no sideways scrolling. */
@media (max-width: 560px) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  td { padding: 2px 0; border: 0; }
  td:first-child { color: var(--ink); font-weight: 600; }
}
dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0 0 12px; }
@media (max-width: 520px) { dl { grid-template-columns: 1fr; gap: 2px; } dd { margin-bottom: 10px; } }
dt { color: var(--dim); font-size: 15px; }
dd { margin: 0; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .transfers li, .anim .ticket { animation: none; }
  .js .bill:not(.anim) .ticket { opacity: 1; }
  .btn, .switch, .switch::after { transition: none; }
}
