/* Layout: one left-aligned column like a README. Home = terminal hero + one card per app; app page = header, gallery strip, prose. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --fg: #151820;
  --muted: #5a6271;
  --line: #dde1e8;
  --accent: #2a47c4;
  --tint: #e9ecf7;
  --term-bg: #151820;
  --term-fg: #e5e8ee;
  --term-dim: #8b93a3;
  --term-accent: #8fa3ff;
  --font-display: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 62rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #161a22; --fg: #e5e8ee; --muted: #8b93a3; --line: #272d39; --accent: #8fa3ff; --tint: #1a2030;
    --term-bg: #0a0c11; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #161a22; --fg: #e5e8ee; --muted: #8b93a3; --line: #272d39; --accent: #8fa3ff; --tint: #1a2030;
  --term-bg: #0a0c11; color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.65 var(--font-body); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--bg); }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prompt, .path, .platforms, .links, .nav, .crumbs, .meta, .pager, .site-footer { font-family: var(--font-display); }

/* Header / footer */
.site-header .wrap, .site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
.crumbs { font-size: 0.85rem; min-width: 0; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs .brand { font-weight: 600; color: var(--fg); letter-spacing: -0.02em; }
.crumbs .sep { color: var(--line); margin-inline: 0.2rem; }
.crumbs .here { color: var(--fg); }
.nav { display: flex; gap: 1.25rem; font-size: 0.8rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .crumbs a:hover { color: var(--fg); }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; }
.site-footer .wrap { font-size: 0.72rem; color: var(--muted); }
.cursor { display: inline-block; width: 0.55em; height: 1.05em; background: currentColor; vertical-align: -0.15em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero: text + terminal window listing the apps */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero-text { display: grid; gap: 1rem; min-width: 0; }
.prompt { font-size: 0.8rem; color: var(--muted); }
h1 { font: 600 clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem)/1.15 var(--font-display); letter-spacing: -0.04em; margin: 0; max-width: 18ch; text-wrap: balance; }
.lede { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.lede p { margin: 0; }
.term { background: var(--term-bg); color: var(--term-fg); border-radius: var(--radius); overflow: hidden; min-width: 0; box-shadow: 0 16px 40px -20px rgb(0 0 0 / 0.45); }
.term .frame-bar { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.08); color: var(--term-dim); }
.term .frame-bar i { background: rgb(255 255 255 / 0.18); }
.term-body { display: grid; gap: 0.3rem; padding: 1rem 1.1rem 1.2rem; font: 400 0.8rem/1.6 var(--font-display); overflow-x: auto; }
.term-prompt { color: var(--term-accent); }
.term-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 1rem; color: var(--term-fg); text-decoration: none; border-radius: 4px; padding-inline: 0.3rem; margin-inline: -0.3rem; }
.term-row span:first-child { color: var(--term-accent); }
.term-row span:not(:first-child) { color: var(--term-dim); }
.term-row:hover { background: rgb(255 255 255 / 0.07); }

/* Home cards */
.products { display: grid; gap: 1.25rem; }
.card { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.card-media {
  display: flex; justify-content: center; align-items: flex-end; gap: 0.75rem;
  height: clamp(15rem, 34vw, 20rem); padding: 1.5rem 1.5rem 0; overflow: hidden;
  background: radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 14px 14px, var(--tint);
}
.card-body { display: grid; gap: 0.7rem; align-content: center; padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.path { font-size: 0.72rem; color: var(--muted); }
.card-body h2 { font: 600 1.3rem var(--font-display); letter-spacing: -0.03em; margin: 0; }
.card-body h2 a { color: var(--fg); text-decoration: none; }
.card-body h2 a:hover { color: var(--accent); }
.platforms { margin: 0; font-size: 0.75rem; color: var(--muted); }
.platforms span { margin-left: 0.5rem; padding: 0.05rem 0.4rem; border: 1px solid var(--line); border-radius: 4px; }
.card-text p { margin: 0; }
.links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.8rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badges a { line-height: 0; }
.badges img { height: 40px; width: auto; }

/* Device frames around screenshots and videos */
.frame { margin: 0; max-width: 100%; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.3); }
.frame img, .frame video, .frame iframe, .yt { display: block; width: 100%; border: 0; object-fit: cover; object-position: top; }
.frame-browser, .frame-desktop { width: 100%; border-radius: 8px; }
.frame-browser :is(img, video, iframe, .yt), .frame-desktop :is(img, video, iframe, .yt) { aspect-ratio: 16 / 10; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--line); font: 400 0.68rem var(--font-display); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.frame-bar span { margin-left: auto; margin-right: auto; padding-right: 33px; }
.frame-phone { position: relative; width: 9.5rem; flex: none; aspect-ratio: 390 / 844; border: 5px solid var(--fg); border-radius: 1.6rem; }
.frame-phone :is(img, video, iframe, .yt) { height: 100%; }
.frame-phone::before { content: ""; position: absolute; z-index: 1; top: 6px; left: 50%; translate: -50% 0; width: 30%; height: 16px; border-radius: 99px; background: var(--fg); }
.frame-plain { width: 9.5rem; flex: none; border: 0; border-radius: 12px; }
.frame-plain :is(img, video, iframe, .yt) { height: auto; object-fit: contain; }
.card-media .frame { margin-bottom: -1.5rem; }

/* YouTube: thumbnail + play button until clicked */
.yt { position: relative; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--fg); opacity: 0.85; }
.yt .play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 0.6rem 0 0.6rem 1rem; border-color: transparent transparent transparent var(--bg); }
.yt:hover .play { background: var(--accent); opacity: 1; }

