/* Kimochi's own site (kimochi.fyi), in the extension's palette (kimochi/src/popup.css): its pink accent, system font,
   pill buttons and 14px cards, light and dark with the system. Its example animates even with Reduce motion on: it is
   small and short. */
:root { --bg: #fff; --surface: #f7f6f6; --card: #f2f2f3; --line: #e2e0e1; --fg: #0f0f0f; --muted: #595959; --track: #d5d5d5;
  --ring: #d23a6c; --button: #0000000d; --button-hover: #0000001a; --button-line: #0000000f;
  --accent: #d23a6c; --accent-hover: #bf2f5f; --on-accent: #fff; --accent-text: #b8295a; --accent-soft: #fde7ef; --warn: #805600; --ok: #1d7a46;
  --danger: #b3261e; color-scheme: light dark; }
/* Dark Reader leaves the site alone: every page asks it to (darkreader-lock, kimochi/site/build.mjs), which its Dynamic
   mode heeds. Its Filter modes don't, but when told to skip dark sites they take a dark colour scheme as one. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #161616; --surface: #1b1b1b; --card: #242424; --line: #333; --fg: #ededed; --muted: #a3a3a3; --track: #525252; --ring: #ff8fb3;
    --button: #1c1c1c; --button-hover: #303030; --button-line: #626262; --accent-hover: #e0477a; --accent-text: #ff8fb3; --accent-soft: #3a1b26; --warn: #f2cb74; --ok: #6fd19b; --danger: #ff8a80; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
img, svg { display: block; }
svg { flex-shrink: 0; }
:is(a, button, input):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
main { flex: 1; }
[hidden] { display: none !important; }
.error { margin-top: 14px; color: var(--danger); font-size: 14px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header and footer */
.header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.headerRow { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: auto; font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.brand svg { width: 28px; height: 28px; }
.navLink { font-size: 14px; font-weight: 500; color: var(--muted); }
.navLink:hover { color: var(--fg); }
.footer { margin-top: auto; border-top: 1px solid var(--line); }
.footerRow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 26px 32px; color: var(--muted); font-size: 13px; }
.footerRow .brand { font-size: 14px; margin-inline-end: auto; color: var(--fg); }
.footerRow .brand svg { width: 20px; height: 20px; }
.footerRow a:hover { color: var(--fg); }

/* Buttons */
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px; border: 1px solid var(--button-line); border-radius: 999px; background: var(--button); color: var(--fg); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary:hover:not(:disabled) { background: var(--button-hover); }
.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.large { min-height: 48px; padding: 0 26px; font-size: 15px; }
.wide { width: 100%; }
.primary svg, .secondary svg { width: 18px; height: 18px; flex: none; }
.link { padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; padding-block: 56px 64px; }
.kicker { color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 750; letter-spacing: -1.6px; }
.lead { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }
/* The kinds of comic Kimochi reads, in the pink the site's text uses, lighter on dark so that it stays easy to read.
   The headline stays in one colour. */
.pink { color: var(--accent-text); font-weight: 500; }
.supports { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 15px; font-weight: 600; }
.supports svg { width: 18px; height: 18px; color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.fine { margin-top: 16px; color: var(--muted); font-size: 13px; }

/* The example: one image with Kimochi's mark at its top left, as the extension shows it, and a tab for each kind of comic. */
.showcase { display: grid; gap: 14px; }
.frame { position: relative; aspect-ratio: 960 / 1364; overflow: hidden; border-radius: 14px; background: var(--card); box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .4), 0 0 0 1px var(--line); }
/* The page shown fades in on top of the one it replaces, which stays whole underneath until it is covered, so the page
   never dims as two half-faded images let the frame through. */
.frame img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s; }
.frame img[data-hidden=true] { z-index: 0; opacity: 0; transition: opacity 0s .35s; }
.scan { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.scan::before { content: ''; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, color-mix(in srgb, #d23a6c 22%, transparent) 50%, transparent); animation: sweep 1.6s ease-in-out infinite; }
@keyframes sweep { from { top: -40%; } to { top: 100%; } }
.mark { position: absolute; z-index: 2; top: 8px; left: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; transition: transform .15s; }
.mark:hover { transform: scale(1.08); }
.disc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d23a6c; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, .35); transition: background .2s; }
.disc svg { width: 17px; height: 17px; margin-top: 1px; }
/* Once translated, the disc shows the language it translated to; a longer code makes it a pill. */
.translatedTo .disc { width: auto; min-width: 28px; padding: 0 6px; border-radius: 14px; background: #111; }
.translatedTo .disc b { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; line-height: 1; }
/* The ring around the mark while a page translates, as in the extension (kimochi/src/overlay.css). */
.ring { position: absolute; inset: 0; width: 36px; height: 36px; transform: rotate(-90deg); fill: none; stroke-width: 2.4; }
.ring circle { stroke: rgba(210, 58, 108, .25); }
.ring circle + circle { stroke: #d23a6c; stroke-linecap: round; stroke-dasharray: 100; animation: fill 1.6s ease-out forwards; }
@keyframes fill { from { stroke-dashoffset: 92; } to { stroke-dashoffset: 8; } }
/* What Kimochi is doing while the example plays, at the top left beside the mark. */
.demoNote { position: absolute; z-index: 2; top: 10px; left: 50px; margin: 0; padding: 8px 12px; background: #fff; color: #0f0f0f; font-size: 14px; font-weight: 600; line-height: 1.2; box-shadow: 0 3px 12px rgba(0, 0, 0, .22); }
.tabs { display: flex; justify-self: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); }
.tabs button { min-height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected=true] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
/* The demo's hand: it waits under the mark, bobs twice, reaches up and presses it, then fades away. */
.clicker { position: absolute; z-index: 3; top: 44px; left: 10px; pointer-events: none; animation: tap 2.2s ease-in-out forwards; }
.clicker svg { width: 34px; height: 34px; fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
@keyframes tap { 0% { opacity: 0; transform: translate(0, 0); } 8% { opacity: 1; transform: translate(0, 0); } 22% { transform: translate(0, -7px); } 36% { transform: translate(0, 0); } 50% { transform: translate(0, -7px); } 64% { transform: translate(0, 0); } 76% { transform: translate(-2px, -8px); } 84% { transform: translate(-2px, -8px) scale(.82); } 94% { transform: translate(-2px, -8px) scale(1); } 100% { opacity: 1; transform: translate(-2px, -8px); } }
.leave { animation: away .45s ease-in forwards; }
@keyframes away { from { opacity: 1; transform: translate(-2px, -8px); } to { opacity: 0; transform: translate(-2px, 8px); } }
/* The click: one ring spreads from the mark. */
.press::before { content: ''; position: absolute; inset: 4px; border: 2px solid #d23a6c; border-radius: 50%; pointer-events: none; animation: pulse-once .6s ease-out forwards; }
@keyframes pulse-once { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 8px 0 28px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 750; letter-spacing: -.8px; line-height: 1.15; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--card); }
.way h3 { margin: 18px 20px 6px; font-size: 16px; font-weight: 650; }
.way p { margin: 0 20px 20px; color: var(--muted); font-size: 14px; }
.scene { position: relative; height: 212px; overflow: hidden; background: #222 center top / cover no-repeat; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .12)); }
.scene .mark { top: 14px; left: 14px; }
/* The pointing hand that clicks in the drawings. */
.hand { position: absolute; z-index: 3; width: 30px; height: 30px; fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
/* The browser's toolbar, with the page's address and Kimochi's button, and under it Kimochi's toolbar popup as it is now
   (kimochi/src/popup.html, popup.css), a little smaller: kimochi with its settings and its switch, the dark Translate
   chapter with its green strip, and the Language card a shade off the popup, closer to the button than the popup's
   other parts. */
.toolbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 10px; background: #f1f3f4; border-bottom: 1px solid #dadce0; }
.toolbar span { flex: 1; min-width: 0; height: 24px; padding: 0 11px; overflow: hidden; border-radius: 999px; background: #fff; color: #5f6368; font: 11px/24px system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.toolbar i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: #dfe3e8; }
.toolbar i svg { width: 17px; height: 17px; }
.popup { position: absolute; z-index: 2; top: 44px; right: 10px; display: grid; gap: 14px; width: 250px; padding: 13px; border-radius: 12px; background: #fff; color: #0f0f0f; font: 11px/1.2 system-ui, sans-serif; box-shadow: 0 8px 26px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06); }
.popupBrand { display: flex; align-items: center; gap: 7px; height: 22px; }
.popupBrand > svg:first-child { width: 21px; height: 21px; }
.popupBrand b { margin-inline-end: auto; font-size: 13.5px; font-weight: 750; letter-spacing: -.3px; }
.popupBrand .sliders { width: 15px; height: 15px; margin-inline-end: 4px; fill: none; stroke: #595959; stroke-width: 2; stroke-linecap: round; }
.popupBrand em { position: relative; width: 25px; height: 13px; border-radius: 999px; background: #0f0f0f; }
.popupBrand em::after { content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.popupButton { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; border-radius: 999px; background: #2a2a2e; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-weight: 600; }
.popupButton svg { width: 13px; height: 13px; fill: #4ade80; }
.popupRow { display: flex; align-items: center; gap: 8px; min-height: 37px; margin-top: -4px; padding: 0 9px 0 11px; border-radius: 10px; background: #f2f2f3; color: #595959; }
.popupRow span { margin-inline-end: auto; }
.popupRow b { color: #0f0f0f; font-weight: 500; }
.popupRow svg { width: 13px; height: 13px; fill: none; stroke: #595959; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* On a chapter's page, the mark's two choices under it, as wide as each other (kimochi/src/overlay.css, .choice):
   Translate image with a blue picture, and Translate chapter with a green strip of panels. */
.choices { position: absolute; z-index: 2; top: 58px; left: 18px; display: grid; gap: 7px; }
.choice { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 10px; border-radius: 999px; background: #2a2a2e; color: #fff; box-shadow: 0 0 0 1px #fff, 0 1px 3px rgba(0, 0, 0, .4); font: 600 12.5px/1 system-ui, sans-serif; white-space: nowrap; }
.choice svg { width: 16px; height: 16px; fill: currentColor; color: #66adff; }
.choice + .choice svg { color: #4ade80; }
.point p { color: var(--muted); font-size: 14px; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.chapter > div > p { color: var(--muted); font-size: 16px; }
.checks { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: 15px; }
.checks li b { color: var(--fg); font-weight: 600; }
.checks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* A webtoon's chapter in a browser window, its first page translated and the next translating, and Translate chapter's
   status at the foot of the window, as in the extension (kimochi/src/overlay.css, .pill): Translating chapter over how
   far it got, Stop, and a pink line along its foot that fills as it goes. */
.reader { position: relative; height: 520px; overflow: hidden; border-radius: 16px; background: #16161a; box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.readerBar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 14px; background: #202027; }
.readerBar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3d3d47; }
.readerBar span { flex: 1; min-width: 0; height: 24px; margin-inline-start: 8px; padding: 0 12px; overflow: hidden; border-radius: 999px; background: #2c2c35; color: #a1a1ad; font-size: 11px; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.readerBar svg { width: 20px; height: 20px; margin-inline-start: 4px; }
.pages { width: 240px; margin: 0 auto; }
.page { position: relative; aspect-ratio: 800 / 1040; overflow: hidden; background: #333 center top / cover no-repeat; }
.page .mark { top: 6px; left: 6px; }
.pill { position: absolute; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 6px 6px 6px 12px; overflow: hidden; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(18, 18, 20, .92); color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .4); font-size: 13px; white-space: nowrap; }
.pill svg { flex: none; width: 20px; height: 20px; }
.pill span { min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .72); text-overflow: ellipsis; }
.pill b { margin-inline-end: 8px; color: #fff; font-weight: 600; }
.pill em { flex: none; padding: 6px 12px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-size: 12px; font-style: normal; font-weight: 550; }
.pill::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #ff8fb3 9%, rgba(255, 255, 255, .14) 0); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.point { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: start; gap: 4px 14px; }
.point svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.point h3 { margin: 0; font-size: 16px; font-weight: 650; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 14px; background: var(--card); }
.plan strong { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan b { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.plan span { color: var(--muted); font-size: 14px; }
.more { margin-top: 18px; font-size: 15px; }

/* The pricing page: the plans tab's tiers (kimochi/src/plans.css, added after these rules), with each plan's name in
   capitals, as the home page's plans have it, and where a plan is bought */
.tiers .tier h2 { text-transform: uppercase; letter-spacing: .04em; }
.buyNote { max-width: 620px; margin: 28px auto 0; color: var(--muted); font-size: 14px; text-align: center; }

/* The Languages page: a search and every language in rows like the toolbar popup's language picker (kimochi/src/popup.css),
   each by its English name and, in grey, its own. */
a.supports:hover { text-decoration: underline; text-underline-offset: 3px; }
.langsTools { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 880px; margin: 36px auto 14px; }
.langSearch { position: relative; display: flex; flex: 0 1 360px; align-items: center; }
.langSearch svg { position: absolute; inset-inline-start: 14px; width: 16px; height: 16px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.langSearch input { width: 100%; height: 40px; padding: 0; padding-inline: 38px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 14px; }
.langSearch input:focus { outline: none; border-color: var(--ring); }
.langsCount { color: var(--muted); font-size: 14px; white-space: nowrap; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 12px; max-width: 880px; margin: 0 auto; padding: 8px; border: 1px solid var(--line); border-radius: 16px; list-style: none; }
.langs li { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; }
.langs li:hover { background: var(--button); }
.langs span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs small { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.langsEmpty { max-width: 880px; margin: 0 auto; padding: 14px 16px; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 560px) {
  .langsTools { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .langSearch { flex-basis: auto; }
  .langsCount { text-align: center; }
}
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 64px; padding: 36px 40px; border-radius: 20px; background: var(--accent-soft); }
.band p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.band h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 750; letter-spacing: -.6px; }

/* Sign-in and account */
.narrow { width: 100%; max-width: 440px; margin: 0 auto; padding: 56px 24px 72px; }
.bigMark { width: 56px; height: 56px; margin-bottom: 22px; }
.narrow h1 { margin: 0 0 10px; font-size: 28px; font-weight: 750; letter-spacing: -.7px; line-height: 1.2; }
.narrow > p, .muted { color: var(--muted); }
.stack { display: grid; gap: 12px; margin-top: 28px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; }
.note { margin-top: 22px; color: var(--muted); font-size: 12px; }
.note code { overflow-wrap: anywhere; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--track); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.done { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.done svg, .warnIcon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.warnIcon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%; background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person div { min-width: 0; }
.person div > :is(strong, span, h1) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person div > span { color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #7a5af5; color: #fff; font-size: 14px; font-weight: 700; }
.avatarLarge { width: 56px; height: 56px; font-size: 19px; }
.box { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
/* The sign-in window's Last used: the account the site is signed in with, how it signs in, Google or an email link, a
   pink Last used tag and an arrow, as one row that signs Kimochi in with it. Google and the email link follow under it. */
.lastUsed { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 28px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); text-align: start; transition: background .15s, border-color .15s; }
.lastUsed:hover { background: var(--card); }
.lastUsed > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lastUsed em { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-style: normal; font-weight: 600; }
.lastUsed .mail, .lastUsed .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lastUsed .mail { color: var(--muted); }
.lastUsed + .stack { margin-top: 22px; }

/* The feedback page (/feedback), which the popup's Send feedback opens: two cards to say what it is about, the message,
   an email to reply to, and for a problem whether to include the comic site's address. */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.kinds legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kind { position: relative; display: grid; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.kind:hover { background: var(--card); }
.kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kind .problem { color: var(--warn); }
.kind .idea { color: var(--accent-text); }
.kind strong { display: block; font-size: 14px; }
.kind small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.field textarea { min-height: 132px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; line-height: 1.5; resize: vertical; }
.field :is(textarea, input):focus { outline: none; border-color: var(--ring); }
.field .optional { margin-inline-start: 4px; color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.check strong { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.feedback .error { margin-top: 0; }
@media (max-width: 480px) { .kinds { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lastUsed { transition: none; } }

.account { width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px 72px; }
.accountHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.accountHead h1 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.cards { display: grid; gap: 14px; }
.card { padding: 22px; border-radius: 14px; background: var(--card); }
.card h2 { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tierRow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tierName { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.tierRow > span { color: var(--muted); font-size: 14px; }
.usage { display: grid; gap: 8px; margin: 18px 0 20px; }
.usageRow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.usageRow span { color: var(--muted); }
.usageRow strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.cardText { color: var(--muted); font-size: 14px; }
.cardText + .row { margin-top: 16px; }
.facts { display: grid; gap: 10px; margin: 0; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: end; }

/* Checkout, in a tab of its own: the order beside Paddle's form, which fills its card. */
.checkout { display: grid; gap: 12px; align-content: start; width: 100%; max-width: 920px; margin: 0 auto; padding: 12px 16px 24px; }
.checkoutHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 2px 6px; }
.iconButton { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.iconButton:hover { background: var(--button-hover); color: var(--fg); }
.iconButton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.backLink { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.backLink:hover { background: var(--button-hover); color: var(--fg); }
.backLink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checkoutBody { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px; align-items: start; }
.summary { display: grid; gap: 16px; }
.summary h1, .checkoutDone h1 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.orderItems { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.orderItems li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.orderItems li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.orderItems small, .orderTotal small { color: var(--muted); font-size: 12px; font-weight: 500; }
.orderTotals { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.orderTotals div { display: flex; justify-content: space-between; gap: 12px; }
.orderTotals dt { color: var(--muted); }
.orderTotals dd { margin: 0; font-variant-numeric: tabular-nums; }
.orderTotals .orderTotal { padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.orderTotals .orderTotal dt { color: var(--fg); }
.orderNote { color: var(--muted); font-size: 13px; line-height: 1.5; }
.paddleNote { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 600; }
.paddleNote svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checkoutFrame { min-height: 450px; padding: 8px; }
.checkoutDone { display: grid; justify-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.checkoutDone .done, .checkoutDone .warnIcon { margin: 0; }
.checkoutDone p { max-width: 420px; color: var(--muted); }
.checkoutDone .countdown { font-size: 13px; }

/* Privacy */
.article { width: 100%; max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.article h1 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 40px); font-weight: 750; letter-spacing: -1px; line-height: 1.12; }
.article h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.article p, .article li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.article ul { display: grid; gap: 10px; margin: 0; padding-inline-start: 20px; }
.article p + ul { margin-top: 12px; }
.article ul + p { margin-top: 16px; }
.article li strong { color: var(--fg); font-weight: 600; }
.article a { color: var(--accent-text); font-weight: 500; }
.updated { margin-top: 8px; font-size: 13px !important; }

@media (max-width: 720px) {
  .checkout { padding-inline: 8px; }
  .checkoutBody { grid-template-columns: minmax(0, 1fr); }
  .summary { gap: 12px; padding: 18px; }
  .checkoutFrame { padding: 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 48px; }
  .showcase { width: 100%; max-width: 440px; margin: 0 auto; }
  .ways, .plans { grid-template-columns: minmax(0, 1fr); }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .section { padding: 48px 0; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .headerRow { gap: 12px; height: 56px; }
  .hideSmall { display: none; }
  .footerRow .brand { flex-basis: 100%; }
  .lead { font-size: 16px; }
  .actions > * { flex: 1; }
  .reader { height: 470px; }
  .pages { width: 220px; }
  /* As on a phone-sized window in the extension: Translating chapter on a line of its own. */
  .pill b { display: block; margin: 0 0 1px; }
  .pill span { font-size: 12px; }
  .tabs button { padding: 0 14px; }
  .band { padding: 28px 22px; margin-bottom: 48px; }
  .band .primary { width: 100%; }
  .narrow, .account, .article { padding-left: 16px; padding-right: 16px; }
}
/* The header's Pricing link, Add to Chrome and the brand fit the narrowest phones without the button's icon. */
@media (max-width: 359px) {
  .headerRow { gap: 8px; }
  .headerRow .primary.small { padding-inline: 10px; }
  .headerRow .primary.small svg { display: none; }
}

/* The pages for each kind of comic and the guides (kimochi/site/build.mjs): before and after side by side, sites as cards,
   questions that open, numbered steps. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; }
.compare img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px #0000001a; }
.compare figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.site { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
a.site:hover { border-color: var(--accent); }
.site b { display: block; font-size: 16px; font-weight: 650; }
.site span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.site small { display: block; margin-top: 8px; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.faq { max-width: 760px; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.steps { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-inline-start: 44px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; }
.steps b { color: var(--fg); }
.article .actions { margin-top: 28px; }
.lead + .sites { margin-top: 28px; }
.article a.site, .article a.site:hover { color: inherit; text-decoration: none; }
.article a.primary, .article a.primary:hover { color: var(--on-accent); text-decoration: none; }
.article .sites { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 16px; }
.guideHead { padding: 56px 0 8px; }
.guideHead h1 { margin: 10px 0 12px; font-size: clamp(32px, 4.4vw, 44px); font-weight: 750; letter-spacing: -1.2px; line-height: 1.1; }
.guideHead p { max-width: 640px; color: var(--muted); font-size: 18px; }
.guideHead + .section { border-top: 0; }
.hero.alone { grid-template-columns: minmax(0, 760px); }
.point svg.solid { fill: currentColor; stroke: none; }
@media (max-width: 720px) { .compare { gap: 10px; } }

/* Kimochi's plans: the title, the tiers and the row under them. kimochi.fyi/pricing shows them too: kimochi/site/build.mjs
   adds the rules from here to "End of the plans" to the site's stylesheet. */
.plansHero { padding: 56px 0 0; text-align: center; }
.plansHero h1 { font-size: 40px; font-weight: 750; letter-spacing: -1px; line-height: 1.1; }
.plansHero p { max-width: 540px; margin: 14px auto 0; color: var(--muted); font-size: 16px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 36px color-mix(in srgb, var(--accent) 14%, transparent); }
.ribbon { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; line-height: 1.4; }
.tier h2 { font-size: 16px; font-weight: 650; letter-spacing: -.1px; }
.blurb { margin-top: 6px; min-height: 2.9em; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.amount { display: flex; align-items: baseline; gap: 6px; }
.amount b { font-size: 38px; font-weight: 750; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; line-height: 1; }
.amount span { color: var(--muted); font-size: 14px; }
.action { display: grid; gap: 6px; }
.action > :is(button, a) { width: 100%; }
.action .secondary:disabled { opacity: 1; color: var(--muted); }
.action small { min-height: 1.4em; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }
.action small[data-tone=warn] { color: var(--warn); }
.tier ul { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.tier li { display: flex; align-items: flex-start; gap: 10px; }
.tier li svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--accent-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 40px 0 72px; color: var(--muted); font-size: 13.5px; }
.assure > span, .assure > a { display: inline-flex; align-items: center; gap: 8px; }
.assure > a { color: inherit; }
.assure > a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.assure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .plansHero { padding-top: 36px; }
  .plansHero h1 { font-size: 30px; }
  .tiers { grid-template-columns: 1fr; gap: 20px; }
  .blurb { min-height: 0; }
  .action small:empty { display: none; }
}
