/* YOLO EXIM component styles. Every colour, radius and space comes from tokens.css. Prefix: yx- */

.yx, .yx * { box-sizing: border-box; }
.yx { font-family: var(--font-sans); font-size: 16px; line-height: 26px; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
.yx h1, .yx h2, .yx h3, .yx h4, .yx p { margin: 0; }
.yx h1, .yx h2, .yx h3 { text-wrap: balance; }
.yx a { color: var(--roast); }
.yx :focus-visible { outline: 2px solid var(--roast); outline-offset: 3px; border-radius: var(--radius-xs); }
.yx-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-6); }
.yx-section { padding-block: var(--space-24); }
.yx-section--alt { background: var(--surface-alt); }
@media (max-width: 640px) { .yx-container { padding-inline: var(--space-4); } .yx-section { padding-block: var(--space-16); } }

/* ---------- Type helpers ---------- */
.yx-display-xl { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 68px; letter-spacing: -0.01em; }
.yx-display-l  { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 54px; }
.yx-display-m  { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 46px; }
.yx-heading-l  { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 40px; }
.yx-tagline    { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 32px; color: var(--saffron-text); }
.yx-title      { font-size: 20px; line-height: 28px; font-weight: 600; }
.yx-lede       { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: var(--measure); }
.yx-small      { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.yx-eyebrow    { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--roast); display: inline-flex; align-items: center; gap: var(--space-2); }
.yx-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }
.yx-data       { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.yx-display-xl em, .yx-display-l em, .yx-display-m em { font-style: italic; color: var(--saffron-text); }
@media (max-width: 640px) {
  .yx-display-xl { font-size: 40px; line-height: 44px; }
  .yx-display-l { font-size: 34px; line-height: 40px; }
  .yx-display-m { font-size: 30px; line-height: 36px; }
  .yx-heading-l { font-size: 26px; line-height: 32px; }
}

/* ---------- Motifs ---------- */
/* Manifest grid: the inspiration site's faint blueprint grid, at space-12 pitch, fading out. */
.yx-grid-bg { position: relative; isolation: isolate; }
.yx-grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--space-12) var(--space-12);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); }
/* Halftone: the dot ring from the logo. Place behind an image corner; never behind text. */
.yx-halftone { position: absolute; width: 180px; height: 180px; pointer-events: none;
  background-image: radial-gradient(circle, var(--turmeric) 3px, transparent 3.5px);
  background-size: var(--space-3) var(--space-3);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
          mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.yx-halftone--saffron { background-image: radial-gradient(circle, var(--saffron) 3px, transparent 3.5px); }

/* ---------- Button ---------- */
.yx-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6);
  font: 600 15px/20px var(--font-sans); text-decoration: none; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.yx a.yx-btn, a.yx-btn { color: inherit; }
.yx-btn .yx-arrow { transition: transform .15s ease; }
.yx-btn:hover .yx-arrow { transform: translateX(3px); }
.yx-btn--primary { background: var(--turmeric); color: var(--on-turmeric); }
.yx .yx-btn--primary { color: var(--on-turmeric); }
.yx-btn--primary:hover { background: var(--saffron); }
.yx-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.yx .yx-btn--secondary { color: var(--ink); }
.yx-btn--secondary:hover { background: var(--ink); color: var(--surface); }
.yx-btn--on-deep { background: transparent; color: var(--on-deep); border-color: var(--on-deep-muted); }
.yx .yx-btn--on-deep { color: var(--on-deep); }
.yx-btn--on-deep:hover { border-color: var(--on-deep); }
.yx-btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.yx-btn:disabled, .yx-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.yx-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 15px; color: var(--roast); text-decoration: none; }
.yx-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.yx-link:hover .yx-arrow { transform: translateX(3px); }
.yx-link .yx-arrow { transition: transform .15s ease; }

/* ---------- Chip ---------- */
.yx-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 10px; border-radius: var(--radius-pill);
  font: 500 12px/16px var(--font-mono); letter-spacing: .04em; background: var(--turmeric-soft); color: var(--roast); }
.yx-chip--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-muted); }
.yx-chip--solid { background: var(--turmeric); color: var(--on-turmeric); }
.yx-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Site header ---------- */
.yx-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.yx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: var(--header-height); }
.yx-brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.yx .yx-brand { color: var(--ink); }
.yx-brand img { width: 44px; height: 44px; }
.yx-brand__name { font: 700 17px/1 var(--font-sans); letter-spacing: .12em; }
.yx-brand__name span { color: var(--saffron-text); }
.yx-nav { display: flex; align-items: center; gap: var(--space-8); }
.yx-nav a { font: 600 14px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.yx .yx-nav a { color: var(--ink); }
.yx-nav a:hover { border-color: var(--line-strong); }
.yx-nav a[aria-current="page"] { border-color: var(--turmeric); }
.yx-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); align-items: center; justify-content: center; }
@media (max-width: 760px) { .yx-nav { display: none; } .yx-menu-btn { display: inline-flex; } .yx-header__inner { min-height: 64px; } }

/* ---------- Hero ---------- */
.yx-hero { padding-block: var(--space-24) var(--space-16); }
.yx-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
.yx-hero__copy { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.yx-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.yx-hero__media { position: relative; min-width: 0; }
.yx-hero__media img { display: block; width: 100%; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.yx-hero__media .yx-halftone { right: -48px; top: -48px; z-index: -1; }
.yx-hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); margin-top: var(--space-4); }
.yx-hero__facts dt { font: 600 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.yx-hero__facts dd { margin: 4px 0 0; font: 400 14px/20px var(--font-mono); color: var(--ink); }
@media (max-width: 900px) { .yx-hero__grid { grid-template-columns: 1fr; } .yx-hero { padding-block: var(--space-12); } }

/* ---------- Section heading ---------- */
.yx-heading { display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-12); }
.yx-heading--center { margin-inline: auto; text-align: center; align-items: center; }
.yx-heading--split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; }
.yx-heading--split > div { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; min-width: 0; }

