:root {
  --ink: #17231f;
  --muted: #66736e;
  --paper: #f8faf7;
  --white: #ffffff;
  --forest: #12352c;
  --forest-2: #1f5546;
  --mint: #b9dfc5;
  --lime: #d9e8a6;
  --coral: #ef6a45;
  --sky: #b9d7df;
  --line: #d9dfda;
  --shadow: 0 18px 50px rgba(22, 48, 39, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(217, 223, 218, .85);
  background: rgba(248, 250, 247, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: var(--white); background: var(--forest); font-size: 19px; font-weight: 900; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: #31433c; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--coral); }
.site-nav .nav-action { padding: 10px 16px; border: 1px solid var(--forest); border-radius: 6px; color: var(--forest); }

.hero { position: relative; min-height: min(720px, calc(100vh - 72px)); overflow: hidden; color: var(--white); }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { background: #264d3f url("pantrio-hero.webp") center / cover no-repeat; }
.hero-overlay { background: linear-gradient(90deg, rgba(10, 36, 29, .9) 0%, rgba(10, 36, 29, .72) 44%, rgba(10, 36, 29, .12) 78%); }
.hero-content { position: relative; z-index: 2; width: min(700px, calc(100% - 48px)); padding: clamp(90px, 13vh, 140px) 0 100px; margin: 0 max(24px, calc((100vw - var(--max)) / 2)); }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(64px, 9vw, 116px); line-height: .92; }
.hero-lead { max-width: 610px; margin: 28px 0 0; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.25; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 800; text-decoration: none; }
.button.primary { color: var(--white); background: var(--coral); }
.button.primary:hover { background: #d95633; }
.button.ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .08); }
.button.secondary { border-color: var(--forest); color: var(--forest); background: transparent; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 46px; color: rgba(255, 255, 255, .84); font-size: 14px; }
.hero-points span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lime); }
.hero-next { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 24px; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; text-decoration: none; }

