/* Palette sampled from the app icon: paper #F7F4ED / ink #1E1E1B background,
   teal sphere #06C8B8, and the blue→pink edge of the sliced ribbon. */
:root {
  --bg: #f7f4ed;
  --bg-2: #efeadf;
  --card: #fffdf8;
  --line: #e2dbcc;
  --text: #1c1b18;
  --muted: #6a665c;
  --teal: #06c8b8;
  --teal-deep: #07a194;
  --ink: #00786b;          /* teal dark enough for text on paper */
  --blue: #2e6bf5;
  --pink: #f0479b;
  --ribbon: linear-gradient(90deg, var(--blue), var(--pink));
  --radius: 22px;
  --serif: "Iowan Old Style", "New York", ui-serif, Georgia, "Songti TC", "Noto Serif TC", "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif KR", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Hiragino Sans", "Noto Sans TC", "Noto Sans", system-ui, sans-serif;
  /* Mock app screens use the app's Paper / PaperCard colors (Assets.xcassets). */
  --s-bg: #f7f4ed; --s-card: #fffdf8; --s-text: #111; --s-muted: #8a8a8e; --s-line: #e3e3e8; --s-tint: #009686; --s-toolbar: #000;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1e1b;
    --bg-2: #252522;
    --card: #2b2b28;
    --line: #3a3935;
    --text: #eeebe3;
    --muted: #a8a398;
    --teal: #06d5c5;
    --ink: #3fe0d0;
    --s-bg: #1e1e1b; --s-card: #2b2b28; --s-text: #f2f2f7; --s-muted: #8e8e93; --s-line: #2c2c2e; --s-tint: #00c8b3; --s-toolbar: #00c8b3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Paper grain, like the icon's texture. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.centered { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; letter-spacing: .08em; font-size: .8rem; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--ribbon); }

/* Line icons: SVG files used as masks so they take the text color. */
.ic {
  display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.ic.accent { color: var(--s-tint); }
.ic.dim { opacity: .35; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--teal) 16%, var(--card)); color: var(--ink);
  font-size: 1.35rem; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
}
.feature-icon.sm { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; margin-bottom: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav nav a { color: var(--muted); font-size: .95rem; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }

/* Language menu */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--text); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20;
  display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px;
  padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.lang-menu a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.lang-menu a:hover { background: var(--bg-2); text-decoration: none; }
.lang-menu a[aria-current] { color: var(--ink); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--teal); color: #032a26; font-weight: 700;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--teal) 35%, transparent), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-small { padding: 8px 18px; font-size: .9rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.glass {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.hero-art { position: relative; justify-self: center; width: min(560px, 100%); }
/* The icon's flat background equals --bg, so a soft mask hides the square. */
.sphere {
  display: block; width: 100%;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
  mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .sphere { animation: none; } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; font-size: .9rem; max-width: 260px; line-height: 1.35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.chip b { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.chip-a { top: 16%; inset-inline-start: -2%; }
.chip-b { bottom: 14%; inset-inline-end: 0; }
.hero-center { padding-bottom: 56px; }
.hero-center .lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero-center .tabs { margin: 32px 0 0; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid.tight { gap: 12px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid.tight .card { padding: 18px 20px; border-radius: 16px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Feature rows */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: .95rem; }
.tabs a .ic { color: var(--ink); }
.tabs a:hover { border-color: var(--teal); text-decoration: none; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; scroll-margin-top: 72px; }
.feature:nth-of-type(even) .feature-art { order: -1; }
.lead-sm { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 26px; }
.checks li { position: relative; padding-inline-start: 32px; margin-bottom: .7em; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("/static/icons/check.svg") center / 13px no-repeat;
}
.more { font-weight: 600; }
.feature-art { position: relative; display: grid; place-items: center; min-width: 0; }
.feature-art::before {
  content: ""; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--teal) 42%, transparent), color-mix(in srgb, var(--teal) 10%, transparent) 62%, transparent 72%);
}
.feature-art::after {
  content: ""; position: absolute; width: min(500px, 100%); height: 4px; border-radius: 4px; top: 54%;
  background: var(--ribbon); transform: rotate(-14deg); opacity: .75;
}
.fsec { scroll-margin-top: 64px; }
.fsec-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.fsec:not(.alt) .fsec-grid > .feature-art { order: -1; }
.privacy-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }

