/* ClockMeIn - public site: landing, sign-up, sign-in, legal. Loaded after ui.css. */

body.site { background: var(--bg); overflow-x: hidden; }
.wrap { width: min(100% - 40px, 1180px); margin: 0 auto; }

/* ---------- Header ---------- */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 22px 0; color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; }
.site-head nav { display: flex; gap: 26px; margin-left: 18px; font-size: 14.5px; font-weight: 500; }
.site-head nav a { text-decoration: none; opacity: .75; transition: opacity .15s; }
.site-head nav a:hover { opacity: 1; }
.site-head .btn-ghost { color: #fff; }
.site-head .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.site-head.light { position: static; color: var(--ink); }
.site-head.light .btn-ghost { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; background: #070d0b; color: #eef3ea; padding: clamp(130px, 17vh, 190px) 0 clamp(70px, 10vh, 120px); overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 1100px; height: 1100px; right: -280px; top: -320px; background: radial-gradient(closest-side, rgba(198, 242, 78, .2), transparent 68%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(198, 242, 78, .1); color: #c6f24e; border: 1px solid rgba(198, 242, 78, .25); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #c6f24e; box-shadow: 0 0 0 0 rgba(198, 242, 78, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(198, 242, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0); } }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); font-weight: 800; letter-spacing: -.055em; line-height: .93; margin: 24px 0 26px; }
.hero h1 em { font-style: normal; color: #c6f24e; position: relative; white-space: nowrap; }
.hero p.lead { font-size: clamp(17px, 1.5vw, 20.5px); line-height: 1.55; color: #a9b5ae; max-width: 33em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.hero-note { margin-top: 18px; font-size: 13.5px; color: #74817a; }
.hero-facts { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: clamp(40px, 6vh, 64px); flex-wrap: wrap; }
.hero-facts div b { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 750; letter-spacing: -.04em; color: #fff; line-height: 1; }
.hero-facts div span { font-size: 13px; color: #74817a; }

/* The demo kiosk */
.demo { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 3 / 4; }
.demo-tablet { position: absolute; inset: 0; border-radius: 38px; background: linear-gradient(160deg, #1b2823, #0b1310); border: 1px solid #2a3a33; padding: 14px; box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04) inset; transform: rotate(2.5deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.demo:hover .demo-tablet { transform: rotate(0deg); }
.demo-screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #24352e, #0a120f 70%); }
.demo-top { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; z-index: 3; }
.demo-top small { display: block; font-family: var(--font); font-weight: 500; font-size: 10.5px; opacity: .6; }
.demo-top .mono { font-size: 22px; font-weight: 500; }
.demo-face { position: absolute; left: 50%; top: 44%; width: 54%; aspect-ratio: 52 / 66; transform: translate(-50%, -50%); }
.demo-face svg { position: absolute; inset: 8% 6% 0; width: 88%; height: 92%; }
.demo-oval { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); transition: border-color .3s, box-shadow .3s; overflow: hidden; }
.demo-oval::after { content: ''; position: absolute; left: 0; right: 0; top: -45%; height: 45%; background: linear-gradient(transparent, rgba(198, 242, 78, .42)); border-bottom: 2px solid #c6f24e; opacity: 0; }
.demo.scan .demo-oval::after { opacity: 1; animation: demoscan 1.3s cubic-bezier(.5, 0, .5, 1) both; }
.demo.hit .demo-oval { border-color: #c6f24e; box-shadow: 0 0 46px rgba(198, 242, 78, .55), 0 0 40px rgba(198, 242, 78, .4) inset; }
@keyframes demoscan { from { top: -45%; } to { top: 100%; } }
.demo-ticks { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(198, 242, 78, .35); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-panel { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 12px; align-items: center; padding: 13px 15px; border-radius: 20px; background: rgba(12, 21, 18, .8); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); transition: background .25s, color .25s, transform .3s cubic-bezier(.2, .9, .3, 1.4); z-index: 3; }
.demo-panel .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 17px; flex: none; color: #c6f24e; transition: all .25s; }
.demo-panel b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -.03em; line-height: 1.15; }
.demo-panel span { font-size: 12.5px; opacity: .8; }
.demo-panel .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(198, 242, 78, .25); border-top-color: #c6f24e; animation: spin .7s linear infinite; }
.demo.hit .demo-panel { background: #c6f24e; color: #0c1512; transform: scale(1.03); border-color: transparent; }
.demo.hit .demo-panel .ic { background: #0c1512; }
.demo.hit.out .demo-panel { background: #4759f5; color: #fff; }
.demo.hit.out .demo-panel .ic { background: #fff; color: #4759f5; }
.demo-chip { position: absolute; z-index: 4; background: #fff; color: #0c1512; border-radius: 16px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); display: flex; align-items: center; gap: 9px; animation: float 6s ease-in-out infinite; }
.demo-chip i { width: 9px; height: 9px; border-radius: 50%; background: #3ecf5e; }
.demo-chip.a { left: -13%; top: 16%; }
.demo-chip.b { right: -11%; top: 58%; animation-delay: -3s; }
.demo-chip.b i { background: #f2b441; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(70px, 10vh, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(34px, 5vh, 56px); }
.kicker { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sec h2 { font-size: clamp(34px, 4.8vw, 62px); font-weight: 780; letter-spacing: -.045em; line-height: 1; margin-top: 14px; }
.sec-head p { font-size: 18px; color: var(--ink-2); margin-top: 18px; line-height: 1.55; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: how; }
.how article { counter-increment: how; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.how article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.how article::before { content: '0' counter(how); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.how h3 { font-size: 25px; margin: 46px 0 10px; }
.how p { color: var(--ink-2); }
.how .art { position: absolute; right: 22px; top: 22px; width: 62px; height: 62px; border-radius: 18px; background: var(--ink); color: var(--volt); display: grid; place-items: center; }
.how .art svg { width: 30px; height: 30px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento article { border-radius: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); min-height: 220px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.bento article h3 { font-size: 24px; margin-bottom: 8px; }
.bento article p { color: var(--ink-2); max-width: 34em; }
.bento .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: auto; }
.bento .ico svg { width: 22px; height: 22px; }
.bento .ico + h3 { margin-top: 26px; }
.bento .c3 { grid-column: span 3; }
.bento .c2 { grid-column: span 2; }
.bento .c4 { grid-column: span 4; }
.bento .dark { background: #0c1512; color: #eef3ea; border-color: #0c1512; }
.bento .dark p { color: #a9b5ae; }
.bento .dark .ico { background: rgba(198, 242, 78, .14); color: #c6f24e; }
.bento .volt { background: #c6f24e; color: #18260a; border-color: #c6f24e; }
.bento .volt p { color: #33470f; }
.bento .volt .ico { background: #18260a; color: #c6f24e; }
.mini-rows { margin-top: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.mini-rows div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.mini-rows .mono { margin-left: auto; opacity: .8; }
.mini-rows .tag { height: 21px; font-size: 11px; }

/* ---------- Pricing ---------- */
.pricing { background: #0c1512; color: #eef3ea; border-radius: clamp(24px, 4vw, 48px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; position: relative; overflow: hidden; }
.pricing::before { content: ''; position: absolute; width: 700px; height: 700px; left: -260px; bottom: -380px; background: radial-gradient(closest-side, rgba(198, 242, 78, .16), transparent 70%); }
.pricing > * { position: relative; }
.pricing .kicker { color: #c6f24e; }
.pricing h2 { color: #fff; }
.pricing p { color: #a9b5ae; font-size: 17px; margin-top: 16px; }
.rate-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.rate { flex: 1 1 160px; border: 1px solid #25342e; border-radius: 20px; padding: 18px 20px; }
.rate b { font-family: var(--display); font-size: 40px; font-weight: 780; letter-spacing: -.04em; color: #c6f24e; line-height: 1; }
.rate span { display: block; font-size: 13.5px; color: #a9b5ae; margin-top: 6px; }
.calc { background: #f4f2ea; color: #0c1512; border-radius: 28px; padding: clamp(22px, 3vw, 34px); }
.calc label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 22px; }
.calc label output { float: right; font-family: var(--mono); font-weight: 700; font-size: 17px; }
.calc input[type=range] { width: 100%; margin-top: 12px; height: 8px; appearance: none; -webkit-appearance: none; background: #dfdbce; border-radius: 99px; outline: none; border: 0; padding: 0; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #0c1512; border: 5px solid #c6f24e; cursor: grab; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.calc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #0c1512; border: 5px solid #c6f24e; cursor: grab; }
.calc-total { border-top: 1px solid #dfdbce; padding-top: 20px; margin-top: 4px; }
.calc-total .n { font-family: var(--display); font-size: clamp(52px, 7vw, 78px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.calc-total .n small { font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0; color: #7b8680; margin-left: 8px; }
.calc-total .f { font-size: 13.5px; color: #47524d; margin-top: 8px; font-family: var(--mono); }
.calc .btn { margin-top: 22px; }

/* ---------- Privacy + FAQ + CTA ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.ticks { list-style: none; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; font-size: 16px; }
.ticks li::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c7a1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks b { display: block; }
.ticks span { color: var(--ink-2); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--display); font-size: 21px; font-weight: 650; letter-spacing: -.025em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 12px; max-width: 46em; font-size: 16px; }
.cta { text-align: center; background: #c6f24e; color: #18260a; border-radius: clamp(24px, 4vw, 48px); padding: clamp(48px, 8vw, 96px) 24px; }
.cta h2 { font-size: clamp(38px, 6vw, 82px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.cta p { font-size: 18px; margin: 18px auto 30px; max-width: 30em; color: #33470f; }
.cta .btn-primary { background: #0c1512; color: #c6f24e; border-color: #0c1512; }
.site-foot { padding: 44px 0 54px; color: var(--ink-3); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .brand { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Auth pages ---------- */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--bg); }
.auth-side { background: #070d0b; color: #eef3ea; padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 100vh; }
.auth-side::before { content: ''; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -420px; background: radial-gradient(closest-side, rgba(198, 242, 78, .2), transparent 68%); }
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; }
.auth-side .pitch { margin-top: auto; }
.auth-side h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 780; letter-spacing: -.05em; line-height: .98; }
.auth-side h2 em { font-style: normal; color: #c6f24e; }
.auth-side p { color: #a9b5ae; margin-top: 18px; font-size: 16.5px; max-width: 26em; }
.auth-side ul { list-style: none; margin-top: 26px; display: grid; gap: 10px; font-size: 15px; color: #cfd8d0; }
.auth-side li::before { content: '\2713'; color: #c6f24e; font-weight: 700; margin-right: 12px; }
.auth-oval { width: 150px; height: 190px; border-radius: 50%; border: 3px solid #c6f24e; margin: clamp(30px, 8vh, 90px) 0 0; position: relative; overflow: hidden; box-shadow: 0 0 70px rgba(198, 242, 78, .3), 0 0 30px rgba(198, 242, 78, .2) inset; }
.auth-oval::after { content: ''; position: absolute; left: 0; right: 0; height: 45%; top: -45%; background: linear-gradient(transparent, rgba(198, 242, 78, .45)); border-bottom: 2px solid #c6f24e; animation: demoscan 2.6s cubic-bezier(.5, 0, .5, 1) infinite; }
.auth-oval svg { position: absolute; inset: 10% 8% 0; width: 84%; height: 90%; opacity: .5; }
.auth-main { display: grid; place-items: center; padding: clamp(24px, 4vw, 54px); }
.auth-card { width: min(100%, 440px); }
.auth-card h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.auth-card > p { color: var(--ink-2); margin-bottom: 26px; font-size: 16px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-links { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth-links a { font-weight: 600; color: var(--ink); }
.alert { padding: 13px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 550; margin-bottom: 20px; }
.alert.bad { background: var(--coral-soft); color: var(--coral); }
.alert.good { background: var(--accent-soft); color: var(--accent); }
.slug-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.slug-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.slug-field input { border: 0 !important; box-shadow: none !important; border-radius: 0; text-align: right; padding-right: 2px; font-family: var(--mono); font-weight: 600; min-width: 0; }
.slug-field span { padding: 0 14px 0 0; color: var(--ink-3); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.big-check { width: 76px; height: 76px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); display: grid; place-items: center; margin-bottom: 24px; animation: stamp .5s cubic-bezier(.2, .9, .3, 1.5) both; }
.big-check svg { width: 36px; height: 36px; }
@keyframes stamp { from { transform: scale(.3); opacity: 0; } }

/* ---------- Legal + error ---------- */
.doc { width: min(100% - 40px, 760px); margin: 0 auto; padding: 40px 0 90px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; margin-bottom: 12px; line-height: 1.65; }
.doc ul { padding-left: 22px; }
.doc .draft { background: var(--amber-soft); color: var(--amber); border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 20px 0 10px; font-size: 14.5px; }
body.errpage { min-height: 100vh; display: grid; place-items: center; background: #070d0b; color: #eef3ea; text-align: center; padding: 24px; }
.errpage .code { font-family: var(--mono); color: #c6f24e; font-size: 14px; letter-spacing: .2em; }
.errpage h1 { font-size: clamp(36px, 6vw, 64px); margin: 14px 0; }
.errpage p { color: #a9b5ae; max-width: 30em; margin: 0 auto 28px; font-size: 17px; }

@media (max-width: 900px) {
    .hero .wrap, .pricing, .split { grid-template-columns: minmax(0, 1fr); }
    .demo { width: min(78%, 340px); margin-top: 20px; }
    .demo-chip.a { left: -8%; } .demo-chip.b { right: -8%; }
    .how { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento .c2, .bento .c3, .bento .c4 { grid-column: auto; }
    .site-head nav { display: none; }
    body.auth { grid-template-columns: minmax(0, 1fr); }
    .auth-side { min-height: 0; padding-bottom: 28px; }
    .auth-side .pitch, .auth-oval { display: none; }
}
