/*
  Ripo Reminders — landing page styles.
  Design tokens (kept in sync with apps/mobile/branding/README.md):
    --ripo-orange: #DD6E42
    --ripo-cream:  #FDF6EC
    --ripo-ink:    #1F2A2D
    --ripo-teal:   #3FAEA0
*/

:root {
  --orange: #DD6E42;
  --orange-soft: #F2885D;
  --orange-deep: #B95331;
  --cream: #FDF6EC;
  --cream-deep: #F4EAD7;
  --ink: #1F2A2D;
  --ink-muted: #55636A;
  --teal: #3FAEA0;
  --line: #E5DFD0;
  --bg: #FFFBF3;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 32px rgba(31, 42, 45, 0.08);
  --shadow-strong: 0 18px 48px rgba(221, 110, 66, 0.18);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter',
    'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: rgba(255, 251, 243, 0.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(229, 223, 208, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.4px;
}

.brand img {
  border-radius: 9px;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: var(--orange);
  text-decoration: none;
}

@media (max-width: 600px) {
  .topbar { padding: 14px 20px; }
  .nav a:not(:first-child) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content .eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(63, 174, 160, 0.14);
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 20px;
  color: var(--ink);
}

.lede {
  font-size: 20px;
  color: var(--ink-muted);
  max-width: 540px;
  margin: 0 0 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  color: white;
  box-shadow: var(--shadow-strong);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(229, 223, 208, 0.9);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  text-decoration: none;
}

.micro {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Hero "phone" mock */

.hero-art {
  display: flex;
  justify-content: center;
}

.phone {
  width: 320px;
  background: linear-gradient(160deg, #1F2A2D 0%, #0F1719 100%);
  border-radius: 44px;
  padding: 16px;
  box-shadow: var(--shadow-strong),
    0 0 0 8px rgba(31, 42, 45, 0.08);
  position: relative;
}

.phone::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #0F1719;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(180deg, #FDF9F2 0%, #F4EAD7 100%);
  border-radius: 32px;
  padding: 80px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 540px;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  border-left: 4px solid var(--orange);
  box-shadow: 0 2px 8px rgba(31, 42, 45, 0.04);
}

.phone-card-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(221, 110, 66, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-card-body {
  flex: 1;
  min-width: 0;
}

.phone-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.phone-card-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.phone-card-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--orange);
  flex-direction: column;
  line-height: 1;
}

.phone-card-ring span {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.75;
}

.phone-card-ring.danger {
  border-color: #C62F32;
  color: #C62F32;
}

.phone-card-ring.soft {
  border-color: var(--ink-muted);
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }
  .hero-content .eyebrow,
  .lede { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 18px; }
  .cta-row { justify-content: center; }
  .hero-art { margin-top: 32px; }
  .phone { width: 280px; }
}

/* ---------- Features ---------- */

.features, .how, .pricing, .faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px;
}

h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 32px;
  color: var(--ink);
}

@media (max-width: 600px) {
  h2 { font-size: 28px; }
}

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

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

.feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-icon[data-tone='primary'] {
  background: rgba(221, 110, 66, 0.14);
  color: var(--orange);
}

.feature-icon[data-tone='tertiary'] {
  background: rgba(63, 174, 160, 0.14);
  color: var(--teal);
}

.feature-icon[data-tone='secondary'] {
  background: rgba(31, 42, 45, 0.08);
  color: var(--ink);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- How ---------- */

.how {
  background: linear-gradient(180deg, transparent 0%, var(--cream-deep) 100%);
  max-width: 100%;
  padding-left: max(32px, calc((100vw - var(--max)) / 2));
  padding-right: max(32px, calc((100vw - var(--max)) / 2));
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

.steps li {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-num {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-strong);
}

.steps h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- Pricing ---------- */

.pricing-lede {
  margin: -16px 0 32px;
  color: var(--ink-muted);
  font-size: 17px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
}

.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.plan-highlight {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-color: var(--orange);
  box-shadow: var(--shadow-strong);
  position: relative;
}

.plan-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-highlight .plan-name {
  color: var(--orange);
}

.badge {
  text-transform: none;
  font-size: 11px;
  background: var(--orange);
  color: white;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.plan-price {
  font-size: 56px;
  font-weight: 800;
  margin: 12px 0 4px;
  letter-spacing: -1px;
}

.plan-price span {
  font-size: 18px;
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 4px;
}

.plan-note {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

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

.plan li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  cursor: pointer;
}

.faq summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-weight: 400;
  color: var(--orange);
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-muted);
  font-size: 14px;
  max-width: var(--max);
  margin: 32px auto 0;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer a {
  color: var(--ink-muted);
}

.footer a:hover {
  color: var(--orange);
  text-decoration: none;
}

/* ---------- Article (privacy/terms) ---------- */

.article {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 32px;
  color: var(--ink);
}

.article h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.article .updated {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 0 36px;
}

.article h2 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.article p, .article li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
}

.article ul {
  padding-left: 22px;
}

.article li {
  margin-bottom: 6px;
}

.article a {
  color: var(--orange);
}
