/* My Medspace landing page. Palette and type follow app.my-medspace.com
   (src/app/globals.css): blue on warm stone, Manrope, 0.875rem radius. */

:root {
  --background: #fafaf9;   /* stone-50 */
  --foreground: #1c1917;   /* stone-900 */
  --card: #ffffff;
  --primary: #1d4ed8;      /* blue-700, the logo blue */
  --primary-hover: #1e40af;/* blue-800 */
  --primary-600: #2563eb;
  --primary-900: #1e3a8a;
  --secondary: #f5f5f4;    /* stone-100 */
  --muted-foreground: #78716c; /* stone-500 */
  --text-soft: #57534e;    /* stone-600 */
  --accent: #eff6ff;       /* blue-50 */
  --accent-100: #dbeafe;   /* blue-100 */
  --accent-foreground: #1e3a8a;
  --destructive: #e11d48;  /* rose-600 */
  --border: #e7e5e4;       /* stone-200 */
  --input: #d6d3d1;        /* stone-300 */
  --ring: #2563eb;
  --amber: #d97706;
  --sky: #0284c7;
  --radius: 0.875rem;
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-3xl: calc(var(--radius) * 2.2);
  --shadow-sm: 0 1px 2px rgb(28 25 23 / 0.06);
  --shadow-lg: 0 10px 30px -12px rgb(28 25 23 / 0.18);
  --shadow-xl: 0 24px 60px -20px rgb(30 58 138 / 0.35);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--primary); }
::selection { background: var(--accent-100); color: var(--primary-900); }
:focus-visible { outline: 3px solid rgb(37 99 235 / 0.5); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 760px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 10px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 12px; font-size: 0.875rem; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgb(29 78 216 / 0.6); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-outline { background: #fff; color: var(--foreground); border-color: var(--input); }
.btn-outline:hover { border-color: var(--primary-600); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--secondary); }
.btn-light { background: #fff; color: var(--primary-900); }
.btn-light:hover { background: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 250 249 / 0.85);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.125rem; color: var(--foreground); text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.main-nav { display: none; gap: 4px; }
.main-nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .925rem; padding: 8px 12px; border-radius: 10px; }
.main-nav a:hover { color: var(--foreground); background: var(--secondary); }
@media (min-width: 900px) { .main-nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; background: var(--secondary); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font: inherit; font-size: .75rem; font-weight: 700; color: var(--muted-foreground);
  background: transparent; border: 0; border-radius: 999px; padding: 4px 9px; cursor: pointer; min-width: 34px;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline-flex; } }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgb(59 130 246 / 0.16), transparent 60%),
    linear-gradient(to bottom, rgb(239 246 255 / 0.8), var(--background));
  padding: 40px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; color: var(--foreground); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); margin-top: 18px; max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-soft); font-size: .925rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231d4ed8'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 8.6-8.6-1.1-1.1z'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.phone {
  width: 290px; max-width: 78vw; border-radius: 44px; background: #1c1917; padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgb(255 255 255 / 0.06) inset; position: relative;
  transform: rotate(-2deg);
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #1c1917; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { background: var(--background); border-radius: 34px; padding: 40px 16px 20px; min-height: 520px; display: flex; flex-direction: column; gap: 10px; }
.mock-profile { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
.mock-avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; font-size: 26px; }
.mock-name { font-weight: 800; font-size: 1.05rem; }
.mock-sub { font-size: .75rem; color: var(--muted-foreground); }
.mock-heading { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-foreground); margin-top: 6px; }
.mock-dose { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.mock-dose .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.mock-dose.done .dot { background: var(--primary-600); }
.mock-title { font-weight: 700; font-size: .85rem; }
.mock-meta { font-size: .72rem; color: var(--muted-foreground); }
.mock-dose .check { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-100); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.mock-dose .pill { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.mock-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 9px 12px; font-size: .8rem; font-weight: 600; }
.mock-ico { font-size: 16px; }
.mock-chart { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 8px; margin-top: auto; }
.mock-chart svg { width: 100%; height: 56px; }
.mock-chart p { font-size: .7rem; color: var(--muted-foreground); font-weight: 600; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite;
}
.float-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; font-size: 17px; }
.float-title { font-weight: 800; font-size: .82rem; }
.float-sub { font-size: .72rem; color: var(--muted-foreground); }
.float-a { top: 0; left: 0; }
.float-b { bottom: 0; right: 0; animation-delay: -3s; }
@media (max-width: 520px) { .float-a { left: -4px; top: 0; } .float-b { right: -4px; bottom: 0; } .float-card { padding: 8px 10px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-tint { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2, .contact-copy h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.section-lead { color: var(--text-soft); margin-top: 14px; font-size: 1.05rem; }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-sm); }
.section-tint .card { background: var(--background); }
.card h3, .feature h3, .step h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 8px; }
.card p, .feature p, .step p { color: var(--text-soft); font-size: .95rem; }
.card-ico { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; background: #fff1f2; border-radius: 14px; margin-bottom: 14px; }

.feature { padding: 26px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: var(--accent-100); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--accent); margin-bottom: 16px; }

