
/* ClockInOut homepage (approved concept, docs/mockup/home-v2.html).
   Layout: marketing page — split hero (copy | animated time clock), industry icon grid, steps, flows, security band, pricing.
   One committed light visual world (a product homepage), so colors are set explicitly rather than theme-switched. */
:root {
  --ink: #161B36;        /* headings, punch-clock body */
  --muted: #5D6385;
  --paper: #F5F6FB;      /* page ground, faint cool grey */
  --card: #FFFFFF;
  --line: #E4E6F1;
  --brand: #5B4CE0;      /* ClockInOut violet, kept from the current site */
  --in: #0FA97A;         /* clock-in green */
  --out: #E8613C;        /* clock-out coral */
  --amber: #F2A93B;      /* punch-card stamp */
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(22,27,54,.22); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.review { background: var(--ink); color: #fff; text-align: center; font-size: .82rem; padding: 8px 16px; }
.review b { color: var(--amber); }

/* Nav */
nav.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: .94rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 16px; font-size: .9rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 36px 70px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; margin: 16px 0 18px; }
.hero h1 .tick { display: inline-block; background: var(--amber); color: var(--ink); padding: 0 .18em; border-radius: .18em; transform: rotate(-2deg); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.checks span::before { content: "✓"; color: var(--in); font-weight: 800; margin-right: 6px; }

/* Time clock scene */
.scene { position: relative; min-height: 520px; }
.halo { position: absolute; inset: 30px 10px 40px; border-radius: 40px; background:
  radial-gradient(circle at 30% 30%, rgba(91,76,224,.18), transparent 60%),
  radial-gradient(circle at 75% 70%, rgba(242,169,59,.22), transparent 55%),
  repeating-linear-gradient(0deg, rgba(22,27,54,.045) 0 1px, transparent 1px 26px),
  repeating-linear-gradient(90deg, rgba(22,27,54,.045) 0 1px, transparent 1px 26px); }
.machine { position: absolute; left: 50%; top: 22px; width: 250px; transform: translateX(-50%); }
.machine svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 30px rgba(22,27,54,.25)); }
.hand { transform-origin: 125px 105px; }
.hand.min { animation: spin 12s linear infinite; }
.hand.hr { animation: spin 144s linear infinite; }
.hand.sec { animation: spin 2s steps(30) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card-slot { position: absolute; left: 50%; top: 294px; width: 150px; height: 190px; transform: translateX(-50%); overflow: hidden; }
.punch { position: absolute; left: 6px; right: 6px; top: 0; height: 176px; background: #FFFDF6; border: 1.5px solid #E9DDBF; border-radius: 6px;
  box-shadow: 0 8px 18px rgba(22,27,54,.12); padding: 10px 10px 8px; animation: punch 4s cubic-bezier(.6,0,.3,1) infinite; }
.punch .rows { display: grid; gap: 7px; margin-top: 8px; }
.punch .rows i { display: block; height: 1px; background: #EADFC4; }
.punch .name { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stamp { position: absolute; left: 10px; right: 10px; bottom: 14px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; padding: 4px 0;
  border: 2px solid currentColor; border-radius: 6px; transform: rotate(-4deg) scale(.6); opacity: 0; animation: stamp 4s ease infinite; }
.stamp.in { color: var(--in); } .stamp.out { color: var(--out); }
@keyframes punch { 0% { transform: translateY(-190px); } 18%, 70% { transform: translateY(0); } 88%, 100% { transform: translateY(-190px); } }
@keyframes stamp { 0%, 26% { opacity: 0; transform: rotate(-4deg) scale(1.8); } 32% { opacity: 1; transform: rotate(-4deg) scale(1); } 70% { opacity: 1; transform: rotate(-4deg) scale(1); } 80%, 100% { opacity: 0; } }

.float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 14px 10px 10px;
  box-shadow: 0 14px 34px rgba(22,27,54,.14); font-size: .82rem; line-height: 1.3; animation: bob 5s ease-in-out infinite; z-index: 3; }
.float small { display: block; color: var(--muted); }
.float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.f1 { left: 0; top: 70px; } .f2 { right: 0; top: 150px; animation-delay: -1.7s; } .f3 { left: 0; bottom: 70px; animation-delay: -3.4s; } .f4 { right: 2%; bottom: 96px; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Sections */
section.block { padding-block: 70px 0; }
.head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: 34px; }
.head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 760px; }
.head p { color: var(--muted); max-width: 620px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ind { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px 16px; display: grid; justify-items: center; gap: 10px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.ind:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(22,27,54,.1); border-color: transparent; }
.ind .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; transition: transform .3s; }
.ind:hover .ic { transform: rotate(-8deg) scale(1.08); }
.ind b { font-size: .88rem; line-height: 1.25; }
.ind small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.ind svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--card); border-radius: 20px; padding: 26px; border: 1px solid var(--line); position: relative; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--brand); }
.step p { color: var(--muted); }

