/* =========================================================
   Vevobahis — "kupon & stadyum gecesi" tasarım sistemi
   ========================================================= */
:root {
  --ink: #0E1530;
  --ink-2: #3A4466;
  --muted: #6A7493;
  --paper: #F5F7FC;
  --white: #FFFFFF;
  --line: #DFE4F1;
  --royal: #2340F5;
  --royal-deep: #1528B0;
  --royal-tint: #EAEEFF;
  --ticket: #FFD23F;
  --ticket-deep: #F5BE00;
  --live: #12B76A;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: 20px;
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 12px;
  --topbar: 68px;
  --tabbar: 70px;
  --shadow-lift: 0 1px 2px rgba(14, 21, 48, .06), 0 12px 32px -12px rgba(14, 21, 48, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--royal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--royal-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ticket-deep); outline-offset: 3px; border-radius: 6px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ticket); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--ticket { background: var(--ticket); color: var(--ink); }
.btn--ticket:hover { background: var(--ticket-deep); color: var(--ink); }
.btn--royal { background: var(--royal); color: var(--white); }
.btn--royal:hover { background: var(--royal-deep); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: var(--topbar); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font: 800 22px/1 var(--display); letter-spacing: -.04em; }
.brand--light { color: var(--white); }
.topnav { margin-left: auto; }
.topnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.topnav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none;
}
.topnav a:hover { color: var(--ink); background: var(--paper); }
.topnav a[aria-current="page"] { color: var(--royal); background: var(--royal-tint); }

/* ---------- Pitch decoration (shared) ---------- */
.pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .09; pointer-events: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--royal); color: var(--white); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(10, 20, 110, .35));
  pointer-events: none;
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
  padding-block: 72px 96px;
}
.hero__status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #D7DEFF; }
.live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--live); opacity: .6; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.hero h1 {
  margin-top: 18px; color: var(--white);
  font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.045em;
  max-width: 13ch; text-wrap: balance;
}
.hero__lead { margin-top: 22px; max-width: 46ch; font-size: 1.15rem; line-height: 1.6; color: #DCE2FF; }
.hero__lead strong { color: var(--white); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The slip — signature element */
.slip {
  position: relative;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -30px rgba(5, 12, 70, .65), 0 2px 0 rgba(255, 255, 255, .4) inset;
  transform: rotate(1.6deg);
  animation: slip-in .7s cubic-bezier(.2, .9, .25, 1.1) both .15s;
}
@keyframes slip-in { from { opacity: 0; transform: translateY(28px) rotate(5deg); } to { opacity: 1; transform: rotate(1.6deg); } }
.slip__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 26px 16px;
}
.slip__title { font: 800 1.3rem/1 var(--display); letter-spacing: -.03em; }
.slip__count { font-size: 14px; font-weight: 700; color: var(--royal); background: var(--royal-tint); padding: 5px 10px; border-radius: 999px; }
.slip__rows { list-style: none; margin: 0; padding: 0 12px; }
.slip__rows li + li { border-top: 1px dashed var(--line); }
.slip__rows a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
}
.slip__rows a:hover { background: var(--paper); }
.slip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--royal-tint); color: var(--royal); flex: none; }
.slip__text { display: grid; min-width: 0; }
.slip__text strong { font-size: 15.5px; font-weight: 700; }
.slip__text small { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip__go { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.slip__foot {
  position: relative; margin-top: 12px; padding: 22px 26px 26px;
  background-image: linear-gradient(to right, var(--line) 50%, transparent 0);
  background-size: 14px 2px; background-repeat: repeat-x; background-position: 0 0;
}
/* perforation notches */
.slip__foot::before, .slip__foot::after {
  content: ""; position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--royal);
}
.slip__foot::before { left: -13px; }
.slip__foot::after { right: -13px; }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section__head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 640px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.section__head p { color: var(--ink-2); font-size: 1.08rem; }

/* Bento of guides */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento__item a {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.bento__item a:hover { border-color: #BFC9F5; box-shadow: var(--shadow-lift); }
.bento__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--royal-tint); color: var(--royal); margin-bottom: 6px; }
.bento__item h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.bento__item p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.bento__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--royal); }
.bento__more .i { width: 18px; height: 18px; }
.bento__item--feature { grid-column: span 2; grid-row: span 2; }
.bento__item--feature a { background: var(--ink); border-color: var(--ink); color: var(--white); padding: 32px; overflow: hidden; }
.bento__item--feature a:hover { border-color: var(--ink); }
.bento__item--feature a::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%;
  border: 2px solid rgba(255, 210, 63, .35); box-shadow: 0 0 0 40px rgba(255, 210, 63, .06);
}
.bento__item--feature .bento__icon { background: var(--ticket); color: var(--ink); width: 56px; height: 56px; }
.bento__item--feature h3 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.bento__item--feature p { color: #C4CBE3; font-size: 16.5px; max-width: 42ch; }
.bento__item--feature .bento__more { color: var(--ticket); }

/* Split: prose + facts */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts div { display: grid; gap: 4px; padding: 22px; background: var(--white); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts strong { font: 700 1.05rem/1.3 var(--display); }
.facts span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* Track: a real 4-step sequence */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.track li { position: relative; padding: 64px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); counter-increment: step; }
.track li::before {
  content: counter(step); position: absolute; top: 20px; left: 22px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--royal); color: var(--white); font: 800 15px/1 var(--display);
}
.track li:not(:last-child)::after {
  content: ""; position: absolute; top: 35px; left: 62px; right: -17px; height: 2px;
  background-image: linear-gradient(to right, #BFC9F5 50%, transparent 0); background-size: 8px 2px;
}
.track h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.track p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Safety band */
.safety { background: var(--ink); color: #C9D0E6; }
.safety__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding-block: 64px; max-width: 980px; }
.safety__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 210, 63, .12); color: var(--ticket); }
.safety__icon .i { width: 32px; height: 32px; }
.safety h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.safety p + p { margin-top: 12px; }
.safety em { color: var(--white); font-style: normal; font-weight: 600; }

