/* KeyHaus — getkeyhaus.com. One stylesheet for the landing page and the legal pages. */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Variable.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-VariableItalic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #080B14;
  --ink-2: #0B0F1D;
  --raised: #0E1220;
  --raised-2: #131A2E;
  --bone: #F2F5FF;
  --muted: #B6BFD6;
  --faint: #7A8399;
  --azure: #5E97FF;
  --azure-hi: #8AB8FF;
  --azure-deep: #3D7BFF;
  --rule: rgba(242, 245, 255, .09);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --wide: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--azure); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--azure-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-weight: 500; letter-spacing: -.02em; margin: 0; }
em, i { font-style: italic; }
.accent { color: var(--azure); font-style: italic; font-weight: 400; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 700 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--azure); margin: 0 0 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(8, 11, 20, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--bone); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--ui); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--azure); color: #050812; box-shadow: 0 10px 30px -10px rgba(94, 151, 255, .65); }
.btn-primary:hover { background: var(--azure-hi); }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(242, 245, 255, .22); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(242, 245, 255, .5); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-store small { display: block; font: 500 11px/1 var(--ui); opacity: .75; margin-bottom: 3px; letter-spacing: .02em; }
.btn-store span { text-align: left; line-height: 1.1; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: .98; font-weight: 500; }
.hero h1 .accent { display: block; }
.lede { color: var(--muted); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 34em; margin: 26px 0 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--faint); font-size: 14px; margin: 16px 0 0; }
.fine b { color: var(--muted); font-weight: 500; }

.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; left: -10%; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(94, 151, 255, .34), rgba(61, 123, 255, .10) 45%, transparent 72%); pointer-events: none; }
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 1206 / 2622; padding: 9px; border-radius: 50px; background: linear-gradient(160deg, #1B2238, #05070D 55%); box-shadow: 0 0 0 1px rgba(242, 245, 255, .10), 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 7px rgba(5, 7, 13, .9) inset; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 41px; }
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; width: 31%; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.stage .phone { z-index: 2; }
.float { position: absolute; z-index: 3; width: clamp(150px, 15vw, 200px); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(242, 245, 255, .08); }
.float-a { left: -4%; bottom: -2%; transform: rotate(-7deg); }
.float-b { right: -2%; top: 4%; transform: rotate(6deg); }

/* ---------- post wall ---------- */
.wall { padding: 18px 0 clamp(64px, 9vw, 120px); }
.wall-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.wall-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; max-width: 16em; }
.wall-head p { color: var(--faint); margin: 0; max-width: 22em; font-size: 15px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.track { display: flex; gap: 18px; width: max-content; animation: drift 70s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .track { animation-play-state: paused; }
.track img { width: clamp(170px, 17vw, 228px); aspect-ratio: 4 / 5; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 245, 255, .06); }
@keyframes drift { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- how it works ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2, .feature h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; }
.section-head p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; background: var(--raised); border: 1px solid var(--rule); border-radius: 22px; padding: 28px 26px 30px; }
.steps li::before { counter-increment: step; content: counter(step); display: block; font: italic 400 64px/1 var(--display); color: var(--azure); margin-bottom: 18px; }
.steps h3 { font-size: 24px; line-height: 1.15; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- features ---------- */
.feature .wrap:not(.plain) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature.flip .copy { order: 2; }
.section.feature { padding: clamp(48px, 7vw, 96px) 0; }
.feature .copy > p { color: var(--muted); font-size: 18px; margin: 20px 0 0; max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(94, 151, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235E97FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ticks b { color: var(--bone); font-weight: 500; }
.visual { position: relative; display: flex; justify-content: center; }
.visual::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(94, 151, 255, .20), transparent 75%); pointer-events: none; }
.pair { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.pair .phone { width: min(270px, 56vw); }
.pair .phone + .phone { margin-left: -60px; margin-top: 70px; }

.looks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.looks img { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(242, 245, 255, .06); }
.looks figcaption { grid-column: 1 / -1; color: var(--faint); font-size: 14px; margin-top: 6px; }

.swipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.swipe { background: var(--raised); border: 1px solid var(--rule); border-radius: 22px; padding: 16px; }
.swipe .slides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swipe img { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; }
.swipe p { margin: 14px 4px 2px; color: var(--muted); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.swipe p span { color: var(--faint); white-space: nowrap; }

/* ---------- privacy band ---------- */
.band { padding: 0 0 clamp(64px, 9vw, 120px); }
.band .inner { display: flex; align-items: center; gap: 28px; background: linear-gradient(135deg, var(--raised-2), var(--raised)); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(28px, 4vw, 44px); }
.band svg { width: 56px; height: 56px; flex: none; }
.band h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.band p { margin: 8px 0 0; color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; max-width: 900px; }
.plan { background: var(--raised); border: 1px solid var(--rule); border-radius: 26px; padding: 32px 30px 34px; display: flex; flex-direction: column; }
.plan.pro { background: linear-gradient(160deg, #15203F, var(--raised) 60%); border-color: rgba(94, 151, 255, .45); box-shadow: 0 30px 70px -30px rgba(61, 123, 255, .45); }
.plan h3 { font: 700 13px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan.pro h3 { color: var(--azure-hi); }
.price { font: 500 56px/1 var(--display); letter-spacing: -.03em; margin: 18px 0 4px; }
.price small { font: 500 17px/1 var(--ui); letter-spacing: 0; color: var(--faint); margin-left: 4px; }
.plan .alt { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.plan .alt b { color: var(--bone); font-weight: 500; }
.plan .ticks { margin-top: 24px; }
.plans + .fine { max-width: 900px; margin-top: 20px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; font: 500 clamp(19px, 2vw, 22px)/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--ui); color: var(--azure); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 2px 22px; color: var(--muted); max-width: 40em; }

/* ---------- closing ---------- */
.closing { text-align: center; padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(94, 151, 255, .22), transparent 70%); pointer-events: none; }
.closing .mark { width: 64px; margin: 0 auto 28px; position: relative; }
.closing h2 .accent { display: block; }
.closing h2 { position: relative; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; max-width: 12em; margin: 0 auto; }
.closing .ctas { justify-content: center; margin-top: 34px; position: relative; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.site-foot img { height: 22px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-foot a { color: var(--faint); text-decoration: none; }
.site-foot a:hover { color: var(--bone); }

/* ---------- legal pages (privacy, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 80px; }
.doc h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.05; margin-bottom: 10px; }
.doc h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--bone); font-weight: 500; }
.updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.card { background: var(--raised); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 22px; margin: 14px 0; }
.card h3 { margin: 0 0 6px; font: 500 19px/1.3 var(--display); color: var(--bone); letter-spacing: -.01em; }
.card p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .feature .wrap:not(.plain) { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
  .stage { min-height: 0; padding: 20px 0 10px; }
  .steps { grid-template-columns: 1fr; }
  .swipes { grid-template-columns: 1fr; max-width: 520px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .nav { display: none; }
  .site-head .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .float { width: 128px; }
  .float-a { left: -4%; bottom: 4%; }
  .float-b { right: -4%; top: 2%; }
  .pair .phone { width: 50vw; }
  .pair .phone + .phone { margin-left: -12vw; margin-top: 48px; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .looks img:nth-of-type(n+5) { display: none; }
  .wall-head { flex-direction: column; align-items: start; }
  .band .inner { flex-direction: column; align-items: start; }
  .ctas .btn { flex: 1 1 100%; }
  .logo img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .marquee { overflow-x: auto; }
}