/* Flows */
.flows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.flow { border-radius: 22px; padding: 28px 24px; color: #fff; display: grid; gap: 12px; align-content: start; }
.flow p { opacity: .92; }
.flow .chip { justify-self: start; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 10px; padding: 7px 12px; font-size: .82rem; font-weight: 700; }
.flow .chip .mono { color: var(--muted); font-weight: 500; }
.fl1 { background: var(--ink); } .fl2 { background: var(--brand); } .fl3 { background: #0E8A66; }

/* Security */
.secure { margin-top: 70px; background: var(--ink); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 34px; align-items: center; }
.secure h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.secure p { color: #C4C7E0; margin-top: 12px; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px; display: grid; gap: 4px; font-size: .9rem; }
.sec-item b { color: var(--amber); }
.sec-item span { color: #C4C7E0; font-size: .84rem; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.price.pop { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(91,76,224,.15); }
.price .amt { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.price .amt small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
.price li::before { content: "✓"; color: var(--in); font-weight: 800; margin-right: 8px; }
.price li.plus { color: var(--ink); font-weight: 700; } .price li.plus::before { content: none; }
.price { position: relative; } .price .tagline { margin: 0; color: var(--muted); font-size: .92rem; }
.price .note { color: var(--muted); font-size: .85rem; margin-top: -4px; }
.badge-pop { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.cyc { position: absolute; opacity: 0; pointer-events: none; }
.cycle { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.cycle label { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--muted); }
.cycle em { font-style: normal; font-size: .75rem; background: #E3F7F0; color: #0E8A66; padding: 3px 8px; border-radius: 999px; margin-left: 4px; }
#cyc-m:checked ~ .cycle label[for="cyc-m"], #cyc-y:checked ~ .cycle label[for="cyc-y"] { background: var(--ink); color: #fff; }
#cyc-m:focus-visible ~ .cycle label[for="cyc-m"], #cyc-y:focus-visible ~ .cycle label[for="cyc-y"] { outline: 2px solid var(--brand); outline-offset: 2px; }
.price .yr, #cyc-y:checked ~ .prices .mo { display: none; } #cyc-y:checked ~ .prices .yr { display: block; }
.pay { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 16px; }

.final { margin-block: 80px 40px; text-align: center; display: grid; gap: 16px; justify-items: center; background: var(--amber); border-radius: 28px; padding: 54px 24px; }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding-bottom: 40px; }

@media (max-width: 960px) {
  .hero, .secure { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps, .flows, .prices { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-list { grid-template-columns: 1fr; }
  .secure { padding: 28px 20px; }
  .f3, .f4 { display: none; }
  .scene { min-height: 500px; }
  .nav-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .stamp { opacity: 1; transform: rotate(-4deg); } }

/* Live demo band */
.demo-band { margin-top: 70px; background: var(--brand); color: #fff; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.demo-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 10px 0; }
.demo-band p { color: #E4E1FF; }
.demo-band .btn-primary { background: #fff; color: var(--ink); margin-top: 18px; }
.creds { display: grid; gap: 12px; }
.cred { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; font-size: .9rem; }
.cred b { font-size: .95rem; }
.cred div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cred code { font-family: var(--mono); background: #fff; color: var(--ink); padding: 2px 8px; border-radius: 6px; user-select: all; }
@media (max-width: 960px) { .demo-band { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- Campaign landing pages (/for/<key>) ---------- */
.camp .eyebrow { color: var(--seg, var(--brand)); }
.camp-visual { position: relative; display: grid; place-items: center; }
.camp-visual::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: radial-gradient(circle at 70% 25%, var(--seg-bg), transparent 60%), radial-gradient(circle at 20% 80%, #EEEBFD, transparent 55%); }
.camp-device { position: relative; width: min(440px, 100%); background: #161B36; border-radius: 28px; padding: 18px; box-shadow: 0 30px 70px rgba(22,27,54,.28); display: grid; gap: 10px; }
.camp-bar { display: flex; align-items: center; gap: 6px; color: #C4C7E0; font-size: .82rem; padding: 0 4px 6px; }
.camp-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2E3666; } .camp-bar b { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.camp-ev { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 14px; animation: campIn .6s both; }
.camp-ev b { display: block; font-size: .98rem; } .camp-ev span { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.camp-ev i { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: .72rem; color: #fff; border-radius: 10px; padding: 8px 0; width: 48px; text-align: center; flex-shrink: 0; }
.k-in { background: var(--in); } .k-out { background: var(--out); } .k-pickup { background: var(--amber); }
.camp-report { display: flex; justify-content: space-between; align-items: center; background: var(--seg, var(--brand)); color: #fff; border-radius: 16px; padding: 14px 16px; font-size: .92rem; }
.camp-report b { font-family: var(--mono); }
@keyframes campIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .camp-ev { animation: none; } }
.camp-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.camp-pain { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; font-weight: 700; display: flex; gap: 12px; align-items: flex-start; }
.camp-pain span { color: var(--out); font-weight: 800; }
.camp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.camp-feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 8px; align-content: start; transition: transform .15s, box-shadow .15s; }
.camp-feat:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22,27,54,.08); }
.camp-feat p { color: var(--muted); }
.camp-num { font-family: var(--mono); font-weight: 700; color: var(--seg, var(--brand)); font-size: .85rem; }
.camp-more { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.camp-more a { color: var(--brand); font-weight: 600; }
@media (max-width: 900px) { .camp-pains, .camp-feats { grid-template-columns: 1fr; } }

/* ---------- Phones: start-trial bar that stays at the bottom once the page is scrolled ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); box-shadow: 0 -6px 24px rgba(22,27,54,.12); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { flex: 1; justify-content: center; text-align: center; }
  body { padding-bottom: 76px; }
}