/* ---------- Inner page hero ---------- */
.pagehero { position: relative; overflow: hidden; background: var(--royal); color: var(--white); }
.pagehero__in { position: relative; z-index: 1; padding-block: 36px 56px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; color: #C8D1FF; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: #E4E9FF; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.pagehero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; max-width: 20ch; text-wrap: balance; }
.pagehero__lead { margin-top: 18px; max-width: 62ch; font-size: 1.1rem; color: #DCE2FF; }
.pagehero__lead strong { color: var(--white); }
.pagehero__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: #C8D1FF; }
.pagehero__meta .i { width: 18px; height: 18px; }

/* ---------- Article layout ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side";
  gap: 64px; align-items: start; padding-block: 56px 24px;
}
.layout > .prose { grid-area: main; }
.side { grid-area: side; position: sticky; top: calc(var(--topbar) + 24px); display: grid; gap: 16px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; }
.toc summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font: 700 15px/1 var(--display); cursor: pointer; list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc__chev { width: 18px; height: 18px; transition: transform .2s; }
.toc[open] .toc__chev { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 0; padding: 0 0 6px; }
.toc a {
  display: block; padding: 9px 14px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.4; text-decoration: none;
}
.toc a:hover { color: var(--ink); background: var(--paper); }
.toc a[aria-current] { color: var(--royal); border-left-color: var(--royal); background: var(--royal-tint); font-weight: 600; }
.miniSlip { padding: 22px; background: var(--ink); color: #C4CBE3; border-radius: var(--r-lg); font-size: 15px; }
.miniSlip__title { font: 800 1.2rem/1.2 var(--display); color: var(--white); letter-spacing: -.03em; margin-bottom: 6px; }
.miniSlip .btn { margin-top: 16px; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; color: var(--ink); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--royal); }

.prose .steps { list-style: none; padding: 0; counter-reset: s; }
.prose .steps li { position: relative; padding: 14px 16px 14px 60px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); counter-increment: s; }
.prose .steps li + li { margin-top: 8px; }
.prose .steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 13px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--royal-tint); color: var(--royal); font: 800 14px/1 var(--display);
}

.prose .feature-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .feature-grid li { margin: 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ticket); border-radius: var(--r-md); }
.prose .feature-grid h3 { margin-bottom: 4px; }
.prose .feature-grid p { font-size: 15.5px; line-height: 1.55; }

.prose .note { padding: 16px 20px; background: var(--royal-tint); border-radius: var(--r-md); color: var(--ink); }

.prose table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15.5px; }
.prose caption { caption-side: top; text-align: left; padding-bottom: 10px; font-size: 14px; color: var(--muted); }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.prose tr + tr td { border-top: 1px solid var(--line); }
.prose td:first-child { font-weight: 600; color: var(--ink); width: 38%; }

/* ---------- FAQ ---------- */
.faq { margin-top: 3em; }
.prose .faq h2, .faq h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.faq__list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 22px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); font-size: 16.5px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { width: 20px; height: 20px; color: var(--royal); transition: transform .2s; }
.faq details[open] .faq__chev { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Related ---------- */
.related { padding-block: 56px 80px; }
.related h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.related__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related__grid a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none;
}
.related__grid a:hover { border-color: #BFC9F5; box-shadow: var(--shadow-lift); }
.related__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--royal-tint); color: var(--royal); flex: none; }
.related__grid strong { display: block; font-size: 15.5px; line-height: 1.3; }
.related__grid small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.related__go { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }

