/* MintFeed Design System */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mint: #3DFFA2;
  --mint-dim: #2ad98a;
  --dark: #0a0f0d;
  --dark-card: #111916;
  --dark-border: #1d2b23;
  --gray: #8a9b91;
  --white: #f0f5f2;
  --off-white: #c4d4ca;
  --error: #ff4d6a;
  --error-bg: rgba(255, 77, 106, 0.08);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 255, 162, 0.06);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--mint); }

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

.nav-links a {
  font-size: 0.88rem;
  color: var(--off-white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--mint);
  color: var(--dark);
}
.btn-primary:hover { background: var(--mint-dim); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--dark-border);
}
.btn-secondary:hover { border-color: rgba(61, 255, 162, 0.3); background: rgba(61,255,162,0.04); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

.btn-ghost {
  background: transparent;
  color: var(--mint);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
.btn-ghost:hover { background: rgba(61,255,162,0.06); }

/* LAYOUT */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 6.5rem 2rem 3rem;
}

.page-wide {
  max-width: 1100px;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--off-white);
  margin-bottom: 2.5rem;
}

/* CARDS */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* FORMS */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mint);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9b91' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--dark-card);
  color: var(--white);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.35rem;
}

/* ALERT */
.alert {
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid rgba(255, 77, 106, 0.2);
  color: #ff8fa3;
}

.alert-success {
  background: rgba(61, 255, 162, 0.08);
  border: 1px solid rgba(61, 255, 162, 0.15);
  color: var(--mint);
}

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-mint {
  background: rgba(61, 255, 162, 0.1);
  color: var(--mint);
  border: 1px solid rgba(61, 255, 162, 0.2);
}

.badge-gray {
  background: rgba(138, 155, 145, 0.1);
  color: var(--gray);
  border: 1px solid rgba(138, 155, 145, 0.2);
}

.badge-starter {
  background: rgba(61, 255, 162, 0.08);
  color: var(--mint);
  border: 1px solid rgba(61, 255, 162, 0.15);
}

.badge-growth {
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

/* DIVIDER */
.divider {
  border: none;
  height: 1px;
  background: var(--dark-border);
  margin: 1.5rem 0;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* LOADING */
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(61, 255, 162, 0.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 13, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  gap: 1.5rem;
}

.loading-overlay .loading-spinner {
  width: 40px; height: 40px;
  border-width: 3px;
}

.loading-overlay p {
  color: var(--off-white);
  font-size: 1rem;
}

/* POST CARD */
.post-card {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.post-card:hover { border-color: rgba(61, 255, 162, 0.15); }

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.post-day {
  font-weight: 600;
  font-size: 0.88rem;
}

.post-platform {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: capitalize;
}

.post-caption {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  color: var(--off-white);
}

.post-hashtags {
  font-size: 0.82rem;
  color: var(--mint);
  line-height: 1.6;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.post-idea {
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
  padding: 0.75rem;
  background: rgba(61, 255, 162, 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(61, 255, 162, 0.2);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--gray);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.copy-btn:hover { border-color: var(--mint); color: var(--mint); }
.copy-btn.copied { border-color: var(--mint); color: var(--mint); background: rgba(61,255,162,0.06); }

/* STORY CARD */
.story-card {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.story-hook {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.story-points {
  list-style: none;
  margin-bottom: 0.75rem;
}

.story-points li {
  font-size: 0.88rem;
  color: var(--off-white);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.story-points li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--mint);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.story-cta {
  font-size: 0.85rem;
  color: var(--mint);
  font-weight: 500;
}

/* PRICING CARDS (in-app) */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.price-card-app {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.price-card-app.featured { border-color: rgba(61, 255, 162, 0.3); }

.price-card-app h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price-card-app .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.price-card-app .price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray);
}

.price-card-app .features {
  list-style: none;
  margin: 1.25rem 0;
  text-align: left;
}

.price-card-app .features li {
  font-size: 0.85rem;
  color: var(--off-white);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card-app .features li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--mint);
  border-radius: 50%;
  flex-shrink: 0;
}

/* KIT LIST */
.kit-list-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kit-list-item:hover {
  border-color: rgba(61, 255, 162, 0.2);
  transform: translateY(-1px);
}

.kit-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.kit-info p {
  font-size: 0.82rem;
  color: var(--gray);
}

.kit-arrow {
  color: var(--gray);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.kit-list-item:hover .kit-arrow { color: var(--mint); }

/* TABS */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 0;
}

.tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.tab:hover { color: var(--off-white); }
.tab.active { color: var(--mint); border-bottom-color: var(--mint); }

/* CALENDAR SUMMARY */
.calendar-summary {
  background: rgba(61, 255, 162, 0.04);
  border: 1px solid rgba(61, 255, 162, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--off-white);
}

.calendar-summary strong {
  color: var(--mint);
  font-weight: 600;
}

/* SUBSCRIPTION BANNER */
.sub-banner {
  background: linear-gradient(135deg, rgba(61, 255, 162, 0.06) 0%, rgba(61, 255, 162, 0.02) 100%);
  border: 1px solid rgba(61, 255, 162, 0.15);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-banner-text h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sub-banner-text p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* LINK */
a.link { color: var(--mint); text-decoration: none; }
a.link:hover { text-decoration: underline; }

/* FOOTER */
.page-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.page-footer a { color: var(--mint); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .page-container { padding: 5.5rem 1.25rem 2rem; }
  .pricing-row { grid-template-columns: 1fr; }
  .sub-banner { flex-direction: column; gap: 1rem; text-align: center; }
}

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