/* Kerbfront v5: one studio, six styles. Dark cinematic chapters for show, light chapters for reading.
   Readable for every age: 19px body, strong contrast, short lines, big targets. */
:root {
  --night: #070c1c; --night-2: #0d1630; --paper: #f6f6f2; --panel: #ffffff;
  --ink: #0d1430; --ink-2: #4a5270; --muted-d: #a9b2cc;
  --yellow: #ffcc00; --yellow-d: #d9ad00; --line: rgba(13, 20, 48, .12); --line-d: rgba(255, 255, 255, .12);
  --sign: Archivo, system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 19px/1.6 var(--sign); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* buttons: step on hover, press on click */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 14px; font: 700 18px/1 var(--sign); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } .btn:hover svg { transform: translateX(3px); } }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 var(--yellow-d); }
.btn--yellow:hover { box-shadow: 0 3px 0 var(--yellow-d), 0 18px 40px -16px rgba(255, 204, 0, .6); }
.btn--line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--navy { background: var(--ink); color: #fff; }
.btn--sm { height: 46px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn--lg { height: 62px; padding: 0 30px; font-size: 19px; }
.btn--xl { height: 72px; padding: 0 36px; font-size: 21px; border-radius: 18px; }

.kicker { font: 700 14px/1 var(--sign); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.kicker--dark { color: #8a6c00; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(7, 12, 28, .6); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line-d); }
.nav__bar { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 900 21px/1 var(--sign); font-stretch: 115%; letter-spacing: -.01em; }
.logo__k { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--ink); font-size: 19px; }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.nav__links a { color: #dfe4f2; text-decoration: none; font-weight: 600; font-size: 17px; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; padding: 4px 0; transition: background-size .3s var(--ease), color .2s; }
.nav__links a:hover { color: #fff; background-size: 100% 2px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; color: #fff; overflow: hidden;
  background: radial-gradient(60% 60% at 78% 40%, rgba(84, 110, 255, .22), transparent 70%), radial-gradient(40% 40% at 20% 100%, rgba(255, 204, 0, .08), transparent 70%), var(--night); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero__h1 { font: 800 clamp(42px, 5vw, 76px)/1.02 var(--sign); letter-spacing: -.04em; margin-bottom: 22px; }
.hero__h1 em { font-style: normal; color: var(--yellow); }
.m { display: block; overflow: hidden; padding-bottom: .06em; }
.m > span { display: block; animation: rise 1.1s var(--ease) both; }
.m:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero__lead { font-size: clamp(20px, 1.7vw, 24px); color: #cdd4e8; margin-bottom: 32px; animation: fade 1s var(--ease) .35s both; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; animation: fade 1s var(--ease) .45s both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 0; border-top: 1px solid var(--line-d); animation: fade 1s var(--ease) .55s both; }
.facts li { flex: 1; padding: 18px 18px 0 0; color: var(--muted-d); font-size: 16px; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line-d); }
.facts b { display: block; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

/* the deck: six real sites in 3D */
.deck { position: relative; height: min(620px, 70svh); perspective: 1800px; }
.deck__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(10deg) rotateY(-26deg) rotateZ(2deg); }
.card { --gap: 56px; position: absolute; left: -2%; top: 18%; width: 96%; margin: 0; aspect-ratio: 1720 / 1075; border-radius: 14px; overflow: hidden; background: #111;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translate3d(calc(var(--i) * 26px), calc(var(--i) * -30px), calc(var(--i) * calc(var(--gap) * -1)));
  transition: transform .7s var(--ease), filter .5s; animation: deal 1.2s var(--ease) backwards; animation-delay: calc(.4s + (5 - var(--i)) * .09s); }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 40%); pointer-events: none; }
@keyframes deal { from { opacity: 0; transform: translate3d(0, 160px, 200px) rotateX(-20deg); } }
.deck__glow { position: absolute; left: 10%; right: 0; bottom: 2%; height: 60px; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .65), transparent 70%); filter: blur(10px); transform: translateZ(-1px); }

/* who */
.who { background: var(--night); color: #fff; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.who__row { display: flex; align-items: center; gap: 28px; padding: 26px 0; flex-wrap: wrap; }
.who p { color: var(--muted-d); font-size: 17px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line-d); border-radius: 99px; font-weight: 600; font-size: 16px; }

/* light chapters */
.styles, .prices, .faq { background: var(--paper); }
section.styles, section.prices, section.faq, section.how { padding: clamp(80px, 9vw, 130px) 0; }
.head { margin-bottom: 44px; max-width: 720px; }
.head h2 { font: 800 clamp(36px, 4.4vw, 62px)/1.04 var(--sign); letter-spacing: -.035em; margin-bottom: 14px; }
.head p { color: var(--ink-2); font-size: 20px; }
.head--light h2 { color: #fff; }
.head--row { display: flex; justify-content: space-between; align-items: end; gap: 30px; max-width: none; flex-wrap: wrap; }

/* the style picker */
.picker { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.picker__list { display: grid; gap: 8px; }
.picker__list button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 70px; padding: 0 20px; border-radius: 16px; border: 2px solid transparent; background: var(--panel); color: var(--ink); font: 700 19px/1.2 var(--sign); text-align: left; cursor: pointer;
  box-shadow: 0 1px 0 var(--line); transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.picker__list button:hover { transform: translateX(4px); }
.picker__list button:active { transform: scale(.98); }
.picker__list button[aria-selected="true"] { border-color: var(--ink); background: #fff; box-shadow: 0 16px 30px -20px rgba(13, 20, 48, .5); }
.picker__list .pr { font-weight: 600; font-size: 16px; color: var(--ink-2); }
.lv { display: flex; gap: 3px; align-items: end; height: 22px; }
.lv i { width: 5px; border-radius: 2px; background: rgba(13, 20, 48, .14); }
.lv i:nth-child(1) { height: 30%; } .lv i:nth-child(2) { height: 44%; } .lv i:nth-child(3) { height: 58%; } .lv i:nth-child(4) { height: 72%; } .lv i:nth-child(5) { height: 86%; } .lv i:nth-child(6) { height: 100%; }
.lv[style*="--l:1"] i:nth-child(-n+1), .lv[style*="--l:2"] i:nth-child(-n+2), .lv[style*="--l:3"] i:nth-child(-n+3),
.lv[style*="--l:4"] i:nth-child(-n+4), .lv[style*="--l:5"] i:nth-child(-n+5), .lv[style*="--l:6"] i:nth-child(-n+6) { background: var(--yellow-d); }

.picker__view { background: var(--night); border-radius: 26px; padding: 28px; color: #fff; position: relative; overflow: hidden; }
.picker__view::before { content: ""; position: absolute; inset: auto -20% -50% -20%; height: 80%; background: radial-gradient(50% 50% at 50% 50%, rgba(84, 110, 255, .28), transparent 70%); pointer-events: none; }
.screen { position: relative; padding-right: 16%; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #e9ecf2; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6ccd8; }
.browser__bar span { margin-left: 10px; font-size: 13px; color: #4b5469; }
.browser__img { aspect-ratio: 1720 / 1075; overflow: hidden; }
.browser__img img, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s ease, filter .35s ease, transform .6s var(--ease); }
.is-swapping .browser__img img, .is-swapping .phone img { opacity: 0; filter: blur(6px); transform: scale(1.02); }
.phone { position: absolute; right: 0; bottom: -18px; width: 22%; aspect-ratio: 9 / 19.5; border-radius: 22px; padding: 5px; background: #0f1216; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.1); }
.phone img { border-radius: 17px; }
.info { position: relative; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; margin-top: 30px; }
.info h3 { font: 800 30px/1.1 var(--sign); letter-spacing: -.02em; }
.info p { color: var(--muted-d); font-size: 17px; margin-top: 4px; }
.info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 17px; }
.info li { padding-left: 26px; position: relative; }
.info li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(-45deg); }
.info .btn--navy { background: var(--yellow); color: var(--ink); }

/* statement: words light up */
.statement { background: var(--night); color: #fff; padding: clamp(110px, 16vw, 220px) 0; }
.statement p { font: 800 clamp(34px, 4.8vw, 72px)/1.08 var(--sign); letter-spacing: -.035em; max-width: 22ch; }
.statement .w { opacity: .15; transition: opacity .3s linear; }
.statement .w.on { opacity: 1; } .statement .w.k { color: var(--yellow); }

/* how */
.how { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 34px 30px 36px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); }
.steps .n { display: block; font: 900 88px/1 var(--sign); font-stretch: 120%; color: transparent; -webkit-text-stroke: 2px var(--yellow); margin-bottom: 18px; }
.steps h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.steps p { color: var(--muted-d); font-size: 18px; }

/* prices */
.cur { display: inline-flex; padding: 4px; border-radius: 99px; border: 2px solid var(--ink); }
.cur button { height: 44px; padding: 0 18px; border-radius: 99px; border: 0; background: transparent; font: 700 16px var(--sign); color: var(--ink); cursor: pointer; }
.cur button.is-on { background: var(--ink); color: #fff; }
.table { background: var(--panel); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(13, 20, 48, .4); }
.tr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--line); align-items: center; font-size: 18px; }
.tr.th { border-top: 0; background: #eef0f5; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tr .pr { font-weight: 800; font-size: 20px; }
.tr:not(.th):hover { background: #fffbe6; }
.care { margin-top: 22px; color: var(--ink-2); font-size: 18px; }
.care b { color: var(--ink); }

/* faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.link { font-weight: 700; color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 var(--yellow); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 24px 0; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1430' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 24px; color: var(--ink-2); max-width: 52ch; }

/* close */
.close { background: radial-gradient(50% 70% at 50% 110%, rgba(255, 204, 0, .2), transparent 70%), var(--night); color: #fff; padding: clamp(100px, 12vw, 170px) 0 40px; }
.close__grid { display: grid; justify-items: center; text-align: center; gap: 36px; }
.close h2 { font: 800 clamp(40px, 6vw, 92px)/1.02 var(--sign); letter-spacing: -.04em; max-width: 16ch; }
.close h2 em { font-style: normal; color: var(--yellow); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(80px, 10vw, 140px); padding-top: 28px; border-top: 1px solid var(--line-d); color: var(--muted-d); font-size: 15px; }

/* reveals */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav__links { display: none; } .nav .btn--sm { margin-left: auto; }
  .hero { padding-top: 100px; }
  .hero__grid, .picker, .faq__grid { grid-template-columns: 1fr; }
  .deck { height: 340px; order: -1; margin: 0 -10px; }
  .card { width: 74%; left: 8%; top: 12%; --gap: 40px; }
  .info { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .picker__list { grid-template-columns: 1fr 1fr; }
  .picker__list button { grid-template-columns: auto 1fr; min-height: 64px; font-size: 17px; padding: 10px 14px; }
  .picker__list .pr { grid-column: 2; font-size: 15px; }
}
@media (max-width: 640px) {
  .wrap { width: min(1240px, 100% - 32px); }
  .facts { flex-direction: column; gap: 14px; } .facts li + li { padding-left: 0; border-left: 0; } .facts li { padding-top: 14px; }
  .acts .btn { flex: 1 1 100%; }
  .deck { height: 260px; }
  .picker__view { padding: 18px; border-radius: 20px; } .screen { padding-right: 18%; } .phone { width: 26%; border-radius: 16px; }
  .tr { grid-template-columns: 1.6fr 1fr; padding: 16px 18px; } .tr span:nth-child(2), .tr span:nth-child(3) { display: none; }
  .btn--xl { height: 64px; font-size: 19px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .grain { display: none; } .js .rv { opacity: 1; transform: none; } .statement .w { opacity: 1; }
}