/* Grid of four (problems) */
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Sharing cards */
.share-badge { display: inline-block; font-size: .8rem; font-weight: 800; border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.share-family { background: var(--accent-100); color: var(--primary-900); }
.share-link { background: #e0f2fe; color: #075985; }
.share-kids { background: #fef3c7; color: #92400e; }
.card .card-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.card .card-list li { color: var(--text-soft); font-size: .9rem; display: flex; gap: 8px; }
.card .card-list li::before { content: "✓"; color: var(--primary); font-weight: 800; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 26px; border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--accent), #fff 70%); border: 1px solid var(--accent-100); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 16px; }

/* Plans */
.plans { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.5rem; font-weight: 800; }
.plan-sub { color: var(--muted-foreground); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan-featured { background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-xl); }
.plan-tag { position: absolute; top: -13px; left: 30px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231d4ed8'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 8.6-8.6-1.1-1.1z'/%3E%3C/svg%3E") center / 15px no-repeat; }
.plans-note { text-align: center; color: var(--muted-foreground); font-size: .9rem; margin: 28px auto 0; max-width: 560px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 0 20px; }
.faq details[open] { border-color: var(--accent-100); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 600; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-soft); padding-bottom: 18px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e3a8a 100%); color: #fff; padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: rgb(255 255 255 / 0.06); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-inner img { border-radius: 18px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4); outline: 3px solid rgb(255 255 255 / .2); }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.cta-band p { color: rgb(255 255 255 / 0.85); margin-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--text-soft); font-weight: 600; }
.contact-points li { display: flex; gap: 10px; }
.contact-points li::before { content: "✚"; color: var(--primary); }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 24px; box-shadow: var(--shadow-xl); display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-card { padding: 32px; } }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .875rem; }
.field em { font-style: normal; font-weight: 500; color: var(--muted-foreground); }
.field input, .field textarea, .field select {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--foreground);
  width: 100%; background: var(--background); border: 1px solid var(--input); border-radius: var(--radius);
  padding: 11px 14px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2378716c'%3E%3Cpath d='M5.3 7.3 10 12l4.7-4.7 1.1 1.1L10 14.2 4.2 8.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--ring); box-shadow: 0 0 0 4px rgb(37 99 235 / 0.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--destructive); box-shadow: 0 0 0 4px rgb(225 29 72 / 0.1); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { border-radius: var(--radius); padding: 12px 14px; font-weight: 600; font-size: .925rem; }
.form-message--success { background: var(--accent); color: var(--primary-900); border: 1px solid var(--accent-100); }
.form-message--error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.form-legal { font-size: .75rem; color: var(--muted-foreground); text-align: center; }
.form-legal a { color: inherit; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* The reCAPTCHA badge is hidden; the form shows the required notice instead. */
.grecaptcha-badge { visibility: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
@media (min-width: 900px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.brand-footer { font-size: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-nav a:hover { color: var(--primary); }
.footer-copy { color: var(--muted-foreground); font-size: .85rem; }
.footer-copy a { color: var(--text-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
