/* Atom Skates — site design system. Clean, product-first, system type. */
:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --bg: #ffffff; --bg-2: #f5f5f7; --bg-3: #fbfbfd; --line: #d2d2d7; --line-2: #e8e8ed;
  --blue: #0071e3; --blue-h: #0077ed; --link: #0066cc; --green: #1d8a3a; --orange: #b25000; --red: #d70015;
  --radius: 18px; --radius-s: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 48px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; letter-spacing: -0.016em; }
.tiny { font-size: 12px; letter-spacing: -0.01em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(251,251,253,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 21px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); opacity: .8; font-size: 12px; letter-spacing: -0.01em; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.bag-link { position: relative; display: inline-flex; align-items: center; }
.bag-link svg { width: 16px; height: 18px; }
.bag-count { position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.bag-count:empty { display: none; }
@media (max-width: 640px) { .nav .wrap { gap: 14px; } .nav-links { gap: 16px; } .nav-links .hide-s { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 0; background: var(--blue); color: #fff; font-size: 17px; font-weight: 400; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--blue-h); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn.secondary { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.secondary:hover { background: var(--blue); color: #fff; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.ghost { background: var(--bg-2); color: var(--ink); }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.link-arrow::after { content: " ›"; }

/* ---------- type ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--orange); margin: 0 0 6px; letter-spacing: -0.02em; }
.display { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; margin: 0 0 12px; }
.title { font-size: clamp(24px, 3vw, 32px); line-height: 1.125; font-weight: 600; letter-spacing: .004em; margin: 0 0 8px; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; font-weight: 400; color: var(--ink-2); margin: 10px 0 0; letter-spacing: .009em; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: #000; color: #f5f5f7; }
.section.dark .lede, .section.dark .muted { color: #a1a1a6; }
.center { text-align: center; }
.cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }
.card { background: var(--bg-2); border-radius: var(--radius); padding: 28px; }
.card.white { background: #fff; }
.section.alt .card { background: #fff; }
.tile { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: scale(1.01); box-shadow: 0 8px 30px rgba(0,0,0,.08); text-decoration: none; }
.tile img { background: var(--bg-2); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tile .body { padding: 20px 24px 24px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12px; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: 17px; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }
.form-msg { font-size: 14px; min-height: 20px; margin: 8px 0; }
.form-msg.error { color: var(--red); } .form-msg.ok { color: var(--green); }
.seg-control { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-control button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.seg-control button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }

/* ---------- misc ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 500; background: var(--bg-2); color: var(--ink-2); letter-spacing: 0; }
.pill.green { background: #e3f6e8; color: #136c2e; } .pill.blue { background: #e5f0fd; color: #0058b0; } .pill.orange { background: #fff1e0; color: #8a4200; }
.pill.red { background: #fde8ea; color: #a50011; } .pill.grey { background: var(--bg-2); color: var(--ink-2); }
.banner { background: #fff8e1; border: 1px solid #f5dfa0; color: #6b4e00; border-radius: var(--radius-s); padding: 12px 16px; font-size: 14px; }
.banner.info { background: #eef5fe; border-color: #cfe2fb; color: #0b4a8f; }
.divider { height: 1px; background: var(--line-2); margin: 20px 0; border: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: rgba(29,29,31,.92); color: #fff; padding: 12px 20px; border-radius: 980px; font-size: 14px; opacity: 0; transition: .3s; z-index: 100; pointer-events: none; backdrop-filter: blur(10px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--ink-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-head { padding: 56px 0 24px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); color: var(--ink-2); font-size: 12px; letter-spacing: -0.01em; padding: 40px 0 28px; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer h4 { color: var(--ink); font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.footer a { color: var(--ink-2); display: block; margin: 6px 0; }
.footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; }
@media (max-width: 600px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

.linklike { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.linklike:hover { text-decoration: underline; }

.input.need { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,0,21,.12); }
