/* ══════════════════════════════════════════
   ClikFlow — Landing + Auth page styles
   Uses the same design tokens as styles.css
   ══════════════════════════════════════════ */

:root {
  --bg: oklch(0.985 0.004 80);
  --surface: oklch(0.975 0.005 80);
  --surface-2: oklch(0.955 0.006 80);
  --fg: oklch(0.18 0.008 80);
  --fg-muted: oklch(0.45 0.008 80);
  --fg-dim: oklch(0.62 0.008 80);
  --border: oklch(0.90 0.006 80);
  --border-strong: oklch(0.82 0.008 80);
  --accent: oklch(0.58 0.17 30);
  --accent-fg: oklch(0.99 0.005 80);
  --accent-tint: oklch(0.93 0.04 30);
  --good: oklch(0.60 0.13 150);
  --bad: oklch(0.55 0.20 25);
  --bad-tint: oklch(0.93 0.05 25);
  --font-sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Shared button styles ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { color: var(--fg); }
.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════ */

/* Navbar */
.ln-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
}
.ln-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ln-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.ln-logo-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.ln-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */
.ln-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 48px 72px;
  text-align: center;
}
.ln-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 28px;
}
.ln-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 22px;
}
.ln-h1 span {
  color: var(--accent);
}
.ln-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.ln-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.ln-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fg-dim);
  font-weight: 500;
}
.ln-stats-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Features */
.ln-features {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 48px 96px;
}
.ln-section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.ln-section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.ln-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ln-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.ln-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px oklch(0.58 0.17 30 / .08);
}
.ln-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ln-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.ln-card-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* Footer */
.ln-footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--fg-dim);
}

/* ══════════════════════════════════════════
   LANDING — EXTENDED SECTIONS
   ══════════════════════════════════════════ */

/* Hero two-column */
.ln-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  text-align: left;
}
.ln-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.ln-ctas { justify-content: flex-start; }
.ln-stats { justify-content: flex-start; }
.ln-hero-demo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px oklch(0.18 0.008 80 / .10);
  background: #0f172a;
}
@media (max-width: 768px) {
  .ln-hero { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 56px 24px 40px; }
  .ln-ctas { justify-content: center; }
  .ln-stats { justify-content: center; flex-wrap: wrap; }
  .ln-hero-demo { display: none; }
  .ln-hero-text { align-items: center; }
}

/* Trust bar */
.ln-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 48px;
}
.ln-trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.ln-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.ln-trust-item svg { color: var(--accent); flex-shrink: 0; }

/* How it works */
.ln-how {
  max-width: 1060px;
  margin: 0 auto;
  padding: 80px 48px;
}
.ln-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 48px;
}
.ln-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 50%, var(--accent) 100%);
  opacity: .4;
}
.ln-step { text-align: center; padding: 0 12px; }
.ln-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--accent-tint);
}
.ln-step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.ln-step-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fg-muted);
}
@media (max-width: 640px) {
  .ln-steps { grid-template-columns: 1fr; }
  .ln-steps::before { display: none; }
}

/* Process demo section */
.ln-demo-section {
  background: #0c1220;
  padding: 80px 48px;
  overflow: hidden;
}
.ln-demo-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.ln-demo-section .ln-section-label { color: #4a5568; }
.ln-demo-section .ln-section-title { color: #f1f5f9; }
.ln-demo-subtitle {
  text-align: center;
  font-size: 15px;
  color: #64748b;
  margin-top: -28px;
  margin-bottom: 48px;
}
.ln-petri-wrap {
  background: #111827;
  border: 1px solid #1e2d3d;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.ln-petri-header {
  background: #0f172a;
  border-bottom: 1px solid #1e2d3d;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ln-petri-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.ln-petri-title {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  margin-left: 6px;
  font-family: var(--font-display);
}
.ln-petri-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 18px;
  background: #0f172a;
  border-top: 1px solid #1e2d3d;
  flex-wrap: wrap;
}
.ln-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #64748b;
}
.ln-legend-place {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #475569; flex-shrink: 0;
}
.ln-legend-trans {
  width: 18px; height: 12px;
  border-radius: 3px;
  background: #1e3a5f;
  border: 1px solid #2d6ca3;
  flex-shrink: 0;
}
.ln-legend-token {
  width: 12px; height: 12px; border-radius: 50%;
  background: #c2410c; flex-shrink: 0;
}
.ln-legend-bottleneck {
  width: 18px; height: 12px;
  border-radius: 3px;
  background: #450a0a;
  border: 1px solid #ef4444;
  flex-shrink: 0;
}

