/* ============================================
   RMDme Landing Page — Styles (minimal)
   ============================================ */

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

:root {
  --brand-dark: #205067;
  --brand-light: #EAF3F8;
  --bg: #F5F7FB;
  --bg-white: #FFFFFF;
  --text: #1A2332;
  --text-muted: #6B7B8F;
  --border: #E2E8F0;
  --radius: 16px;
  --max-width: 1080px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Top Logo --- */
.top-logo {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.top-logo-img { width: 44px; height: 44px; border-radius: 10px; }
.top-logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-dark);
}

/* --- Language Switch --- */
.lang-switch {
  position: fixed;
  top: 28px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  z-index: 20;
  padding: 4px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(32, 80, 103, 0.06);
}
.lang-opt {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  color: #FFFFFF;
  background: var(--brand-dark);
}
.lang-sep { display: none; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 80px;
  gap: 0;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-accent {
  color: #FFC107;
  -webkit-text-fill-color: #FFC107;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store-badge img { height: 44px; transition: transform 0.2s; }
.store-badge:hover img { transform: scale(1.04); }

/* Phone */
.hero-phone { margin-top: 48px; margin-bottom: 36px; }

.phone-frame {
  width: 320px;
  height: 650px;
  background: #1A1A1A;
  border-radius: 52px;
  padding: 14px;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-frame:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.3),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(255,255,255,0.15);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #1A1A1A;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: rgba(0,0,0,0.2);
  border-radius: 100px;
  z-index: 3;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  background: var(--bg);
}

/* --- Features --- */
.features {
  padding: 80px 24px;
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(32, 80, 103, 0.07);
}

.feature-icon {
  color: #FFC107;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.feature-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* --- How It Works --- */
.how-it-works {
  padding: 80px 24px;
  background: var(--bg-white);
}

.how-inner {
  max-width: 480px;
  margin: 0 auto;
}

.how-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 52px;
}

/* Time arrow */
.ta {
  display: flex;
  flex-direction: column;
}

.ta-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ta-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  align-self: stretch;
  padding-top: 2px;
}

/* Line below every dot */
.ta-left::after {
  content: '';
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--border);
  margin-top: 5px;
}

.ta-step:last-child .ta-left::after {
  flex: 0;
  min-height: 16px;
}

.ta-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.ta-dot--you {
  background: #FFC107;
  box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 5px rgba(255, 193, 7, 0.35);
}

.ta-dot--rmd {
  background: var(--brand-dark);
  box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 5px rgba(32, 80, 103, 0.18);
}

.ta-dot--day {
  width: 12px;
  height: 12px;
  background: var(--border);
  flex-shrink: 0;
}

.ta-step--day {
  align-items: center;
}

.ta-step--day .ta-left {
  justify-content: center;
}

.ta-step--day .ta-left::after {
  min-height: 12px;
}

.ta-step--day .ta-right {
  padding-bottom: 0;
  padding-top: 0;
}

.ta-label--day {
  font-size: 0.78rem;
  color: #C4CDD8;
  margin-bottom: 0;
  font-weight: 400;
}

.ta-right {
  flex: 1;
  padding-bottom: 16px;
}

.ta-step:last-child .ta-right {
  padding-bottom: 0;
}

.ta-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  line-height: 1.2;
}

.ta-label em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-dark);
}

.ta-msg {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  border-radius: 12px;
  padding: 11px 16px;
  display: block;
  background: var(--bg);
}

.ta-msg--you {
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
}

/* Push notification card */
.ta-notif {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 10px 14px 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ta-notif-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.ta-notif-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.ta-notif-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1;
  letter-spacing: 0.01em;
}


.ta-notif-body {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Arrowhead at the bottom */
.ta-foot {
  display: flex;
}

.ta-arrowhead {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--border);
  margin-left: 5px;
}

/* --- CTA --- */
.cta {
  padding: 80px 24px;
  text-align: center;
}

.cta-inner { max-width: 500px; margin: 0 auto; }

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta .store-badges { justify-content: center; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 36px;
  text-align: center;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Subpages --- */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
}

.back-link:hover { color: var(--text) !important; }

.page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page .page-lead {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 8px;
}

.page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 4px;
}

.page p, .page li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page ul, .page ol {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.page li { margin-bottom: 4px; }

.page a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page a:hover { opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .top-logo { top: 22px; left: 20px; }
  .top-logo-img { width: 38px; height: 38px; }
  .top-logo-text { font-size: 1.2rem; }
  .lang-switch { top: 22px; right: 20px; font-size: 0.76rem; }
  .lang-opt { padding: 5px 12px; }

  .hero {
    min-height: auto;
    padding: 96px 20px 56px;
  }
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-phone { margin-top: 36px; margin-bottom: 24px; }
  .phone-frame { width: 280px; height: 570px; }

  .features { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; gap: 16px; }
  .feature-card { padding: 28px 22px; }

  .how-it-works { padding: 56px 20px; }
  .how-title { font-size: 1.6rem; margin-bottom: 40px; }

  .cta { padding: 56px 20px; }
  .cta-title { font-size: 1.9rem; }

  .footer { padding: 40px 20px 28px; }
  .footer-links { gap: 28px; }

  .page { padding: 96px 20px 64px; }
  .page h1 { font-size: 1.9rem; }
  .page .page-lead { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .top-logo { top: 16px; left: 14px; gap: 8px; }
  .top-logo-img { width: 32px; height: 32px; border-radius: 8px; }
  .top-logo-text { font-size: 1rem; }
  .lang-switch { top: 16px; right: 14px; font-size: 0.7rem; padding: 3px; letter-spacing: 0.03em; }
  .lang-opt { padding: 5px 10px; }

  .hero { padding: 76px 16px 40px; }
  .hero-title { font-size: 1.9rem; letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 20px; }
  .hero-phone { margin-top: 28px; margin-bottom: 16px; }
  .phone-frame {
    width: 230px;
    height: 470px;
    border-radius: 42px;
    padding: 10px;
  }
  .phone-frame::before { top: 10px; width: 100px; height: 26px; border-radius: 0 0 16px 16px; }
  .phone-frame::after { bottom: 14px; width: 110px; height: 4px; }
  .phone-screenshot { border-radius: 32px; }

  .features { padding: 44px 16px; }
  .feature-card { padding: 22px 18px; }
  .feature-icon { margin-bottom: 12px; }
  .feature-icon svg { width: 28px; height: 28px; }
  .feature-title { font-size: 1.05rem; margin-bottom: 6px; }
  .feature-desc { font-size: 0.88rem; }

  .how-it-works { padding: 48px 20px; }
  .how-title { font-size: 1.45rem; margin-bottom: 32px; }
  .ta-msg { font-size: 0.95rem; padding: 10px 14px; }
  .ta-notif-body { font-size: 0.9rem; }

  .cta { padding: 48px 16px; }
  .cta-title { font-size: 1.6rem; }
  .cta-subtitle { font-size: 0.92rem; margin-bottom: 22px; }
  .store-badge img { height: 40px; }

  .footer { padding: 32px 20px 24px; }
  .footer-links { flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .footer-links a { font-size: 0.9rem; }
  .footer-copy { font-size: 0.78rem; }

  .page { padding: 76px 18px 48px; }
  .page .back-link { margin-bottom: 18px; }
  .page h1 { font-size: 1.65rem; }
  .page .page-lead { font-size: 0.92rem; margin-bottom: 28px; }
  .page h2 { font-size: 1.02rem; margin-top: 26px; }
  .page h3 { font-size: 0.95rem; margin-top: 20px; }
  .page p, .page li { font-size: 0.9rem; }
}
