/* Novus HQ — shared design system for every page on the site. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --text: #1c1917;
  --muted: #57534e;
  --subtle: #78716c;
  --link: #1d4ed8;
  --ink: #111827;
  --on-ink: #ffffff;
  --logo-tile: #111827;
  --logo-mark: #ffffff;
  --app-accent: #111827;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 8px rgba(28, 25, 23, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c0c0d;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --subtle: #8b8b93;
  --link: #60a5fa;
  --ink: #f4f4f5;
  --on-ink: #111827;
  --logo-tile: #f4f4f5;
  --logo-mark: #111827;
  --shadow: none;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

.wrap, .container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; flex: none; }
.logo-tile { fill: var(--logo-tile); }
.logo-mark { fill: var(--logo-mark); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: 6px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 640px) {
  .site-nav a:not(.nav-keep) { display: none; }
}

/* ─── Buttons & pills ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--live { color: #15803d; border-color: color-mix(in srgb, #15803d 30%, var(--border)); }
.pill--progress { color: #b45309; border-color: color-mix(in srgb, #b45309 30%, var(--border)); }
.pill--planned { color: var(--subtle); }
[data-theme="dark"] .pill--live { color: #4ade80; }
[data-theme="dark"] .pill--progress { color: #fbbf24; }

/* ─── Home: hero ─────────────────────────────────────── */
.home-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--border); }
.home-hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; max-width: 20ch; }
.home-hero p { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ─── Home: sections ─────────────────────────────────── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 15px; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--subtle); letter-spacing: 0.02em; margin-bottom: 8px; }

.app-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.app-grid--compact { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .app-grid--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .app-grid, .app-grid--compact { grid-template-columns: 1fr; } }

.app-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: inherit;
  transition: border-color 0.15s ease;
}
a.app-card:hover, .app-card:has(.card-link:hover) { border-color: var(--border-strong); text-decoration: none; }
.app-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.app-card-top { display: flex; align-items: center; gap: 14px; }
.app-card-top .pill { margin-left: auto; }
.app-card h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 650; }
.app-card .category { font-size: 13.5px; color: var(--subtle); }
.app-card p { color: var(--muted); font-size: 15px; }
.app-card-actions { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; font-size: 14.5px; font-weight: 600; }
.app-card-media { background: var(--surface-2); border-top: 1px solid var(--border); height: 260px; overflow: hidden; display: flex; justify-content: center; padding: 24px 24px 0; }
.app-card-media img { width: 220px; height: auto; object-fit: cover; object-position: top; border-radius: 16px 16px 0 0; border: 1px solid var(--border); border-bottom: 0; }

.app-icon-sm { width: 48px; height: 48px; border-radius: 12px; flex: none; border: 1px solid var(--border); }
.app-icon-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--subtle); font-weight: 700; font-size: 20px;
}
.app-card--muted { background: transparent; box-shadow: none; border-style: dashed; }

/* ─── Home: about & contact ──────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about-grid h2 { font-size: 26px; letter-spacing: -0.02em; }
.about-grid > div > p { color: var(--muted); margin-top: 12px; }
.principles { display: grid; gap: 20px; }
.principle { padding: 20px 0; border-top: 1px solid var(--border); }
.principle:first-child { border-top: 0; padding-top: 0; }
.principle h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.principle p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.contact-card p { color: var(--muted); margin-top: 4px; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 32px; }
.site-footer h4 { color: var(--text); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 10px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ─── App detail pages ───────────────────────────────── */
.app-page { padding-top: 56px; }
.app-page .hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-bottom: 88px; }
@media (max-width: 868px) { .app-page .hero { grid-template-columns: 1fr; gap: 40px; } }

