/* Rootinger website showroom. Type and colour follow rootinger.com: Anton display, Hanken Grotesk body,
   black on white, the logo's red dot as the one accent (here it counts the tier). */
:root {
  --ink: #0e0e0e;
  --text: #272727;
  --muted: #5f5f5f;
  --line: #e7e7e7;
  --paper: #ffffff;
  --wash: #f6f6f6;
  --red: #f0523d;
  --display: 'Anton', 'Pretendard Variable', Pretendard, Impact, sans-serif;
  --body: 'Hanken Grotesk', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.55 var(--body); }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* header */
.top { padding: clamp(28px, 6vw, 56px) var(--gutter) clamp(28px, 5vw, 48px); text-align: center; }
.logo-link { display: block; width: fit-content; margin: 0 auto; }
.logo { width: min(200px, 50vw); height: auto; margin: 0 auto clamp(24px, 5vw, 48px); }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.eyebrow--left { text-align: left; }
.eyebrow--dark { color: var(--red); }
.headline { margin: 0 auto; max-width: 12em; font: 800 clamp(34px, 6.4vw, 72px)/1.12 'Pretendard Variable', Pretendard, sans-serif; letter-spacing: -.02em; color: var(--ink); word-break: keep-all; }
.sub { margin: 16px auto 0; max-width: 32em; font-size: clamp(16px, 2vw, 19px); color: var(--text); word-break: keep-all; }
.sub--left { margin-left: 0; }
.top-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: clamp(22px, 3.5vw, 32px); }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; }
.cta:hover { background: var(--red); }
.cta--light { background: var(--paper); color: var(--ink); }
.cta--light:hover { background: var(--red); color: #fff; }
.cta-ghost { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* how it works */
.how { margin-top: clamp(56px, 9vw, 112px); padding-top: clamp(32px, 5vw, 56px); border-top: 1.5px solid var(--ink); }
.how-steps { list-style: none; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px clamp(20px, 3vw, 40px); counter-reset: hs; }
.how-steps li { counter-increment: hs; padding-top: 14px; border-top: 1px solid var(--line); }
.how-steps li::before { content: counter(hs, decimal-leading-zero); display: block; font: 400 30px/1 var(--display); color: var(--red); }
.how-steps b { display: block; margin-top: 8px; font-size: 18px; color: var(--ink); }
.how-steps span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* contact band */
.contact, .icontact { margin: clamp(56px, 9vw, 112px) calc(-1 * var(--gutter)) 0; padding: clamp(44px, 7vw, 88px) var(--gutter); background: var(--ink); color: var(--paper); text-align: center; }
.icontact { margin-top: clamp(56px, 8vw, 104px); }
.contact .section-h, .icontact .section-h { color: var(--paper); }
.contact-t { margin: 16px auto 0; max-width: 30em; font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .8); word-break: keep-all; }
.contact .cta, .icontact .cta { margin-top: 28px; }
.foot-brand { margin-top: 6px !important; }

/* filters */
.filters { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px var(--gutter); display: grid; gap: 8px; scroll-margin-top: 8px; }
.filter-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filter-name { flex: none; width: 2.6em; font-weight: 700; color: var(--ink); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .dot { border-color: var(--paper); }
.chip[aria-pressed="true"] .dot.on { border-color: var(--red); }
.chip:disabled { border-style: dashed; border-color: #b9b9b9; color: #8a8a8a; cursor: default; }

/* tier dots: the logo's red dot, counted */
.dots { display: inline-flex; gap: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.dot.on { background: var(--red); border-color: var(--red); }

/* grid */
main { padding: 0 var(--gutter); }
.info .imain { padding-bottom: clamp(48px, 8vw, 96px); }
.count { margin: 20px 0 14px; font-size: 14px; color: var(--muted); }
.ready { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; margin-top: clamp(20px, 3vw, 28px); padding: 16px 18px; background: var(--ink); color: rgba(255, 255, 255, .86); }
.ready p { margin: 0; }
.ready-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--red); white-space: nowrap; }
.ready-t { font-size: 15px; line-height: 1.6; word-break: keep-all; }
.ready-t b { color: #fff; font-weight: 700; }
@media (max-width: 640px) { .ready { grid-template-columns: 1fr; } }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.tile { display: grid; align-content: start; }
.tile-link { display: grid; color: inherit; text-decoration: none; position: relative; }
.tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tile-link:hover .tile-img img, .tile-link:focus-visible .tile-img img { transform: scale(1.03); }

.tag { position: absolute; top: 14px; left: -6px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 7px; background: var(--ink); color: var(--paper); font: 800 14px/1 'Pretendard Variable', Pretendard, sans-serif; transform: rotate(-2.5deg); }
.tag .dot { border-color: var(--paper); }
.tag .dot.on { border-color: var(--red); }
.tile-name { margin-top: 14px; font: 400 clamp(30px, 3.4vw, 40px)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.tile-kind { margin-top: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.tile-note { margin-top: 4px; font-size: 15px; color: var(--muted); max-width: 32em; }
.tile-go { margin-top: 12px; justify-self: start; font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }
.empty .chip { margin-top: 12px; }

/* tiers */
.tiers { margin-top: clamp(56px, 9vw, 112px); padding-top: clamp(32px, 5vw, 56px); border-top: 1.5px solid var(--ink); }
.section-h { margin: 0; font: 800 clamp(28px, 4.6vw, 48px)/1.15 'Pretendard Variable', Pretendard, sans-serif; letter-spacing: -.02em; color: var(--ink); word-break: keep-all; }
.tier-list { list-style: none; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: stretch; }
@media (min-width: 1360px) { .tier-list { grid-template-columns: repeat(4, 1fr); } }
.tier { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 28px); border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.tier p { margin: 0; }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid currentColor; }
.tier-name { display: flex; align-items: center; gap: 10px; font: 400 clamp(30px, 3vw, 38px)/1 var(--display); text-transform: uppercase; color: inherit; }
.tier-name .dot { width: 10px; height: 10px; }
.tier-pages { font-weight: 700; font-size: 14px; white-space: nowrap; }
.tier-tag { margin-top: 14px !important; font: italic 500 18px/1.4 var(--body); }
.tier-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.tier-points li { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.tier-points b { font-weight: 800; }
.tier-fit, .tier-ex { margin-top: 16px !important; font-size: 14px; color: var(--muted); }
.tier-fit { margin-top: 12px !important; color: var(--text); }
.tier-fit b, .tier-ex b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .06em; color: var(--red); }
.tier-ex { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tier-ex b { flex-basis: 100%; margin-bottom: 0; }
.tier-ex a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--red); }
.tier--premium { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.tier--premium .tier-points li { border-top-color: rgba(255, 255, 255, .2); }
.tier--premium .tier-fit, .tier--premium .tier-ex { color: rgba(255, 255, 255, .72); }
.tier--premium .dot { border-color: var(--paper); }
.tier--premium .dot.on { border-color: var(--red); }
.tier--custom { border-color: var(--red); box-shadow: 6px 6px 0 var(--red); }
.tier--custom .tier-head { border-bottom-color: var(--red); }
.tier--custom .tier-pages { color: var(--red); }
.tier-soon { font-weight: 600; color: var(--muted); }
.tier-note { margin: 28px 0 0; max-width: 52em; padding-left: 14px; border-left: 3px solid var(--red); font-size: 15px; line-height: 1.65; color: var(--text); word-break: keep-all; }
.tier-note b { color: var(--ink); }

.foot { padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.info .foot { border-top: 1px solid var(--line); }
.foot p { margin: 0; }
.disclaimer { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; max-width: 52em; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--wash); color: var(--text); font-size: 13.5px; line-height: 1.6; }
.disclaimer-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.foot-brand { margin-top: 14px !important; }
@media (max-width: 560px) { .disclaimer { grid-template-columns: 1fr; gap: 4px; } }

/* full-screen demo viewer */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr; background: var(--ink); }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); color: var(--paper); }
.vb-title { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; font-size: 15px; }
.vb-title b { font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.vb-title .dot { border-color: var(--paper); }
.vb-title .dot.on { border-color: var(--red); }
.vb-nav { display: flex; gap: 6px; }
.vb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.vb-back { border-color: var(--paper); }
.viewer-frame { width: 100%; height: 100%; border: 0; background: var(--paper); }

@media (max-width: 560px) {
  .vb-open { display: none; }
  .vb-title [data-v-tier] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-img img { transition: none; }
}