.notfound { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 40px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #A9B2CF; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.7fr .8fr; gap: 48px; padding-block: 56px 40px; }
.footer__about p { margin-top: 14px; max-width: 44ch; }
.footer h2 { font: 700 15px/1 var(--display); color: var(--white); letter-spacing: -.01em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #A9B2CF; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .brand { color: var(--white); }
.footer .brand:hover { text-decoration: none; }
.footer__age { display: flex; gap: 10px; align-items: flex-start; }
.age { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 26px; border-radius: 7px; background: #E5484D; color: var(--white); font-weight: 800; font-size: 13px; }
.footer__copy { padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ---------- Mobile tab bar & sheet ---------- */
.tabbar { display: none; }
.sheet {
  width: min(560px, 100%); max-width: 100%; max-height: 88dvh;
  margin: auto auto 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; background: var(--white); color: var(--ink);
  box-shadow: 0 -20px 60px rgba(14, 21, 48, .3);
}
.sheet[open] { animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet::backdrop { background: rgba(14, 21, 48, .55); backdrop-filter: blur(2px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 12px; }
.sheet__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.sheet__title { font: 800 1.2rem/1 var(--display); letter-spacing: -.03em; padding-top: 10px; }
.sheet__close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.sheet__list { list-style: none; margin: 0 0 16px; padding: 0; }
.sheet__list a { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.sheet__list a:hover, .sheet__list a[aria-current="page"] { background: var(--royal-tint); }
.sheet__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--paper); color: var(--royal); flex: none; }
.sheet__list a[aria-current="page"] .sheet__icon { background: var(--white); }
.sheet__list strong { display: block; font-size: 16px; }
.sheet__list small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--feature { grid-row: auto; }
  .bento__item:last-child { grid-column: span 2; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track li:nth-child(2)::after { display: none; }
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --topbar: 60px; }
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .topnav { display: none; }
  .topbar__cta { margin-left: auto; }

  .tabbar {
    position: fixed; inset: auto 0 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: var(--tabbar); padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--muted); font: 600 11.5px/1 var(--body); text-decoration: none;
  }
  .tabbar__item[aria-current="page"] { color: var(--royal); }
  .tabbar__icon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; }
  .tabbar__item[aria-current="page"] .tabbar__icon { background: var(--royal-tint); }
  .tabbar__item--main { color: var(--ink); justify-content: flex-end; padding-bottom: 10px; }
  .tabbar__item--main .tabbar__icon {
    width: 56px; height: 56px; margin-top: -26px; border-radius: 50%;
    background: var(--ticket); color: var(--ink); box-shadow: 0 8px 20px -6px rgba(245, 190, 0, .7), 0 0 0 5px var(--white);
  }
  .tabbar__item--main[aria-current="page"] .tabbar__icon { background: var(--ticket); }
  .tabbar__item--main[aria-current="page"] { color: var(--ink); }

  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 48px 64px; }
  .hero h1 { max-width: 15ch; }
  .slip { transform: none; max-width: 560px; animation-name: slip-in-flat; }
  @keyframes slip-in-flat { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: 24px; padding-block: 24px 8px; }
  .side { position: static; }
  .miniSlip { display: none; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .brand__word { font-size: 20px; }
  .brand__mark { width: 30px; height: 30px; }
  .topbar__cta { min-height: 38px; padding: 0 14px; font-size: 14px; }

  .hero__in { padding-block: 36px 48px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .slip__head { padding: 18px 18px 12px; }
  .slip__rows { padding: 0 6px; }
  .slip__rows a { padding: 11px 12px; }
  .slip__foot { padding: 20px 18px 20px; }

  .section { padding-block: 56px; }
  .section__head { margin-bottom: 26px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento__item--feature, .bento__item:last-child { grid-column: auto; grid-row: auto; }
  .bento__item a { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; }
  .bento__item .bento__icon { margin: 0; }
  .bento__item h3 { flex: 1; min-width: 0; font-size: 1.05rem; }
  .bento__item p { flex-basis: 100%; }
  .bento__item:not(.bento__item--feature) .bento__more { display: none; }
  .bento__item--feature a { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; padding: 26px 22px; }
  .bento__item--feature p, .bento__item--feature h3 { flex: none; }
  .bento__item--feature h3 { font-size: 1.5rem; }

  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:not(:last-child) { border-bottom: 1px solid var(--line); }

  .track { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .track li { padding: 18px 18px 18px 64px; }
  .track li::before { top: 18px; left: 18px; }
  .track li::after { display: none; }

  .safety__in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 48px; }

  .pagehero__in { padding-block: 24px 40px; }
  .crumbs ol { margin-bottom: 16px; }
  .pagehero__lead { font-size: 1.02rem; }

  .prose .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .prose .steps li { padding: 13px 14px 13px 54px; }
  .prose .steps li::before { left: 13px; }
  .prose th, .prose td { padding: 11px 12px; }
  .faq__list { padding: 2px 16px; }

  .related { padding-block: 40px 56px; }
  .related__grid { grid-template-columns: minmax(0, 1fr); }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 28px; }
}


/* ---------- Top nav: all guides button ---------- */
.topnav__all {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 600 15px/1 var(--body); cursor: pointer;
}
.topnav__all .i { width: 17px; height: 17px; color: var(--royal); }
.topnav__all:hover { border-color: #BFC9F5; background: var(--royal-tint); }
.topnav ul { align-items: center; }

/* ---------- Page hero extras ---------- */
.pagehero__cat {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--ticket); color: var(--ink); font-size: 14px; font-weight: 700;
}
.pagehero__meta { flex-wrap: wrap; column-gap: 18px; row-gap: 6px; }
.pagehero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.pagehero__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; margin-right: 10px; }

/* ---------- Blog cards ---------- */
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.section__head--row > div { display: grid; gap: 10px; max-width: 640px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.section--white .post-card { background: var(--paper); }
.post-card:hover { border-color: #BFC9F5; box-shadow: var(--shadow-lift); color: var(--ink); }
.post-card__cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--royal-tint); color: var(--royal); font-size: 13px; font-weight: 700; }
.post-card h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.post-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.post-card time { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 14px; }
.blog { padding-block: 56px 16px; }
.blog__empty { padding: 40px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-2); }
.prose .more-posts { margin-top: 3em; }
.more-posts h2 { margin: 0 0 18px; }
.more-posts .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .posts { padding: 0; }
.prose .posts li + li { margin-top: 0; }
.prose .posts h3 { color: var(--ink); }
.prose .post-card p { margin: 0; }

/* ---------- Contact card ---------- */
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ticket); color: var(--ink); flex: none; }
.contact-card__label { font-size: 14px; color: var(--muted); }
.prose .contact-card__mail { display: inline-block; margin-top: 2px; font: 700 1.25rem/1.3 var(--display); color: var(--ink); word-break: break-all; }
.contact-card__note { margin-top: 6px; font-size: 15px; }