/* App page */
.app { display: grid; gap: 2rem; padding-block: clamp(2rem, 6vw, 4rem) 0; }
.app-head { display: grid; gap: 1rem; justify-items: start; }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 1.5rem; margin: 0; padding: 0.9rem 1.1rem; font-size: 0.78rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.cmd { display: flex; align-items: center; gap: 0.75rem; max-width: 100%; padding: 0.55rem 0.6rem 0.55rem 1rem; background: var(--term-bg); color: var(--term-fg); border-radius: 8px; }
.cmd code { font: 400 0.8rem var(--font-display); overflow-x: auto; white-space: nowrap; min-width: 0; }
.cmd-prompt { color: var(--term-accent); }
.copy { font: 400 0.7rem var(--font-display); color: var(--term-dim); background: none; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 5px; padding: 0.2rem 0.55rem; cursor: pointer; flex: none; }
.copy:hover { color: var(--term-fg); border-color: var(--term-dim); }
.gallery {
  display: flex; gap: 1.25rem; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 14px 14px, var(--tint);
}
.gallery .frame { flex: none; scroll-snap-align: start; }
.gallery :is(.frame-phone, .frame-plain) { width: min(13rem, 58vw); }
.gallery .frame-browser, .gallery .frame-desktop { width: min(42rem, 82vw); }

