/* MyMedeWeb — light, warm, clinical. Cream + brand blue + teal accents. */
:root {
  --bg: #FAF3E3;
  --surface: #FFFDF7;
  --surface-alt: #F5EDD9;
  --border: #E9DFC6;
  --ink: #2B2620;
  --muted: #7A6F5E;
  --blue: #1D6ED6;
  --blue-dark: #155BB5;
  --blue-soft: #E3EEFB;
  --teal: #14B8A6;
  --teal-soft: #DFF7F3;
  --danger: #C0392B;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(60, 45, 20, 0.08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
a { color: var(--blue); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 34px; height: 34px; }
.brand-word { font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; display: flex; align-items: center; }
.word-e { width: 1.05em; height: 1.05em; margin: 0 0.02em; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-user { font-weight: 700; color: var(--muted); }
.linklike { background: none; border: none; color: var(--blue); font: inherit; font-weight: 800; cursor: pointer; padding: 8px 10px; border-radius: 10px; }
.linklike:hover { background: var(--blue-soft); }

/* Buttons */
.btn {
  font: inherit; font-weight: 800; border: none; border-radius: 999px;
  padding: 13px 30px; cursor: pointer; transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29, 110, 214, 0.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; margin-top: 6px; }
.btn-danger { background: #FBE9E6; color: var(--danger); border-radius: 10px; padding: 8px 14px; font-size: .9rem; }
.btn-danger:hover { background: #F6D5CF; }

/* Hero */
.hero { padding: 34px 28px 22px; }
.hero-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
}
.hero-logo {
  width: min(560px, 100%); height: auto; display: block;
  margin: 0 auto 10px; filter: drop-shadow(0 12px 28px rgba(29, 110, 214, 0.14));
}
.logo-badge {
  width: 104px; height: 104px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); margin-bottom: 18px; position: relative;
}
.logo-badge::after {
  content: '+'; position: absolute; top: -8px; right: -8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 900; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.logo-img { width: 72px; height: 72px; }
.wordmark { font-size: 3rem; font-weight: 900; letter-spacing: -0.02em; display: flex; align-items: center; margin-bottom: 0.2em; }
.word-e-lg { width: 0.95em; height: 0.95em; margin: 0 0.03em; }
.tagline { font-size: 1.25rem; color: var(--muted); font-weight: 600; max-width: 34em; text-wrap: balance; }
.ekg { width: min(340px, 80%); height: 44px; margin: 2px 0 8px; }
.trust-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--muted); }
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-cross { color: var(--teal); font-weight: 900; font-size: 1.15em; }
.trust-sep { opacity: .5; }

/* Auth */
.hero-auth { min-width: 0; }
.auth-buttons { display: flex; gap: 12px; }
.auth-panel {
  margin-top: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.auth-form { padding: 26px; }
.auth-form h2 { font-size: 1.5rem; }
.auth-form label { display: block; font-weight: 800; font-size: .92rem; margin: 14px 0 0; }
.auth-form input[type="text"], .auth-form input[type="tel"],
.auth-form input[type="date"], .auth-form input[type="password"] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; border: 2px solid var(--border); border-radius: 12px; background: #fff;
}
.auth-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; color: var(--muted); font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-error {
  background: #FBE9E6; color: var(--danger); border-radius: 10px;
  padding: 10px 14px; font-weight: 700; font-size: .92rem; margin: 12px 0 0;
}

/* Section cards */
.sections { max-width: 1080px; margin: 26px auto 0; padding: 0 28px; }
.sections h2, .how h2 { font-size: 1.6rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .08s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--blue); }
.card-icon { font-size: 1.7rem; }
.card-icon .card-img { width: 46px; height: 46px; display: block; }
.ph-icon .card-img { width: 64px; height: 64px; }
.card h3 { font-size: 1.05rem; margin: 10px 0 4px; }
.card p { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 4px 12px;
}

/* How it works */
.how { max-width: 1080px; margin: 40px auto 0; padding: 0 28px 10px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.fineprint { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Placeholder */
.placeholder { max-width: 560px; margin: 70px auto; text-align: center; padding: 0 24px; }
.ph-icon { font-size: 3rem; }
.placeholder h2 { font-size: 2rem; margin-top: 10px; }
.placeholder .pill { margin: 6px 0 12px; }

/* Admin */
.admin-wrap { max-width: 980px; margin: 40px auto; padding: 0 28px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { background: var(--surface-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: none; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }

.site-footer {
  margin-top: 60px; padding: 26px 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-weight: 700; font-size: .9rem;
  background: var(--surface);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 2.3rem; }
  .site-header { padding: 12px 16px; }
  .hero, .sections, .how, .admin-wrap { padding-left: 16px; padding-right: 16px; }
}
