/* MedRemind Landing Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --mr-primary: #0066FF;
  --mr-primary-light: #00B2FF;
  --mr-secondary: #FF9500;
  --mr-accent: #FF5B5B;
  --mr-bg: #F6F8FC;
  --mr-surface: #FFFFFF;
  --mr-text: #0F172A;
  --mr-text-muted: #475569;
  --mr-border: #E2E8F0;
  --mr-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --mr-shadow-md: 0 8px 30px rgba(0, 102, 255, 0.06);
  --mr-shadow-lg: 0 20px 40px rgba(0, 102, 255, 0.12);
  --mr-font: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mr-max: 1140px;
  --mr-radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--mr-bg);
}

body {
  margin: 0;
  font-family: var(--mr-font);
  color: var(--mr-text);
  line-height: 1.6;
  background-color: var(--mr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--mr-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--mr-primary-light);
}

:focus-visible {
  outline: 3px solid var(--mr-primary-light);
  outline-offset: 2px;
}

.mr-wrapper {
  width: 100%;
  max-width: var(--mr-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Navbar */
.mr-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mr-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.mr-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mr-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mr-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.mr-logo svg,
.mr-logo img {
  fill: currentColor;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.mr-logo:hover svg,
.mr-logo:hover img {
  transform: rotate(-10deg) scale(1.1);
}

.mr-nav {
  display: flex;
  align-items: center;
}

.mr-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mr-nav a {
  color: var(--mr-text-muted);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
}

.mr-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: var(--mr-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.mr-nav a:hover {
  color: var(--mr-primary);
}

.mr-nav a:hover::after {
  transform: scaleX(1);
}

.mr-nav a[aria-current="page"] {
  color: var(--mr-primary);
}

.mr-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Primary Button Action in Header */
.mr-nav .mr-btn-nav {
  background-color: var(--mr-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--mr-radius);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.mr-nav .mr-btn-nav::after {
  display: none;
}

.mr-nav .mr-btn-nav:hover {
  background-color: #0055d4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.25);
}

/* Mobile Nav Toggle */
.mr-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mr-menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--mr-text);
  margin: 4px 0;
  transition: 0.3s;
}

/* Hero Section */
.mr-hero {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.mr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .mr-hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.mr-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 102, 255, 0.08);
  color: var(--mr-primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.mr-hero__tag span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--mr-primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.mr-hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 24px;
}

.mr-hero__headline span {
  background: linear-gradient(135deg, var(--mr-primary), var(--mr-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mr-hero__text p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--mr-text-muted);
  margin: 0 0 32px;
}

.mr-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.mr-btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--mr-shadow-sm);
}

.mr-btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mr-btn-store svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.mr-btn-store__label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mr-btn-store__label span:first-child {
  font-size: 0.75rem;
  opacity: 0.7;
}

.mr-btn-store__label span:last-child {
  font-size: 1rem;
  font-weight: 700;
}

/* Device Showcase Frame */
.mr-hero__showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mr-device-frame {
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--mr-shadow-lg);
  border: 4px solid #222;
  width: 320px;
  height: 640px;
  position: relative;
  overflow: hidden;
}

.mr-device-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 13px;
  background: #5f5f5f;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 10;
}

