/* MILON website — shared styles. Colours, type and spacing come from tokens.css
   (MILON Brand Identity design system); never hard-code brand hexes here. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }

/* Sections on burgundy / deep wine */
.onwine a { color: #fff; }
.onwine a:hover { color: var(--milon-blush-pink); }
.onwine :focus-visible { outline-color: var(--milon-blush-pink); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
.section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cols { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; }
.grid-fit { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 220px), 1fr)); }

/* ---------- Type ---------- */
.h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.onwine .h2 { color: #fff; }
.lead { margin: 0 0 40px; max-width: 60ch; }
.h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.h3-lg { font-size: 24px; }
.h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.muted { margin: 0; font-size: 15px; color: var(--ink-muted); }
.small { font-size: 15px; }
.caption { font-size: 13px; }

/* ---------- Buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: var(--radius-pill); border: 0; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-white, .onwine .btn-white { background: #fff; color: var(--milon-burgundy); }
.btn-white:hover, .onwine .btn-white:hover { color: var(--milon-deep-wine); }
.btn-accent, .onwine .btn-accent { background: var(--milon-raspberry); color: #fff; }
.btn-accent:hover, .onwine .btn-accent:hover { color: #fff; filter: brightness(1.06); }
.btn-brand { background: var(--milon-burgundy); color: #fff; }
.btn-brand:hover { background: var(--milon-deep-wine); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 15px; }

/* Selectable pill. Light variant on surfaces, .pill-on-wine on burgundy. */
.pill { min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; background: transparent; color: var(--brand); border: 1.5px solid var(--ink-muted); }
.pill[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.pill-on-wine { min-height: 44px; padding: 10px 18px; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.pill-on-wine[aria-pressed="true"] { background: #fff; color: var(--milon-burgundy); border-color: #fff; }

.tag { background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.num-solid { background: var(--milon-burgundy); color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card-shadow { box-shadow: var(--shadow-card); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--milon-deep-wine); padding: 0; }
.form-error { margin: 0; font-size: 15px; font-weight: 600; color: var(--danger); }
.input { font: inherit; font-size: 16px; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-muted); background: #fff; color: var(--milon-charcoal); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes drift { from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { transform: none; } to { transform: translate(var(--bx), var(--by)) scale(1.04); } }
@keyframes slide-in { from { transform: translateX(var(--from)); } to { transform: none; } }
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.bloom { animation: bloom 1.2s cubic-bezier(.2, .7, .2, 1) .35s both; }
.orb { animation: drift 1.6s cubic-bezier(.2, .7, .2, 1) both, breathe 9s ease-in-out 1.6s infinite alternate; }
.circle { animation: slide-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .rise, .bloom, .orb, .circle { animation: none; }
  .plus { transition: none !important; }
}
