/* Ripeto website. Colors match the App Store screenshots (Marketing/AppStoreScreenshots/compose.swift). */

:root {
  --purple: #7645db;
  --deep-purple: #4b26a8;
  --accent: #5b4cf0;
  --amber: #fcd585;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --bg: #ffffff;
  --bg-alt: #f5f3fb;
  --line: #e4e0ef;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #9d8cff;
    --text: #f2f2f7;
    --muted: #a8a8b3;
    --bg: #111014;
    --bg-alt: #1b1922;
    --line: #2e2b38;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--purple) 0%, var(--deep-purple) 100%);
  color: #fff;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
}

.hero-text { padding-bottom: 72px; }

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin-top: 18px;
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--amber);
  font-weight: 600;
}

.hero .sub {
  margin-top: 14px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.86);
}

.hero .phone { align-self: end; margin-bottom: -120px; }

/* App Store badge */

.store { margin-top: 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.store a { display: inline-block; }
.store img { height: 54px; width: auto; }
.store .soon {
  font-size: 14px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.store a[aria-disabled="true"] { cursor: default; opacity: 0.85; }

/* Phone frame around the raw app screens */

.phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background: #141414;
  box-shadow: 0 30px 60px rgba(30, 10, 80, 0.35);
}
.phone img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; }

/* Features */

.features { padding: 120px 0 40px; }

.section-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section-intro { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 36em; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .phone { order: 2; }

.feature .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-top: 6px; letter-spacing: -0.01em; }
.feature p { margin-top: 14px; color: var(--muted); }
.feature ul { margin-top: 14px; padding-left: 1.2em; color: var(--muted); }
.feature li + li { margin-top: 4px; }

/* More features grid */

.more { background: var(--bg-alt); padding: 88px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .emoji { font-size: 28px; line-height: 1; }
.card h3 { font-size: 18px; margin-top: 12px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* Closing call to action */

.cta {
  background: linear-gradient(160deg, var(--purple) 0%, var(--deep-purple) 100%);
  color: #fff;
  text-align: center;
  padding: 88px 0;
}
.cta img.icon { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 22px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, 0.86); margin-top: 10px; }
.cta .store { justify-content: center; }

/* Text pages: privacy policy, support */

.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.page .updated { color: var(--muted); margin-top: 8px; font-size: 15px; }
.page h2 { font-size: 23px; margin-top: 44px; letter-spacing: -0.005em; }
.page h3 { font-size: 18px; margin-top: 28px; }
.page p, .page ul, .page table { margin-top: 12px; }
.page ul { padding-left: 1.3em; }
.page li + li { margin-top: 6px; }

.summary {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary h2 { margin-top: 0; font-size: 19px; }

.page table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page th { font-weight: 600; background: var(--bg-alt); }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 12px;
  background: var(--bg);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Narrow screens */

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 8px; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-text { padding-bottom: 40px; }
  .store { justify-content: center; }
  .hero .phone { max-width: 250px; }
  .features { padding-top: 100px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; text-align: center; }
  .feature:nth-child(even) .phone { order: 0; }
  .feature .phone { max-width: 240px; }
  .feature ul { text-align: left; display: inline-block; }
}

@media (max-width: 480px) {
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
}

/* Language menu in the header */

.lang-switch { position: relative; }

.lang-switch summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 10px;
  margin: -4px -10px -4px 0;
  border-radius: 99px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:focus:not(:focus-visible) { outline: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); background: var(--bg-alt); }
.lang-switch svg { fill: none; stroke: currentColor; stroke-width: 1.5; }

.lang-menu {
  position: absolute;
  right: -10px;
  top: calc(100% + 10px);
  min-width: 190px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 10, 80, 0.16);
}
.lang-menu a, .lang-menu span { padding: 8px 12px; border-radius: 9px; color: var(--text); }
.lang-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-menu [aria-current] { font-weight: 600; color: var(--accent); }

@media (max-width: 480px) {
  .lang-switch .lang-name { display: none; }
}
