/* Styles for Clocto's public pages (home, privacy). Brand: brand/clocto-brand-kit. */
:root {
  --purple: #4A2799; --purple-dark: #3A1D80; --yellow: #FFC83D; --black: #0B0B0F;
  --text: #111827; --muted: #4B5563; --border: #E5E7EB; --bg: #F9FAFB;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: "Nunito", Arial, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.top { background: var(--purple); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top img { height: 28px; display: block; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.beta-tag { background: var(--yellow); color: var(--black); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.site-menu { display: flex; align-items: center; gap: 24px; }
.site-menu a:not(.btn) { color: #fff; font-weight: 600; text-decoration: none; }
.site-menu a:not(.btn):hover { text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; font: 600 .95rem "Inter", sans-serif; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.menu-toggle:hover { border-color: #fff; }
@media (max-width: 640px) {
  .top .wrap { position: relative; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-menu { display: none; position: absolute; top: 64px; right: 20px; left: 20px; z-index: 10; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 8px; }
  .site-menu.open { display: flex; }
  .site-menu a:not(.btn) { color: var(--text); padding: 12px; border-radius: 8px; }
  .site-menu a:not(.btn):hover { background: var(--bg); text-decoration: none; }
  .site-menu .btn { text-align: center; margin-top: 4px; }
}
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 10px 22px; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: #F0B000; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); }
.btn-outline { color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }
.hero { background: var(--purple); color: #fff; padding: 80px 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; max-width: 14em; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 1.25rem; color: #EEE9FB; max-width: 36em; margin: 0; }
.hero .beta-note { font-size: 1rem; margin-top: 20px; padding: 12px 16px; border-left: 4px solid var(--yellow); background: rgba(255,255,255,.08); border-radius: 6px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.features { padding: 56px 0 72px; background: var(--bg); }
.features h2, .google-data h2 { font-size: 1.8rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin: 0 0 28px; }
.google-data { padding: 56px 0; }
.google-data ul { padding-left: 1.2em; max-width: 52em; }
.google-data li { margin-bottom: .6em; }
.features h2 { font-size: 2rem; margin-bottom: 32px; }
/* Home page (home/index.html): hero with an app picture, steps, feature tabs, closing band. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 5fr 6fr; }
  .hero-grid h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
}
.hero .actions .btn-outline { padding: 8px 20px; }
.how { padding: 64px 0; }
.how h2, .cta h2 { font-size: 2rem; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps .num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--black); font: 900 1.2rem "Nunito", sans-serif; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }
.tablist { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.js .tablist { display: flex; }
.tablist [role="tab"] { font: 600 .95rem "Inter", sans-serif; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tablist [role="tab"]:hover { border-color: var(--purple); }
.tablist [role="tab"][aria-selected="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.tabpanel { display: grid; gap: 32px; align-items: center; margin-bottom: 40px; }
.js .tabpanel { margin-bottom: 0; }
.tabpanel[hidden] { display: none; }
@media (min-width: 900px) { .tabpanel { grid-template-columns: 2fr 3fr; } }
.tab-text h3 { font-size: 1.5rem; }
.tab-text p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: "\f00c"; font: 900 .8rem "Font Awesome 6 Free"; color: var(--purple); position: absolute; left: 4px; top: .35em; }
.cta { background: var(--purple); color: #fff; text-align: center; padding: 64px 0; }
.cta p { color: #EEE9FB; max-width: 34em; margin: 0 auto 24px; font-size: 1.1rem; }

/* App pictures: plain HTML drawings of Clocto screens, filled in step by step
   by the home page script (data-at, data-off, data-sum). */
.frame { background: #fff; color: var(--text); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(17, 8, 48, .28); border: 1px solid var(--border); min-width: 0; }
.hero .frame { border-color: transparent; box-shadow: 0 24px 60px rgba(10, 4, 30, .45); }
.frame-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 14px; background: #F3F4F6; border-bottom: 1px solid var(--border); }
.dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #D1D5DB; margin-right: 5px; }
.frame-url { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pause { display: none; }
.js .mock-pause:not([hidden]) { display: inline-block; }
.mock-pause { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.mock-pause:hover { background: #E5E7EB; color: var(--text); }
.mock { padding: 16px; font-size: 12px; line-height: 1.35; background: #F9FAFB; }
.mock-flush { padding: 0; background: #fff; }
.mock b { font-weight: 700; }
.mock small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.js .mock [data-at] { transition: opacity .35s ease, transform .35s ease, width .9s ease, height .7s ease; }
.js .mock [data-at]:not(.on) { opacity: 0; transform: translateY(4px); }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.mock-title { font-weight: 600; margin-bottom: 10px; }
.mock-title b { color: var(--purple); }

/* Timesheet picture */
.ts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ts-week { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-weight: 600; }
.ts-week small { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.ts-total { margin-left: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-weight: 600; color: var(--muted); }
.ts-total b { color: var(--purple); }
.ts-btn { border-radius: 8px; padding: 6px 10px; font-weight: 700; white-space: nowrap; }
.ts-magic { background: #000; color: #fff; }
.ts-submit { background: #16A34A; color: #fff; }
.ts-done { background: #DCFCE7; color: #166534; }
.ts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; table-layout: fixed; }
.ts th, .ts td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.ts th { font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #fff; }
.ts th b { display: block; font-size: 12px; color: var(--text); }
.ts th:first-child, .ts td:first-child { text-align: left; padding-left: 10px; width: 30%; }
.ts .proj { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts .proj i, .bd-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ts .cell { position: relative; color: #9CA3AF; }
.ts .cell b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text); }
.ts .cell .dash { display: none; }
.js .ts .cell .dash { display: inline; }
.ts .cell.filled { background: #F5F3FF; }
.ts .cell.filled .dash { visibility: hidden; }
.ts .rt { font-weight: 700; background: #F9FAFB; }
.ts tfoot td { background: #F3F4F6; font-weight: 700; border-bottom: 0; }
.ts tfoot td:first-child { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.ts .gt { color: var(--purple); font-size: 14px; }

/* Calendar picture */
.cal { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cal-head, .cal-body { display: grid; grid-template-columns: 28px repeat(3, 1fr); }
.cal-head b { text-align: center; padding: 8px 4px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-body { height: 300px; }
.cal-hours { display: grid; grid-template-rows: repeat(9, 1fr); padding-top: 2px; color: #9CA3AF; font-size: 10px; text-align: center; }
.cal-day { position: relative; border-left: 1px solid var(--border); background: repeating-linear-gradient(#fff 0, #fff calc(11.11% - 1px), #F3F4F6 calc(11.11% - 1px), #F3F4F6 11.11%); }
.ev { position: absolute; left: 4px; right: 4px; top: var(--top); height: var(--h); border-radius: 6px; padding: 4px 6px; background: #F3F4F6; border-left: 3px solid #D1D5DB; overflow: hidden; transition: background .35s, border-color .35s; }
.ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.filled { background: color-mix(in srgb, var(--c) 14%, #fff); border-left-color: var(--c); }
.ev-log { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-log i { color: #16A34A; }

/* Magic Fill picture */
.mf-head { display: flex; justify-content: space-between; gap: 12px; background: var(--purple); color: #fff; padding: 14px 16px; }
.mf-head b { font-size: 14px; }
.mf-head small { color: #D9D0F5; margin-top: 2px; }
.mf-head .fa-magic { color: var(--yellow); }
.mf-total { text-align: right; color: var(--yellow); font: 900 20px "Nunito", sans-serif; white-space: nowrap; }
.mf-total b { font-size: 22px; }
.mf-total small { color: #fff; font: 700 9px "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.mf-rows { padding: 12px; display: grid; gap: 8px; background: #F9FAFB; min-height: 220px; }
.mf-row { display: grid; grid-template-columns: 20px 34px 1fr 2fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.mf-row .box { width: 18px; height: 18px; border-radius: 4px; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.mf-row .day { text-align: center; font-size: 9px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mf-row .day b { display: block; font-size: 14px; color: var(--text); }
.mf-row .src { font-size: 10.5px; font-weight: 600; color: var(--purple); }
.mf-row .src.holiday { color: #047857; }
.mf-row .what b { display: block; }
.mf-row .what { color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-row .hrs { font-weight: 700; }
.mf-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.mf-saved { margin-right: auto; color: #15803D; font-weight: 600; }
.mf-save { border-radius: 8px; padding: 7px 14px; font-weight: 700; background: #E5E7EB; color: #6B7280; }
.mf-save.ready { background: var(--purple); color: #fff; }

/* Project budget picture */
.bd-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.bd-head b { font-size: 14px; }
.bd-spent { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; font-weight: 600; color: var(--muted); }
.bd-spent b { color: var(--purple); font-size: 14px; }
.bd-line { display: grid; grid-template-columns: 76px 1fr 120px; gap: 10px; align-items: center; margin-bottom: 10px; }
.bd-name { font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: #E5E7EB; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--purple); }
.js .mock .bar i:not(.on) { width: 0; transform: none; }
.bd-amt { text-align: right; color: var(--muted); white-space: nowrap; }
.bd-amt b { color: var(--text); }
.chart-title { display: flex; justify-content: space-between; font-weight: 600; margin: 16px 0 8px; }
.key { font-weight: 500; color: var(--muted); font-size: 11px; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-left: 8px; }
.k-plan { border: 2px dashed #A78BFA; }
.k-work { background: var(--yellow); }
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 120px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 24px; }
.col { position: relative; height: 100%; }
.col .plan, .col i { position: absolute; left: 15%; right: 15%; bottom: 0; height: var(--h); border-radius: 4px 4px 0 0; }
.col .plan { border: 2px dashed #A78BFA; border-bottom: 0; }
.col i { background: var(--yellow); }
.js .mock .col i:not(.on) { height: 0; transform: none; }
.col small { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; }

/* Invoice picture */
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.inv-head b { font-size: 14px; }
.pill { border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 11px; white-space: nowrap; }
.pill.draft { background: #E5E7EB; color: #374151; }
.pill.sent { background: #DBEAFE; color: #1E40AF; }
.inv-lines { background: #fff; border: 1px solid var(--border); border-radius: 10px; min-height: 162px; }
.inv-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.inv-line span { font-weight: 600; }
.inv-total { display: flex; justify-content: space-between; padding: 12px; font-weight: 700; font-size: 14px; }
.inv-total b { color: var(--purple); font-size: 16px; }
.inv-note { color: #15803D; font-weight: 600; padding: 0 12px; }

@media (max-width: 640px) {
  .hero { padding: 56px 0; }
  .ts-total { margin-left: 0; }
  .ts th, .ts td { padding: 7px 2px; font-size: 11px; }
  .ts th:first-child, .ts td:first-child { padding-left: 8px; width: 28%; }
  .ts .gt { font-size: 11px; }
  .mf-row { grid-template-columns: 18px 30px 1fr auto; }
  .mf-row .src { display: none; }
  .bd-line { grid-template-columns: 70px 1fr; }
  .bd-amt { grid-column: 2; text-align: left; margin-top: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .mock [data-at], .ev { transition: none; }
}

.band { padding: 64px 0; text-align: center; }
.band h2 { font-size: 1.8rem; }
.band p { color: var(--muted); max-width: 36em; margin: 0 auto 24px; }
.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 2.2rem; font-weight: 900; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.5em; }
.doc .meta { color: var(--muted); }
.doc li { margin-bottom: .4em; }
.note { background: #FFF8E1; border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: 6px; }

/* Workspace sign-in (signin/index.html) */
.finder { min-height: calc(100vh - 64px - 90px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.finder .box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px 32px; width: 100%; max-width: 420px; text-align: center; }
.finder h1 { font-size: 1.6rem; font-weight: 900; }
.finder p { color: var(--muted); margin: 0 0 20px; }
.finder .field { display: flex; align-items: center; border: 1px solid #D1D5DB; border-radius: 10px; overflow: hidden; background: #fff; }
.finder .field:focus-within { outline: 3px solid var(--purple); outline-offset: 2px; }
.finder input { flex: 1; min-width: 0; border: 0; padding: 12px; font: inherit; outline: none; }
.finder .suffix { padding: 0 12px; color: var(--muted); }
.finder button { margin-top: 16px; width: 100%; border: 0; cursor: pointer; font: 700 1rem "Inter", sans-serif; padding: 12px; border-radius: 10px; background: var(--purple); color: #fff; }
.finder button:hover { background: var(--purple-dark); }
.finder .error { color: #B91C1C; font-size: .9rem; min-height: 1.4em; margin: 8px 0 0; }