/* ---------- Sheet groups & desktop modal ---------- */
.sheet { display: none; flex-direction: column; overflow: hidden; }
.sheet[open] { display: flex; }
.sheet__body { overflow-y: auto; margin: 0 -4px 14px; padding: 0 4px; overscroll-behavior: contain; }
.sheet__group { margin: 14px 8px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sheet__group:first-child { margin-top: 0; }
.sheet__list { margin-bottom: 0; }
.sheet > .btn { flex: none; }
@media (min-width: 1024px) {
  .sheet { width: min(860px, calc(100% - 48px)); max-height: min(760px, 86vh); margin: auto; border-radius: 24px; padding: 12px 20px 22px; }
  .sheet__head::before { display: none; }
  .sheet[open] { animation: sheet-fade .2s ease-out; }
  .sheet__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  @keyframes sheet-fade { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- Footer extras ---------- */
.footer__guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer__h2-gap { margin-top: 28px !important; }
.footer__age a { color: var(--white); text-decoration: underline; }

/* ---------- Responsive extras ---------- */
@media (max-width: 1100px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts > li:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 1023px) {
  .footer__guides { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .posts, .more-posts .posts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .posts > li:last-child:nth-child(odd) { grid-column: auto; }
  .post-card { padding: 20px; }
  .blog { padding-block: 32px 8px; }
  .contact-card { flex-direction: column; }
  .footer__guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
