/* Kettle & Key v2 · chrome: header, drawer, footer, concept badge, toast, modal, mobile bar */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); background: #fff; border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr.over { position: absolute; left: 0; right: 0; background: rgba(12, 18, 26, .9); border-bottom-color: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo svg { width: 34px; height: 40px; }
.logo b { display: block; font-size: 21px; font-weight: 700; font-stretch: 88%; letter-spacing: -.02em; line-height: 1; }
.logo small { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; margin-top: 4px; opacity: .85; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { position: relative; padding: 10px 10px; font-weight: 500; font-size: 15.5px; text-decoration: none; }
.nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--board); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:hover::after, .nav a[aria-current=page]::after { transform: none; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.saved-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 15px; background: transparent; }
.hdr.over .saved-btn { border-color: rgba(255, 255, 255, .45); }
.saved-btn svg { width: 18px; height: 18px; }
.saved-btn .count { font: 600 12px/1 var(--mono); background: var(--board); color: var(--ink); min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; }
.hdr.over .menu-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
@media (max-width: 1180px) { .nav { display: none; } .menu-btn { display: inline-grid; } }
@media (max-width: 640px) { .hdr .btn-board .long, .saved-btn .lbl-t { display: none; } .hdr .wrap { gap: 12px; } .logo small { display: none; } }
@media (max-width: 420px) { .hdr .btn-board { padding: 0 12px; } .logo b { font-size: 19px; } .hdr .saved-btn { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 120; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(8, 12, 18, .55); }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; padding: 20px var(--gut) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.drawer .panel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 600; font-stretch: 88%; text-decoration: none; }
.drawer nav a span { font: 500 12px var(--mono); color: var(--slate); letter-spacing: .06em; }
.drawer .btn { margin-top: 12px; }

/* footer */
.ftr { background: var(--ink); color: #DDE3EA; padding: clamp(56px, 7vw, 96px) 0 120px; font-size: 15.5px; }
.ftr a { text-decoration: none; }
.ftr a:hover, .ftr a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ftr-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #2C3846; }
.ftr h2 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.ftr .big { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; font-stretch: 84%; letter-spacing: -.03em; color: #fff; line-height: 1; margin-bottom: 16px; }
.ftr p { color: #B9C3CE; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr .spec { color: #9FAAB6; }
.ftr .nl { display: flex; gap: 8px; margin-top: 12px; }
.ftr .nl .input { background: #18222E; border-color: #4A5868; color: #fff; }
.ftr .nl .input::placeholder { color: #9FAAB6; }
.ftr-mid { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 26px 0; border-bottom: 1px solid #2C3846; font-size: 14.5px; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; color: #9FAAB6; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trust span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid #3E4C5C; padding: 7px 8px; color: #C7D0D9; }
@media (max-width: 1024px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr-top { grid-template-columns: 1fr; } .ftr .nl { flex-direction: column; } }

/* concept badge */
.concept { position: fixed; left: 12px; bottom: 12px; z-index: 90; background: var(--ink); color: #fff; font: 500 12px/1 var(--mono); letter-spacing: .03em; padding: 9px 11px; text-decoration: none; border: 1px solid #3A4757; }
.concept:hover { background: #26354A; }
@media (max-width: 1023px) { .concept { bottom: 72px; left: 8px; font-size: 11px; padding: 7px 9px; } }

/* mobile bar */
.mbar { display: none; }
@media (max-width: 1023px) {
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); height: 60px; }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; text-decoration: none; }
  .mbar a svg { width: 20px; height: 20px; }
  .mbar a.val { background: var(--board); }
  body { padding-bottom: 60px; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 150; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 140; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: rgba(8, 12, 18, .6); }
.modal .box { position: relative; background: #fff; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(22px, 4vw, 36px); border-top: 6px solid var(--board); }
.modal .box.wide { width: min(980px, 100%); }
.modal .x { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: clamp(26px, 3vw, 34px); font-stretch: 88%; margin: 0 40px 10px 0; }
.modal form { display: grid; gap: 16px; margin-top: 18px; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; } }
