/* Driftr marketing pages — landing, about, etc. */

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

:root {
  --bg:       #0a0a0c;
  --surface:  #111114;
  --border:   #222226;
  --border2:  #2e2e32;
  --text:     #f0efe8;
  --muted:    #6b6b72;
  --gold:     #b8a98a;
  --gold-dim: #7a6e5a;
  --accent:   #b8a98a;
  --nav-bg:        rgba(10,10,12,0.92);
  --faint:         #3a3a40;
  --surface-hover: #161619;
}

[data-theme="light"] {
  --bg:       #f7f6f2;
  --surface:  #fffefb;
  --border:   #e3e1d8;
  --border2:  #d3d0c5;
  --text:     #1c1b19;
  --muted:    #716f67;
  --gold:     #8a7550;
  --gold-dim: #a3906c;
  --accent:   #8a7550;
  --nav-bg:        rgba(247,246,242,0.92);
  --faint:         #c4c1b6;
  --surface-hover: #f0eee8;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

.nav-wordmark .r { color: var(--muted); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.btn-signin {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-signin:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  gap: 2rem;
}

.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
}

.wordmark .r { color: var(--muted); font-style: italic; }

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 400;
  color: var(--text);
  max-width: 560px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-subtagline {
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-top: -0.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--text); }

.d-mark { display: block; }

.divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  margin: 0 auto;
}

/* ── Features ────────────────────────────────────────── */
.features {
  padding: 3rem 1.5rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  background: var(--surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.7;
}

.feature-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── About page ──────────────────────────────────────── */
.page-header {
  padding: 7rem 1.5rem 3rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section {
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

.section-body + .section-body {
  margin-top: 1rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.step {
  background: var(--surface);
  padding: 1.75rem;
}

.step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.step-desc a {
  color: var(--gold);
  text-decoration: none;
}

.step-desc a:hover {
  text-decoration: underline;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.workflow-card {
  background: var(--surface);
  padding: 1.75rem;
}

.workflow-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.workflow-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.workflow-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-note {
  margin-top: 1.25rem;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--gold);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.support-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  margin-top: 1.5rem;
}

.support-box p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.support-box p + p {
  margin-top: 1rem;
}

.support-box a {
  color: var(--gold);
  text-decoration: none;
}

.support-box a:hover {
  text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-brand .r { font-style: italic; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-note {
  font-size: 0.75rem;
  color: var(--faint);
}

@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── Sign-in portal chooser ──────────────────────────── */
.signin-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.signin-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.signin-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2rem;
}

.signin-note a {
  color: var(--gold);
  text-decoration: none;
}

.signin-note a:hover { text-decoration: underline; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.portal-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.portal-card:hover {
  background: var(--surface-hover);
}

.portal-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.portal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}

.portal-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.portal-cta {
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ── Legal pages (privacy, terms) ────────────────────── */
.legal-doc {
  max-width: 720px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.legal-doc section {
  margin-bottom: 2.5rem;
}

.legal-doc h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.legal-doc h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

.legal-doc p + p {
  margin-top: 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0.75rem 0 1rem 1.35rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-doc a {
  color: var(--gold);
  text-decoration: none;
}

.legal-doc a:hover {
  text-decoration: underline;
}
