/* Colors mirror Brand.swift in the app. */
:root {
  --gold-light: #f2c966;
  --gold: #d49e30;
  --gold-deep: #b88221;
  --ink: #261f14;
  --canvas: #f9f6f1;
  --surface: #ffffff;
  --well: #f4f0e9;
  --gold-text: #a8751a;
  --text: #1c1915;
  --muted: #6e675d;
  --hairline: rgba(0, 0, 0, 0.07);
  --shadow: 0 10px 30px rgba(60, 40, 10, 0.08);

  --excellent: #2fa84f;
  --good: #19a594;
  --fair: #c99a06;
  --risky: #e07b16;
  --avoid: #d93a2f;

  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #12100f;
    --surface: #22201d;
    --well: #322e2b;
    --gold-text: #f2c461;
    --text: #f3efe8;
    --muted: #a9a198;
    --hairline: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.gold { color: var(--gold-text); }
.muted { color: var(--muted); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin: 18px 0 0; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 8px 22px rgba(184, 130, 33, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(184, 130, 33, 0.38); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { box-shadow: var(--shadow); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.logo img { border-radius: 9px; }
.logo.small { font-size: 1rem; gap: 8px; }
.logo.small img { border-radius: 6px; }
.nav-links { display: flex; gap: 28px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-light) 30%, transparent), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-points li::before { content: "✓"; color: var(--excellent); font-weight: 800; margin-right: 6px; }

/* Phone mockup */

.phone {
  justify-self: center;
  width: 320px;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3a332a, #16130f);
  box-shadow: 0 40px 80px rgba(40, 25, 5, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}
.phone-screen {
  position: relative;
  height: 640px;
  overflow: hidden;
  padding: 50px 14px 0;
  border-radius: 43px;
  background: radial-gradient(120% 50% at 50% -10%, rgba(242, 201, 102, 0.28), transparent), #f9f6f1;
  color: #1c1915;
  font-size: 11px;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.app-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 2px 10px; }
.app-search { padding: 8px 12px; border-radius: 12px; background: #ece7df; color: #8b847a; }
.app-row { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.pill { padding: 6px 11px; border-radius: 999px; background: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.count { color: #6e675d; }
.count b { color: #a8751a; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(60, 40, 10, 0.06); }
.tile-photo {
  position: relative;
  aspect-ratio: 0.85;
  border-radius: 10px;
  margin-bottom: 6px;
}
/* Abstract phone silhouettes stand in for listing photos. */
.tile-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 34%;
  height: 58%;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}
.p1 { background: linear-gradient(150deg, #8a7d6c, #3c352d); }
.p2 { background: linear-gradient(150deg, #a9c4d8, #56708a); }
.p3 { background: linear-gradient(150deg, #e7d2a6, #b58f4c); }
.p4 { background: linear-gradient(150deg, #c9b3c9, #7a6080); }
.tile-photo .badge { position: absolute; top: 5px; left: 5px; font-size: 8.5px; padding: 2px 6px; background: rgba(255, 255, 255, 0.85); }
.tile-title { font-weight: 700; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { font-weight: 800; font-size: 13px; color: #a8751a; }
.tile-meta { font-size: 9px; color: #8b847a; }
/* Content fades out behind the floating tab bar, as it scrolls under it in the app. */
.phone-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(249, 246, 241, 0), #f9f6f1 70%);
}
.app-tabbar {
  z-index: 1;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color: #8b847a;
  font-size: 9.5px;
  font-weight: 600;
}
.app-tabbar .on { color: #a8751a; }
.app-tabbar .sell {
  width: 40px;
  height: 40px;
  margin-top: -18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 6px 14px rgba(184, 130, 33, 0.4);
}

/* Grade badges */

.badge {
  --tint: var(--excellent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text);
  background: color-mix(in srgb, var(--tint) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 32%, transparent);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); }
.tile .badge { color: #1c1915; }
.g-excellent { --tint: var(--excellent); }
.g-good { --tint: var(--good); }
.g-fair { --tint: var(--fair); }
.g-risky { --tint: var(--risky); }
.g-avoid { --tint: var(--avoid); }

/* Sections */

.section { padding: 96px 0; }
.section-alt { background: color-mix(in srgb, var(--well) 60%, var(--canvas)); }

.band { padding: 64px 0; border-block: 1px solid var(--hairline); background: var(--surface); }
.big-quote {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { padding: 28px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
}

.grades-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grade-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.grade-list li {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.grade-list .badge { justify-self: start; }
.grade-list p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.shield { display: flex; gap: 24px; align-items: flex-start; padding: 36px; }
.shield h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.shield p { max-width: 720px; font-size: 1.05rem; }
.shield-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--excellent);
  background: color-mix(in srgb, var(--excellent) 14%, transparent);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature { padding: 26px; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--gold-light) 24%, transparent), transparent),
    var(--surface);
}
.cta img { border-radius: 20px; box-shadow: 0 12px 30px rgba(184, 130, 33, 0.3); margin-bottom: 10px; }
.cta h2 { margin-bottom: 0; }
.cta p { margin-bottom: 14px; }

.footer { padding: 32px 0 40px; border-top: 1px solid var(--hairline); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* Responsive */

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  /* minmax(0, …) lets the column shrink below the phone mockup's width on narrow screens. */
  .hero-inner, .grades-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .phone { transform: none; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 68px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .phone { width: min(300px, 100%); }
  .phone-screen { height: 600px; }
  .grade-list li { grid-template-columns: 1fr; gap: 8px; }
  .shield { flex-direction: column; padding: 26px; }
}
