:root {
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --surface-muted: #FFF1E3;
  --surface-strong: #1B1F2A;
  --text: #1B1F2A;
  --muted: #667085;
  --line: #E7D8C9;
  --accent: #C65A1E;
  --accent-dark: #9A3F12;
  --accent-soft: #FFE7D1;
  --safe: #2F7D73;
  --safe-dark: #23635B;
  --safe-soft: #DDF5EF;
  --warning: #F59E0B;
  --warning-soft: #FFF1E3;
  --danger: #B42318;
  --shadow: 0 18px 42px rgba(154, 63, 18, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #FFF8F0 0%, #FFF3E8 46%, #FFF8F0 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 248, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 46px;
  height: 46px;
  background-image: url("assets/branding/kupiqa-main-icon.png") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  flex-shrink: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.brand-copy {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 900;
}

.brand-tagline {
  display: block;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 64px);
  background:
    radial-gradient(circle at 84% 18%, rgba(245, 158, 11, 0.14), transparent 30%),
    linear-gradient(135deg, #FFF8F0 0%, #FFF1E3 58%, #FFE7D1 100%);
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.button.disabled {
  color: var(--muted);
  background: var(--surface-muted);
  cursor: not-allowed;
}

.hero-panel,
.card,
.download-card,
.form-card,
.price-card,
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.hero-mockup {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mockup-window-bar {
  display: flex;
  gap: 7px;
  padding-bottom: 4px;
}

.mockup-window-bar span {
  width: 10px;
  height: 10px;
  background: #EBC7A7;
  border-radius: 999px;
}

.mockup-message {
  padding: 14px 16px;
  border-radius: 8px;
}

.mockup-message.user {
  color: #ffffff;
  background: var(--surface-strong);
}

.mockup-message.assistant {
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.order-chip {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--safe-soft);
  border: 1px solid rgba(47, 125, 115, 0.24);
  border-radius: 8px;
}

.order-chip span {
  color: var(--safe-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.order-chip strong {
  color: var(--text);
  font-size: 0.95rem;
}

.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ingredient-list li {
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.button.mockup-button {
  width: 100%;
  background: var(--safe);
}

.button.mockup-button:hover {
  background: var(--safe-dark);
}

.panel-row {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-row strong {
  font-size: 0.95rem;
}

.page {
  min-height: calc(100vh - 144px);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.section.narrow {
  width: min(820px, calc(100% - 40px));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

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

.card,
.price-card {
  padding: 22px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
}

.check-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.form-card {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 24px;
}

label {
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.notice {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--safe-dark);
  font-weight: 700;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card.featured {
  border-color: var(--accent);
}

.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
}

.price-card .button {
  margin-top: auto;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding-left: 24px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  min-height: 170px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cta-band {
  padding: 34px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF1E3 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal h2 {
  margin-top: 30px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.site-footer a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-grid,
  .pricing-grid,
  .flow-list,
  .scenario-grid,
  .download-card {
    grid-template-columns: 1fr;
  }

  .download-card .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .actions,
  .actions .button {
    width: 100%;
  }

  .brand-mark {
    width: 42px !important;
    height: 42px !important;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 861px) {
  .brand-mark {
    width: 50px !important;
    height: 50px !important;
  }
}

