/* RSS Wear marketing site
   Palette mirrors the app (Shared/Theme.swift): dark purple #494059 header,
   green #75BC62 accent. Theme-aware: light by default, dark on request. */

:root {
  --bg: #f4f2f7;
  --bg-alt: #ebe8f1;
  --surface: #ffffff;
  --ink: #2e2938;
  --ink-soft: #6a6476;
  --line: rgba(73, 64, 89, 0.14);
  --accent: #75bc62;
  --accent-strong: #4f8f3e;
  --btn: #478437;
  --purple: #494059;
  --on-purple: #ffffff;
  --shadow: 0 18px 40px rgba(46, 41, 56, 0.18);
  --radius: 18px;
  --maxw: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17141c;
    --bg-alt: #1f1b26;
    --surface: #26212e;
    --ink: #ece9f2;
    --ink-soft: #a9a3b5;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #84c972;
    --accent-strong: #8fd27d;
    --purple: #3a3348;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn-sm, .nav .btn-sm:hover { display: inline-flex; color: #fff; }
@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.appstore:hover { text-decoration: none; opacity: 0.9; }
.appstore svg { width: 22px; height: 22px; fill: #fff; }
.appstore .small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; line-height: 1; margin-bottom: 2px; }
.appstore .big { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.btn-sm {
  background: var(--btn);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.btn-sm:hover { background: color-mix(in srgb, var(--btn) 85%, #000); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero .lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }
.hero .cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.free-note { color: var(--ink-soft); font-size: 14px; }
.free-note strong { color: var(--accent-strong); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .cta { justify-content: center; }
  .device-pair { margin: 8px auto 0; }
}

/* ---------- Device frames (real App Store screenshots in bezels) ---------- */
.device-pair {
  position: relative;
  justify-self: center;
  width: 360px;
  max-width: 100%;
  padding-right: 80px;
}
.phone {
  width: 280px;
  max-width: 100%;
  background: #131211;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }

.watch {
  width: 170px;
  background: #0d0d0d;
  border-radius: 46px;
  padding: 14px;
  box-shadow: var(--shadow), 0 0 0 3px #2b2b2b inset;
}
.watch img { display: block; width: 100%; height: auto; border-radius: 32px; }
.device-pair .watch { position: absolute; right: 0; bottom: 36px; }

.tablet {
  background: #131211;
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.tablet img { display: block; width: 100%; height: auto; border-radius: 16px; }

@media (max-width: 480px) {
  .device-pair { width: 300px; padding-right: 60px; }
  .phone { width: 230px; border-radius: 36px; padding: 10px; }
  .phone img { border-radius: 26px; }
  .device-pair .watch { width: 130px; border-radius: 36px; padding: 11px; }
  .device-pair .watch img { border-radius: 25px; }
}

/* ---------- Screenshot galleries ---------- */
.gallery-group + .gallery-group { margin-top: 64px; }
.gallery-group h3 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 24px;
}
.gallery { display: grid; gap: 28px; margin: 0 auto; }
.gallery figure { margin: 0; text-align: center; min-width: 0; }
.gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.gallery.iphone { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery.iphone figure { flex: 0 0 calc((100% - 4 * 28px) / 5); }
.gallery.iphone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery.ipad { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
/* Folded and unfolded shots share one image height so the frames line up. */
.gallery.duo { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.gallery.duo .tablet img { width: auto; height: clamp(220px, 34vw, 400px); }
.gallery.watch-row { grid-template-columns: repeat(3, 170px); justify-content: center; gap: 36px; }
@media (max-width: 900px) {
  .gallery.iphone { max-width: 640px; }
  .gallery.iphone figure { flex-basis: calc((100% - 2 * 28px) / 3); }
}
@media (max-width: 620px) {
  .gallery.iphone figure { flex-basis: calc((100% - 28px) / 2); }
  .gallery.ipad { grid-template-columns: 1fr; }
  .gallery.duo { flex-direction: column; align-items: center; }
  .gallery.duo figure { width: 100%; }
  .gallery.duo figure:first-child { width: 70%; }
  .gallery.duo .tablet img { width: 100%; height: auto; }
  .gallery.watch-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery.watch-row .watch { width: 100%; border-radius: 30px; padding: 8px; }
  .gallery.watch-row .watch img { border-radius: 22px; }
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--accent-strong); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Apple Watch band ---------- */
.band { background: var(--purple); color: var(--on-purple); }
.band .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.band h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 12px; color: var(--on-purple); }
.band h2 span { color: var(--accent); }
.band p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 17px; }
.band ul { margin: 18px 0 0; padding: 0; list-style: none; }
.band li { color: rgba(255, 255, 255, 0.9); padding-left: 26px; position: relative; margin: 8px 0; }
.band li::before {
  content: "";
  position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.band .watch-strip { display: flex; gap: 18px; justify-content: center; }
.band .watch-strip .watch { width: 33%; max-width: 170px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 3px #2b2b2b inset; }
@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr; text-align: center; }
  .band ul { display: inline-block; text-align: left; }
}
@media (max-width: 480px) {
  .band .watch-strip { gap: 10px; }
  .band .watch-strip .watch { border-radius: 28px; padding: 8px; }
  .band .watch-strip .watch img { border-radius: 20px; }
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing .card h3 { font-size: 20px; }
.pricing .price { font-size: 15px; font-weight: 700; color: var(--accent-strong); margin: 0 0 10px; }
.pricing .card.featured { border: 2px solid var(--accent); }
@media (max-width: 620px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-soft); font-size: 14px; }
.site-footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Legal / support pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 22px 72px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 34px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc a.back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
.doc .contact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 28px;
}
