/* Inter, self-hosted (fonts/Inter-OFL-LICENSE.txt; @fontsource-variable/inter 5.3.0). One variable file per
   alphabet: browsers fetch only the subset a page uses; other scripts fall back to the system font. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-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;
}

/* Brand palette: docs/brand.md (Deep Blue #0F2D6B, Primary Blue #2563EB, Cyan #06B6D4, Teal #10B981). */
:root {
  --ink: #0b132b;
  --ink-2: #5b6b82;
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-ink: #ffffff;
  --brand-soft: #eaf1fe;
  --brand-deep: #0f2d6b;
  --cyan: #06b6d4;
  --teal: #10b981;
  --btn-bg: linear-gradient(180deg, #2f6ff0, #1d4ed8);
  --grad: linear-gradient(135deg, #06b6d4 0%, #2563eb 55%, #1d4ed8 100%);
  --hero-glow: radial-gradient(60% 70% at 85% 10%, rgba(6, 182, 212, .14), transparent 70%),
               radial-gradient(50% 60% at 10% 0%, rgba(37, 99, 235, .10), transparent 70%);
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --ok: #047857;
  --ok-soft: #e7f8f1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 45, 107, .06), 0 12px 32px rgba(15, 45, 107, .08);
  --space: 1rem;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: 180ms cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef9; --ink-2: #9aa8c0; --bg: #0b132b; --surface: #111c38; --line: #22305a;
    --brand: #60a5fa; --brand-ink: #0b132b; --brand-soft: #172a55; --brand-deep: #c7d8ff;
    --btn-bg: linear-gradient(180deg, #6aaefb, #3b82f6);
    --hero-glow: radial-gradient(60% 70% at 85% 10%, rgba(6, 182, 212, .16), transparent 70%),
                 radial-gradient(50% 60% at 10% 0%, rgba(37, 99, 235, .18), transparent 70%);
    --danger: #ff8a7a; --danger-soft: #3a1c1c; --ok: #34d399; --ok-soft: #0f2f2a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); 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: 1080px; margin-inline: auto; padding-inline: 20px; }

/* header */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo img, .logo svg { width: 36px; height: 36px; }
.logo .word { letter-spacing: -.03em; }
.logo .word > span { color: var(--brand); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a.link { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a.link:hover { color: var(--ink); }
.nav a.link[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .nav ul { display: none; } }

/* hero */
.hero { text-align: center; padding-block: 28px 56px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.08; margin: .2em 0 .25em; letter-spacing: -.03em; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 auto 28px; max-width: 34em; }
.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: 22px; text-align: start; }

.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 38px 18px; border: 2px dashed var(--line); border-radius: var(--radius); transition: var(--ease); cursor: pointer; background: var(--bg); }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop.disabled { cursor: not-allowed; opacity: .55; border-color: var(--line); background: var(--bg); }
.drop .big { font-size: 1.25rem; font-weight: 700; }
.drop .sub { color: var(--ink-2); font-size: .95rem; }
.drop svg { width: 44px; height: 44px; color: var(--brand); }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

.btn { white-space: nowrap; font: inherit; font-weight: 650; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 18px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--ease); }
.btn:hover:not(:disabled) { border-color: var(--brand); }
.btn.primary { background: var(--brand) var(--btn-bg); color: var(--brand-ink); border-color: transparent; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn.block { width: 100%; padding: 14px; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.small { padding: 6px 12px; font-size: .88rem; }

.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: 4px; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
input[type=text], input[type=email], input[type=password], textarea, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
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: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.files .name { font-weight: 600; 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(--brand); 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); }
.notice.info { background: var(--brand-soft); }

.result { text-align: center; }
.result h2 { margin: 4px 0 14px; font-size: 1.5rem; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-weight: 600; text-align: center; }
.qr { width: 180px; height: 180px; margin: 18px auto 6px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.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: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 650; font-size: .88rem; }
.assure { color: var(--ink-2); font-size: .92rem; margin-top: 14px; }

/* sections */
section.s { padding-block: 56px; }
section.s h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 8px; }
section.s p.sub { color: var(--ink-2); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid .card { padding: 20px; }
.grid h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.grid p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.tag.soon { background: var(--line); color: var(--ink-2); }
.price { font-size: 2rem; font-weight: 800; margin: 6px 0; }
.price small { font-size: .9rem; font-weight: 500; color: var(--ink-2); }
ul.tick { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
ul.tick li::before { content: "\2713"; color: var(--brand); font-weight: 800; margin-inline-end: 8px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; }
details p { color: var(--ink-2); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding-block: 28px; 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.6rem; letter-spacing: -.02em; }
.dl .msg { background: var(--bg); 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; letter-spacing: -.02em; }
.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 { background: var(--bg); 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 { background: var(--bg); 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: #fff4d6; color: #4a3500; border-bottom: 1px solid #e8c766; 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 6px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); opacity: .8; }
.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: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.ic-tile.big { width: 64px; height: 64px; border-radius: 50%; }
.ic-tile.big .ic { width: 30px; height: 30px; }
.nav a.btn { text-decoration: none; }
.hero-band { background: var(--hero-glow); }
.hero.split { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 48px; align-items: center; text-align: start; padding-block: 36px 64px; }
.hero.split h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: .1em; }
.hero.split p.lead { margin-inline: 0; }
.hero.split .send { max-width: none; margin: 0; }
.trust { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; color: var(--brand); }
.trust b { display: block; color: var(--ink); font-size: .92rem; }
.trust small { display: block; color: var(--ink-2); font-size: .82rem; }
.drop-mark { width: 64px; height: 64px; }
.home .drop { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
@media (max-width: 880px) { .hero.split { grid-template-columns: 1fr; gap: 28px; } }

h2.center, section.s p.sub.center { margin-inline: auto; text-align: center; }
/* five cards: 1 column, then 2+2+1 (last full width), 3+2 (centred), 5 in a row; never a lone orphan */
.features { grid-template-columns: 1fr; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, 1fr); } .features > :last-child { grid-column: 1 / -1; } }
@media (min-width: 820px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .features > * { grid-column: span 2; }
  .features > :nth-child(4) { grid-column: 2 / span 2; }
  .features > :last-child { grid-column: 4 / span 2; }
}
@media (min-width: 1060px) { .features { grid-template-columns: repeat(5, 1fr); } .features > *, .features > :nth-child(4), .features > :last-child { grid-column: auto; } }
.feature { display: flex; flex-direction: column; gap: 6px; }
.feature .tag { align-self: flex-start; margin-top: 8px; }
.feature p { flex: 1; }
.feature .more { font-weight: 650; text-decoration: none; margin-top: 8px; }
.feature .more:hover { text-decoration: underline; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { display: flex; gap: 16px; align-items: center; counter-increment: step; }
.steps h3 { margin: 0 0 2px; font-size: 1.05rem; }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.sec-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; padding: 32px; align-items: center; }
.sec-band .sub { margin-bottom: 0; }
.sec-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sec-grid article { display: grid; gap: 4px; align-content: start; }
section.s h2 { line-height: 1.15; }
.sec-grid h3 { margin-top: 8px; }
@media (max-width: 880px) { .sec-band { grid-template-columns: 1fr; padding: 22px; } }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-block: 8px 56px; padding: 32px; border-radius: var(--radius); background: var(--grad); color: #fff; }
.cta-band h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn { text-decoration: none; }
.cta-band .btn.primary { background: #fff; color: #1d4ed8; box-shadow: none; }
.cta-band .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

footer .row { align-items: center; }
footer .logo.small { font-size: 1.1rem; }
footer .logo.small img { width: 28px; height: 28px; }
footer .tagline { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); }
footer .fine { margin-top: 14px; font-size: .82rem; }

/* number fields look like the other inputs (drop limits, download limit) */
input[type=number] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; 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(--bg); }
.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); padding: 1px 5px; border-radius: 4px; }
.legal .toc { background: var(--bg); 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: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; 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); }
}