/* ---------- Mock devices ---------- */
.mock { position: relative; z-index: 1; margin: 0; display: grid; justify-items: center; gap: 18px; }
.phone {
  width: min(290px, 76vw); aspect-ratio: 290 / 600; padding: 9px; border-radius: 48px;
  background: #121211; box-shadow: 0 40px 80px -20px rgba(20, 30, 28, .45), inset 0 0 0 1.5px #3a3a37;
}
.screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  font: 12px/1.45 var(--sans); color: var(--s-text); background: var(--s-bg); text-align: start;
}
.screen::before { /* dynamic island */
  content: ""; position: absolute; top: 11px; left: 50%; translate: -50% 0; z-index: 5;
  width: 82px; height: 24px; border-radius: 14px; background: #000;
}
.screen .glass { background: color-mix(in srgb, var(--s-card) 70%, transparent); border-color: color-mix(in srgb, var(--s-text) 8%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.round { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; }

/* Reader */
.mock-reader .theme-pick { order: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.theme-pick label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem;
  padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}
.theme-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-pick label:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 40%, transparent); }
.theme-pick label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.sw1 { background: #fff; } .sw2 { background: #f4ecd8; } .sw3 { background: #14161a; } .sw4 { background: #000; }
/* Theme colors are ReaderTheme.swift's values. */
.reader { --r-bg: #f4ecd8; --r-text: #43341f; --r-muted: #7c6a4c; background: var(--r-bg); color: var(--r-text); transition: background .3s, color .3s; }
.mock-reader:has(input[value="1"]:checked) .reader { --r-bg: #fff; --r-text: #1f2328; --r-muted: #656d76; }
.mock-reader:has(input[value="3"]:checked) .reader { --r-bg: #14161a; --r-text: #c9ccd1; --r-muted: #8a9099; }
.mock-reader:has(input[value="4"]:checked) .reader { --r-bg: #000; --r-text: #c9ccd1; --r-muted: #8a9099; }
.reader .glass { background: color-mix(in srgb, var(--r-text) 9%, var(--r-bg)); border-color: color-mix(in srgb, var(--r-text) 12%, transparent); color: var(--r-text); }
.r-top {
  position: absolute; top: 46px; inset-inline: 10px; z-index: 2; height: 36px; padding: 0 12px; border-radius: 18px;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
}
.r-top b { flex: 1; text-align: center; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-page { height: 100%; padding: 94px 22px 100px; font: 14px/2 var(--serif); overflow: hidden; }
.r-page p { margin: 0 0 .8em; text-indent: 2em; text-align: justify; }
/* TabCountIcon: the tab count inside a rounded box */
.tabcount { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.3px solid currentColor; border-radius: 4px; font-size: 8.5px; font-weight: 700; line-height: 1; }

/* Library + toolbar */
.lib { padding: 52px 14px 0; height: 100%; position: relative; }
.shortcuts { display: flex; justify-content: space-between; margin-bottom: 18px; }
.sc { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.sc1 { background: #e85d4f; } .sc2 { background: #3a3a3c; } .sc3 { background: #2e6bf5; } .sc4 { background: #f0a43a; }
.sc.add { background: var(--s-card); color: var(--s-muted); border: 1px dashed var(--s-line); font-size: 15px; }
.lib-h { font-weight: 700; font-size: 13px; margin: 0 0 8px; }
.cont { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.cont.one { grid-template-columns: 1fr; }
.cont-card { background: var(--s-card); border-radius: 12px; padding: 10px 11px; display: grid; gap: 1px; min-width: 0; min-height: 76px; align-content: start; }
.cont-card b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-card small { font-size: 9.5px; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-card .chap { margin-top: 12px; }
.bar { height: 3px; border-radius: 3px; background: var(--s-line); overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--s-tint); }
.lib-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.lib-bar b { font-size: 14px; margin-inline-end: auto; }
.lib-bar .ic { font-size: 15px; }
.seg { display: flex; background: var(--s-line); border-radius: 999px; padding: 2px; }
.seg span { text-align: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; color: var(--s-text); white-space: nowrap; }
.seg .on { background: color-mix(in srgb, var(--s-text) 18%, var(--s-card)); }
.rows { list-style: none; margin: 0; padding: 0 2px; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 12px; }
.rows li .ic { font-size: 15px; color: var(--s-muted); }
.rows li span { flex: 1; }
.rows small { color: var(--s-muted); }
.fab { position: absolute; bottom: 104px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--s-tint); color: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.toolbar {
  position: absolute; bottom: 0; inset-inline: 0; padding: 8px 14px 20px; z-index: 3;
  background: color-mix(in srgb, var(--s-bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.addr { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.addr .field { flex: 1; padding: 8px 10px; border-radius: 999px; font-size: 10.5px; color: var(--s-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Toolbar icons follow the app's ToolbarIcon color: black in light, teal in dark. */
.tb-row { display: flex; justify-content: space-around; padding-top: 10px; font-size: 16px; color: var(--s-toolbar); }

/* Comic */
.comic { background: #0b0b0b; }
.c-page {
  position: absolute; inset: 48px 10px 92px; background: #f4f1ea; padding: 6px;
  display: grid; gap: 5px; grid-template: "a a" 34% "b c" 30% "d d" 1fr / 1.1fr .9fr;
}
.panel { position: relative; overflow: hidden; border: 2px solid #141414; background: #fff; }
.p1 { grid-area: a; background: linear-gradient(#06c8b8 0 45%, #bff2ec 70%, #f4f1ea); }
.sun { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: #f4f1ea; top: 14px; right: 26px; box-shadow: 0 0 0 6px rgba(244, 241, 234, .35); }
.hill { position: absolute; bottom: 0; background: #141414; }
.h1 { left: -10%; width: 70%; height: 46%; clip-path: polygon(0 100%, 45% 10%, 100% 100%); }
.h2 { right: -6%; width: 60%; height: 64%; clip-path: polygon(0 100%, 55% 0, 100% 100%); background: #07786d; }
.p2 { grid-area: b; background: radial-gradient(#141414 1.1px, transparent 1.4px) 0 0 / 6px 6px, #fff; }
.bubble { position: absolute; top: 10px; left: 10px; right: 12px; padding: 9px 10px; background: #fff; border: 2px solid #141414; border-radius: 50%; display: grid; gap: 4px; }
.bubble::after { content: ""; position: absolute; bottom: -9px; left: 26%; width: 12px; height: 12px; background: #fff; border-right: 2px solid #141414; border-bottom: 2px solid #141414; transform: skewX(30deg) rotate(45deg); }
.bubble i { display: block; height: 3px; border-radius: 3px; background: #141414; margin: 0 8%; }
.bubble i + i { margin-right: 30%; }
.bubble.small { top: 8px; left: auto; width: 42%; right: 10px; }
.p3 { grid-area: c; background: repeating-conic-gradient(from 0deg at 50% 60%, #fff 0 6deg, #e9e5dc 6deg 12deg); }
.figure { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; width: 46px; height: 62px; background: #141414; border-radius: 22px 22px 6px 6px; }
.figure::before { content: ""; position: absolute; top: -26px; left: 8px; width: 30px; height: 30px; border-radius: 50%; background: #141414; box-shadow: inset -6px -4px 0 #06c8b8; }
.p4 { grid-area: d; background: linear-gradient(#0b3e39, #07786d); }
.rain { position: absolute; inset: 0; background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(255, 255, 255, .28) 9px 10px); }
/* Bottom panel shared by the novel and comic readers (one piece of glass, like the app):
   seek line, divider, then settings-type controls · tabs · progress. */
.bar-panel { position: absolute; bottom: 14px; inset-inline: 10px; z-index: 2; border-radius: 18px; padding: 10px 14px 9px; }
.seek-line { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); }
.seek-line span { display: block; height: 100%; border-radius: 3px; background: color-mix(in srgb, currentColor 72%, transparent); }
.bar-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 9px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); font-size: 10.5px; }
.bar-left { display: inline-flex; align-items: center; gap: 12px; }
.bar-left .aa { font-size: 13px; font-weight: 500; }
.bar-row .num { justify-self: end; font-variant-numeric: tabular-nums; }
.comic .bar-panel { color: #e6e6e6; background: rgba(40, 40, 40, .72) !important; border-color: rgba(255, 255, 255, .1) !important; }
.comic .bar-left { gap: 5px; }

/* Tab switcher */
.tabs-screen { background: color-mix(in srgb, var(--s-line) 60%, var(--s-bg)); }
.tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 52px 14px 0; }
.tab-card { display: grid; gap: 5px; min-width: 0; }
.tab-card small { font-size: 9.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { position: relative; aspect-ratio: 3 / 4.1; border-radius: 12px; overflow: hidden; background: var(--s-card); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.th-read { background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(67, 52, 31, .3) 8px 10px) 12px 26px / calc(100% - 24px) 70% no-repeat, #f4ecd8; }
.badge { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 3px 7px; border-radius: 999px; background: var(--s-tint); color: #fff; font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.th-lib {
  background:
    radial-gradient(circle, #e85d4f 0 7px, transparent 7.5px) 10% 14% / 25% 20% no-repeat,
    radial-gradient(circle, #3a3a3c 0 7px, transparent 7.5px) 38% 14% / 25% 20% no-repeat,
    radial-gradient(circle, #2e6bf5 0 7px, transparent 7.5px) 66% 14% / 25% 20% no-repeat,
    linear-gradient(150deg, #06c8b8, #07786d) 10% 48% / 38% 26% no-repeat,
    linear-gradient(150deg, #2e3a8f, #f0479b) 88% 48% / 38% 26% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 10px, var(--s-line) 10px 11px) 50% 92% / 80% 22% no-repeat,
    var(--s-card);
}
.th-news {
  background:
    linear-gradient(var(--s-text), var(--s-text)) 12px 14px / 50% 6px no-repeat,
    linear-gradient(135deg, #f0a43a, #e85d4f) 12px 30px / calc(100% - 24px) 34% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 8px, var(--s-line) 8px 10px) 12px 76% / calc(100% - 24px) 34% no-repeat,
    var(--s-card);
}
.th-wiki {
  background:
    linear-gradient(var(--s-text), var(--s-text)) 12px 14px / 40% 7px no-repeat,
    linear-gradient(#cfd8e6, #a9b8d1) calc(100% - 12px) 32px / 34% 30% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 8px, var(--s-line) 8px 10px) 12px 32px / 48% 64% no-repeat,
    var(--s-card);
}
.tab-bar { position: absolute; bottom: 20px; inset-inline: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.picker { display: flex; padding: 3px; border-radius: 999px; font-size: 9.5px; font-weight: 600; min-width: 0; }
.picker span { padding: 6px 9px; border-radius: 999px; color: var(--s-muted); white-space: nowrap; }
.picker .on { background: var(--s-card); color: var(--s-text); }
.done { background: var(--s-tint); color: #fff; }

/* Blocking sheet */
.mock-sheet { justify-self: center; }
.sheet { width: min(320px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .3); font-size: .95rem; }
.sheet-site { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sheet-site .ic { color: var(--ink); }
.sheet-count { margin: 14px 0 16px; color: var(--muted); line-height: 1.3; }
.sheet-count b { display: block; font: 700 3.2rem/1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sheet-row.action { justify-content: flex-start; gap: 8px; color: var(--ink); font-weight: 600; }
.toggle { flex: none; width: 42px; height: 26px; border-radius: 13px; background: var(--line); position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.toggle.on { background: var(--teal); }
.toggle.on::after { inset-inline-start: 18px; }

/* Sync */
.mock-sync { display: block; position: relative; width: min(440px, 100%); aspect-ratio: 440 / 330; }
.tablet { position: absolute; top: 0; inset-inline-start: 0; width: 78%; aspect-ratio: 4 / 3; padding: 8px; border-radius: 26px; background: #121211; box-shadow: 0 30px 60px -20px rgba(20, 30, 28, .45), inset 0 0 0 1.5px #3a3a37; }
.tablet .screen { border-radius: 19px; }
.tablet .screen::before, .phone.small .screen::before { display: none; }
.screen.mini { padding: 18px 16px; }
.phone.small { position: absolute; bottom: 0; inset-inline-end: 0; width: 29%; border-radius: 26px; padding: 6px; }
.phone.small .screen { border-radius: 21px; padding: 18px 8px; }
.phone.small .cont-card { min-height: 0; }
.sync-badge { position: absolute; top: 18%; inset-inline-end: 6%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #032a26; font-size: 1.3rem; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: start; }
tr:last-child td { border-bottom: 0; }
thead th { font-size: .95rem; background: var(--bg-2); }
thead th.us { color: var(--ink); white-space: nowrap; }
thead th.us img { border-radius: 6px; vertical-align: -5px; margin-inline-end: 4px; }
td.us { background: color-mix(in srgb, var(--teal) 9%, transparent); }
.yes { color: var(--ink); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
#faq details { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--card); }
#faq details + details { margin-top: 12px; }
#faq summary { cursor: pointer; font-weight: 600; }
#faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA */
.cta-card {
  position: relative; overflow: hidden; text-align: center; padding: 64px 28px; border-radius: 32px;
  background: var(--card); border: 1px solid var(--line);
}
.cta-card::before { content: ""; position: absolute; inset: auto -10% 18% -10%; height: 4px; background: var(--ribbon); transform: rotate(-6deg); opacity: .5; }
.cta-card > * { position: relative; }
.cta-card img { border-radius: 22%; box-shadow: 0 16px 40px rgba(0, 0, 0, .15); margin-bottom: 20px; }
.cta-card p { color: var(--muted); margin-bottom: 28px; }

/* Legal pages */
.legal { max-width: 780px; padding: 64px 20px 96px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.4em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); }
.legal table { min-width: 0; font-size: .95rem; }
.legal th, .legal td { text-align: start; vertical-align: top; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a:not(.brand) { display: block; color: var(--text); margin-bottom: 8px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 20px; margin-top: 40px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-bottom a { color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid, .feature, .fsec-grid, .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { width: min(400px, 100%); }
  .feature:nth-of-type(even) .feature-art, .fsec:not(.alt) .fsec-grid > .feature-art { order: 0; }
  .feature { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav nav { gap: 14px; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .chip { font-size: .8rem; padding: 9px 12px; max-width: 200px; }
  .chip-a { top: 6%; inset-inline-start: 0; }
  .chip-b { bottom: 6%; }
}
@media (max-width: 480px) {
  .nav nav { display: none; }
  .nav { gap: 12px; }
  .lang { margin-inline-start: auto; }
  .lang summary .lang-name { display: none; }
  .lang-menu { position: fixed; top: 64px; inset-inline: 16px; grid-template-columns: 1fr 1fr; }
}
