/* ============================================================
   PICNIC MOMENT — Component & utility layer
   Consumes css/tokens.css
   ============================================================ */

/* ---------------- Layout ---------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: calc(clamp(64px, 9vw, 128px) * var(--space-scale, 1)); }
.section--paper2 { background: var(--paper-2); }
.stack > * + * { margin-top: var(--s-4); }
.eyebrow {
  font-size: var(--t-foot); font-weight: 800; letter-spacing: var(--trk-caps);
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }

/* ---------------- Typography ---------------- */
.display { font-size: var(--t-display); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--trk-display); margin: 0; }
.title1  { font-size: var(--t-title1); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--trk-title); margin: 0; }
.title2  { font-size: var(--t-title2); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--trk-title); margin: 0; }
.title3  { font-size: var(--t-title3); font-weight: 700; line-height: 1.25; letter-spacing: var(--trk-title); margin: 0; }
.headline{ font-size: var(--t-headline); font-weight: 700; line-height: 1.3; margin: 0; }
.lead    { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; color: var(--ink-2); font-weight: 400; margin: 0; }
.body    { font-size: var(--t-body); line-height: var(--lh-body); margin: 0; }
.callout { font-size: var(--t-callout); color: var(--ink-2); margin: 0; }
.caption { font-size: var(--t-caption); color: var(--ink-3); letter-spacing: 0.02em; margin: 0; }
.metric  { font-weight: 800; color: var(--ink-brown); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.text-balance { text-wrap: balance; } .text-pretty { text-wrap: pretty; }
.muted { color: var(--ink-2); } .tertiary { color: var(--ink-3); }

/* ---------------- Glass surface ---------------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--shadow-glass);
}

/* ---------------- Card ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--s-6);
}
.card--tinted { background: var(--surface-2); }
.card--pad-lg { padding: var(--s-7); }
.card-hover { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------------- Buttons ---------------- */
.btn {
  --bg: var(--accent); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: var(--t-callout); font-weight: 700; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.22);
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn:active { transform: translateY(0); background: var(--accent-strong); }
.btn--lg { padding: 17px 30px; font-size: var(--t-body); }
.btn--sm { padding: 9px 16px; font-size: var(--t-subhead); }
.btn--secondary { --bg: var(--surface); --fg: var(--ink); border-color: var(--hairline); box-shadow: var(--shadow-xs); }
.btn--secondary:active { background: var(--surface-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--brass { --bg: var(--brass); --fg: #fff; }
.btn--block { display: flex; width: 100%; }

/* App Store style pill button */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 18px; border-radius: var(--r-md);
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-sm); transition: transform var(--dur-1) var(--ease);
}
.btn-store:hover { transform: translateY(-1px); }
.btn-store .sub { font-size: 11px; line-height: 1; opacity: 0.75; letter-spacing: 0.02em; }
.btn-store .big { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }

/* ---------------- Tags / chips / badges ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: var(--t-foot); font-weight: 700; letter-spacing: 0.01em;
  background: var(--surface-tinted); color: var(--ink-2); border: 1px solid var(--hairline-soft);
}
.tag .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.tag--accent { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.tag--brass  { background: var(--brass-soft); color: var(--brass); border-color: transparent; }
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: #fff;
}

/* module chip (uses --c per-instance) */
.modchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--hairline-soft);
  font-size: var(--t-subhead); font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.modchip .ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--c, var(--accent));
}
.modchip .ico svg { width: 15px; height: 15px; }

/* ---------------- Icon tile ---------------- */
.icontile {
  width: 52px; height: 52px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--c, var(--accent));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.25);
}
.icontile svg { width: 26px; height: 26px; }
.icontile--soft { background: var(--accent-soft); color: var(--accent); box-shadow: var(--shadow-xs); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 16px; z-index: 50; margin-top: 16px;
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 18px; border-radius: var(--r-pill);
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.nav-brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: var(--shadow-xs); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: var(--t-subhead); font-weight: 600; color: var(--ink-2);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.nav-links a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }

/* ---------------- Footer ---------------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--hairline); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); }
.footer h4 { font-size: var(--t-foot); text-transform: uppercase; letter-spacing: var(--trk-caps); color: var(--ink-3); margin: 0 0 14px; font-weight: 800; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); font-size: var(--t-subhead); }
.footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--hairline); }

/* ---------------- Brand wave divider ---------------- */
.wave { display: block; width: 100%; height: auto; color: var(--accent); }
.wave-sm { width: 120px; }

/* ---------------- Helpers ---------------- */
.row { display: flex; align-items: center; gap: var(--s-4); }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.col { display: flex; flex-direction: column; }
.center { align-items: center; text-align: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.swatch { aspect-ratio: 1.5; border-radius: var(--r-md); box-shadow: var(--shadow-xs); border: 1px solid var(--hairline-soft); }

@media (max-width: 900px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Language navigation dropdown ---------------- */
.nav-lang-switcher { position: relative; }
.nav-lang-switcher .lang-switch-toggle { background: none; border: 1px solid var(--border); padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; gap: 4px; }
.nav-lang-switcher .lang-switch-toggle:hover { border-color: var(--ink); }
.nav-lang-switcher .lang-switch-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-lang-switcher .lang-switch-menu { position: absolute; top: 100%; right: 0; margin-top: 6px; background: var(--paper); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-md); display: none; z-index: 1000; min-width: 140px; }
.nav-lang-switcher .lang-switch-menu.open { display: block; }
.nav-lang-switcher .lang-switch-menu a { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 13px; color: var(--ink); cursor: pointer; transition: background 0.2s; text-decoration: none; }
.nav-lang-switcher .lang-switch-menu a:hover { background: var(--paper-2); }
.nav-lang-switcher .lang-switch-menu a.active { background: var(--accent); color: #fff; font-weight: 600; pointer-events: none; }
.nav-lang-switcher .lang-switch-menu a:first-child { border-radius: 7px 7px 0 0; }
.nav-lang-switcher .lang-switch-menu a:last-child { border-radius: 0 0 7px 7px; }
