:root {
  --paper: #fff8ea;
  --paper-strong: #fff1d5;
  --ink: #201610;
  --muted: #6e5b4e;
  --brick: #b63f23;
  --ember: #f28b2c;
  --gold: #ffd37a;
  --olive: #526b3b;
  --plum: #4e2638;
  --line: rgba(32, 22, 16, 0.14);
  --shadow: 0 24px 70px rgba(58, 29, 16, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(48, 27, 18, 0.76);
  color: #fff8ea;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(20, 10, 4, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 8px;
}

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

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 248, 234, 0.86);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff8ea;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 12, 10, 0.82), rgba(70, 34, 14, 0.44) 52%, rgba(20, 12, 10, 0.62)),
    linear-gradient(0deg, rgba(32, 22, 16, 0.92), rgba(32, 22, 16, 0.04) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 180px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.contact-hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 248, 234, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.cta-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: #351407;
  box-shadow: 0 18px 36px rgba(242, 139, 44, 0.26);
}

.button-ghost {
  border-color: rgba(255, 248, 234, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ea;
}

.intro-section,
.cards-section,
.feature-list,
.split-section,
.form-section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.intro-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.intro-grid p {
  padding: 28px;
  border-left: 4px solid var(--ember);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.intro-grid a,
.card a,
.contact-note a,
.form-hint a {
  color: var(--brick);
  font-weight: 900;
}

.benefit-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
  background: #273c2b;
  color: #fff8ea;
}

.benefit-copy p {
  max-width: 640px;
  color: rgba(255, 248, 234, 0.78);
}

.product-preview {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.preview-top,
.preview-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f9e4bc;
}

.preview-top strong {
  font-size: 1.5rem;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.preview-tabs span,
.preview-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-weight: 900;
}

.preview-tabs span {
  padding: 10px;
  text-align: center;
}

.preview-tabs .active {
  background: var(--brick);
  color: #ffffff;
}

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

.preview-grid button {
  min-height: 88px;
  color: var(--ink);
}

.preview-total {
  margin-top: 12px;
  background: #fff7e8;
}

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

.card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.card-icon,
.feature-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brick);
  font-weight: 950;
}

.card p,
.feature-row p,
.contact-hero p,
.page-hero p,
.contact-note p,
.form-hint {
  color: var(--muted);
}

.cta-section {
  width: min(100% - 40px, var(--max));
  justify-content: space-between;
  margin: 0 auto 80px;
  padding: 42px;
  border-radius: 8px;
  background: var(--plum);
  color: #fff8ea;
}

.cta-section div {
  max-width: 720px;
}

.cta-section p {
  color: rgba(255, 248, 234, 0.78);
}

.page-hero,
.contact-hero,
.legal-hero {
  padding: 170px max(20px, calc((100vw - var(--max)) / 2)) 72px;
  background:
    linear-gradient(110deg, rgba(32, 22, 16, 0.92), rgba(94, 42, 24, 0.76)),
    url("../images/hero-grigliata.png") center / cover;
  color: #fff8ea;
}

.page-hero-inner {
  max-width: 900px;
}

.page-hero h1,
.contact-hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
}

.page-hero p,
.contact-hero p {
  max-width: 760px;
  color: rgba(255, 248, 234, 0.84);
  font-size: 1.15rem;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.feature-row p {
  margin: 0;
  font-size: 1.08rem;
}

.feature-detail {
  display: grid;
  gap: 22px;
}

.kitchen-ticket {
  margin: 0;
}

.kitchen-ticket img {
  width: min(100%, 620px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compact {
  padding-top: 28px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
}

.legal-hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
}

.legal-hero p {
  max-width: 760px;
  color: rgba(255, 248, 234, 0.84);
  font-size: 1.15rem;
}

.policy-wrapper {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 72px 0 86px;
}

.policy-wrapper h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.policy-wrapper p,
.policy-wrapper li {
  color: var(--muted);
}

.policy-wrapper ul {
  padding-left: 1.2rem;
}

.policy-wrapper a {
  color: var(--brick);
  font-weight: 900;
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
}

.policy-wrapper table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.58);
}

.policy-wrapper th,
.policy-wrapper td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy-wrapper th {
  color: var(--ink);
}

.policy-wrapper code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--brick);
  font-weight: 900;
}

.last-update {
  margin-top: 42px;
  font-size: 0.95rem;
  font-weight: 900;
}

.contact-note {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.94);
  color: var(--ink);
}

.contact-note h2 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.contact-note a {
  display: block;
  margin-top: 12px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 8px;
}

.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.message-field,
.contact-form .button,
.form-hint {
  grid-column: 1 / -1;
}

label {
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-hint {
  margin: 0;
  font-size: 0.95rem;
}

.email-reveal {
  color: var(--brick);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px max(20px, calc((100vw - var(--max)) / 2));
  background: #1d1714;
  color: #fff8ea;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 248, 234, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: end;
  gap: 14px;
}

.footer-links a {
  color: #fff8ea;
  font-weight: 800;
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 8px;
    background: rgba(48, 27, 18, 0.96);
  }

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

  .site-nav a {
    padding: 13px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding-bottom: 56px;
  }

  .benefit-band,
  .intro-grid,
  .split-grid,
  .use-case-grid,
  .feature-row,
  .contact-hero,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer,
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .hero-content,
  .intro-section,
  .cards-section,
  .feature-list,
  .split-section,
  .form-section,
  .cta-section {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .hero-actions,
  .hero-actions .button,
  .cta-section .button,
  .contact-form .button {
    width: 100%;
  }

  .intro-section,
  .cards-section,
  .feature-list,
  .split-section,
  .form-section {
    padding: 60px 0;
  }

  .benefit-band,
  .page-hero,
  .contact-hero,
  .legal-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .card,
  .contact-form,
  .cta-section {
    padding: 22px;
  }
}
