/* Plianta — Design System (shared with Fieldnotes) */

:root {
  /* Primary (Navy) */
  --primary-900: #111d33;
  --primary-800: #1a2744;
  --primary-700: #233560;
  --primary-600: #2d4a7a;
  --primary-500: #3a6298;
  --primary-400: #5a82b4;
  --primary-300: #8aaad0;
  --primary-200: #b5cce3;
  --primary-100: #dce8f3;

  /* Accent (Cyan) */
  --accent-light: #8fd9e4;
  --accent: #5ec4d4;
  --accent-dark: #3a9aab;

  /* Neutral */
  --neutral-900: #1c2331;
  --neutral-800: #2d3545;
  --neutral-700: #404b5c;
  --neutral-600: #5a6577;
  --neutral-500: #758192;
  --neutral-400: #949dad;
  --neutral-300: #b5bcc8;
  --neutral-200: #d3d9e2;
  --neutral-100: #e0eaf6;
  --neutral-50: #f0f4f9;

  /* Semantic */
  --bg-primary: #f7f9fc;
  --bg-secondary: #f0f4f9;
  --surface: #ffffff;
  --text-primary: #2d3545;
  --text-secondary: #5a6577;
  --text-tertiary: #758192;
  --text-on-primary: #e0eaf6;
  --border: #d3d9e2;
  --border-emphasis: #b5bcc8;
}

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

/* Base */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.3;
  color: var(--primary-900);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; }

p { margin-top: 0.75rem; }

a {
  color: var(--primary-500);
  text-decoration: none;
}
a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

ul, ol {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
}
li { margin-top: 0.35rem; }

/* Layout */
.site-header {
  background: var(--primary-900);
  color: var(--text-on-primary);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-on-primary);
}

.site-header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-header .logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--neutral-300);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.site-header nav a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  flex: 1;
}

/* Hero (Landing page) */
.hero {
  text-align: center;
  padding: 4rem 0 2rem;
}

.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.hero .description {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--primary-900);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-cta:hover {
  background: var(--accent-dark);
  color: var(--text-on-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Product cards */
.products {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(17, 29, 51, 0.08);
}

.product-card h3 {
  margin-top: 0;
  color: var(--primary-700);
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Legal pages */
.legal h1 {
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal section {
  margin-top: 2rem;
}

.legal section h2 {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--primary-100);
}

/* Info box */
.info-box {
  background: var(--primary-100);
  border-left: 4px solid var(--primary-500);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.25rem;
}

.info-box p { margin-top: 0; }

/* Steps list */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-top: 1.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary-600);
  color: var(--text-on-primary);
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq dt {
  font-weight: 600;
  color: var(--primary-700);
  margin-top: 1.25rem;
}

.faq dd {
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-left: 0;
}

/* Footer */
.site-footer {
  background: var(--primary-900);
  color: var(--neutral-400);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer nav a {
  color: var(--neutral-300);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent-light);
}

.site-footer .copy {
  color: var(--neutral-500);
}

/* ==========================================
   SUITE SHELL — Dashboard & Auth
   ========================================== */

/* Hidden utility */
.hidden { display: none !important; }

/* Shell nav (header right side on dashboard) */
.shell-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shell-user-email {
  color: var(--neutral-300);
  font-size: 0.85rem;
}

.shell-logout-btn {
  background: transparent;
  border: 1px solid var(--neutral-500);
  color: var(--neutral-300);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.shell-logout-btn:hover {
  background: var(--neutral-700);
  color: var(--text-on-primary);
}

/* Auth section */
.auth-section {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-title {
  margin-top: 0;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.auth-tab.active {
  color: var(--primary-700);
  border-bottom-color: var(--accent);
}

.auth-error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.auth-form input:focus {
  border-color: var(--accent);
}

.auth-submit {
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* Dashboard */
.dashboard-header {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.dashboard-header h1 {
  margin-top: 0;
}

.dashboard-subtitle {
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Module grid */
.module-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.module-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.module-card:hover {
  box-shadow: 0 4px 16px rgba(17, 29, 51, 0.08);
  border-color: var(--accent);
  text-decoration: none;
  color: inherit;
}

.module-card--disabled {
  opacity: 0.6;
  cursor: default;
}

.module-card--disabled:hover {
  box-shadow: none;
  border-color: var(--border);
}

.module-icon {
  flex-shrink: 0;
}

.module-info {
  flex: 1;
  min-width: 0;
}

.module-info h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--primary-800);
}

.module-info p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.module-arrow {
  font-size: 1.25rem;
  color: var(--neutral-400);
  flex-shrink: 0;
}

.badge-soon {
  display: inline-block;
  background: var(--neutral-100);
  color: var(--neutral-600);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  vertical-align: middle;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .site-header nav {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 1.5rem 1rem 3rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .hero { padding: 2.5rem 0 1.5rem; }
  .hero .icon { width: 72px; height: 72px; }

  .shell-nav { gap: 0.5rem; }
  .shell-user-email { font-size: 0.75rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .auth-card { padding: 1.5rem; }
  .dashboard-header { padding: 1.5rem 0 0.5rem; }

  .module-card { padding: 1rem; gap: 0.75rem; }
}
