/* ─── Mediqrate Website — Shared Styles ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #00C4A0;
  --teal-dark: #009e82;
  --navy: #0D1B2E;
  --navy-light: #132033;
  --text: #1a2636;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }

/* ─── NAV ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 1.15rem; color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.875rem;
  font-weight: 500; padding: 7px 13px; border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-subtle); color: var(--text); }
.nav-links a.active { color: var(--teal); font-weight: 600; }
.nav-links a.btn-play {
  background: var(--teal); color: #fff; font-weight: 700; margin-left: 8px;
  padding: 8px 18px;
}
.nav-links a.btn-play:hover { background: var(--teal-dark); color: #fff; }

/* ─── PAGE HERO (legal pages) ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2240 100%);
  padding: 60px 24px 52px;
  text-align: center;
}
.page-hero .badge {
  display: inline-block;
  background: rgba(0,196,160,0.15); color: var(--teal);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(0,196,160,0.3);
  margin-bottom: 14px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.page-hero p { color: #7A9FBF; font-size: 0.9rem; }

/* ─── CONTENT WRAPPER ──────────────────────────────────────────────────────── */
.content-wrap { max-width: 800px; margin: 0 auto; padding: 52px 24px 96px; }

/* ─── PROSE ────────────────────────────────────────────────────────────────── */
.prose { font-size: 0.96rem; }
.prose h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 28px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 10px 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--navy); }
.prose a { color: var(--teal); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.callout {
  background: #f0fdf9; border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 20px 0 28px;
}
.callout p { margin: 0; color: #065f46; font-size: 0.93rem; line-height: 1.6; }
.callout strong { color: #064e3b; }

/* ─── TABLES ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 16px 0 28px; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 400px; }
thead tr { background: var(--navy); }
th { color: #fff; text-align: left; padding: 10px 16px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; }
td { padding: 10px 16px; border-top: 1px solid var(--border); vertical-align: top; color: var(--text); }
tbody tr:nth-child(even) td { background: var(--bg-subtle); }

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
footer { background: var(--navy); padding: 40px 24px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a {
  color: #7A9FBF; font-size: 0.875rem; text-decoration: none;
  padding: 4px 10px; border-radius: 6px; transition: color 0.15s;
}
.footer-links a:hover { color: var(--teal); }
.footer-copy { color: #3D5A72; font-size: 0.8rem; }
.footer-copy a { color: #3D5A72; text-decoration: none; }

/* ─── DELETE ACCOUNT PAGE ──────────────────────────────────────────────────── */
.delete-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-side h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.info-side p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.info-side ul { margin-left: 18px; font-size: 0.9rem; color: var(--text-muted); }
.info-side ul li { margin-bottom: 8px; }
.info-side .or-divider { text-align: center; margin: 24px 0; color: var(--text-muted); font-size: 0.85rem; }
.app-method {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; font-size: 0.875rem;
}
.app-method strong { color: var(--navy); display: block; margin-bottom: 4px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.form-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-card .subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--navy); margin-bottom: 6px; }
.label-hint { font-weight: 400; color: var(--text-muted); margin-left: 4px; font-size: 0.82rem; }
input[type=email], input[type=text], select, textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-family: var(--font); color: var(--text);
  background: #fff; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,196,160,0.12);
}
textarea { resize: vertical; min-height: 80px; }
.warning-box {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 24px;
}
.warning-box p { margin: 0; font-size: 0.875rem; color: #92400e; line-height: 1.6; }
.btn-danger {
  display: block; width: 100%; padding: 13px;
  background: #dc2626; color: #fff; border: none;
  border-radius: 8px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: background 0.15s;
}
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { background: #ccc; cursor: not-allowed; }
#success-msg {
  display: none; background: #f0fdf9; border: 1px solid #6ee7d6;
  border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 20px;
}
#success-msg h3 { color: #065f46; margin-bottom: 8px; font-size: 1rem; }
#success-msg p { margin: 0; color: #047857; font-size: 0.9rem; }

/* ─── HOMEPAGE ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #070E1A 0%, #0D1B2E 55%, #0a2240 100%);
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(0,196,160,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: rgba(0,196,160,0.12); color: var(--teal);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; border: 1px solid rgba(0,196,160,0.25);
  margin-bottom: 26px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900; line-height: 1.08; margin-bottom: 20px; letter-spacing: -0.03em;
}
.hero h1 span { color: var(--teal); }
.hero p {
  color: #7A9FBF; font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 44px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.cta-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.btn-android {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--navy);
  text-decoration: none; padding: 14px 28px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.1s;
}
.btn-android:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ios {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none; padding: 14px 28px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600;
  transition: background 0.15s;
}
.btn-ios:hover { background: rgba(255,255,255,0.12); }
.hero-note { color: #3D5A72; font-size: 0.8rem; }

.features-section { padding: 88px 24px; background: var(--bg-subtle); }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.section-title { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 52px; font-size: 0.95rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.feature-card {
  background: #fff; border-radius: 16px; padding: 28px 26px;
  border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.09); }
.feat-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

.privacy-section { padding: 80px 24px; background: #fff; }
.privacy-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.privacy-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.02em; }
.privacy-inner p { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.privacy-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f0fdf9; color: #065f46; border: 1px solid #a7f3d0;
  border-radius: 20px; padding: 7px 16px; font-size: 0.85rem; font-weight: 600;
}

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2240 100%);
  padding: 80px 24px; text-align: center;
}
.cta-section h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-section p { color: #7A9FBF; margin-bottom: 36px; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links a:not(.btn-play) { display: none; }
  .delete-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 24px 18px; }
  .hero { min-height: auto; padding: 72px 20px 64px; }
  .content-wrap { padding: 36px 18px 72px; }
}