.app-icon, .hero-icon { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 24px; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.app-icon img, .hero-icon img { width: 100%; height: 100%; border-radius: 0 !important; }
.app-icon.app-icon-placeholder { font-size: 32px; }

.hero-title { font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.hero-tagline { font-size: 19px; color: var(--muted); font-weight: 500; margin-bottom: 20px; }
.hero-desc { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 28px; max-width: 56ch; }
.badge-container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.mockup-container { display: flex; justify-content: center; }
.mockup-wrapper { width: 100%; max-width: 340px; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow); }
.mockup-image { width: 100%; display: block; }

.app-page section { margin-bottom: 88px; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; color: var(--app-accent); background: color-mix(in srgb, var(--app-accent) 10%, var(--surface)); }
[data-theme="dark"] .feature-icon { color: color-mix(in srgb, var(--app-accent) 55%, #ffffff); background: color-mix(in srgb, var(--app-accent) 22%, var(--surface)); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.feature-card p, .feature-card ul { color: var(--muted) !important; font-size: 15px; }

.detailed-desc-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; color: var(--muted); font-size: 16.5px; line-height: 1.8; }
.detailed-desc-content p + p { margin-top: 16px; }
.detailed-desc-content h3 { color: var(--text); font-size: 19px; margin: 28px 0 12px; }
.detailed-desc-content h3:first-child { margin-top: 0; }
.detailed-desc-content ul { margin: 16px 0; padding-left: 22px; }
.detailed-desc-content li { margin-bottom: 8px; }
@media (max-width: 600px) { .detailed-desc-content { padding: 24px; } }

.screenshots-container { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.screenshot-wrapper { flex: 0 0 calc(25% - 12px); min-width: 220px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); scroll-snap-align: start; }
.screenshot-wrapper figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
@media (max-width: 768px) { .screenshot-wrapper { flex: 0 0 70%; } }
.screenshot-wrapper--wide { flex: 0 0 min(720px, 90%) !important; }
.screenshot-img { width: 100%; height: auto; display: block; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }
.info-left h3 { font-size: 20px; margin-bottom: 12px; }
.info-left p { color: var(--muted); font-size: 15px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: 0; }
.info-table td { padding: 11px 0; vertical-align: top; }
.info-table td:first-child { color: var(--muted); width: 36%; padding-right: 16px; }
.info-table td:last-child { font-weight: 550; text-align: right; }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.callout h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
.callout p { color: var(--muted); max-width: 64ch; }

/* ─── Privacy pages ──────────────────────────────────── */
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 40px; }
@media (max-width: 900px) { .policy-layout { grid-template-columns: 1fr; gap: 24px; } .policy-layout .sidebar { position: static !important; } }
.policy-layout .sidebar { position: sticky; top: 88px; align-self: start; }
.toc-title { font-size: 12.5px; font-weight: 600; color: var(--subtle); letter-spacing: 0.04em; margin-bottom: 10px; }
.toc-list { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc-link { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; }
.toc-link:hover { color: var(--text); text-decoration: none; }
.toc-link.active { color: var(--text); border-left-color: var(--text); font-weight: 550; }

.policy { max-width: 760px; }
.policy .back-link { display: inline-block; font-size: 14px; font-weight: 550; margin-bottom: 20px; }
.title-section { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.title-section h1, .title-section h2, .policy > h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px; }
.title-section p { color: var(--muted) !important; font-size: 16.5px !important; }
.meta-info { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; color: var(--subtle); font-size: 14px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }

.summary-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--text); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 36px; }
.summary-title { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 8px; }
.summary-text { color: var(--muted); font-size: 15.5px; }

.doc-section, .policy > h2 { scroll-margin-top: 88px; }
.doc-section { margin-bottom: 40px; }
.doc-section h3, .policy > h2 { font-size: 21px; letter-spacing: -0.015em; margin: 0 0 12px; }
.policy > h2 { margin-top: 36px; }
.doc-section h4 { font-size: 16px; margin: 22px 0 8px; }
.doc-section p, .policy > p { color: var(--muted); margin-bottom: 14px; }
.doc-section ul, .doc-section ol { color: var(--muted); padding-left: 22px; margin-bottom: 14px; }
.doc-section li { margin-bottom: 6px; }
.doc-section strong, .policy strong { color: var(--text); }

.table-container { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-container table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-container th { text-align: left; background: var(--surface-2); font-weight: 600; }
.table-container th, .table-container td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-container tr:last-child td { border-bottom: 0; }
.table-container td { color: var(--muted); }

.contact-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin-top: 12px; }
.highlight-var { background: var(--surface-2); border-radius: 4px; padding: 0 4px; }
.policy-single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.pill { white-space: nowrap; }
@media (max-width: 480px) {
  .app-card-top { flex-wrap: wrap; }
  .app-card-top > div { flex: 1 1 calc(100% - 62px); }
  .app-card-top .pill { margin-left: 0; }
}
.badge-container .category { color: var(--subtle); font-size: 14px; }
