/* Brand fonts, self-hosted (fonts/*-OFL-LICENSE.txt; npm @fontsource-variable/{sora,manrope,jetbrains-mono} 5.3.0).
   Sora: display, Manrope: body, JetBrains Mono: data. One variable file per alphabet: browsers fetch only the
   subset a page uses; other scripts fall back to the system font. Guide: docs/brand.md. */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/sora-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/sora-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* TAS Group palette, TasPod edition (docs/brand.md): night surfaces, Signal Blue for actions, Pod Amber for the
   logo and one key highlight. Dark is the brand context and the default; theme.js offers a day theme below. Older names (--ink, --bg,
   --surface, --line, --brand ...) are kept because every page and script uses them. */
:root {
  color-scheme: dark;
  --night-950: #050b16; --night-900: #081223; --night-800: #0d1b33; --night-700: #142645; --night-600: #1e3459;
  --slate-50: #f5f8fc; --slate-200: #d6dfeb; --slate-600: #3f4f6b;
  --blue-300: #8cc2ff; --blue-400: #4fa3ff; --blue-500: #1f7fff; --blue-600: #0f66e0;
  --cyan-300: #7feaf5; --cyan-400: #2fd6ea;
  --amber: #f2a93b; --amber-soft: rgba(242, 169, 59, .12); --amber-line: rgba(242, 169, 59, .45);

  --ink: #ffffff;            /* headings, strong text */
  --body: #c3cedf;           /* running text */
  --ink-2: #8a9ab5;          /* muted */
  --bg: #081223;             /* page */
  --bg-deep: #050b16;        /* hero and alternating bands */
  --surface: #0d1b33;        /* cards, inputs */
  --raised: #142645;
  --glass: rgba(255, 255, 255, .04);
  --line: #1c2a45;           /* subtle border (rgba(255,255,255,.08) on night, solid so it also works as a fill) */
  --line-strong: #2b3a57;    /* rgba(255,255,255,.16) on night */
  --brand: #1f7fff;          /* Signal Blue: buttons and actions */
  --brand-ink: #ffffff;
  --brand-soft: #0f2648;
  --brand-deep: #4fa3ff;     /* eyebrow text */
  --link: #4fa3ff;
  --cyan: #2fd6ea;
  --teal: #18c29c;
  --btn-bg: none;
  --grad: linear-gradient(135deg, #142645, #0d1b33);
  --hero-glow: radial-gradient(45% 60% at 78% 40%, rgba(242, 169, 59, .13), transparent 70%),
               radial-gradient(60% 60% at 70% 30%, rgba(31, 127, 255, .22), transparent 70%);
  --grid-lines: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  --danger: #ff7a6e;
  --danger-soft: #3a1a1e;
  --ok: #18c29c;
  --ok-soft: #0c2e32;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px -12px rgba(0, 0, 0, .55);
  --shadow-raised: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -20px rgba(0, 0, 0, .7);
  --focus-ring: rgba(79, 163, 255, .55);
  --space: 1rem;
  --font: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Sora, Manrope, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: 220ms cubic-bezier(.2, .7, .2, 1);
  /* theme-dependent fills, redefined for the day theme below */
  --glass-hover: rgba(255, 255, 255, .07);
  --field: rgba(255, 255, 255, .04);
  --placeholder: #6c7d99;
  --nav-bg: rgba(8, 18, 35, .72);
  --code-ink: var(--blue-300);
  --link-hover: var(--cyan-300);
  --amber-ink: var(--amber);
  --ok-ink: #7fe6cc;
  --banner-bg: #2a1f0c;
  --banner-ink: #f7d59a;
}
/* Day theme (theme.js sets data-theme="light" when a visitor picks it; the choice stays in that browser).
   Same names, slate surfaces, darker blues and amber so text keeps 4.5:1 contrast on white. */
:root[data-theme="light"] {
  color-scheme: light;
  --amber-ink: #9a5e07;
  --ink: #081223;
  --body: #3f4f6b;
  --ink-2: #5d6f8c;
  --bg: #f5f8fc;
  --bg-deep: #ebf0f7;
  --surface: #ffffff;
  --raised: #f0f4fa;
  --glass: rgba(8, 18, 35, .03);
  --glass-hover: rgba(8, 18, 35, .06);
  --field: #ffffff;
  --placeholder: #7a8aa3;
  --nav-bg: rgba(245, 248, 252, .82);
  --code-ink: #0f66e0;
  --line: #d6dfeb;
  --line-strong: #b4c2d6;
  --brand-soft: #e3eeff;
  --brand-deep: #0f66e0;
  --link: #0f66e0;
  --link-hover: #0a4fb0;
  --grad: linear-gradient(135deg, #ffffff, #eef3fa);
  --hero-glow: radial-gradient(45% 60% at 78% 40%, rgba(242, 169, 59, .16), transparent 70%),
               radial-gradient(60% 60% at 70% 30%, rgba(31, 127, 255, .14), transparent 70%);
  --grid-lines: linear-gradient(rgba(8, 18, 35, .05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(8, 18, 35, .05) 1px, transparent 1px);
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --ok: #047857;
  --ok-soft: #e7f8f1;
  --ok-ink: #047857;
  --teal: #047857;
  --shadow: 0 1px 2px rgba(8, 18, 35, .06), 0 8px 24px -10px rgba(8, 18, 35, .14);
  --shadow-raised: 0 2px 4px rgba(8, 18, 35, .05), 0 24px 50px -20px rgba(8, 18, 35, .22);
  --focus-ring: rgba(15, 102, 224, .5);
  --banner-bg: #fff4dc;
  --banner-ink: #6b4300;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
b, strong { color: var(--ink); }
a { color: var(--link); transition: color var(--ease); }
a:hover { color: var(--link-hover); }
::selection { background: rgba(31, 127, 255, .4); color: #fff; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.mono { font-family: var(--font-mono); }

/* header: sticky glass bar (template: TasPod website) */
header.nav { position: sticky; top: 0; z-index: 20; max-width: none; padding-inline: max(24px, calc((100% - 1152px) / 2));
  background: var(--nav-bg); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { header.nav { padding-inline: 16px; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -.035em; }
.logo:hover { color: var(--ink); }
.logo img, .logo svg { width: 30px; height: 30px; }
.logo .word { letter-spacing: -.035em; }
.logo .word > span { color: var(--amber); }
.nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a.link { color: var(--body); text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav a.link:hover { color: var(--ink); }
.nav a.link[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .nav ul { display: none; } }

/* hero */
.hero { text-align: center; padding-block: 28px 56px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.04; margin: .2em 0 .25em; letter-spacing: -.035em; font-weight: 800; }
.hero p.lead { font-size: 1.2rem; color: var(--body); margin: 0 auto 28px; max-width: 34em; line-height: 1.55; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.send { max-width: 640px; margin-inline: auto; padding: 24px; text-align: start; }

.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 30px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); transition: var(--ease); cursor: pointer; background: var(--glass); }
.drop:hover, .drop.over { border-color: var(--amber-line); background: rgba(242, 169, 59, .06); }
.drop.disabled { cursor: not-allowed; opacity: .55; border-color: var(--line); background: transparent; }
.drop .big { font: 700 1.1rem/1.2 var(--font-display); color: var(--ink); }
.drop .sub { color: var(--ink-2); font-size: .85rem; }
.drop svg { width: 44px; height: 44px; color: var(--amber); }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* buttons: pills (TAS Group design system) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font: 700 .94rem/1 var(--font); border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink); padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: var(--ease); }
.btn:hover:not(:disabled) { border-color: rgba(79, 163, 255, .45); background: var(--glass-hover); color: var(--ink); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(31, 127, 255, .7); }
.btn.primary:hover:not(:disabled) { background: var(--blue-400); border-color: transparent; }
.btn.block { width: 100%; padding: 16px; font-size: 1rem; }
.btn.lg { padding: 16px 28px; font-size: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { padding: 8px 16px; font-size: .82rem; }

.opts { display: grid; gap: 12px; margin-top: 16px; }
.opts.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .opts.two { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 8px; font-size: .82rem; color: var(--body); font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=date], input[type=datetime-local], input[type=tel], textarea, select { font: 500 .94rem/1.4 var(--font); color: var(--ink); background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: border-color var(--ease), box-shadow var(--ease); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--focus-ring); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
select option { background: var(--surface); color: var(--ink); }
textarea { resize: vertical; min-height: 64px; }

.files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); }
.files .name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.files .meta { color: var(--ink-2); font-size: .85rem; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 120ms linear; }
.summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 14px; color: var(--ink-2); font-size: .92rem; }
.x { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.x:hover { color: var(--danger); background: var(--danger-soft); }

.notice { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
.notice.err { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(242, 87, 74, .35); }
.notice.info { background: var(--brand-soft); color: var(--body); border: 1px solid rgba(79, 163, 255, .25); }

.result { text-align: center; }
.result h2 { margin: 10px 0 14px; font-size: 1.5rem; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-family: var(--font-mono); font-weight: 600; font-size: .88rem; text-align: center; }
.qr { width: 180px; height: 180px; margin: 18px auto 6px; background: #fff; padding: 10px; border-radius: 14px; border: 0; }
.facts { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--ink-2); margin: 14px 0; }
.facts b { color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(24, 194, 156, .1); border: 1px solid rgba(24, 194, 156, .4); color: var(--ok-ink); font-weight: 700; font-size: .85rem; }
.assure { color: var(--ink-2); font-size: .92rem; margin-top: 14px; }

/* sections */
section.s { padding-block: 96px; }
section.s h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 14px; }
section.s p.sub { color: var(--body); font-size: 1.15rem; line-height: 1.55; margin: 0 0 40px; max-width: 38em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid .card { padding: 26px; }
.grid h3 { margin: 6px 0 4px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }
.grid p { margin: 0; color: var(--body); font-size: .94rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.tag.soon { background: var(--glass); color: var(--ink-2); }
.price { font: 800 2.6rem/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; margin: 10px 0; }
.price small { font: 500 .88rem var(--font); letter-spacing: 0; color: var(--ink-2); }
ul.tick { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; color: var(--body); font-size: .92rem; }
ul.tick li::before { content: "\2713"; color: var(--link); font-weight: 800; margin-inline-end: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { color: var(--body); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding-block: 32px; color: var(--ink-2); font-size: .92rem; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; }
.dl { max-width: 640px; margin: 24px auto 60px; padding: 26px; }
.dl h1 { margin: 6px 0 4px; font-size: 1.7rem; letter-spacing: -.03em; }
.dl .msg { background: var(--glass); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dl .files li a.btn { text-decoration: none; display: inline-block; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* accounts */
.auth { margin-top: 28px; }
.auth form { display: grid; gap: 14px; margin-top: 16px; }
.hint { font-weight: 400; font-size: .82rem; color: var(--ink-2); }
.acct { display: grid; gap: 18px; padding-bottom: 60px; max-width: 760px; }
.page-title { margin: 6px 0 0; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.pad { padding: 22px; }
.pad h2 { margin: 0 0 10px; font-size: 1.25rem; }
.pad h3 { margin: 22px 0 6px; font-size: 1rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.stack { display: grid; gap: 12px; max-width: 360px; }
.inline { display: flex; gap: 8px; max-width: 320px; }
.codes { font-family: var(--font-mono); background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 1rem; line-height: 1.7; columns: 2; margin: 8px 0; }
code { font-family: var(--font-mono); font-size: .88em; color: var(--code-ink); background: var(--bg-deep); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.acct .files li { grid-template-columns: 1fr auto; }
@media (max-width: 560px) { .acct .files li { grid-template-columns: 1fr; } .actions { justify-content: flex-start; } }

.test-banner { background: var(--banner-bg); color: var(--banner-ink); border-bottom: 1px solid rgba(242, 169, 59, .4); padding: 8px 16px; text-align: center; font-size: 14px; }
.test-banner a { color: inherit; text-decoration: underline; }

/* brand homepage (docs/brand.md) */
.eyebrow { margin: 0 0 12px; font: 700 .8rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--brand-deep); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-tile { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); }
.ic-tile.big { width: 64px; height: 64px; border-radius: 50%; }
.ic-tile.big .ic { width: 30px; height: 30px; }
.nav a.btn { text-decoration: none; }
h2.center, section.s p.sub.center { margin-inline: auto; text-align: center; }

footer .row { align-items: center; }
footer .logo.small { font-size: 1.1rem; }
footer .logo.small img { width: 28px; height: 28px; }
footer .tagline { letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
footer .fine { margin-top: 14px; font-size: .82rem; }

/* number fields look like the other inputs (drop limits, download limit) */
input[type=number] { font: 500 .94rem/1.4 var(--font); color: var(--ink); background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; }

/* Secure Drop sender receipt */
.receipt { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); }
.receipt h3 { margin: 0 0 4px; font-size: 1rem; }
.receipt table { margin: 10px 0; }
.receipt td { overflow-wrap: anywhere; }

/* Team Space nearly at its storage limit (org page) */
[data-space-limit].warn { color: var(--danger); font-weight: 600; }

/* account: invoices (invoices.js) */
table.invoices { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.invoices th, table.invoices td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
table.invoices th { font-weight: 600; color: var(--ink-2); }

/* Terms of Service and Privacy Policy */
.legal { max-width: 760px; line-height: 1.6; }
.legal .updated { color: var(--ink-2); font-size: .9rem; margin: 0; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 8px; scroll-margin-top: 16px; }
.legal h3 { font-size: 1rem; margin: 18px 0 6px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal code { font-size: .88em; background: var(--bg-deep); padding: 1px 5px; border-radius: 4px; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 18px 0 6px; }
.legal .toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 24px; }
.legal .toc li { margin: 2px 0; break-inside: avoid; }
@media (max-width: 560px) { .legal .toc ol { columns: 1; } }

/* Quick Send: continue an unfinished transfer */
#resume p { margin: 0 0 8px; }
#resume .resume-files { margin: 0 0 10px; padding-left: 20px; opacity: .8; font-size: .9rem; word-break: break-all; }
#resume .resume-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#resume .notice.err { margin-top: 10px; }
ul.tick.bk-points { max-width: 640px; margin: 22px auto 18px; }
/* show/hide password (common.js) */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { padding-right: 44px; }
.pw-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--brand-soft); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header menu on small screens: a Menu button opens the links as a panel (common.js) */
.menu-btn { display: none; align-items: center; gap: 6px; font: inherit; font-weight: 700; color: var(--ink); background: var(--glass); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 640px) {
  .nav { position: relative; }
  .nav .menu-btn { display: inline-flex; margin-left: auto; }
  .nav > nav { margin-left: 0; }
  .nav.menu-open > nav ul { display: flex; flex-direction: column; gap: 14px; position: absolute; right: 0; top: calc(100% - 6px); z-index: 30; min-width: 200px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
}
@media (max-width: 760px) {
  .appbar .menu-btn { display: inline-flex; flex: none; }
  .appbar .menu-btn span { display: none; }
  .appbar.menu-open .appnav { display: flex; flex-direction: column; gap: 14px; position: absolute; right: 12px; top: calc(100% + 4px); z-index: 30; min-width: 200px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
}

/* plan cards (plans.js), on the home, pricing and account pages */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong); }
.seg .btn { border: 0; background: transparent; color: var(--body); box-shadow: none; }
.seg .btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.card.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 24px; }
.card.plan.popular { border-color: rgba(242, 169, 59, .6); }
.plan-flag { position: absolute; top: -12px; left: 24px; padding: 6px 12px; border-radius: 999px; background: var(--amber); color: var(--night-900); font: 800 .68rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.plan-name { display: flex; flex-direction: column; gap: 4px; }
.plan-name h3 { margin: 0; }
.plan-name span { font-size: .88rem; color: var(--ink-2); }
.card.plan .price { margin: 0; }
.plan-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0; border-block: 1px solid var(--line); }
.plan-figs div { display: flex; flex-direction: column; gap: 4px; }
.plan-figs b { font: 700 1.05rem/1 var(--font-mono); color: var(--ink); }
.plan-figs b.amber { color: var(--amber-ink); }
.plan-figs span { font-size: .75rem; color: var(--ink-2); }
.card.plan ul.tick { flex: 1; margin: 0; align-content: start; }
.card.plan .tag, .card.plan .assure { margin: 0; align-self: flex-start; }

/* day / night switch (theme.js puts it at the end of each header) */
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; margin-inline-start: 4px;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; transition: var(--ease); }
.theme-toggle:hover { background: var(--glass-hover); border-color: rgba(79, 163, 255, .45); }
:root[data-theme="light"] .logo .word > span { color: var(--amber-ink); }
:root[data-theme="light"] .badge { background: var(--ok-soft); border-color: rgba(4, 120, 87, .3); color: var(--ok-ink); }
