/* Plus Jakarta Sans (SIL Open Font License, fonts/OFL.txt), served from our own site so visitors' browsers don't
   contact Google (legal review P4). One variable file per character set covers every weight. */
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(fonts/plus-jakarta-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(fonts/plus-jakarta-sans-latin.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;
}

/* Shared look for the public pages (intro, sign-up, login). */
:root {
    --navy: #0b1b3a;
    --blue: #0a6cf5;
    --blue-ink: #0757c8;
    --green: #1eb54f;
    --slate: #5d6b84;
    --muted: #8794aa;
    --line: #e2e8f1;
    --tint: #f3f7fd;
    --bg: #ffffff;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(11, 27, 58, .06), 0 12px 32px -12px rgba(11, 27, 58, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--navy);
    font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-ink); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px;
    font: 700 16px/1 inherit; font-family: inherit; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(10, 108, 245, .4); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }

/* Header */
header.top {
    position: sticky; top: 0; z-index: 10; padding: 14px 0;
    background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 34px; }
.brand span { color: var(--blue); }
header.top .btn { padding: 10px 18px; font-size: 15px; }
header.top .top-links { display: flex; gap: 6px; align-items: center; flex-shrink: 0; margin-left: auto; }
header.top .top-links .btn { white-space: nowrap; }
header.top .top-links .plain { color: inherit; font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 12px; }
@media (max-width: 420px) {
    header.top .wrap { gap: 8px; }
    header.top .brand { font-size: 16px; gap: 6px; }
    header.top .brand img { width: 26px; height: 28px; }
    header.top .btn { padding: 8px 14px; }
    header.top .top-links .plain { padding: 8px 6px; }
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 24px; height: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--slate); text-decoration: none; }
footer a:hover { color: var(--blue-ink); }

/* Forms (sign-up, login) */
.auth { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 32px 0 64px; }
.card {
    width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--shadow); padding: 36px 32px;
}
.card h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.card .intro { color: var(--slate); margin: 0 0 24px; font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.field input {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font: 500 16px/1.3 inherit; font-family: inherit; color: var(--navy); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 108, 245, .14); }
.card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.card .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.msg:empty { display: none; }
.msg.error { background: #fdecec; color: #a32020; }
.msg.ok { background: #e8f7ee; color: #146c35; }
.consent { font-size: 14px; color: var(--slate); margin: 4px 0 16px; }
.consent.agree { display: flex; gap: 8px; align-items: flex-start; color: var(--navy); cursor: pointer; }
.consent.agree input { margin-top: 3px; flex: none; width: auto; }
.switch { text-align: center; margin: 20px 0 0; font-size: 15px; color: var(--slate); }
.hidden { display: none !important; }

@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .card { padding: 28px 20px; border-radius: 20px; }
}

/* Legal pages (terms, privacy) */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.legal .summary { background: var(--tint); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 32px; }
.legal .summary p { margin: 0 0 8px; }
.legal .summary ul { margin: 0; }
.legal .alert { border: 2px solid #d93025; background: #fdecec; color: #7a1414; border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.legal .alert strong { display: block; font-size: 18px; margin-bottom: 4px; }
.legal h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: #24324d; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.legal .table-wrap { overflow-x: auto; }
.legal .placeholder { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