/* App screenshot mockup */
.ln-preview-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 80px 48px;
}
.ln-preview-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px oklch(0.18 0.008 80 / .10);
  background: #f8fafc;
}
.ln-preview-chrome {
  background: #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #cbd5e1;
}
.ln-chrome-dot { width: 11px; height: 11px; border-radius: 50%; }
.ln-chrome-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: #64748b;
  font-family: var(--font-sans);
  margin: 0 8px;
  border: 1px solid #cbd5e1;
}
.ln-app-shell {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 380px;
  background: #fff;
}
.ln-app-main {
  border-right: 1px solid #e2e8f0;
  padding: 0;
  overflow: hidden;
}
.ln-app-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ln-app-tab {
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  border-right: 1px solid #e2e8f0;
}
.ln-app-tab.active { background: #fff; color: #c2410c; border-bottom: 2px solid #c2410c; margin-bottom: -1px; }
.ln-app-canvas {
  padding: 24px;
  position: relative;
  min-height: 320px;
}
.ln-app-sidebar {
  padding: 18px;
  background: #f8fafc;
}
.ln-sidebar-section {
  margin-bottom: 20px;
}
.ln-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: 10px;
}
.ln-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ln-metric-name { font-size: 12.5px; color: #475569; }
.ln-metric-val { font-size: 13px; font-weight: 700; color: #c2410c; font-family: var(--font-display); }
.ln-metric-bar-wrap { height: 4px; background: #e2e8f0; border-radius: 2px; margin-bottom: 12px; }
.ln-metric-bar { height: 100%; background: #c2410c; border-radius: 2px; }
.ln-bottleneck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
}
.ln-bottleneck-row.hot { background: #fff5f5; border-color: #fecaca; }
.ln-btn-name { color: #334155; font-weight: 500; }
.ln-btn-time { color: #ef4444; font-weight: 700; }
.ln-btn-time.ok { color: #16a34a; }
@media (max-width: 640px) {
  .ln-app-shell { grid-template-columns: 1fr; }
  .ln-app-sidebar { display: none; }
}

/* Academic section */
.ln-academic {
  background: linear-gradient(135deg, var(--accent-tint) 0%, oklch(0.96 0.02 60) 100%);
  border-top: 1px solid var(--accent-tint);
  border-bottom: 1px solid var(--accent-tint);
  padding: 72px 48px;
}
.ln-academic-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ln-academic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.ln-academic-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.ln-academic-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.ln-academic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ln-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-muted);
}
.ln-algo-cards { display: flex; flex-direction: column; gap: 12px; }
.ln-algo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .15s;
}
.ln-algo-card:hover { border-color: var(--accent); }
.ln-algo-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ln-algo-name { font-weight: 700; font-family: var(--font-display); font-size: 14px; color: var(--fg); }
.ln-algo-desc { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; margin-top: 2px; }
@media (max-width: 768px) {
  .ln-academic-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* CTA section */
.ln-cta-section {
  padding: 96px 48px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.ln-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.ln-cta-title span { color: var(--accent); }
.ln-cta-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.ln-cta-note { font-size: 12.5px; color: var(--fg-dim); margin-top: 16px; }

/* ══════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: 0 8px 40px oklch(0.18 0.008 80 / .08);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-decoration: none;
}
.auth-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.auth-logo-word {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: block;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 4px oklch(0.18 0.008 80 / .10);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
}
.auth-input {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--fg);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.auth-input:focus { border-color: var(--accent); }
.auth-input::placeholder { color: var(--fg-dim); }

.auth-submit {
  margin-top: 4px;
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.auth-submit:hover { opacity: .88; }

.auth-error {
  background: var(--bad-tint);
  border: 1px solid oklch(0.85 0.08 25);
  color: var(--bad);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}
.auth-success {
  background: var(--good-tint, oklch(0.93 0.04 150));
  border: 1px solid var(--good);
  color: var(--good);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}
.auth-footer a { color: var(--accent); }

.auth-back {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-dim);
}
.auth-back a { color: var(--fg-muted); }
.auth-back a:hover { color: var(--fg); }
