/* Raza Prize Bond website. Colours follow the app icon: deep green and gold. */

:root {
  --bg: #f5f8f4;
  --surface: #ffffff;
  --surface-2: #edf3ee;
  --text: #11221a;
  --muted: #56685f;
  --border: #dde7df;
  --green: #0f6b45;
  --green-deep: #08442b;
  --green-soft: #e1f0e6;
  --gold: #c8961e;
  --gold-soft: #f8edcf;
  --on-green: #ffffff;
  --shadow: 0 18px 40px -18px rgba(8, 68, 43, 0.35);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1310;
    --surface: #121d18;
    --surface-2: #17251f;
    --text: #e5efe9;
    --muted: #9db1a7;
    --border: #22332b;
    --green: #47c08a;
    --green-deep: #0a3a26;
    --green-soft: #173528;
    --gold: #e6bb4f;
    --gold-soft: #3a3019;
    --on-green: #06281a;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height: auto, so width/height attributes only reserve the aspect ratio. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

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

.brand img { width: 36px; height: 36px; border-radius: 50%; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

@media (max-width: 640px) {
  .nav .nav-optional { display: none; }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-1px); }

.button-gold {
  background: linear-gradient(180deg, #f2cf6b, #d9a52a);
  color: #2a1e00;
  box-shadow: 0 10px 24px -10px rgba(201, 150, 30, 0.8);
}

.button-green {
  background: var(--green);
  color: var(--on-green);
}

.button svg { width: 22px; height: 22px; flex: none; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #f3faf6;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 207, 107, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(71, 192, 138, 0.25), transparent 60%),
    linear-gradient(160deg, #0d5a3a 0%, #08442b 55%, #062e1d 100%);
}

/* Soft curves, like the waves behind the app icon. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(160% 90% at 50% 120%, rgba(255, 255, 255, 0.06) 0 40%, transparent 40.3%),
    radial-gradient(140% 80% at 30% 130%, rgba(255, 255, 255, 0.05) 0 45%, transparent 45.3%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2a1e00;
  background: linear-gradient(180deg, #f6dc8f, #e6bb4f);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 20px 0 16px;
}

.hero h1 .gold { color: #f2cf6b; }

.hero .lead {
  font-size: 1.15rem;
  color: rgba(243, 250, 246, 0.82);
  max-width: 36ch;
  margin: 0 0 32px;
}

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

.hero-note { color: rgba(243, 250, 246, 0.75); font-size: 0.95rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.hero-stats strong { display: block; font-size: 1.15rem; color: #fff; }

.phones {
  position: relative;
  height: 560px;
}

.phone {
  position: absolute;
  width: 250px;
  aspect-ratio: 9 / 20;
  border-radius: 34px;
  padding: 8px;
  background: #0b1712;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
}

.phone-back { left: 4%; top: 40px; transform: rotate(-6deg); opacity: 0.92; }
.phone-front { right: 6%; top: 0; transform: rotate(4deg); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .phones { height: 440px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { width: 190px; }
}

/* Sections */

.section { padding: 88px 0; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 18px;
}

.feature:nth-child(3n + 2) .icon { background: var(--gold-soft); color: var(--gold); }

.feature .icon svg { width: 24px; height: 24px; }

.feature h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -0.01em; }

.feature p { margin: 0; color: var(--muted); }

/* Screenshots */

.screens-section { background: var(--surface-2); }

.screens {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
}

.screens figure {
  flex: 0 0 220px;
  margin: 0;
  scroll-snap-align: center;
}

.screens .shot {
  border-radius: 28px;
  padding: 7px;
  background: #0b1712;
  box-shadow: var(--shadow);
}

.screens img { border-radius: 22px; aspect-ratio: 9 / 20; object-fit: cover; width: 100%; }

.screens figcaption {
  text-align: center;
  font-weight: 700;
  margin-top: 14px;
}

/* Steps */

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

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

.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 26px 78px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--green);
  color: var(--on-green);
}

.steps h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }

/* Call to action */

.cta {
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  color: #f3faf6;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(242, 207, 107, 0.25), transparent 60%),
    linear-gradient(160deg, #0d5a3a, #062e1d);
}

.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta p { margin: 0 auto 28px; max-width: 46ch; color: rgba(243, 250, 246, 0.82); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }

.disclaimer { margin: 24px 0 0; font-size: 0.88rem; max-width: 80ch; }

/* Legal pages */

.legal { padding: 56px 0 80px; }

.legal article {
  max-width: 780px;
  margin: 0 auto;
}

.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }

.legal .updated { color: var(--muted); margin: 0 0 32px; }

.legal h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  padding-top: 8px;
}

.legal h3 { font-size: 1.05rem; margin: 24px 0 6px; }

.legal p, .legal li { color: var(--text); }

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

.legal li { margin: 6px 0; }

.legal .summary {
  background: var(--green-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.legal .summary p { margin: 0; }

.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.legal th { color: var(--muted); font-weight: 700; }

.table-scroll { overflow-x: auto; }

/* 404 */

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found h1 { font-size: 3rem; margin: 0; }
.not-found p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