.section { padding: 96px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: grid; grid-template-columns: .55fr 1fr; gap: 16px 64px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.section-heading > p:last-child { max-width: 590px; margin: 0; color: var(--muted); font-size: 18px; }

.process-section { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-item { min-height: 320px; padding: 32px; border-right: 1px solid var(--line); }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { padding-right: 0; border-right: 0; }
.step-number { color: var(--muted); font-size: 12px; font-weight: 800; }
.process-icon { position: relative; width: 58px; height: 58px; margin: 54px 0 22px; border: 2px solid var(--forest); border-radius: 12px; }
.camera-icon::before { content: ""; position: absolute; inset: 14px 11px; border: 3px solid var(--forest); border-radius: 5px; }
.camera-icon::after { content: ""; position: absolute; width: 10px; height: 10px; top: 22px; left: 22px; border: 2px solid var(--coral); border-radius: 50%; }
.barcode-icon { background: repeating-linear-gradient(90deg, var(--forest) 0 2px, transparent 2px 5px); background-clip: content-box; padding: 13px; }
.recipe-icon::before { content: ""; position: absolute; width: 30px; height: 34px; left: 12px; top: 10px; border: 2px solid var(--forest); border-radius: 4px; }
.recipe-icon::after { content: "✓"; position: absolute; right: 4px; bottom: 1px; color: var(--coral); font-size: 24px; font-weight: 900; }
.process-item h3 { margin: 0 0 10px; font-size: 23px; }
.process-item p { margin: 0; color: var(--muted); }

.recipe-lab { background: #eef2ec; }
.lab-intro { max-width: 700px; }
.lab-intro > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.demo-note { display: inline-block; padding: 7px 10px; border-radius: 4px; color: var(--forest) !important; background: var(--mint); font-size: 13px !important; font-weight: 700; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.feature-list article { display: grid; grid-template-columns: 54px 1fr; gap: 12px; min-height: 190px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list article:nth-child(2n) { border-right: 0; }
.feature-list article:nth-last-child(-n+2) { border-bottom: 0; }
.feature-list article > span { color: var(--coral); font-size: 13px; font-weight: 900; }
.feature-list h3 { margin: 0 0 10px; font-size: 22px; }
.feature-list p { margin: 0; color: var(--muted); }
.lab-workspace { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1px; margin-top: 46px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); box-shadow: var(--shadow); }
.ingredient-panel, .recipe-panel { min-width: 0; padding: 30px; background: var(--white); }
.panel-head { display: flex; min-height: 48px; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h3 { margin: 0; font-size: 24px; }
.panel-kicker { margin: 0 0 2px; color: var(--coral); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.text-button { border: 0; color: var(--forest-2); background: transparent; font-weight: 800; cursor: pointer; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.ingredient-chip { display: inline-flex; min-height: 42px; padding: 0 13px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--paper); cursor: pointer; }
.ingredient-chip.selected { border-color: var(--forest-2); color: var(--white); background: var(--forest-2); }
.scan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.scan-button { display: flex; min-height: 86px; padding: 15px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; text-align: left; background: var(--white); cursor: pointer; }
.scan-button:hover { border-color: var(--coral); }
.scan-button small { display: block; margin-top: 3px; color: var(--muted); }
.scan-symbol { display: block; flex: 0 0 36px; height: 36px; border: 2px solid var(--forest); border-radius: 7px; }
.camera-symbol { position: relative; }
.camera-symbol::after { content: ""; position: absolute; width: 9px; height: 9px; inset: 0; margin: auto; border: 2px solid var(--coral); border-radius: 50%; }
.barcode-symbol { border-radius: 2px; background: repeating-linear-gradient(90deg, var(--forest) 0 2px, transparent 2px 5px); background-clip: content-box; padding: 8px; }
.scan-status { min-height: 24px; margin-top: 14px; color: var(--forest-2); font-size: 13px; }
.scan-status.active::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 2px solid var(--coral); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.time-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.time-filter select { min-height: 38px; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); }
.recipe-results { display: grid; gap: 10px; margin-top: 22px; }
.recipe-card { display: grid; grid-template-columns: 92px 1fr; min-height: 114px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.recipe-art { display: grid; place-items: center; background: var(--recipe-color); }
.recipe-art span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; color: var(--forest); background: rgba(255, 255, 255, .75); font-weight: 900; }
.recipe-info { padding: 14px 16px; }
.recipe-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.recipe-info h4 { margin: 3px 0 2px; font-size: 18px; }
.recipe-info p { margin: 0; color: var(--muted); font-size: 13px; }
.match-bar { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #dfe5e0; }
.match-bar span { display: block; height: 100%; background: var(--forest-2); transition: width .25s ease; }
.empty-state { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }

.trust-band { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; color: var(--white); background: var(--forest); }
.trust-band .eyebrow { color: var(--lime); }
.trust-copy { align-self: end; }
.trust-copy > p { color: rgba(255, 255, 255, .72); font-size: 18px; }
.trust-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.trust-links a { color: var(--white); font-weight: 800; text-underline-offset: 5px; }
.closing-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; background: var(--lime); }
.closing-copy { max-width: 720px; }
.closing-copy > p:last-child { max-width: 620px; color: #4f5b48; font-size: 18px; }
.closing-links { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }

.site-footer { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; padding: 42px max(24px, calc((100vw - var(--max)) / 2)); color: rgba(255, 255, 255, .7); background: #0b201a; font-size: 13px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--white); font-size: 17px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: flex-end; align-items: center; }
.site-footer nav a { color: var(--white); text-decoration: none; }
.site-footer > p { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }

.legal-hero { padding: 82px max(24px, calc((100vw - var(--max)) / 2)) 54px; color: var(--white); background: var(--forest); }
.legal-hero .eyebrow { color: var(--lime); }
.legal-hero h1 { max-width: 900px; margin: 0; font-size: clamp(44px, 6vw, 74px); line-height: 1; }
.legal-hero p:last-child { max-width: 760px; margin: 22px 0 0; color: rgba(255, 255, 255, .72); font-size: 18px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 70px; padding: 68px max(24px, calc((100vw - var(--max)) / 2)) 96px; background: var(--white); }
.legal-content { min-width: 0; }
.legal-toc { position: sticky; top: 100px; align-self: start; padding: 20px 0; border-top: 2px solid var(--forest); }
.legal-toc strong { display: block; margin-bottom: 12px; }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.legal-content h2 { margin: 54px 0 14px; font-size: 30px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 28px 0 8px; font-size: 20px; }
.legal-content p, .legal-content li { color: #47544f; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--forest-2); font-weight: 700; }
.legal-callout { padding: 20px; border-left: 4px solid var(--coral); background: #f5f7f3; }
.data-table { width: 100%; margin: 20px 0 36px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--forest); background: #eef3ed; font-size: 13px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.support-block { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.support-block h3 { margin-top: 0; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; }
  .site-nav { width: 100%; padding-top: 10px; gap: 4px; overflow-x: auto; }
  .site-nav a { flex: 0 0 auto; padding: 8px 10px; }
  .site-nav .nav-action { border: 0; }
  .section-heading { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item, .process-item:first-child, .process-item:last-child { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-item:last-child { border-bottom: 0; }
  .process-icon { margin: 34px 0 18px; }
  .lab-workspace { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list article, .feature-list article:nth-child(2n), .feature-list article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-list article:last-child { border-bottom: 0; }
  .trust-band { grid-template-columns: 1fr; gap: 36px; }
  .closing-section { align-items: stretch; flex-direction: column; }
  .closing-links { min-width: 0; flex-direction: row; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; display: none; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .hero { min-height: 680px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10, 36, 29, .5), rgba(10, 36, 29, .9) 58%); }
  .hero-media { background-position: 62% center; }
  .hero-content { display: flex; min-height: 680px; padding: 250px 0 78px; flex-direction: column; justify-content: flex-end; }
  .hero h1 { font-size: 66px; }
  .hero-lead { font-size: 21px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-points { margin-top: 26px; flex-direction: column; gap: 7px; }
  .hero-next { display: none; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .section h2 { font-size: 40px; }
  .ingredient-panel, .recipe-panel { padding: 20px; }
  .scan-row { grid-template-columns: 1fr; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .time-filter { width: 100%; justify-content: space-between; }
  .recipe-card { grid-template-columns: 76px 1fr; }
  .recipe-art span { width: 46px; height: 46px; font-size: 13px; }
  .closing-links { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .legal-hero { padding-top: 60px; }
  .legal-layout { padding-top: 44px; }
  .data-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
  .support-grid { grid-template-columns: 1fr; }
  .feature-list article { grid-template-columns: 38px 1fr; min-height: 0; padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
