/* Oura Connect - Dark theme with silver/teal accents */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg-primary: #0c0c0f;
  --bg-secondary: #141418;
  --bg-card: #1a1a21;
  --bg-card-hover: #22222b;
  --border: #2a2a35;
  --text-primary: #e8e8ed;
  --text-secondary: #9898a6;
  --text-muted: #5e5e6e;
  --accent: #4ac6c9;
  --accent-hover: #5dd4d7;
  --accent-glow: rgba(74, 198, 201, 0.15);
  --silver: #c0c0cc;
  --silver-dim: #8888a0;
  --danger: #e05555;
  --success: #4aca7a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: #0c0c0f;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #0c0c0f;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--silver-dim);
  color: var(--text-primary);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-primary); }
.logo-ring {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

/* ===== LANDING NAV ===== */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text-primary); }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== PLATFORMS ===== */
.platforms {
  padding: 2rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.platform-card:hover {
  border-color: var(--silver-dim);
}
.platform-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.claude-bg { background: #D97757; }
.gpt-bg { background: #10A37F; }
.platform-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.platform-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.platform-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== FEATURES ===== */
.features {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
  filter: grayscale(60%);
}
.feature h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.feature p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.how-it-works h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.hw-step {
  text-align: center;
}
.hw-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hw-step h4 {
  margin-bottom: 0.35rem;
}
.hw-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== PRICING ===== */
.pricing-section {
  padding: 3rem 2rem 5rem;
  max-width: 500px;
  margin: 0 auto;
}
.pricing-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}
.price-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.price-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}
.price-features li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.price-features li::before {
  content: '✓';
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a {
  color: var(--text-muted);
  margin-left: 1rem;
}
.footer-note {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== DASHBOARD ===== */
.dashboard-page {
  background: var(--bg-primary);
}
.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 1000px;
  margin: 0 auto;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-email {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.dash-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}
.dash-header {
  margin-bottom: 2rem;
}
.dash-header h1 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.active { background: rgba(74, 202, 122, 0.15); color: var(--success); }
.badge.trial { background: rgba(74, 198, 201, 0.15); color: var(--accent); }
.badge.expired { background: rgba(224, 85, 85, 0.15); color: var(--danger); }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Steps */
.steps { margin-top: 1.5rem; }
.step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.step strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Copy fields */
.copy-field {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.copy-field input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
}
.copy-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  min-width: 80px;
}
.auth-details {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== CONSENT PAGE ===== */
.consent-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}
.consent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
}
.consent-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.consent-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.consent-details {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
}
.consent-details ul {
  list-style: none;
  margin-top: 0.5rem;
}
.consent-details li {
  padding: 0.2rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.consent-details li::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.5rem;
}
.consent-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== PRIVACY ===== */
.privacy-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}
.privacy-main h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.privacy-main .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.privacy-main h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}
.privacy-main p, .privacy-main li {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.privacy-main ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .landing-nav { padding: 1rem; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero-cta { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}
