/* RefillDoctor.com Styles */

:root {
  --ink: #10243d;
  --navy: #0b1c33;
  --blue: #5b7cff;
  --purple: #7b61ff;
  --mint: #6fe3c1;
  --pink: #ff8ec7;
  --yellow: #ffd86b;
  --bg: #f8f9fd;
  --card: #fff;
  --muted: #66758c;
  --border: #e4e8f2;
  --danger: #d84c5a;
  --success: #17795b;
  --shadow: 0 2px 8px rgba(25, 40, 82, 0.08);
  --radius: 12px;

  /* Button theme colors (can be overridden) */
  --btn-primary-bg: linear-gradient(135deg, var(--blue), var(--purple));
  --btn-primary-hover-bg: linear-gradient(135deg, #4a6bef, #6a51ef);
  --btn-primary-text: white;
}

/* Professional Theme - Professional Blue Buttons */
.theme-professional {
  --btn-primary-bg: #1e3a5f;
  --btn-primary-hover-bg: #2a4a75;
  --btn-primary-text: white;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.58;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
details:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(18px);
  padding: 12px 0;
}

.nav {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(228, 232, 242, 0.8);
  border-radius: 12px;
  padding: 0 24px;
  background: rgba(248, 249, 253, 0.84);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo-img {
  height: 160px;
  width: auto;
  display: block;
  margin: -20px 0;
}

.logo-img-footer {
  height: 80px;
}

.brand-name {
  font-size: 1.25em;
  background: linear-gradient(135deg, #6f5cff, #2f6fcb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tld {
  font-size: 0.78em;
  font-weight: 700;
  color: #66758c;
}

/* Professional theme brand name */
.theme-professional .brand-name {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 2px 8px rgba(91, 124, 255, 0.2);
}

/* Professional theme logo */
.theme-professional .logo {
  background: #1e3a5f;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.theme-professional .brand-refill {
  color: #1e3a5f;
}

.theme-professional .brand-doctor {
  color: #3b82f6;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 800;
  color: #52627a;
  font-size: 0.92rem;
}

.nav-links a {
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: #52627a;
  transform: translateY(2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.22s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  box-shadow: 0 2px 8px rgba(91, 124, 255, 0.15);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 124, 255, 0.2);
  color: white;
}

/* Professional theme button shadows */
.theme-professional .btn-primary {
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
}

.theme-professional .btn-primary:hover,
.theme-professional .btn-primary:focus {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.btn-light {
  background: white;
  border-color: var(--border);
}

.btn-light:hover,
.btn-light:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 58px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: #4e5f78;
  box-shadow: 0 2px 4px rgba(26, 38, 70, 0.06);
  margin-bottom: 20px;
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 820px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple), #d05de8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  font-size: 1.18rem;
  color: #5f7088;
  max-width: 690px;
  margin: 0 0 29px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.physician-highlight {
  margin: 22px 0 26px;
  padding: 18px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2747, #2f6fcb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 111, 203, 0.15);
  max-width: 720px;
}

.physician-highlight-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 800;
}

.physician-highlight-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 6px;
}

.physician-highlight-title .highlight {
  color: #ffd86b;
}

.physician-highlight-copy {
  margin-top: 8px;
  font-size: 1rem;
  color: #dbe8ff;
}

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 850;
  color: #53637a;
}

/* Phone mockup */
.phone {
  max-width: 440px;
  margin: auto;
  background: #e5e7eb;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(26, 36, 70, 0.12);
  border: 1px solid #d1d5db;
}

.screen {
  background: linear-gradient(180deg, #fff, #f6f8ff);
  border-radius: 12px;
  padding: 26px;
  border: 1px solid #e5e7eb;
}

.screen-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  margin-top: -20px;
}

.form-logo {
  height: 150px;
  width: auto;
}

.secure {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--success);
  background: #e7fbf4;
  padding: 7px 10px;
  border-radius: 999px;
}

.screen h3 {
  font-size: 1.65rem;
  line-height: 1.08;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.screen p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #43546c;
}

input,
select {
  width: 100%;
  padding: 14px;
  border: 1px solid #dfe4ef;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus {
  border-color: var(--blue);
}

