/* Public pages (landing, contact): ledger direction — warm paper, ink accent, IBM Plex */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --page: #f7f4ee; --card: #fdfbf7; --raised: #efe9df; --paper: #fffdf8;
  --text: #1f1b16; --text-2: #5e554a; --muted: #7b7266;
  --line: rgba(31, 27, 22, 0.09); --line-strong: rgba(31, 27, 22, 0.16);
  --ink: #2f52b5; --ink-hover: #26449a; --ink-soft: rgba(47, 82, 181, 0.08);
  --night: #1c1a18; --night-2: #262421; --night-text: #efe9de; --night-muted: #aaa398;
  --amber: #c27c0e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.05);
  --shadow-float: 0 8px 24px rgba(31, 27, 22, 0.08);
}
html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.5; background: var(--page); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.tick { color: var(--ink); font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.lucide { display: inline-block; vertical-align: middle; width: 18px; height: 18px; stroke-width: 1.5; }

/* Navigation */
nav { position: sticky; top: 0; z-index: 100; background: rgba(247, 244, 238, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 32px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; }
.brand svg { width: 18px; height: 18px; color: var(--ink); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14px; transition: color 160ms var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 20px; align-items: center; }
.link-quiet { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color 160ms var(--ease); }
.link-quiet:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); }
.btn-light { background: var(--night-text); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-ghost-dark { background: transparent; color: var(--night-text); border-color: rgba(239, 233, 222, 0.2); }
.btn-ghost-dark:hover { background: var(--night-2); }
.btn-block { width: 100%; }

/* Section heads */
section { scroll-margin-top: 64px; }
.eyebrow { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.2vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
.section-sub { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* Footer */
footer { background: var(--night); color: var(--night-muted); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: var(--night-text); }
.footer-brand .brand svg { color: #9db0e1; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; margin-top: 16px; }
.footer-col h4 { font-size: 14px; font-weight: 500; color: var(--night-text); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; font-size: 14px; transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--night-text); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(239, 233, 222, 0.08); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }

/* One entrance on load */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.enter { animation: rise 400ms var(--ease) both; }
.enter-2 { animation: rise 400ms var(--ease) 60ms both; }
@media (prefers-reduced-motion: reduce) { .enter, .enter-2 { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container, .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-cta { gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Form pages (contact, login, register): page head, form card, side list */
.page-head { padding: 80px 0 48px; }
.page-head h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; max-width: 40rem; }
.page-head p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.page-section { padding: 0 0 112px; }
.page-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 20px; font-weight: 500; }
.form-sub { margin-top: 6px; margin-bottom: 28px; font-size: 14px; color: var(--text-2); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 13px; color: var(--ink); text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.form-group input, .form-group select, .form-group textarea { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--text); background: var(--paper); transition: border-color 160ms var(--ease); }
.form-group textarea { height: auto; min-height: 128px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.recaptcha-wrap { margin-bottom: 20px; }
.submit { margin-top: 8px; }
.submit:disabled { opacity: 0.7; cursor: default; }
.form-links { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.form-links a, .text-link { color: var(--ink); text-decoration: none; }
.form-links a:hover, .text-link:hover { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; z-index: -1; }
.status-banner { display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 24px; border: 1px solid var(--line-strong); background: var(--page); }
.status-banner::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status-banner.success, .status-banner.error, .status-banner.info, .status-banner.warning { display: flex; }
.status-banner.success::before { background: #16a34a; }
.status-banner.error::before { background: #dc2626; }
.status-banner.warning::before { background: var(--amber); }
.status-banner.info::before { background: var(--ink); }
.resend { margin-top: 4px; }
.resend summary { cursor: pointer; color: var(--ink); list-style: none; }
.resend summary::-webkit-details-marker { display: none; }
.resend form { margin-top: 12px; display: flex; gap: 8px; }
.resend input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-family: inherit; font-size: 14px; background: var(--paper); color: var(--text); }
.resend input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.info { border-top: 1px solid var(--line); }
.info-item { display: grid; grid-template-columns: 18px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-item .lucide { color: var(--muted); margin-top: 2px; }
.info-item h3 { font-size: 15px; font-weight: 500; }
.info-item p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.info-item a { color: var(--ink); text-decoration: none; }
.info-item a:hover { text-decoration: underline; }
.start-card { margin-top: 32px; background: var(--night); color: var(--night-text); border-radius: 16px; padding: 28px; }
.start-card h3 { font-size: 18px; font-weight: 500; }
.start-card p { margin-top: 8px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; color: var(--night-muted); }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .page-head { padding: 48px 0 32px; }
  .page-head h1 { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .resend form { flex-direction: column; }
}
