/* Leggo landing page styles */

:root {
  --orange-light: #ff7e40;
  --orange-dark: #ff4500;
  --ink: #1c1c1e;
  --ink-soft: #55555a;
  --paper: #ffffff;
  --paper-soft: #f6f5f3;
  --line: #e7e5e1;
  --card: #ffffff;
  --shadow: 0 20px 45px -25px rgba(28, 20, 10, 0.35);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f3f1ec;
  --ink-soft: #b9b6ae;
  --paper: #17140f;
  --paper-soft: #1e1a14;
  --line: #322c22;
  --card: #221d16;
  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f1ec;
    --ink-soft: #b9b6ae;
    --paper: #17140f;
    --paper-soft: #1e1a14;
    --line: #322c22;
    --card: #221d16;
    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--orange-light) 22%, transparent), transparent 70%);
  z-index: -1;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: color-mix(in srgb, var(--orange-light) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange-light) 35%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-dark);
}

h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

h1 .accent {
  background: linear-gradient(100deg, var(--orange-light), var(--orange-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  color: #fff;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--orange-dark) 70%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--orange-dark) 80%, transparent);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.cta-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-facts {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.fact b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.fact span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- phone mockups ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 620px;
}

.phone {
  width: 272px;
  border-radius: 46px;
  background: #0d0d0f;
  padding: 12px;
  line-height: 0;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.phone.secondary {
  position: absolute;
  right: -18px;
  bottom: -34px;
  width: 220px;
  transform: rotate(6deg);
  z-index: 3;
}

.phone.primary {
  z-index: 4;
}

/* ---------- screenshots showcase ---------- */

.showcase-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.showcase-item {
  width: 220px;
  text-align: center;
}

.showcase-item .phone {
  width: 220px;
  margin: 0 auto 22px;
}

.showcase-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.showcase-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- sections ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 10px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.features {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

@media (max-width: 620px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .phone-stage {
    margin-top: 20px;
    min-height: 560px;
  }
  .phone.primary {
    width: 240px;
  }
  .showcase-item {
    width: 180px;
  }
  .showcase-item .phone {
    width: 180px;
  }
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--orange-light) 22%, var(--paper-soft)), color-mix(in srgb, var(--orange-dark) 22%, var(--paper-soft)));
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange-dark);
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

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

.step {
  position: relative;
  padding-left: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 2px 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- privacy strip ---------- */

.privacy {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 34px;
}

.privacy .feature-icon {
  margin-bottom: 0;
  flex: none;
}

.privacy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.privacy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .privacy {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- final cta ---------- */

.cta-final {
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--orange-light) 10%, var(--paper)), var(--paper));
}

.cta-final h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta-final p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-final .cta-row {
  justify-content: center;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