input.error,
select.error {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.error-message.visible {
  display: block;
}

.screen .btn {
  width: 100%;
}

.micro {
  text-align: center;
  color: #8b95a8;
  font-size: 0.73rem;
  margin-top: 10px;
}

/* Difference section */
.difference {
  padding: 12px 0 0;
}

.difference-panel {
  background: linear-gradient(135deg, #101b34, #18284c);
  border-radius: 12px;
  padding: 22px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 19px;
  align-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(17, 28, 53, 0.15);
}

.badge-xl {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Professional theme badge */
.theme-professional .badge-xl {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.difference-panel h2 {
  margin: 0 0 7px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.difference-panel p {
  margin: 0;
  color: #ced8e8;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Sections */
section {
  padding: 12px 0;
}

.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 32px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.74rem;
  margin-bottom: 10px;
}

.kicker-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  font-weight: 700;
  font-size: 0.74rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(91, 124, 255, 0.2);
}

/* Professional theme kicker badge */
.theme-professional .kicker-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.highlight-text {
  color: var(--blue);
  font-weight: 700;
}

/* Professional theme highlight text */
.theme-professional .highlight-text {
  color: #3b82f6;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step {
  padding: 20px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p,
.info-card p,
.founder-copy p {
  color: var(--muted);
}

/* Eligibility & How It Works backgrounds */
.soft-bg {
  background: #f6f8fc;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.info-card {
  padding: 32px;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.list div {
  display: flex;
  gap: 11px;
}

.list span:first-child {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  font-size: 0.78rem;
  font-weight: 700;
}

.yes span:first-child {
  background: #e7faf4;
  color: var(--success);
}

.no span:first-child {
  background: #fff0f2;
  color: var(--danger);
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 44px;
}

.founder-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Professional theme avatar */
.theme-professional .avatar {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.role {
  color: var(--blue);
  font-weight: 900;
}

.founder-copy h2 {
  margin: 0 0 15px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.quote {
  font-size: 1.12rem;
  font-weight: 850;
  color: var(--ink) !important;
  border-left: 4px solid var(--blue);
  padding-left: 17px;
}

/* Pricing */
.pricing {
  background: #f6f8fc;
  color: var(--ink);
}

.pricing .section-head h2,
.pricing .section-head p {
  color: var(--ink);
}

.price-card {
  max-width: 640px;
  margin: auto;
  padding: 40px;
  text-align: center;
  color: var(--ink);
  position: relative;
}

.popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Professional theme popular badge */
.theme-professional .popular {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.price {
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.07em;
  margin: 12px 0;
}

.price small {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0;
}

.price-points {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.price-points span {
  background: #f3f5fa;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  color: #53637a;
}

/* FAQ */
.faq {
  max-width: 850px;
  margin: auto;
  display: grid;
  gap: 14px;
}

details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 19px 22px;
  cursor: pointer;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  color: var(--muted);
  margin-top: 8px;
}

details[open] summary {
  margin-bottom: 8px;
}

/* CTA */
.cta {
  padding-top: 0;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  border-radius: 12px;
  padding: 32px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple), #c35bdd);
  box-shadow: 0 4px 12px rgba(91, 124, 255, 0.2);
}

.cta-box h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.cta-box p {
  margin: 0;
  font-size: 0.95rem;
}

.cta-box .btn {
  background: white;
  color: var(--blue);
}

/* Professional theme CTA box */
.theme-professional .cta-box {
  background: #1e3a5f;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.theme-professional .cta-box .btn {
  color: #1e3a5f;
}

/* Professional theme gradient text */
.theme-professional .gradient-text {
  background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.orange-text {
  color: #f97316;
}

/* Footer */
footer {
  background: #091326;
  color: #cbd5e4;
  padding: 42px 0 28px;
  text-align: center;
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-small {
  margin-top: 22px;
  color: #8f9db1;
  font-size: 0.8rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 940px) {
  .hero-grid,
  .difference-panel,
  .split,
  .founder {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 10px 0;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .phone {
    transform: none;
  }

  .difference-panel {
    padding: 15px 12px;
  }

  .founder,
  .cta-box {
    padding: 30px 24px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-img {
    height: 110px;
    margin: -15px 0;
  }

  .logo-img-footer {
    height: 60px;
  }
}

/* Print styles */
@media print {
  header {
    position: relative;
  }

  .phone,
  .hero-actions,
  .cta-box .btn {
    display: none;
  }
}
