/* TapWash Minimal & Clean Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-dark: #047857;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.18);
  
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #f1f5f9;
  --border-card: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  color: var(--text-main);
  background: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Store Badges */
.app-store-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.store-badge-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.store-badge-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-badge-btn svg {
  width: 24px;
  height: 24px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge-text span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1;
}

.store-badge-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Minimal Mockup */
.mockup-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  background: #ffffff;
  border: 8px solid #0f172a;
  border-radius: 40px;
  padding: 1.2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  position: relative;
}

.phone-top-notch {
  width: 90px;
  height: 14px;
  background: #0f172a;
  border-radius: var(--radius-full);
  margin: 0 auto 1.2rem;
}

.phone-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.app-brand-mini {
  font-weight: 800;
  color: var(--text-main);
}

.app-brand-mini span {
  color: var(--primary);
}

.app-status-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1rem;
  text-align: left;
}

.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.card-status-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  width: 75%;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.status-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
}

.status-labels .active {
  color: var(--primary-dark);
  font-weight: 700;
}

.app-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.app-service-box {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-service-box.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.service-emoji {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.app-service-box strong {
  font-size: 0.75rem;
}

.app-service-box small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.app-btn-mock {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 12px;
  text-align: center;
}

/* Features Grid */
.features-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Support Section */
.support-section {
  padding: 60px 0;
}

.support-card {
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.support-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

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

.support-card a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Legal Pages (Privacy Policy & Terms) */
.legal-header {
  padding: 60px 0 30px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content-wrapper {
  padding: 40px 0 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 90px;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

.legal-toc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.legal-toc a:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.legal-body {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.2rem 0 0.4rem;
}

.legal-body p, .legal-body ul {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.highlight-box p {
  color: var(--primary-dark);
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
}
