:root {
  --primary: #4A2A1A;
  --primary-dark: #241509;
  --accent: #C27A4F;
  --accent-soft: #F1D6BD;

  --background: #F8F0E6;
  --card: #FFFBF5;

  --text-primary: #2B211B;
  --text-secondary: #8C6F5E;

  --border: #E8D8C8;
  --danger: #D66A5C;

  --white: #ffffff;
  --shadow: rgba(36, 21, 9, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(241, 214, 189, 0.55), transparent 34rem),
    radial-gradient(circle at top right, rgba(194, 122, 79, 0.16), transparent 28rem),
    var(--background);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 42, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 42, 26, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

ul {
  color: var(--text-secondary);
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

.page {
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 240, 230, 0.82);
  border-bottom: 1px solid rgba(232, 216, 200, 0.9);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(36, 21, 9, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: Nunito, Inter, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 800;
  transition: 160ms ease;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 22px 42px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.82);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px var(--shadow);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-family: Nunito, Inter, sans-serif;
  color: var(--text-primary);
  line-height: 1.08;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 950;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-lead {
  max-width: 670px;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 900;
  transition: 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(194, 122, 79, 0.22);
}

.button-primary:hover {
  transform: translateY(-1px);
  background: #b56f47;
}

.button-secondary {
  background: var(--card);
  color: var(--text-primary);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.hero-card {
  background: rgba(255, 251, 245, 0.88);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(36, 21, 9, 0.12);
}

.app-preview {
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(74, 42, 26, 0.08), transparent),
    var(--background);
  border: 1px solid var(--border);
  padding: 18px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.preview-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 950;
}

.preview-title {
  font-size: 15px;
  font-weight: 950;
  color: var(--text-primary);
}

.preview-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.preview-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.macro-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 10px 24px rgba(36, 21, 9, 0.04);
}

.macro-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.macro-value {
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.preview-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
}

.preview-icon {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 950;
}

.preview-row strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.preview-row span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: rgba(255, 251, 245, 0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(36, 21, 9, 0.07);
}

.card-soft {
  background: rgba(241, 214, 189, 0.48);
  border-color: rgba(194, 122, 79, 0.24);
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 22px;
  font-weight: 950;
}

.legal-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  background: rgba(255, 251, 245, 0.86);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 16px 42px rgba(36, 21, 9, 0.06);
}

.sidebar a {
  display: block;
  padding: 11px 13px;
  border-radius: 15px;
  color: var(--text-secondary);
  font-weight: 850;
  font-size: 14px;
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.legal-content {
  background: rgba(255, 251, 245, 0.9);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 20px 54px rgba(36, 21, 9, 0.08);
}

.legal-content h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 12px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 34px;
}

.notice {
  margin: 18px 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(241, 214, 189, 0.58);
  border: 1px solid rgba(194, 122, 79, 0.25);
  color: var(--primary);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--text-primary);
  font-weight: 900;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text-primary);
  padding: 14px 15px;
  font: inherit;
  outline: none;
  transition: 150ms ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 42, 26, 0.08);
}

.form-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  background: rgba(255, 251, 245, 0.58);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.small {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
}

@media (max-width: 880px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 14px 16px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero,
  .section,
  .legal-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .macro-grid {
    grid-template-columns: 1fr;
  }

  .button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
  }

  #contactStatus {
    min-height: 22px;
    font-weight: 800;
  }

  .button.is-disabled,
  .button[aria-disabled="true"] {
    opacity: 0.68;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
  }

  .nav a.nav-soon {
    opacity: 0.72;
  }

  .product-highlight {
    background: rgba(241, 214, 189, 0.48);
    border-color: rgba(194, 122, 79, 0.24);
  }
}