.mr-device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Premium Mockup Slider */
.mr-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.mr-slider__track {
  display: flex;
  width: 700%;
  /* 7 screens */
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mr-slider__slide {
  width: 14.285714%;
  /* 100 / 7 */
  height: 100%;
  overflow: hidden;
}

.mr-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mr-slider__dots {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mr-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mr-slider__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.mr-slider__dot.active {
  background: #ffffff;
  width: 16px;
  border-radius: 3px;
}

/* Feature Showcase Grid */
.mr-features {
  padding: 100px 0;
  background-color: var(--mr-surface);
}

.mr-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.mr-section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.mr-section-header p {
  font-size: 1.1rem;
  color: var(--mr-text-muted);
  margin: 0;
}

.mr-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .mr-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mr-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mr-feature-card {
  background: var(--mr-bg);
  border-radius: var(--mr-radius);
  padding: 40px 32px;
  transition: all 0.3s ease;
  border: 1px solid var(--mr-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.mr-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--mr-shadow-md);
  border-color: rgba(0, 102, 255, 0.2);
}

.mr-feature-card__icon {
  background: var(--mr-surface);
  color: var(--mr-primary);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--mr-shadow-sm);
}

.mr-feature-card__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.mr-feature-card__content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.mr-feature-card__content p {
  color: var(--mr-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Inner Page Hero Layout */
.mr-page-hero {
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.05) 0%, rgba(246, 248, 252, 0) 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.mr-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.mr-page-hero p {
  font-size: 1.15rem;
  color: var(--mr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* About / Content Section styles */
.mr-page-body {
  padding: 40px 0 80px;
}

.mr-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .mr-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mr-info-card {
  background: var(--mr-surface);
  border-radius: var(--mr-radius);
  padding: 32px;
  border: 1px solid var(--mr-border);
  box-shadow: var(--mr-shadow-sm);
}

.mr-info-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--mr-primary);
}

.mr-info-card p {
  font-size: 0.95rem;
  color: var(--mr-text-muted);
  margin: 0;
}

/* Support FAQ accordion */
.mr-faq {
  max-width: 800px;
  margin: 0 auto;
}

.mr-faq__item {
  background: var(--mr-surface);
  border: 1px solid var(--mr-border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--mr-shadow-sm);
}

.mr-faq__summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.mr-faq__summary::-webkit-details-marker {
  display: none;
}

.mr-faq__summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--mr-primary);
  transition: transform 0.2s ease;
}

.mr-faq__item[open] .mr-faq__summary::after {
  transform: rotate(45deg);
}

.mr-faq__panel {
  padding: 0 24px 20px;
  color: var(--mr-text-muted);
  border-top: 1px solid var(--mr-border);
  font-size: 0.95rem;
}

.mr-faq__panel p {
  margin: 12px 0 0;
}

.mr-faq__panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.mr-faq__panel li {
  margin: 6px 0;
}

/* Contact form / card */
.mr-contact-section {
  max-width: 600px;
  margin: 60px auto 0;
}

.mr-contact-card {
  background: var(--mr-surface);
  border: 1px solid var(--mr-border);
  border-radius: var(--mr-radius);
  padding: 40px;
  box-shadow: var(--mr-shadow-md);
}

.mr-contact-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.mr-contact-card p {
  color: var(--mr-text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.mr-form-group {
  margin-bottom: 20px;
}

.mr-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.mr-form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--mr-font);
  font-size: 0.95rem;
  border: 1.5px solid var(--mr-border);
  border-radius: 10px;
  background: var(--mr-bg);
  color: var(--mr-text);
  transition: border-color 0.2s ease;
}

.mr-form-input:focus {
  outline: none;
  border-color: var(--mr-primary);
  background: #fff;
}

.mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mr-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--mr-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.mr-btn:hover {
  background-color: #0055d4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

/* Legal/Account deletion styled layout */
.mr-legal-box {
  background: var(--mr-surface);
  border: 1px solid var(--mr-border);
  border-radius: var(--mr-radius);
  padding: 40px;
  box-shadow: var(--mr-shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.mr-legal-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.mr-legal-box p {
  color: var(--mr-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.mr-legal-box ul {
  padding-left: 24px;
  color: var(--mr-text-muted);
  margin-bottom: 24px;
}

.mr-legal-box li {
  margin: 8px 0;
}

.mr-delete-steps {
  background: rgba(255, 91, 91, 0.04);
  border: 1px solid rgba(255, 91, 91, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.mr-delete-steps h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #d32f2f;
  font-weight: 800;
}

.mr-delete-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--mr-text);
  font-size: 0.95rem;
}

.mr-delete-steps li {
  margin: 8px 0;
  font-weight: 600;
}

/* Footer Section */
.mr-footer {
  background-color: var(--mr-surface);
  border-top: 1px solid var(--mr-border);
  padding: 60px 0 40px;
}

.mr-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .mr-footer__grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.mr-footer__brand span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mr-primary);
  margin-left: 12px;
  letter-spacing: -0.03em;
}

.mr-footer__brand p {
  color: var(--mr-text-muted);
  font-size: 0.95rem;
  max-width: 360px;
  margin: 0;
}

.mr-footer__nav-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mr-footer__nav-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mr-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.mr-footer__nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mr-footer__nav-col li {
  margin-bottom: 10px;
}

.mr-footer__nav-col a {
  color: var(--mr-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.mr-footer__nav-col a:hover {
  color: var(--mr-primary);
}

.mr-footer__bottom {
  border-top: 1px solid var(--mr-border);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--mr-text-muted);
}

@media (min-width: 768px) {
  .mr-footer__bottom {
    flex-direction: row;
  }
}

/* Responsiveness adjustments */
@media (max-width: 899px) {
  .mr-menu-btn {
    display: block;
  }

  .mr-nav {
    display: none;
    /* JS will toggle active state */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--mr-border);
    padding: 24px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  }

  .mr-nav.active {
    display: block;
  }

  .mr-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .mr-nav a {
    display: block;
    padding: 10px 0;
  }
}