/* =========================================================
   Remind De — landing page styles
   Tokens: colors, type scale, spacing
   ========================================================= */

:root {
  /* --- Color --- */
  --bg:        #0F1226;   /* deep night indigo — base canvas */
  --bg-soft:   #151935;   /* slightly lifted surface */
  --surface:   #1B2044;   /* card / row surface */
  --line:      #2A3060;   /* hairline dividers */
  --text:      #F4F2FF;   /* primary text, soft lavender-white */
  --text-dim:  #A6ACD6;   /* secondary text */
  --coral:     #FF7A59;   /* alarm / voice accent (warm) */
  --coral-ink: #14152B;   /* dark text for on-coral buttons */
  --mint:      #6EE7B7;   /* calm / meditation accent */

  /* --- Type --- */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --wrap: 1080px;
  --radius-lg: 28px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

svg { width: 100%; height: 100%; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 18, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--coral);
  color: var(--coral-ink);
  box-shadow: 0 10px 30px -10px rgba(255, 122, 89, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(255, 122, 89, 0.65);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--coral);
}

.btn-small {
  padding: 9px 20px;
  font-size: 0.88rem;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
  padding: 88px 24px 96px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}

.ping-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--coral);
  opacity: 0;
  width: 160px;
  height: 160px;
  animation: ping-out 2.6s ease-out 1;
}

.ring-1 { animation-delay: 0.2s; }
.ring-2 { animation-delay: 0.6s; }
.ring-3 { animation-delay: 1s; }

@keyframes ping-out {
  0%   { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.icon-frame {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 40px;
  background: linear-gradient(155deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback glyph shown only if assets/icon.png fails to load */
.icon-fallback {
  display: none;
  width: 64px;
  height: 64px;
  color: var(--coral);
  position: absolute;
}

.app-icon.icon-missing { display: none; }
.app-icon.icon-missing ~ .icon-fallback { display: block; }

.hero-content h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.store-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mint);
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.3);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.play-glyph {
  width: 13px;
  height: 13px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* =========================================================
   About
   ========================================================= */

.about {
  padding: 64px 24px;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.about h2 {
  font-size: 1.7rem;
}

.about-copy p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 18px;
}

.about-copy p:last-child { margin-bottom: 0; }

/* =========================================================
   Features
   ========================================================= */

.features {
  padding: 64px 24px 96px;
  border-top: 1px solid var(--line);
}

.features h2 {
  font-size: 1.7rem;
  margin-bottom: 40px;
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--coral);
  padding: 9px;
  border: 1px solid var(--line);
}

.feature-copy h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-copy p {
  color: var(--text-dim);
  margin: 0;
  max-width: 62ch;
  font-size: 0.98rem;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  text-align: center;
  padding: 90px 24px;
  border-top: 1px solid var(--line);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-dim);
  margin: 0 0 32px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-dim {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* =========================================================
   Legal pages (Privacy Policy, etc.)
   ========================================================= */

.legal {
  padding: 72px 24px 100px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  margin-bottom: 48px;
}

.legal-header .store-indicator {
  margin-bottom: 20px;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

.legal-body {
  max-width: 74ch;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-body section:first-of-type h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body p {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin: 0 0 16px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.legal-body li {
  position: relative;
  color: var(--text-dim);
  font-size: 1.02rem;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.legal-body li strong,
.legal-body p strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contact {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.legal-contact h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    text-align: center;
  }
  .hero-visual { height: 240px; }
  .hero-content .store-indicator { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .feature-row {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .btn-primary { width: 100%; }
  .hero-actions { flex-direction: column; }
}
