/*
 * Industry — the design system from the "Secure file sharing landing page"
 * handoff (design/styles.css is the source of truth for the tokens below).
 *
 * Only the parts this app actually renders are kept: the frame motif, buttons,
 * cards, tags and nav. Forms, tables, dialogs and the image treatments were
 * dropped rather than shipped unused.
 *
 * Fonts are self-hosted instead of @import-ed from Google. This page reports a
 * visitor's exact position, and the app is bound to EU data residency — issuing
 * a request to a third party from the gate would hand them every blocked
 * visitor's IP address. The handoff asks for self-hosting in production anyway.
 */

@font-face {
    font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/barlow-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('fonts/barlow-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('fonts/barlow-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/barlow-condensed-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('fonts/barlow-condensed-600.woff2') format('woff2');
}

:root {
    --color-bg: #f2f2f3;
    --color-surface: #e9e9ea;
    --color-text: #1d1f20;
    --color-accent: #5980a6;
    --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

    --color-accent-100: #eef6ff;
    --color-accent-600: #597ea3;
    --color-accent-700: #416180;
    --color-accent-800: #2c455d;

    --color-neutral-100: #f5f5f8;
    --color-neutral-800: #424244;

    --font-heading: "Barlow Condensed", system-ui, sans-serif;
    --font-heading-weight: 600;
    --font-body: "Barlow", system-ui, sans-serif;

    --space-1: 3.4px;
    --space-2: 6.8px;
    --space-3: 10.2px;
    --space-4: 13.6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }

/* The system's own focus ring, never the browser default. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — the frame motif: every framed object is a line drawing with four
     registration marks sitting just outside its corners — */
.blueprint {
    position: relative;
    border: 1px solid var(--color-divider);
    border-radius: 0;
}
.blueprint > .corner {
    position: absolute; width: 11px; height: 11px;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* — buttons — */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; text-decoration: none;
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 14px; line-height: 1.2;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-divider);
    padding: var(--space-2) calc(var(--space-3) * 1.2);
    border-radius: 0;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* — cards — */
.card {
    display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-3);
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--color-divider);
}
.card-kicker {
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-accent);
}
.card-title {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 17px; line-height: 1.2;
    margin: 0;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }

/* — tags — */
.tag {
    display: inline-flex; align-items: center;
    font-size: 11px; letter-spacing: 0.02em;
    padding: 3px 10px;
    border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }

/* — navigation — */
.nav {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-bottom: none;
}
.nav-brand {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 18px;
    margin-right: auto;
}
