/* ShelfPerfect site v2.
   Brand tokens (colors, display face) come from shelfperfect.com.
   Visual idea: the shelf edge. Price-tag labels, shelf rails, dashed cut lines. */
@view-transition { navigation: auto; }

:root {
  --ink: #0B111E;
  --navy: #1B2B4A;
  --yellow: #FFCA28;
  --yellow-deep: #FFB300;
  --tint: #EFF6FF;
  --paper: #FBFAF6;
  --white: #fff;
  --muted: #55607A;
  --line: #DCE4F0;
  --ok: #22C55E;
  --bad: #FF4242;
  --display: "League Spartan", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(11,17,30,.06), 0 14px 36px -14px rgba(11,17,30,.2);
  --ease: cubic-bezier(.2,.7,.2,1);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%230B111E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.hl { color: var(--yellow); }
.muted { color: var(--muted); }

/* Shelf-edge label */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .76rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  padding: 9px 24px 9px 11px; margin-bottom: 22px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.tag--dark { background: var(--ink); color: var(--yellow); }
.tag--dark::before { background: var(--yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 17px 26px; border-radius: 12px; border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn::after { content: "\2192"; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(255,179,0,.75); }
.btn--primary:hover { background: var(--yellow-deep); box-shadow: 0 14px 28px -10px rgba(255,179,0,.85); }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--navy); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 12px 18px; font-size: .95rem; }
.btn--sm::after, .btn--plain::after { content: none; }
.btn--block { width: 100%; }
.link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--yellow-deep); padding-bottom: 2px; }
.link::after { content: "\2192"; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* Announcement + nav */
.announce { background: var(--yellow); color: var(--ink); font-size: .86rem; font-weight: 500; text-align: center; padding: 8px 16px; display: flex; gap: 4px 18px; justify-content: center; flex-wrap: wrap; }
.announce a { font-weight: 700; text-underline-offset: 3px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.is-stuck { border-color: var(--line); box-shadow: 0 8px 28px -20px rgba(11,17,30,.5); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 44px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: .97rem; font-weight: 600; text-decoration: none; color: var(--navy); position: relative; padding: 8px 0; background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--yellow-deep); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__group { position: relative; }
.nav__group > .nav__link i { width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav__sub { position: absolute; top: 100%; left: -18px; width: 320px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; transition: background-color .15s; }
.nav__sub a:hover { background: var(--tint); }
.nav__sub strong { display: block; font: 700 1.08rem/1.2 var(--display); }
.nav__sub span { font-size: .86rem; color: var(--muted); line-height: 1.35; display: block; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark stage shared by home hero, page heroes and CTA */
.stage {
  color: var(--white);
  background:
    radial-gradient(700px 420px at 50% -8%, rgba(255,202,40,.2), transparent 65%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 1.6px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--ink) 0%, #101A30 100%);
}

/* Home hero: copy left, product right, room to breathe */
.hero { padding: 104px 0 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.hero .tag { margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 3.6rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.76); max-width: 38rem; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.cta--simple .hero__cta { justify-content: center; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.8); }
.ticks li { display: flex; align-items: center; gap: 9px; }
.ticks li::before { content: ""; width: 17px; height: 17px; border-radius: 50%; background: var(--yellow) var(--tick) center/17px; flex: none; }

.hero__stage { position: relative; perspective: 1600px; }
.frame { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); position: relative; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; background: #F3F6FB; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E4; }
.frame__bar span { margin-left: 10px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.frame img { width: 100%; }
.hero .frame { transform-origin: 50% 100%; }
.frame__scan { position: absolute; left: 0; right: 0; top: 40px; height: 90px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,202,40,.22) 85%, rgba(255,179,0,.9) 100%); border-bottom: 2px solid var(--yellow-deep); opacity: 0; animation: scan 6s 1.6s var(--ease) infinite; }
.chip { position: absolute; background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: .9rem; font-weight: 700; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); display: flex; align-items: center; gap: 10px; white-space: nowrap; z-index: 2; }
.chip--oos { left: -30px; bottom: -20px; animation: bob 6s ease-in-out infinite; }
.chip--score { right: 24px; top: -26px; background: var(--yellow); flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px 18px; animation: bob 7s -2s ease-in-out infinite; }
.chip--score strong { font: 800 2rem/1 var(--display); }
.chip--score span { font-size: .74rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.dot--bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(255,66,66,.2); animation: pulse 2s infinite; }

/* Hero load choreography */
.js .hero .rise { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
.js .hero .frame { opacity: 0; animation: tiltIn 1.3s .55s var(--ease) forwards; }
.js .hero .chip { opacity: 0; scale: .8; transition: opacity .5s var(--ease), scale .5s var(--ease); }
.js .hero.is-ready .chip { opacity: 1; scale: 1; }
.js .hero.is-ready .chip--score { transition-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes tiltIn { from { opacity: 0; transform: rotateY(-14deg) translateX(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { transform: translateY(-90px); opacity: 0; } 8% { opacity: 1; } 55% { opacity: 1; } 70%, 100% { transform: translateY(330px); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-9px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,66,66,0); } }

/* Trust */
.trust { margin-top: 96px; padding: 30px 0 34px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; gap: 14px 48px; flex-wrap: wrap; }
.trust p { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 44px; }
.trust li { font: 700 1.3rem/1 var(--display); color: rgba(255,255,255,.9); }


/* Page hero (inner pages) */
.phero { padding: 88px 0 80px; position: relative; }
.phero::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--yellow); }
.phero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.phero .hero__cta { justify-content: flex-start; margin-top: 34px; }
.phero--split .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.phero--center { text-align: center; }
.phero--center h1, .phero--center .lead { margin-inline: auto; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* Sections */
.sec { padding: 112px 0; }
.sec--tint { background: var(--tint); }
.sec--paper { background: var(--paper); }
.sec--tight { padding: 72px 0; }
.head { max-width: 46rem; margin: 0 auto 60px; text-align: center; }
.head p:not(.tag) { color: var(--muted); font-size: 1.13rem; margin-top: 18px; }
.head--left { text-align: left; margin-inline: 0; margin-bottom: 40px; }
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.center { text-align: center; margin-top: 48px; }

.pain { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: transform .3s var(--ease), border-color .3s; }
.pain:hover { transform: translateY(-4px); border-color: var(--bad); }
.pain svg { width: 30px; height: 30px; fill: none; stroke: var(--bad); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.pain h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pain p, .card p, .role p, .steps p, .feat p { color: var(--muted); font-size: 1rem; }

/* Stats shelf */
.stats { background: var(--yellow); color: var(--ink); border-block: 6px solid var(--ink); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 20px; text-align: center; border-left: 2px dashed rgba(11,17,30,.25); }
.stat:first-child { border-left: 0; }
.stat__n { font: 800 clamp(2.8rem, 5.4vw, 4.4rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat p:last-child { font-weight: 600; font-size: .97rem; margin-top: 8px; }

/* Cards */
.card { background: var(--white); border-radius: var(--r); padding: 32px 28px 30px; border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__n { align-self: flex-start; font: 700 .78rem/1 var(--body); letter-spacing: .08em; color: var(--navy); background: var(--tint); padding: 7px 10px; border-radius: 6px; margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { flex: 1; }
.card__go { margin-top: 22px; font-weight: 700; font-size: .95rem; display: inline-flex; gap: 8px; }
.card__go::after { content: "\2192"; transition: transform .25s var(--ease); }
.card:hover .card__go::after { transform: translateX(5px); }
.card--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card--dark p { color: rgba(255,255,255,.72); }
.card--dark .card__n { background: var(--yellow); color: var(--ink); }

/* Feature rows (text + screenshot) */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 112px; }
.split--flip > :first-child { order: 2; }
.split .frame, .tabs__panels .frame { box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.split p { color: var(--muted); }
.photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo--tall img { aspect-ratio: 4/5; }
.photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--white); border-radius: 12px; padding: 12px 16px; font-size: .9rem; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.checks { margin-top: 24px; display: grid; gap: 12px; font-weight: 500; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) var(--tick) center/20px; }
.feat { padding: 30px 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--ink); }
.feat h3 { margin-bottom: 8px; }

/* Platform tabs */
.tabs { display: grid; grid-template-columns: 350px 1fr; gap: 40px; align-items: start; }
.tabs__list { display: grid; gap: 12px; }
.tabs__list button { text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; padding: 18px 20px; cursor: pointer; font: inherit; color: inherit; transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s var(--ease); }
.tabs__list strong { display: block; font: 700 1.22rem/1.2 var(--display); margin-bottom: 4px; }
.tabs__list span { font-size: .94rem; color: var(--muted); line-height: 1.45; display: block; }
.tabs__list button:hover { border-color: var(--navy); transform: translateX(3px); }
.tabs__list button[aria-selected="true"] { border-color: var(--ink); border-left-color: var(--yellow-deep); background: var(--tint); box-shadow: var(--shadow); transform: none; }
.tabs__panels [role=tabpanel]:not([hidden]) { animation: panel .5s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* Steps */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.steps { counter-reset: s; display: grid; gap: 28px; margin-bottom: 40px; }
.steps li { counter-increment: s; position: relative; padding-left: 66px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--yellow); font: 800 1.3rem/44px var(--display); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: -24px; width: 2px; background: repeating-linear-gradient(var(--navy) 0 4px, transparent 4px 9px); opacity: .35; }
.steps h3 { margin-bottom: 4px; }
.steps--row { grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.steps--row li { padding: 64px 0 0; }
.steps--row li:not(:last-child)::after { left: 54px; right: -14px; top: 21px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--navy) 0 4px, transparent 4px 9px); }

/* Compare table */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 1rem; }
.cmp th, .cmp td { padding: 19px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp thead th { font: 700 1.15rem/1.2 var(--display); background: #F7FAFE; }
.cmp tbody th { font-weight: 700; width: 22%; }
.cmp td { color: var(--muted); }
.cmp .cmp__us { background: var(--ink); color: var(--white); font-weight: 600; border-bottom-color: rgba(255,255,255,.12); }
.cmp thead .cmp__us { color: var(--yellow); background: var(--ink); }
.cmp tbody .cmp__us::before { content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; background: var(--yellow) var(--tick) center/17px; }

/* Roles + quotes */
.role { background: var(--white); border-radius: var(--r); padding: 34px 30px; border: 1px solid var(--line); border-top: 5px solid var(--ink); }
.role h3 { font-size: 1.65rem; margin-bottom: 8px; }
.role ul { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); display: grid; gap: 11px; font-size: .98rem; font-weight: 500; }
.role li { padding-left: 28px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 8px; border-left: 2.5px solid var(--yellow-deep); border-bottom: 2.5px solid var(--yellow-deep); transform: rotate(-45deg) scale(.85); }
.quote { border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; gap: 26px; background: var(--white); transition: transform .35s var(--ease), box-shadow .35s; }
.quote:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }
.quote::before { content: "\201C"; font: 800 4.4rem/.6 var(--display); color: var(--yellow-deep); height: 28px; }
.quote blockquote { font-size: 1.05rem; line-height: 1.65; flex: 1; }
.quote figcaption { font-size: .92rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font: 700 1.2rem/1.3 var(--display); }
.quote--feature { background: var(--ink); color: var(--white); border-color: var(--ink); }
.quote--feature figcaption { color: rgba(255,255,255,.65); }
.quote--feature figcaption strong { color: var(--yellow); }
.quote--big blockquote { font: 600 clamp(1.3rem, 2.2vw, 1.75rem)/1.4 var(--display); letter-spacing: -.01em; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq > .head { position: sticky; top: 116px; }
.faq__list { display: grid; gap: 12px; }
.faq__list h3 { margin: 28px 0 6px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--body); color: var(--muted); }
.faq__list h3:first-child { margin-top: 0; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
details[open] { border-color: var(--ink); box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 21px 60px 21px 24px; font: 700 1.2rem/1.3 var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); font: 500 1.3rem/30px var(--body); text-align: center; transition: rotate .3s var(--ease), background-color .25s; }
details[open] summary::after { rotate: 135deg; background: var(--yellow); }
details p { padding: 0 24px 24px; color: var(--muted); max-width: 44rem; animation: panel .35s var(--ease); }
details p a { font-weight: 600; }

/* CTA band + form */
.cta { padding: 112px 0; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--yellow); }
.cta__in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cta--simple { text-align: center; }
.cta--simple h2 { max-width: 20ch; margin-inline: auto; }
.cta--simple .lead { margin-inline: auto; }
.promises { margin-top: 34px; display: grid; gap: 15px; color: rgba(255,255,255,.8); }
.promises li { padding-left: 32px; position: relative; }
.promises li::before { content: ""; position: absolute; left: 0; top: .25em; width: 19px; height: 19px; border-radius: 50%; background: var(--yellow) var(--tick) center/19px; }
.promises strong { color: var(--white); }
.promises a { color: var(--yellow); font-weight: 600; }

.form { background: var(--white); color: var(--ink); border-radius: 22px; padding: 38px 34px; display: grid; gap: 17px; box-shadow: 0 44px 90px -44px rgba(0,0,0,.75); }
.form h3 { font-size: 1.75rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.form input, .form select, .form textarea { font: 400 1rem var(--body); color: var(--ink); padding: 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #F9FBFE; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,202,40,.5); background: var(--white); }
.form .is-invalid { border-color: var(--bad); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form__note { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form__note.is-error { color: #C81E1E; font-weight: 700; }
.form__note.is-ok { color: #15803D; font-weight: 700; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post__img { aspect-ratio: 16/10; overflow: hidden; background: var(--tint); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 1.35rem; }
.post p { color: var(--muted); font-size: .97rem; flex: 1; }
.post--lead { grid-column: 1 / -1; flex-direction: row; }
.post--lead .post__img { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.post--lead .post__body { flex: 1; padding: 44px; justify-content: center; gap: 16px; }
.post--lead h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.post--lead p { flex: none; font-size: 1.05rem; }

.article__head { padding: 72px 0 96px; }
.article__head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 22ch; }
.article__cover { margin: -56px auto 48px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.prose { font-size: 1.12rem; line-height: 1.75; color: #1D2740; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.9rem; margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 1.4rem; margin-top: 1.7em; color: var(--ink); }
.prose h4 { font-size: 1.15rem; margin-top: 1.5em; }
.prose a { font-weight: 600; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { padding-left: 30px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--yellow-deep); rotate: 45deg; }
.prose ol { list-style: decimal; }
.prose blockquote { border-left: 5px solid var(--yellow); background: var(--tint); padding: 22px 26px; border-radius: 0 14px 14px 0; font-weight: 500; }
.prose img { border-radius: 14px; box-shadow: var(--shadow); margin-inline: auto; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 10px; }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose tr:first-child td { background: var(--ink); color: var(--white); font-weight: 700; }
.aside { margin-top: 64px; background: var(--ink); color: var(--white); border-radius: 20px; padding: 40px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 6px solid var(--yellow); }
.aside h3 { font-size: 1.7rem; max-width: 22ch; }
.aside p { color: rgba(255,255,255,.72); margin-top: 8px; }
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--yellow-deep); transform-origin: left; scale: 0 1; z-index: 60; animation: grow linear both; animation-timeline: scroll(root); }
@keyframes grow { to { scale: 1 1; } }

/* Markets / timeline */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--white); }
.market { padding: 30px 26px; border-left: 2px dashed var(--line); text-decoration: none; transition: background-color .3s; }
.market:first-child { border-left: 0; }
a.market:hover { background: var(--tint); }
.market small { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; color: var(--muted); }
.market h3 { font-size: 1.7rem; margin: 6px 0 8px; }
.market p { font-size: .95rem; color: var(--muted); }

/* Footer */
.foot { background: #070B14; color: rgba(255,255,255,.68); padding: 72px 0 28px; font-size: .96rem; }
.foot__in { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.foot__brand img { height: 58px; width: auto; margin-bottom: 20px; }
.foot__brand p { max-width: 24rem; }
.foot__brand a { color: var(--yellow); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 14px; }
.foot h4 { font: 700 1.08rem/1 var(--display); color: var(--white); margin: 0 0 16px; letter-spacing: 0; }
.foot nav a { display: block; text-decoration: none; padding: 5px 0; transition: color .2s, transform .2s var(--ease); }
.foot nav a:hover { color: var(--yellow); transform: translateX(4px); }
.foot__legal { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--zoom { transform: scale(.94); }
.js .head.reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path .9s var(--ease) .05s, transform .9s var(--ease) .05s; }
.js .head.reveal.is-in h2 { clip-path: inset(0 0 -10% 0); transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .how, .cta__in, .faq, .split, .phero--split .wrap, .tabs, .hero__in { grid-template-columns: 1fr; }
  .hero__in { gap: 64px; } .hero__stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .split { gap: 40px; } .split + .split { margin-top: 80px; }
  .split--flip > :first-child { order: 0; }
  .grid--4, .grid--3, .posts { grid-template-columns: repeat(2, 1fr); }
  .tabs__list { grid-template-columns: repeat(2, 1fr); }
  .tabs__list span { display: none; } .tabs__list strong { margin: 0; font-size: 1.08rem; }
  .faq > .head { position: static; }
  .steps--row, .markets { grid-template-columns: repeat(2, 1fr); }
  .steps--row li:not(:last-child)::after { display: none; }
  .market:nth-child(3) { border-left: 0; } .market:nth-child(n+3) { border-top: 2px dashed var(--line); }
  .chip--oos { left: -10px; } .chip--score { right: 14px; }
  .sec, .cta { padding: 88px 0; }
  .post--lead { flex-direction: column; } .post--lead .post__img { min-height: 0; aspect-ratio: 16/9; flex: none; }
  .foot__in { grid-template-columns: 1fr 1fr 1fr; } .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 28px 44px -28px rgba(11,17,30,.45); display: none; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .nav__menu.is-open { display: flex; animation: panel .3s var(--ease); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__group > .nav__link { pointer-events: none; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border: 0; padding-bottom: 4px; }
  .nav__group > .nav__link i { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; width: auto; border: 0; box-shadow: none; padding: 0 0 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__sub a { padding: 9px 0; } .nav__sub span { display: none; }
  .nav__menu .btn { margin-top: 18px; }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 2px dashed rgba(11,17,30,.25); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 40px); }
  .hero { padding-top: 64px; } .trust { margin-top: 64px; }
  .hero__cta .btn, .phero .hero__cta .btn { width: 100%; }
  .chip { font-size: .76rem; padding: 8px 11px; border-radius: 10px; }
  .chip--oos { left: -6px; bottom: -14px; } .chip--score { right: 10px; top: -18px; padding: 8px 12px; }
  .chip--score strong { font-size: 1.35rem; }
  .trust ul { gap: 10px 26px; } .trust li { font-size: 1.08rem; }
  .grid--4, .grid--3, .grid--2, .form__row, .posts, .tabs__list, .steps--row, .markets { grid-template-columns: 1fr; }
  .market { border-left: 0; } .market + .market { border-top: 2px dashed var(--line); }
  .steps--row li { padding: 0 0 0 66px; }
  .sec, .cta { padding: 68px 0; } .phero { padding: 60px 0 56px; }
  .head { margin-bottom: 42px; }
  .form { padding: 28px 20px; } .stat { padding: 30px 12px; }
  .post--lead .post__body { padding: 26px 24px; }
  .aside { padding: 28px 24px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  /* keep the ShelfPerfect column on screen: drop the agency column instead of scrolling it away */
  .cmp { min-width: 0; font-size: .86rem; } .cmp th, .cmp td { padding: 14px 10px; }
  .cmp tr > :nth-child(3) { display: none; } .cmp tbody th { width: 26%; }
  .cmp tbody .cmp__us::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .hero .rise, .js .hero .frame, .js .hero .chip { opacity: 1; transform: none; scale: 1; }
  .js .head.reveal h2 { clip-path: none; transform: none; }
  .frame__scan, .progress { display: none; }
}
