/* ClockMeIn - public site + super-admin */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --navy: #1a1a2e; --blue: #1a73e8; --sky: #4fc3f7; --bg: #f5f6fa; --text: #222; --muted: #6b6f80; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
main.wrap { padding-top: 24px; padding-bottom: 40px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.inline { display: inline; }
.hidden { display: none !important; }

.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand small { font-weight: 400; font-size: 12px; opacity: 0.7; margin-left: 6px; }
.brand-mark { color: var(--sky); }
.site-header nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-header nav a, .site-header .linklike { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.site-header nav a.btn { color: #fff; }
.linklike { background: none; border: none; cursor: pointer; font: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid #d6d9e0; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; color: var(--text); text-decoration: none; font-family: inherit; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #1557b0; }
.btn-danger { background: #d93025; border-color: #d93025; color: #fff; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-block { width: 100%; }

.flash { background: #e6f4ea; color: #1e7e34; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash-err { background: #fdecea; color: #c5221f; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 12px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
    display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d6d9e0; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(79,195,247,0.2); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: 14px; }
label.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

.auth-card { background: #fff; max-width: 420px; margin: 30px auto; padding: 28px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 24px; margin-bottom: 10px; }
.auth-card p { margin-bottom: 12px; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 30px 0 40px; }
.hero h1 { font-size: 46px; line-height: 1.1; color: var(--navy); margin-bottom: 16px; }
.hero .lead { font-size: 19px; color: #444; margin-bottom: 22px; }
.hero p .btn { margin: 0 8px 8px 0; }
.hero-kiosk { background: #2a2a3e; border-radius: 26px; padding: 16px; box-shadow: 0 20px 50px rgba(26,26,46,0.35); }
.hk-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #56607a, #1f2433 70%); }
.hk-top { display: flex; justify-content: space-between; color: #fff; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.hk-oval { position: absolute; left: 50%; top: 45%; width: 34%; height: 56%; transform: translate(-50%, -50%); border: 3px solid #34a853; border-radius: 50%; }
.hk-panel { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); background: rgba(30,126,52,0.95); color: #fff; border-radius: 12px; padding: 8px 18px; text-align: center; display: flex; flex-direction: column; min-width: 60%; }
.hk-panel strong { font-size: 18px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding: 20px 0 40px; }
.feature { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.feature h3 { font-size: 17px; margin-bottom: 6px; color: var(--navy); }

.pricing { padding: 30px 0; }
.pricing h2, .faq h2 { text-align: center; font-size: 30px; color: var(--navy); margin-bottom: 20px; }
.price-cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.price-card { background: #fff; border-radius: 14px; padding: 26px 34px; text-align: center; min-width: 240px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.price { font-size: 40px; font-weight: 800; color: var(--blue); }
.pricing p { margin-bottom: 12px; }

.faq { max-width: 760px; margin: 0 auto; padding: 20px 0; }
.faq details { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 8px; color: #444; }

.site-footer { background: #fff; border-top: 1px solid #e3e5ea; padding: 18px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Legal */
.legal { background: #fff; border-radius: 12px; padding: 30px; max-width: 860px; margin: 0 auto; }
.legal h1 { font-size: 28px; margin-bottom: 6px; color: var(--navy); }
.legal h2 { font-size: 19px; margin: 22px 0 8px; color: var(--navy); }
.legal p, .legal li { margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; }
.draft { background: #fff4e5; color: #8a4300; border: 1px solid #ffd59e; padding: 10px 14px; border-radius: 8px; margin: 12px 0 18px; font-weight: 600; }

/* Super-admin */
.card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-bottom: 16px; overflow-x: auto; }
.card h2 { font-size: 17px; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
th { font-size: 12px; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; }
tr.total td { font-weight: 700; border-top: 2px solid #ccc; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #eee; color: #555; }
.tag.trial { background: #e8f0fe; color: #1a73e8; }
.tag.active { background: #e6f4ea; color: #1e7e34; }
.tag.suspended { background: #fdecea; color: #c5221f; }
.tag.closed { background: #eee; color: #777; }
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar label { margin: 0; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.actions-row label { margin: 0; }
.actions-row input { width: auto; min-width: 200px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.facts dt { color: var(--muted); font-size: 13px; }
pre.detail { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: #555; max-width: 460px; }
