:root {
  --navy: #0c2340;
  --blue: #1a5f9e;
  --teal: #0d9488;
  --bg: #f0f4f8;
  --card: #fff;
  --text: #152535;
  --muted: #5c6b7a;
  --border: #d4dee8;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(12, 35, 64, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 768px) {
  .container { width: min(var(--max), calc(100% - 40px)); }
}
.narrow { max-width: 640px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy); font-weight: 800; font-size: 1.1rem; text-decoration: none;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; display: grid; place-items: center; font-size: 0.75rem;
}
img.brand-mark { object-fit: cover; background: none; }
.site-header .header-inner { padding: 24px 0; }
.site-header .brand { font-size: 1.6rem; gap: 14px; }
.site-header .brand-mark { width: 60px; height: 60px; border-radius: 16px; }
.site-header .nav a:not(.btn) { font-size: 1rem; }
.site-header .nav .btn { padding: 13px 24px; font-size: 1rem; }
@media (max-width: 600px) {
  .site-header .header-inner { padding: 16px 0; }
  .site-header .brand { font-size: 1.25rem; }
  .site-header .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
}
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: color 0.15s ease; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (min-width: 768px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.9rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-family: inherit;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #c15c26, #a8481a); color: #fff; box-shadow: 0 1px 2px rgba(43,39,34,0.14); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: 14px 24px; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Subtle film grain over the whole page — breaks the flat-vector sterility. */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: 0.6; } }
body { position: relative; }
.site-header, main, .site-footer { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}

/* ---- Hero: asymmetric editorial split ---- */
.hero { padding: 56px 0 40px; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 96px 0 72px; } }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.9fr); gap: 56px; }
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); color: var(--ink);
  margin: 0 0 22px; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance;
}
.hero-em { color: var(--accent); font-style: italic; }
.hero-lead .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; line-height: 1.5; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 26px 0 0; font-size: 0.85rem; color: var(--taupe); }
.arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow, a:hover .arrow { transform: translateX(3px); }

/* Editorial "index" masthead in the hero's short column */
.hero-index { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.hero-index-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--taupe); padding: 14px 0 6px;
}
.hero-index-item {
  display: flex; align-items: baseline; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: color 0.15s ease, padding-left 0.2s ease;
}
.hero-index-item:hover { color: var(--accent); padding-left: 8px; }
.hix-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--taupe); font-variant-numeric: tabular-nums; }
.hix-name { font-family: var(--font-display); font-size: 1.2rem; }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-head { margin: 0 0 48px; max-width: 640px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; color: var(--ink); }
.section h2 { color: var(--ink); }

/* ---- Products: numbered editorial rows ---- */
.tools { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tool-row {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 28px;
  padding: 34px 20px 34px 4px; border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
  animation: rowIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}
@media (min-width: 768px) { .tool-row { grid-template-columns: 88px 1fr; padding: 40px 28px; } }
.tool-row:hover { background: var(--surface-2); padding-left: 20px; }
@media (min-width: 768px) { .tool-row:hover { padding-left: 40px; } }
.tool-row.featured { background: var(--accent-soft); }
.tool-row.featured:hover { background: color-mix(in srgb, var(--accent-soft) 82%, var(--accent)); }
.tool-row.soon { opacity: 0.72; }
.tool-num {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--taupe);
  font-variant-numeric: tabular-nums; padding-top: 6px; letter-spacing: 0.02em;
}
.tool-row.featured .tool-num { color: var(--accent); }
.tool-main h3 { margin: 12px 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.015em; color: var(--ink); }
.tool-main p { margin: 0 0 20px; color: var(--ink-soft); max-width: 56ch; line-height: 1.55; font-size: 1.02rem; }
.tool-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-2);
}
.tag-accent { color: var(--accent); }
.tag-muted { color: var(--taupe); }
.tag-flag {
  font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--band-ink); background: var(--accent);
  padding: 3px 9px; border-radius: 999px;
}
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- "One login" band ---- */
.band-section { background: var(--band); color: var(--band-ink); border-radius: var(--radius-lg); }
.band-section .container { padding-block: 0; }
.band-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 860px) { .band-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.band-title { margin: 0; color: var(--band-ink); font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
.eyebrow-band { color: var(--gold); }
.band-copy { margin: 0; color: var(--band-muted); font-size: 1.08rem; line-height: 1.6; max-width: 52ch; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 8px; background: var(--surface-2); }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center;
  font-size: 0.85rem; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand strong { display: block; color: var(--ink); font-size: 1rem; }
.footer-brand .muted { font-size: 0.8rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-fine { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.78rem; }
.muted { color: var(--muted); }

.account-main { padding: 24px 0 48px; max-width: 480px; }
@media (min-width: 768px) {
  .account-main { padding: 40px 0 64px; }
}
.account-card { padding: 20px; }
@media (min-width: 768px) {
  .account-card { padding: 28px; }
}
.account-card:has(.dashboard) {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.dashboard-header h2 { margin: 0 0 4px; color: var(--navy); }
.dashboard-lede { color: var(--muted); margin: 0 0 20px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.tool-card-soon { opacity: 0.72; }
.tool-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-weight: 800; font-size: 0.72rem;
  display: grid; place-items: center;
}
.tool-icon-classnavi { background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 0.62rem; }
.tool-icon-muted { background: var(--surface-2); color: var(--muted); font-size: 1.2rem; }
.tool-body { min-width: 0; }
.tool-body h3 { margin: 6px 0 8px; color: var(--navy); font-size: 1.05rem; }
.tool-body p { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.tool-badge {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal);
}
.tool-badge-muted { color: var(--muted); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.product-card-soon { opacity: 0.75; }
.btn-disabled {
  pointer-events: none; opacity: 0.65;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); font-size: 16px; color: var(--ink);
  background: var(--surface);
  font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--taupe); }
.field-hint { display: block; margin-top: 6px; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  color: var(--muted); font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.alert { padding: 12px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.product-launch { display: grid; gap: 12px; margin-top: 20px; }
.launch-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 12px;
}
.launch-item h4 { margin: 0; color: var(--navy); }
.launch-item p { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 639px) {
  .header-inner { flex-wrap: wrap; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav .btn { width: 100%; margin-top: 4px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
