/* RateGuard marketing site */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-dark: #0a0a0c;
  --text: #0a0a0c;
  --text-muted: #5b5b66;
  --text-on-dark: #f6f7f9;
  --hairline: #e7e7ec;

  --green: #2eb03d;
  --green-bright: #34c759;
  --yellow: #f7ca21;
  --red: #db2929;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: "SF Pro Rounded", "SF Compact Rounded", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout helpers */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  body { font-size: 16px; }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand img {
  width: 28px; height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 580px) {
  .nav-links { display: none; }
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.4em;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.6vw, 28px); }
h4 { font-size: 18px; }
p  { margin: 0 0 1em; }
.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-muted);
  line-height: 1.45;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: #1c1c20; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn-appstore {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 14px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.btn-appstore small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.btn-appstore strong {
  display: block;
  font-weight: 600;
  font-size: 19px;
}
.btn-appstore .appstore-icon {
  width: 26px; height: 26px;
  margin-right: 4px;
}

/* Hero */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(46, 176, 61, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(247, 202, 33, 0.06), transparent 55%),
    radial-gradient(ellipse at 20% 30%, rgba(219, 41, 41, 0.06), transparent 55%);
}
.hero h1 {
  margin-bottom: 12px;
}
.hero .lead { max-width: 640px; margin: 0 auto 28px; }
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* CSS-rendered Apple Watch hardware frame around a real screenshot. */
.watch-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 416 / 496;
  background: linear-gradient(155deg, #2a2a30 0%, #131316 100%);
  padding: 4.5%;
  border-radius: 22%;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.watch-frame::before {
  /* subtle bezel highlight */
  content: "";
  position: absolute;
  inset: 1.5%;
  border-radius: 20%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.watch-frame .watch-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14%;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.watch-frame .watch-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.watch-frame .crown {
  position: absolute;
  right: -2.5%;
  top: 30%;
  width: 4%;
  height: 9%;
  background: linear-gradient(to bottom, #c4c4cb, #888892);
  border-radius: 6px 3px 3px 6px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
.watch-frame .side-btn {
  position: absolute;
  right: -2%;
  top: 58%;
  width: 3.2%;
  height: 14%;
  background: linear-gradient(to bottom, #9a9aa3, #5d5d66);
  border-radius: 3px 1px 1px 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

/* Plain (non-framed) screenshot styling — watchOS-style rounded corners. */
.shot {
  border-radius: 14%/12%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  display: block;
}
.shot img { width: 100%; height: auto; display: block; }

/* Generic sections */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 18px; }

/* Color states triptych */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.triptych figure { margin: 0; text-align: center; }
.triptych img {
  border-radius: 14%/12%;
  box-shadow: var(--shadow-md);
  width: 100%;
  background: #000;
}
.triptych figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.dot.green { background: var(--green-bright); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }

@media (max-width: 720px) {
  .triptych { grid-template-columns: 1fr; gap: 24px; }
}

/* Side-by-side: image left, copy right (or reversed) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split.reverse > :last-child { order: 1; }
.split img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 14%/12%;
  box-shadow: var(--shadow-md);
  background: #000;
}
.split h2 { margin-bottom: 18px; }
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse > :first-child,
  .split.reverse > :last-child { order: initial; }
}

/* Bullet list */
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15);
}
.checks li strong { color: var(--text); font-weight: 600; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 15px; }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.use-case {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px;
}
.use-case h4 { font-size: 16px; margin-bottom: 6px; }
.use-case p { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 900px) {
  .use-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .use-cases { grid-template-columns: 1fr; }
}

/* Story / dark section */
.story {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.story h2 { color: var(--text-on-dark); }
.story p { color: rgba(246, 247, 249, 0.72); font-size: 18px; }
.story .pull {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--text-on-dark);
  margin: 32px 0 0;
  border-left: 4px solid var(--green-bright);
  padding-left: 24px;
}

/* Screens carousel-like */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.screens img {
  border-radius: 14%/12%;
  box-shadow: var(--shadow-md);
  width: 100%;
  background: #000;
}
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .screens { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(46, 176, 61, 0.10), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cta-band h2 { max-width: 720px; margin: 0 auto 16px; }
.cta-band .lead { max-width: 600px; margin: 0 auto 28px; }

/* Footer */
footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-rounded);
  font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--text); }

/* Legal pages */
.legal {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--green); border-bottom: 1px solid var(--green); }
.legal a:hover { background: rgba(46, 176, 61, 0.08); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
