/* Public content pages: the same calm look as the landing page. */
:root {
  --ground: #f5f5f7; --card: #ffffff; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #aeaeb2; --line: rgb(0 0 0 / 0.08); --fill: rgb(0 0 0 / 0.05); --down: #c93400; --link: #0066cc;
  --ease: cubic-bezier(0.25, 0.9, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #000; --card: #1c1c1e; --ink: #f5f5f7; --ink-2: #98989d; --ink-3: #636366; --line: rgb(255 255 255 / 0.1); --fill: rgb(255 255 255 / 0.09); --down: #ff9f0a; --link: #4da3ff; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; color: var(--ink); font: 17px/1.5 var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
button, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 clamp(20px, 4vw, 40px); background: color-mix(in srgb, var(--ground) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
.mark { display: inline-flex; align-items: center; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.logo { width: 24px; height: 24px; margin-right: 4px; }
.topbar__links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.pill, .pill-small { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform 0.12s var(--ease), opacity 0.12s; }
.pill { min-height: 50px; padding: 0 26px; }
.pill-small { min-height: 36px; padding: 0 15px; font-size: 14px; }
.pill:hover, .pill-small:hover { opacity: 0.86; }
.pill:active { transform: scale(0.98); }
.pill:disabled { opacity: 0.4; }
.quiet-small { flex: none; border: 0; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--fill); font-size: 14px; font-weight: 500; cursor: pointer; }
.plain-link { font-weight: 500; }

.content { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.page-head { margin-bottom: 28px; }
h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 12px; text-wrap: balance; }
.page-head p { margin: 0; font-size: clamp(19px, 2.6vw, 22px); line-height: 1.3; color: var(--ink-2); letter-spacing: -0.015em; }
.page-head small { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14px; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }

.tool { background: var(--card); border-radius: 24px; padding: 18px; }
.tool textarea { display: block; width: 100%; border: 0; outline: none; resize: vertical; background: var(--fill); border-radius: 14px; padding: 14px; font-size: 17px; line-height: 1.35; margin-bottom: 12px; }
.tool textarea:focus { box-shadow: inset 0 0 0 1.5px var(--link); }
.error { color: var(--down); font-size: 15px; margin: 10px 0 0; }
.result { margin-top: 14px; font-size: 17px; line-height: 1.35; }
.result h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.015em; }
.result ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.result > small { color: var(--ink-2); font-size: 13px; }
.option { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 0.5px solid var(--line); overflow-wrap: anywhere; }
.option:first-child { border-top: 0; }
.option small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.local-out .option:first-child { border-top: 0.5px solid var(--line); }
.big-count { font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big-count.over { color: var(--down); }
.local-out small { color: var(--ink-2); }

.block { margin-top: 44px; }
details { border-bottom: 0.5px solid var(--line); }
summary { padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-2); font-weight: 300; font-size: 22px; line-height: 1; transition: transform 0.2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 16px; color: var(--ink-2); }
.tool-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-link { padding: 10px 16px; border-radius: 20px; background: var(--card); font-size: 15px; font-weight: 500; }
.tile-grid { display: grid; gap: 12px; }
.tile-link { display: block; padding: 20px 22px; border-radius: 22px; background: var(--card); transition: transform 0.15s var(--ease); }
.tile-link:hover { transform: translateY(-1px); }
.tile-link b { display: block; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.tile-link span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.cta-card { margin-top: 44px; padding: 28px; border-radius: 26px; background: var(--card); text-align: center; }
.cta-card p { margin: 0 0 20px; color: var(--ink-2); }
.cta-card__row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

.prose { font-size: 19px; line-height: 1.55; letter-spacing: -0.012em; }
.prose .back { display: inline-block; margin-bottom: 20px; font-size: 15px; color: var(--ink-2); }
.prose h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 24px; }
.prose h2 { margin: 40px 0 10px; font-size: 26px; }
.prose h3 { margin: 28px 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a:not(.back) { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 0 0 18px; padding: 16px 20px; border-radius: 16px; background: var(--card); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--fill); }

.doc h1 { font-size: 36px; }
.doc h2 { font-size: 20px; margin: 28px 0 6px; font-weight: 600; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); }
.doc { max-width: 680px; margin: 0 auto; padding: 48px 20px 72px; }
.doc a { color: var(--link); }
.nav { padding: 18px 20px; max-width: 680px; margin: 0 auto; }
.nav .logo { font-weight: 600; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 32px clamp(20px, 4vw, 40px) 44px; font-size: 14px; color: var(--ink-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot small { font-size: 13px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
  main > * { animation: rise 0.55s cubic-bezier(0.25, 0.9, 0.3, 1) both; }
  main > *:nth-child(2) { animation-delay: 0.06s; }
  main > *:nth-child(3) { animation-delay: 0.12s; }
  .result:not([hidden]) > * { animation: rise 0.45s cubic-bezier(0.25, 0.9, 0.3, 1) both; }
  .result:not([hidden]) > *:nth-child(2) { animation-delay: 0.07s; }
  .result:not([hidden]) > *:nth-child(3) { animation-delay: 0.14s; }
  .result:not([hidden]) > *:nth-child(4) { animation-delay: 0.21s; }
  a, button { transition: opacity 0.18s, transform 0.18s, background-color 0.18s; }
  button:active, .pill:active { transform: scale(0.97); }
}
