:root {
  --primary: #ff6d3f;
  --primary-dark: #e55a2e;
  --secondary: #fdd9d8;
  --optional: #93b1b5;
  --optional-light: #b8e3e9;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --bg: #f5f5f5;
  --white: #ffffff;
  --max-width: 1100px;
  --legal-width: 720px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8f6b 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  opacity: 0.95;
}

.hero-desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  opacity: 0.9;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--white);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.phone-screen img {
  width: 72px;
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-muted);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.feature-card:nth-child(2) {
  border-top-color: var(--optional);
}

.feature-card:nth-child(3) {
  border-top-color: var(--optional-light);
}

.feature-card:nth-child(4) {
  border-top-color: var(--primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Also included */
.included-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.included-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.included-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Download CTA */
.download-cta {
  text-align: center;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 3rem 2rem;
}

.download-cta h2 {
  margin: 0 0 0.75rem;
}

.download-cta p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--white);
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page .container {
  max-width: var(--legal-width);
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.legal-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.legal-page p,
.legal-page ul {
  margin: 0 0 1rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Thank you */
.thank-you-box {
  text-align: center;
  max-width: 32rem;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thank-you-box h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.thank-you-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 1rem 1.25rem;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .site-nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .phone-mockup {
    order: -1;
  }
}
