@font-face { font-family: "Familjen Grotesk"; src: url("/static/fonts/familjen-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; src: url("/static/fonts/familjen-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f7f5;
  --fg: #16181d;
  --muted: #5d636f;
  --line: #e2e2dc;
  --card: #ffffff;
  --soft: #efefea;
  --accent: #3d5bd9;
  --accent-fg: #ffffff;
  --accent-soft: #e6ebff;
  --good: #1f7a4d;
  --bad: #b3261e;
  --logo-bg: #14161c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 4px 16px rgba(20, 22, 28, .04);
  --head: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318; --fg: #e9eaee; --muted: #9aa0ad; --line: #2a2e38; --card: #191c23; --soft: #22262f;
    --accent: #7c9cff; --accent-fg: #0d1020; --accent-soft: #232b4a; --good: #5fd39a; --bad: #ff8a80; --logo-bg: #0b0c10;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111318; --fg: #e9eaee; --muted: #9aa0ad; --line: #2a2e38; --card: #191c23; --soft: #22262f;
  --accent: #7c9cff; --accent-fg: #0d1020; --accent-soft: #232b4a; --good: #5fd39a; --bad: #ff8a80; --logo-bg: #0b0c10;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--body); overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 .4em; }
h2 { font-size: 1.5rem; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: .1em .35em; border-radius: 4px; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.err { color: var(--bad); font-weight: 500; }
.ok { color: var(--good); }
[hidden] { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 440px; margin: 40px auto; }
main.wrap { min-height: 60vh; padding-bottom: 48px; }
main > section { margin: 0 0 56px; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 1.05rem var(--head); white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--accent); font-weight: 700; }
.logo.small svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--fg); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.icon-btn { border: 0; background: none; width: 40px; height: 40px; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: inline; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ico-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-btn .ico-moon { display: none; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { border: 0; background: none; padding: 4px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
input[type="url"], input[type="email"], input[type="search"], input[type="number"], input:not([type]), input[inputmode], select {
  min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); width: 100%; min-width: 0;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.row { display: flex; gap: 8px; }
.stack { display: grid; gap: 10px; }

.hero { padding: 40px 0 8px; margin-bottom: 20px !important; }
.hero h1 span { display: block; color: var(--muted); font-weight: 500; font-size: .55em; margin-top: .2em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

.tool { margin-bottom: 24px !important; }
.paste { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.paste input { border: 0; min-height: 48px; font-size: 1.05rem; background: transparent; }
.paste input:focus-visible { outline: none; }
.paste:focus-within { border-color: var(--accent); }
.paste .btn { min-height: 48px; }
.hint { margin: 10px 4px 0; color: var(--muted); font-size: .92rem; }
.soon { white-space: nowrap; }
.tool .err { margin: 10px 4px 0; }
.waitlist { margin-top: 12px; }
.waitlist p { margin-bottom: 10px; }

.result { margin-bottom: 56px; scroll-margin-top: 76px; }
.post { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.thumb { flex: none; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 160px; height: auto; background: var(--soft); }
.post-meta { flex: 1 1 260px; min-width: 0; }
.count-note { display: block; font-size: .85rem; }
.post-title { font: 600 1.1rem var(--head); color: var(--fg); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta p { margin: 2px 0 0; }
.count { font-size: 1.05rem; }
.post-actions { flex: 0 0 220px; display: grid; gap: 8px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 16px 0 8px; }
.bar input[type="search"] { flex: 1 1 220px; }
.bar select { width: auto; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.shown { font-size: .9rem; margin: 0 0 8px; }
.comments { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.comments li { padding: 14px 16px; border-top: 1px solid var(--line); }
.comments li:first-child { border-top: 0; }
.comments li.reply { padding-left: 44px; background: var(--soft); }
.c-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .9rem; margin-bottom: 4px; }
.c-head b { font-weight: 600; }
.c-head .muted a { color: inherit; }
.c-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.c-foot { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
mark { background: #ffe58a; color: inherit; border-radius: 2px; }
.more { text-align: center; margin: 14px 0; }
.source { font-size: .85rem; }
.empty { padding: 24px 16px; color: var(--muted); text-align: center; }

.sheet { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--card); color: var(--fg); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.sheet::backdrop { background: rgba(10, 12, 18, .5); }
.sheet-in { padding: 24px; position: relative; }
.sheet .close { position: absolute; right: 10px; top: 10px; font-size: 1.5rem; }
.sheet h2 { padding-right: 36px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; }
.opt p { margin: 0; }
.opt .btn { grid-row: span 2; }
.opt .muted { font-size: .88rem; }
.quote-nums { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 14px; background: var(--soft); border-radius: 10px; margin: 0 0 12px; font-size: .95rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }
.grid5 { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.grid5 li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid5 p { margin: 0; color: var(--muted); font-size: .92rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--soft); font-weight: 600; }
.teaser { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.teaser p { margin: 0; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.prose { max-width: 46rem; }
.prose p { font-size: 1.05rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

.tabs { display: inline-flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 600; cursor: pointer; }
.tabs button small { color: var(--good); font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px !important; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan.popular { border-color: var(--accent); border-width: 2px; }
.plan .tag { margin: 0; font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan .price { font: 700 2rem var(--head); margin: 4px 0; }
.plan .price small { font: 500 .95rem var(--body); color: var(--muted); }
.plan p { margin: 0; }
.plan .btn { margin-top: auto; }
.plan .pts { font-weight: 600; }
.plans[data-period="monthly"] .y, .plans[data-period="yearly"] .m { display: none; }
.plan > .muted { margin-bottom: 14px; }
.topup { margin-bottom: 24px !important; }
.topup-row { display: grid; grid-template-columns: auto 140px 1fr; gap: 12px; align-items: center; margin: 12px 0; }
.topup-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.topup-out { font-size: 1.3rem; margin: 0 0 4px; }
.tiers { margin-top: 18px; max-width: 360px; font-size: .9rem; }
.tiers td { padding: 6px 10px; }
.single { margin-bottom: 40px !important; }
.single p { margin: 0; }
.uses { margin-bottom: 40px !important; }

.signin h1 { font-size: 1.8rem; }
.google { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.account, .job { padding-top: 32px; }
.panel { margin-bottom: 20px; }
.panel h2 { font-size: 1.2rem; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 12px; }
.kv div { min-width: 120px; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; font: 700 1.4rem var(--head); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .main { min-width: 0; display: grid; }
.status { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); white-space: nowrap; }
.status.done { color: var(--good); }
.status.failed { color: var(--bad); }
.progress { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.progress.busy i { width: 35% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.rsec { margin: 0 0 28px; }
.rsec h2 { font-size: 1.25rem; }
.point { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.point > p { font-weight: 600; margin: 0 0 8px; }
.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 8px 0; font-size: .95rem; }
.quote small { display: block; color: var(--muted); margin-top: 2px; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 24px; background: var(--card); }
.foot-in { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 24px; }
.foot h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: .92rem; }
.foot a { color: var(--fg); text-decoration: none; }
.foot li a { display: inline-block; padding: 4px 0; }
.foot p { font-size: .9rem; margin-top: 10px; }
.foot .foot-theme { display: none; margin-top: 8px; gap: 8px; width: auto; min-height: 44px; padding: 0 14px; font-weight: 500; }
.foot-theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fine { margin-top: 20px; }
.fine p { font-size: .8rem; color: var(--muted); }
.fine a { color: var(--muted); text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 20; max-width: calc(100vw - 32px); }

/* Hover looks only where there is a pointer: on touch screens a tapped element would stay highlighted. */
@media (hover: hover) {
  .nav a:hover, .icon-btn:hover { background: var(--soft); }
  .btn:not(.primary):hover { border-color: var(--muted); }
  .btn.primary:hover { filter: brightness(1.08); }
  .post-title:hover, .foot a:hover { text-decoration: underline; }
}

@media (max-width: 860px) {
  .grid5 { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .logo span { font-size: .95rem; }
  .logo svg { width: 28px; height: 28px; }
  .nav a { padding: 8px 6px; }
  .top .theme-btn { display: none; }
  .foot .foot-theme { display: inline-flex; }
  .foot-in > div:nth-child(2) { grid-column: 1 / -1; }
  .foot-in > div:nth-child(2) ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tabs button { padding: 8px 6px; }
  .tabs button small { display: block; font-size: .72rem; }
  .paste { flex-direction: column; }
  .paste .btn { width: 100%; }
  .thumb { width: 112px; }
  .post-meta { flex-basis: 150px; }
  .post-actions { flex-basis: 100%; grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid5 { grid-template-columns: 1fr; }
  .teaser { flex-direction: column; align-items: flex-start; }
  .topup-row { grid-template-columns: 1fr; }
  .comments li.reply { padding-left: 28px; }
  .opt { grid-template-columns: 1fr; }
  .opt .btn { grid-row: auto; width: 100%; }
  .bar input[type="search"] { flex-basis: 100%; }
  .bar select { flex: 1; }
  .bar #csv-free { width: 100%; }
}