/* ---------- Feature card ---------- */
.yx-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.yx-feature { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-raised); transition: background-color .2s ease; }
.yx-feature:hover { background: var(--turmeric-soft); }
.yx-feature__icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--turmeric-soft); color: var(--roast); display: grid; place-items: center; margin-bottom: var(--space-2); }
.yx-feature:hover .yx-feature__icon { background: var(--turmeric); color: var(--on-turmeric); }
.yx-feature p { color: var(--ink-muted); }
@media (max-width: 900px) { .yx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .yx-features { grid-template-columns: 1fr; } .yx-feature { padding: var(--space-6); } }

/* ---------- Product card ---------- */
.yx-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.yx-product { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.yx .yx-product { color: var(--ink); }
.yx-product:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.yx-product__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: var(--surface-alt); }
.yx-product__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.yx-product__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--space-4); margin: 0; }
.yx-product__meta dt { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.yx-product__meta dd { margin: 0; font: 400 13px/20px var(--font-mono); text-align: right; }
.yx-product__foot { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* ---------- Spec table ---------- */
.yx-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.yx-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.yx-table caption { text-align: left; padding: var(--space-4) var(--space-6); font-weight: 600; border-bottom: 1px solid var(--line); }
.yx-table th, .yx-table td { padding: 12px var(--space-6); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.yx-table tr:last-child th, .yx-table tr:last-child td { border-bottom: 0; }
.yx-table thead th { background: var(--surface-alt); font: 600 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.yx-table tbody th { font-weight: 500; color: var(--ink-muted); width: 42%; }
.yx-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.yx-table td.yx-text { font-family: var(--font-sans); }
.yx-table tr.is-highlight td, .yx-table tr.is-highlight th { background: var(--turmeric-soft); }
.yx-table--compare { min-width: 760px; }
.yx-table--compare tbody th { width: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- Region list ---------- */
.yx-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); }
.yx-region { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 2px solid var(--line); transition: border-color .2s ease; }
.yx-region:hover { border-color: var(--turmeric); }
.yx-region__code { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--saffron-text); }
.yx-region p { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 900px) { .yx-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .yx-regions { grid-template-columns: 1fr; } }

/* ---------- Trade facts ---------- */
.yx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); overflow: hidden; }
.yx-facts > div { padding: var(--space-6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -0 -1px -1px 0; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.yx-facts dt { font: 600 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.yx-facts dd { margin: 0; font: 400 15px/22px var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.yx-facts dd small { display: block; font: 400 13px/20px var(--font-sans); color: var(--ink-muted); margin-top: 4px; }

/* ---------- Form ---------- */
.yx-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.yx-form .yx-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .yx-form { grid-template-columns: 1fr; } }
.yx-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.yx-field label { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.yx-field label .yx-req { color: var(--saffron-text); }
.yx-input { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--surface-raised);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.yx-input::placeholder { color: var(--ink-muted); opacity: .8; }
.yx-input:hover { border-color: var(--ink-muted); }
.yx-input:focus { outline: none; border-color: var(--roast); box-shadow: 0 0 0 3px var(--turmeric-soft); }
textarea.yx-input { min-height: 128px; resize: vertical; }
select.yx-input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.yx-help { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.yx-field.is-invalid .yx-input { border-color: var(--danger); }
.yx-field.is-invalid .yx-help { color: var(--danger); }

/* ---------- CTA band ---------- */
.yx-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--on-deep); border-radius: var(--radius-lg); padding: var(--space-16) var(--space-12);
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; }
.yx-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,171,32,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,171,32,.14) 1px, transparent 1px);
  background-size: var(--space-12) var(--space-12);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.yx-cta .yx-eyebrow { color: var(--turmeric); }
.yx-cta p { color: var(--on-deep-muted); max-width: 56ch; margin-top: var(--space-3); }
.yx-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 760px) { .yx-cta { grid-template-columns: 1fr; padding: var(--space-12) var(--space-6); } }

/* ---------- FAQ ---------- */
.yx-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.yx-faq details { border-bottom: 1px solid var(--line); }
.yx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-6) 0; font: 600 18px/26px var(--font-sans); color: var(--ink); }
.yx-faq summary::-webkit-details-marker { display: none; }
.yx-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--turmeric-soft); color: var(--roast); font: 400 22px/1 var(--font-sans); transition: transform .2s ease; }
.yx-faq details[open] summary::after { transform: rotate(45deg); background: var(--turmeric); color: var(--on-turmeric); }
.yx-faq details p { padding: 0 var(--space-12) var(--space-6) 0; color: var(--ink-muted); max-width: var(--measure); }

/* ---------- Footer ---------- */
.yx-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: var(--space-16) var(--space-8); font-size: 14px; line-height: 22px; }
.yx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-8); }
.yx-footer h4 { font: 600 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep); margin-bottom: var(--space-4); }
.yx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.yx-footer a, .yx .yx-footer a { color: var(--on-deep-muted); text-decoration: none; }
.yx-footer a:hover { color: var(--turmeric); }
.yx-footer .yx-brand, .yx .yx-footer .yx-brand { color: var(--on-deep); margin-bottom: var(--space-4); }
.yx-footer .yx-brand__name span { color: var(--turmeric); }
.yx-footer .yx-tagline { color: var(--turmeric); font-size: 20px; line-height: 28px; }
.yx-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(247,240,228,.14); font-size: 13px; }
@media (max-width: 900px) { .yx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .yx-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .yx *, .yx *::before, .yx *::after { transition: none !important; animation: none !important; } }
