/* Al Gusto Distribution: site styles
   Palette: black/white base, brand colors carry the color. */
@font-face {
  font-family: "Inter Display";
  src: url("/assets/fonts/inter-display-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --ink: #1d1d1f;
  --muted: #5f5f64;          /* 6.4:1 on white, 5.9:1 on --mist */
  --mist: #f5f5f7;
  --line: #d2d2d7;
  --lime: #c6ee00;           /* Michi Dip */
  --marigold: #ffb81c;       /* La Mexicana Snacks */
  --chile: #b3121b;          /* La Mexicana Spice (white text 7.2:1) */
  --chile-mark: #e0332b;
  --blue: #0098ce;           /* American Snacks (black text 6.8:1) */
  --error: #b00020;
  --ok: #0a6b34;
  --display: "Inter Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.022em; line-height: 1.06; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Focus: visible everywhere, adapts to the surface it sits on */
:focus { outline: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #0058d6; outline-offset: 2px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -100px; z-index: 100;
  background: var(--black); color: var(--white); padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: inherit; font-weight: 600; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-list { align-items: center; }
.nav-list a { text-decoration: none; color: var(--ink); padding: 0; display: inline-flex; align-items: center; min-height: 44px; }
.nav-list a:hover { text-decoration: underline; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--black); color: var(--white);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: #333; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.btn-large { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.text-link { font-weight: 600; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 8.4vw, 112px); letter-spacing: -.04em; line-height: .98; max-width: 12ch; }
.hero-lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.42; color: var(--muted); max-width: 40ch; margin: 28px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* The shelf: four brands sitting side by side, mirrors the logo bar */
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: clamp(56px, 8vw, 96px); padding: 0; list-style: none;
}
.shelf a {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(150px, 22vw, 280px); padding: clamp(14px, 2vw, 24px);
  border-radius: var(--radius) var(--radius) 6px 6px;
  text-decoration: none; transition: transform .35s var(--ease);
}
.shelf a:hover { transform: translateY(-6px); }
.shelf-name { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2.1vw, 26px); letter-spacing: -.02em; line-height: 1.05; }
.shelf-kind { font-size: clamp(12px, 1.2vw, 14px); margin-top: 6px; }
.shelf li:nth-child(1) a { background: var(--lime); color: var(--black); }
.shelf li:nth-child(2) a { background: var(--marigold); color: var(--black); }
.shelf li:nth-child(3) a { background: var(--chile); color: var(--white); }
.shelf li:nth-child(4) a { background: var(--blue); color: var(--black); }
.shelf-base { height: 14px; background: var(--black); border-radius: 0 0 4px 4px; margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  .shelf li { animation: stock .9s var(--ease) both; }
  .shelf li:nth-child(1) { animation-delay: .15s; }
  .shelf li:nth-child(2) { animation-delay: .27s; }
  .shelf li:nth-child(3) { animation-delay: .39s; }
  .shelf li:nth-child(4) { animation-delay: .51s; }
  @keyframes stock { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
}

/* ---------- Proof strip ---------- */
.proof { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.proof dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.proof div { border-left: 1px solid var(--line); padding-left: 18px; }
.proof dt { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1; }
.proof dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(36px, 5.6vw, 72px); letter-spacing: -.035em; }
.section-head p { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); margin-top: 20px; max-width: 52ch; }

/* ---------- Brand panels ---------- */
.brand-panel { padding: clamp(72px, 11vw, 150px) 0; }
.brand-panel .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.brand-panel h3 { font-size: clamp(52px, 9.5vw, 140px); letter-spacing: -.045em; line-height: .92; }
.brand-panel .tagline { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; margin: 24px 0 0; max-width: 26ch; font-weight: 600; }
.brand-panel ul { list-style: none; margin: 0 0 28px; padding: 0; font-size: 17px; }
.brand-panel li { padding: 12px 0; border-top: 1px solid currentColor; }
.brand-panel li:last-child { border-bottom: 1px solid currentColor; }
.brand-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.brand-links a { font-weight: 600; }
.panel-michi { background: var(--lime); color: var(--black); }
.panel-snacks { background: var(--marigold); color: var(--black); }
.panel-spice { background: var(--chile); color: var(--white); }
.panel-american { background: var(--blue); color: var(--black); }
.brand-panel li { border-color: rgba(0, 0, 0, .28); }
.panel-spice li { border-color: rgba(255, 255, 255, .4); }

/* ---------- How we work ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.services article { border-top: 2px solid var(--black); padding-top: 24px; }
.services h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.services p { color: var(--muted); margin: 0; }

/* ---------- Specs (Apple tech-specs style) ---------- */
.specs { border-top: 1px solid var(--line); margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.specs dd { margin: 0; color: var(--muted); max-width: 56ch; }
.specs dd strong { color: var(--ink); }

/* ---------- Community ---------- */
.community { background: var(--black); color: var(--white); }
.community .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.community h2 { font-size: clamp(34px, 4.8vw, 60px); letter-spacing: -.035em; }
.community p { color: #c7c7cc; font-size: 19px; max-width: 46ch; margin-top: 20px; }
.community ul { list-style: none; margin: 0; padding: 0; }
.community li { padding: 18px 0; border-top: 1px solid #3a3a3c; display: flex; justify-content: space-between; gap: 16px; }
.community li:last-child { border-bottom: 1px solid #3a3a3c; }
.community li span:last-child { color: #c7c7cc; text-align: right; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -.035em; }
.contact-lede { font-size: 19px; color: var(--muted); margin: 20px 0 36px; max-width: 38ch; }
.contact-direct { margin: 0; }
.contact-direct div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-direct dt { font-size: 14px; color: var(--muted); }
.contact-direct dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.form { background: var(--white); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #86868b; border-radius: 12px;
  background: var(--white); font-size: 17px; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 14px; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 14px; color: var(--muted); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-legal { font-size: 14px; color: var(--muted); margin: 0; flex: 1 1 240px; }
.form-status { margin-top: 18px; font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-grid h2 { font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; color: var(--ink); }
.footer-about { max-width: 34ch; }
.footer-about .brand { margin-bottom: 14px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-base a, .link-button { color: var(--muted); text-decoration: none; }
.footer-base a:hover, .link-button:hover { color: var(--ink); text-decoration: underline; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }

/* ---------- Accessibility button + settings dialog ---------- */
.a11y-icon { width: 18px; height: 18px; flex: none; }
.nav-a11y {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  padding: 0; min-height: 44px; font-size: 14px; color: var(--ink);
}
.nav-a11y:hover { text-decoration: underline; }
.footer-a11y { display: inline-flex; align-items: center; gap: 6px; }
.a11y-dialog {
  width: min(100% - 24px, 460px); max-height: calc(100% - 24px); overflow: auto;
  border: 0; border-radius: 24px; padding: 28px; color: var(--ink); background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.a11y-dialog::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.a11y-head h2 { font-size: 26px; letter-spacing: -.02em; }
.a11y-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist);
  font-size: 28px; line-height: 1; cursor: pointer; flex: none;
}
.a11y-close:hover { background: #e8e8ed; }
#a11y-desc { color: var(--muted); font-size: 15px; margin: 8px 0 18px; }
.a11y-options { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.a11y-options li { border-bottom: 1px solid var(--line); }
.a11y-options button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; padding: 14px 4px; text-align: left; cursor: pointer; min-height: 56px;
}
.a11y-label { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; }
.a11y-label span { font-weight: 400; font-size: 14px; color: var(--muted); }
.switch { position: relative; width: 51px; height: 31px; border-radius: 999px; background: #8e8e93; flex: none; transition: background .2s; }
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s var(--ease);
}
[aria-checked="true"] .switch { background: var(--ok); }
[aria-checked="true"] .switch::after { transform: translateX(20px); }
.a11y-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; }
.a11y-foot .link-button { color: var(--ink); text-decoration: underline; }
.a11y-foot a { font-weight: 600; }

/* Settings applied to the whole site */
html.a11y-text body { zoom: 1.25; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-spacing body { line-height: 1.8 !important; letter-spacing: .06em !important; word-spacing: .16em !important; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing dd { margin-bottom: 1.4em; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3 { line-height: 1.3 !important; letter-spacing: 0 !important; }
html.a11y-contrast { --muted: #000; --line: #000; --mist: #fff; }
html.a11y-contrast body { color: #000; }
html.a11y-contrast .site-header { background: #fff; border-bottom: 2px solid #000; }
html.a11y-contrast .field input, html.a11y-contrast .field select, html.a11y-contrast .field textarea { border: 2px solid #000; }
html.a11y-contrast .form { border: 2px solid #000; }
html.a11y-contrast .community p, html.a11y-contrast .community li span:last-child { color: #fff; }
html.a11y-contrast .community li { border-color: #fff; }
html.a11y-contrast .panel-spice { background: #7a0c12; }
html.a11y-contrast .shelf li:nth-child(3) a { background: #7a0c12; }
html.a11y-contrast .brand-panel li { border-color: currentColor; }
html.a11y-focus :focus-visible { outline-width: 5px !important; outline-offset: 4px !important; box-shadow: 0 0 0 9px #ffd400 !important; }
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important;
}

/* ---------- Legal / simple pages ---------- */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.04em; }
.page-hero p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 56ch; }
.prose { max-width: 720px; padding-bottom: clamp(80px, 10vw, 140px); }
.prose h2 { font-size: 28px; letter-spacing: -.02em; margin: 52px 0 14px; }
.prose h3 { font-size: 20px; letter-spacing: -.01em; margin: 32px 0 10px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose a { font-weight: 600; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-page h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -.045em; }
.center-page p { color: var(--muted); font-size: 19px; max-width: 44ch; margin: 18px auto 32px; }
.center-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; align-items: center; }
.big-code { font-family: var(--display); font-weight: 600; font-size: clamp(96px, 22vw, 240px); letter-spacing: -.06em; line-height: .9; display: flex; justify-content: center; gap: .04em; }
.big-code span:nth-child(1) { color: var(--lime); -webkit-text-stroke: 2px var(--black); }
.big-code span:nth-child(2) { color: var(--black); }
.big-code span:nth-child(3) { color: var(--blue); -webkit-text-stroke: 2px var(--black); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .brand-panel .wrap, .community .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; font-size: 19px; }
  .nav-list a, .nav-a11y { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .nav-a11y .a11y-icon { width: 22px; height: 22px; }
  .header-cta { display: none; }
}
@media (max-width: 820px) {
  .proof dl { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .shelf li:nth-child(n) a { border-radius: 14px; }
  .shelf-base { display: none; }
  .specs > div { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .community li { flex-direction: column; gap: 2px; }
  .community li span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .btn, .shelf a { border: 2px solid ButtonText; }
}
@media print {
  .site-header, .site-footer, .form { display: none !important; }
}
.brands-head { padding-top: clamp(80px, 12vw, 160px); }
