:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --text: #101211;
  --muted: #2e3130;
  --accent: #0066ff;
  --border: #dbdbdb;
  --logo-light: block;
  --logo-dark: none;
  --btn-bg: #0066ff;
  --btn-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101211;
    --surface: #171918;
    --text: #f7f7f7;
    --muted: #dbdbdb;
    --accent: #86b7ff;
    --border: #2e3130;
    --logo-light: none;
    --logo-dark: block;
    --btn-bg: #86b7ff;
    --btn-text: #0b1f3a;
  }
}
:root[data-theme="dark"] {
  --bg: #101211;
  --surface: #171918;
  --text: #f7f7f7;
  --muted: #dbdbdb;
  --accent: #86b7ff;
  --border: #2e3130;
  --logo-light: none;
  --logo-dark: block;
  --btn-bg: #86b7ff;
  --btn-text: #0b1f3a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 16px;
}
main {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 32px;
}
.brand { margin-bottom: 40px; }
.brand img { height: 56px; width: auto; }
.brand .on-light { display: var(--logo-light); }
.brand .on-dark { display: var(--logo-dark); }
h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
p { margin: 0 0 16px; color: var(--muted); }
.card {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.card p { margin: 0; }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
footer {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

/* Shared components (apply / privacy pages) */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover, .btn:focus-visible { text-decoration: none; filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: progress; }
form { display: grid; gap: 16px; margin-top: 8px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--text); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: end; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.notice.ok { border-color: #2e7d32; }
.notice.err { border-color: #c62828; }
main.page { justify-content: flex-start; padding-top: 40px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
ul { color: var(--muted); padding-left: 20px; }
nav.top { margin-bottom: 24px; }

input:not([type=checkbox]), select { height: 46px; }
