/* Rigbook site: mirrors the app theme (ui/theme/Theme.kt). */
:root {
  --evergreen: #1d4b3e;
  --forest: #12342a;
  --pine: #2e6b57;
  --mist: #a9cbb9;
  --sunrise: #f2a541;
  --paper: #f7f4ee;

  --bg: var(--paper);
  --text: #1a1f1c;
  --muted: #555c57;
  --card: #ffffff;
  --card-soft: #f1ede5;
  --line: #e0d9cc;
  --primary: var(--evergreen);
  --on-primary: #ffffff;
  --primary-container: #d3e8dd;
  --on-primary-container: #0b2a21;
  --secondary-container: #f3e5d0;
  --on-secondary-container: #3b2a12;

  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-l: 28px;
  --radius-m: 20px;
  --shadow: 0 18px 48px rgba(18, 52, 42, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513;
    --text: #e1e4e1;
    --muted: #b4bcb7;
    --card: #171e1b;
    --card-soft: #1d2522;
    --line: #2c3632;
    --primary: #8fd1b6;
    --on-primary: #00382a;
    --primary-container: #214f42;
    --on-primary-container: #bfebd8;
    --secondary-container: #4f3f27;
    --on-secondary-container: #f6e0bb;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; line-height: 1.15; }

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 26px/1 var(--display);
}

.mark { width: 36px; height: 36px; flex: none; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }

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

.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-container); color: var(--on-primary-container); }

/* Hero: the evergreen landscape card from the Home screen */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  padding: 56px 56px 0;
  border-radius: 36px;
  background: var(--evergreen);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 48px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sunrise);
}

.policy-hero::before { top: 32px; }

.hero-landscape { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; pointer-events: none; }

.hero-text { position: relative; padding-bottom: 56px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 { font: 600 clamp(40px, 6vw, 64px)/1.05 var(--display); letter-spacing: -0.01em; }

.hero-copy { max-width: 32em; margin: 18px 0 28px; color: rgba(255, 255, 255, 0.86); font-size: 19px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.button-sun { background: var(--sunrise); color: var(--forest); }
.button-ghost { border: 1.5px solid rgba(255, 255, 255, 0.45); color: #ffffff; }
.button:hover { filter: brightness(1.05); }

.hero-phone { position: relative; justify-self: center; width: min(300px, 100%); }

.phone {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid var(--forest);
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  background: var(--paper);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 600;
  font-size: 15px;
}

/* Sections */
.section { margin: 72px 0; }

.section-title { font: 600 clamp(28px, 4vw, 38px)/1.15 var(--display); }

.section-lead { max-width: 40em; margin: 10px 0 28px; color: var(--muted); }

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

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}

.card h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.icon svg { width: 24px; height: 24px; }
.icon-sun { background: var(--secondary-container); color: var(--on-secondary-container); }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 36px;
  background: var(--card-soft);
}

.split .phone { border-bottom: 8px solid var(--forest); border-radius: 36px; max-width: 280px; margin: 0 auto; }

.checks { margin: 20px 0 0; padding: 0; list-style: none; }

.checks li { position: relative; margin: 12px 0; padding-left: 36px; }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-container) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4b3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* Privacy policy */
.policy-hero { padding: 48px 56px; }
.policy-hero .hero-text { padding-bottom: 0; }

.policy {
  max-width: 760px;
  margin: 40px auto 72px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}

.policy h2 { margin: 32px 0 8px; font: 600 24px/1.2 var(--display); }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 22px; }

.summary {
  margin-bottom: 8px;
  padding: 20px 24px;
  border-radius: var(--radius-m);
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.summary p { margin: 0; color: inherit; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 40px 28px 0; border-radius: 28px; }
  .hero::before { top: 24px; right: 24px; width: 40px; height: 40px; }
  .hero-text { padding-bottom: 0; }
  .hero-phone { width: min(260px, 80%); }
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; padding: 28px; }
  .policy-hero { padding: 36px 28px; }
  .policy { padding: 28px 22px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .actions .button { width: 100%; }
}