/* Markdown body: headings show their ## marker, like source */
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font: 600 1.15rem var(--font-display); letter-spacing: -0.03em; margin: 2rem 0 0.75rem; }
.prose h2::before { content: "## "; color: var(--muted); font-weight: 400; }
.prose li { margin-block: 0.25rem; }
.prose li::marker { color: var(--muted); content: "- "; font-family: var(--font-display); }
.prose code { font: 400 0.82em var(--font-display); background: var(--tint); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { margin: 0; padding: 1rem 1.1rem; background: var(--term-bg); color: var(--term-fg); border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 0.78rem; line-height: 1.6; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.4rem 0.75rem; text-align: left; }
.prose th { font: 600 0.75rem var(--font-display); background: var(--surface); }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px dashed var(--line); font-size: 0.8rem; }
.pager a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* Blog */
.latest { margin-top: 3rem; display: grid; gap: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.more { font: 400 0.8rem var(--font-display); text-decoration: none; }
.post-list { display: grid; gap: 0.75rem; }
.post-item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.post-item:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 14px 30px -22px rgb(0 0 0 / .4); }
.post-item time { font: 400 0.75rem/1.9 var(--font-display); color: var(--muted); }
.post-item h3 { margin: 0; font: 600 1.05rem/1.4 var(--font-display); letter-spacing: -0.02em; transition: color .2s; }
.post-item:hover h3 { color: var(--accent); }
.post-item p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.post-item .info { grid-column: 2; display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.35rem; }
@media (max-width: 560px) { .post-item { grid-template-columns: 1fr; } .post-item .info { grid-column: 1; } }
.tag { font: 400 0.68rem var(--font-display); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.45rem; background: none; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tags button { cursor: pointer; font-size: 0.75rem; padding: 0.2rem 0.65rem; transition: all .2s; }
.tags button[aria-pressed="true"], .tags button:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.post-head { display: grid; gap: 0.9rem; }
.post-head .meta-line { font: 400 0.78rem var(--font-display); color: var(--muted); display: flex; gap: 0.5rem 1rem; flex-wrap: wrap; align-items: center; }
.prose blockquote { margin: 1rem 0; padding: 0.25rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose img { border-radius: 8px; border: 1px solid var(--line); }
.empty { color: var(--muted); font: 400 0.85rem var(--font-display); }

/* Theme toggle */
.nav { align-items: center; }
.theme-toggle { position: relative; width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0; margin: -0.4rem 0 -0.4rem -0.25rem; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.theme-toggle:hover { color: var(--fg); border-color: var(--muted); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 1; transform: none; }
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important; }

/* RSS */
.blog-tools { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.head-links { display: flex; align-items: baseline; gap: 1.25rem; }
.rss { display: inline-flex; align-items: center; gap: 0.35rem; font: 400 0.75rem var(--font-display); color: #e8762c; text-decoration: none; border: 1px solid color-mix(in srgb, #e8762c 40%, var(--line)); border-radius: 99px; padding: 0.2rem 0.7rem 0.2rem 0.55rem; transition: background .2s, color .2s, transform .2s; }
.rss svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.rss svg circle { fill: currentColor; stroke: none; }
.rss:hover { background: #e8762c; color: #fff; transform: translateY(-1px); }
.foot-rss { color: inherit; }
.foot-rss:hover { color: #e8762c; }

/* Logo */
.logo { display: block; width: 100%; height: 100%; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0 0.2rem; }
.crumbs .brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs .brand .logo { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 0.45rem; box-shadow: 0 4px 12px -4px rgb(47 91 255 / 0.55); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.crumbs .brand:hover .logo { transform: rotate(-8deg) scale(1.08); }
.hero-logo { width: clamp(3.5rem, 7vw, 4.5rem); aspect-ratio: 1; filter: drop-shadow(0 14px 22px rgb(47 91 255 / 0.35)); }
.hero-text > .hero-logo { animation: logoIn .9s cubic-bezier(.3,1.5,.5,1) both, float 5s ease-in-out 1.2s infinite; }
@keyframes logoIn { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .22s; }
.hero-text > :nth-child(4) { animation-delay: .34s; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.foot-brand .logo { width: 1.1rem; height: 1.1rem; border-radius: 0.3rem; }
/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes termIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes dots { to { background-position: 14px 14px, 0 0; } }
.site-header { animation: fade .6s ease both; }
.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .28s; }
h1 { background: linear-gradient(90deg, var(--fg) 0%, var(--fg) 40%, var(--accent) 50%, var(--fg) 60%, var(--fg) 100%) 0 center / 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .7s cubic-bezier(.2,.7,.2,1) .15s both, shimmer 6s linear 1.2s infinite; }
.crumbs .brand { transition: color .25s ease; }
.crumbs .brand:hover { color: var(--accent); }
.term { animation: termIn .8s cubic-bezier(.2,.7,.2,1) .3s both; transition: transform .35s ease, box-shadow .35s ease; }
.term:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgb(0 0 0 / .55); }
.term-body > * { animation: rise .45s ease both; }
.term-body > :nth-child(1) { animation-delay: .7s; }
.term-body > :nth-child(2) { animation-delay: 1s; }
.term-body > :nth-child(3) { animation-delay: 1.15s; }
.term-body > :nth-child(4) { animation-delay: 1.3s; }
.term-body > :nth-child(5) { animation-delay: 1.45s; }
.term-body > :nth-child(6) { animation-delay: 1.6s; }
.term-body > :nth-child(7) { animation-delay: 1.75s; }
.term-row { transition: background .2s ease, transform .2s ease; }
.term-row:hover { transform: translateX(4px); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgb(0 0 0 / .35); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-media { animation: dots 3s linear infinite paused; }
.card:hover .card-media { animation-play-state: running; }
.card-media .frame { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media .frame { transform: translateY(-10px); }
.card:hover .card-media .frame:nth-child(2) { transition-delay: .06s; }
.card:hover .card-media .frame:nth-child(3) { transition-delay: .12s; }
.links a, .nav a, .pager a { position: relative; text-decoration: none; }
.links a::after, .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.links a:hover::after, .nav a:hover::after { transform: scaleX(1); }
.badges a { transition: transform .2s ease; }
.badges a:hover { transform: translateY(-2px); }
.copy { transition: color .2s, border-color .2s, transform .15s; }
.copy:active { transform: scale(.94); }
.gallery .frame { transition: transform .35s ease; }
.gallery .frame:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  h1 { color: var(--fg); background: none; }
}
/* App, blog and post pages: sections rise in on load */
.app > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.app > :nth-child(2) { animation-delay: .1s; }
.app > :nth-child(3) { animation-delay: .2s; }
.app > :nth-child(n+4) { animation-delay: .3s; }

/* Code blocks in posts (Rouge token classes) */
.prose pre .k, .prose pre .kd, .prose pre .kn, .prose pre .kt { color: #c792ea; }
.prose pre .s, .prose pre .s1, .prose pre .s2 { color: #c3e88d; }
.prose pre .c, .prose pre .c1, .prose pre .cm { color: var(--term-dim); font-style: italic; }
.prose pre .nf, .prose pre .nc { color: #82aaff; }
.prose pre .mi, .prose pre .mf, .prose pre .kc { color: #f78c6c; }
.prose .highlighter-rouge > .highlight { background: none; }
@media (prefers-reduced-motion: reduce) { .app > * { animation: none !important; } }

/* About / Contact / Privacy */
mark.todo { background: color-mix(in srgb, #f5b400 28%, transparent); color: inherit; border-radius: 3px; padding: 0 0.2em; box-shadow: inset 0 -1px 0 #f5b400; }
.foot-links { display: flex; gap: 1rem; }
.foot-links a, .foot-mail { color: inherit; text-decoration: none; }
.foot-links a:hover, .foot-mail:hover { color: var(--fg); }
.about-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr) 18rem; } .fact-card { position: sticky; top: 1.5rem; } }
.about-grid .prose h2:first-child { margin-top: 0; }
.fact-card { display: grid; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-card .meta { border: 0; padding: 0; background: none; }
.fact-logo { width: 3.5rem; aspect-ratio: 1; filter: drop-shadow(0 10px 16px rgb(47 91 255 / .35)); }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact-card { display: grid; gap: 0.35rem; align-content: start; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.contact-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 16px 32px -22px rgb(0 0 0 / .4); }
.contact-card strong { font: 600 0.95rem var(--font-display); color: var(--accent); overflow-wrap: anywhere; }
.contact-card span:last-child { color: var(--muted); font-size: 0.92rem; }
.c-label { font: 400 0.7rem var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.note { margin: 0; color: var(--muted); max-width: 68ch; }
.faq { display: grid; gap: 0.6rem; max-width: 68ch; }
.faq-title { font: 600 1.15rem var(--font-display); letter-spacing: -0.03em; margin: 0.5rem 0 0.25rem; }
.faq-title::before { content: "## "; color: var(--muted); font-weight: 400; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 1rem; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary { cursor: pointer; padding: 0.85rem 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--muted); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; color: var(--muted); animation: rise .35s ease both; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toc a { font: 400 0.78rem var(--font-display); text-decoration: none; padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); transition: border-color .2s, transform .2s; }
.toc a:hover { border-color: var(--accent); transform: translateY(-1px); }
.policy section { scroll-margin-top: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--line); }
.policy section:last-child { border-bottom: 0; }
.policy h3 { font: 600 0.95rem var(--font-display); margin: 1.25rem 0 0.4rem; }
.policy section.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: var(--tint); } 100% { background: transparent; } }
.pp-plat { font: 400 0.7rem var(--font-display); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.4rem; margin-left: 0.4rem; vertical-align: middle; letter-spacing: 0; }
.pp-link { margin: 0; font: 400 0.8rem var(--font-display); color: var(--muted); }
.pp-tools { display: flex; }
.pp-also { color: var(--muted); font-size: 0.92rem; }
.pp-app-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 2rem 0 0.75rem; }
.pp-app-head h2 { margin: 0; }
.lang-tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; }
.lang-tabs button { font: 400 0.72rem var(--font-display); color: var(--muted); background: none; border: 0; border-radius: 99px; padding: 0.25rem 0.75rem; cursor: pointer; transition: background .25s, color .25s; }
.lang-tabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.lang-panel { scroll-margin-top: 1.5rem; }
.lang-panel:not([hidden]) { animation: fade .35s ease both; }
.pp-updated { font: 400 0.75rem var(--font-display); color: var(--muted); margin: 0 0 0.75rem; }
.term-body > :nth-child(8) { animation-delay: 1.9s; }
