/* ============================================================
   Timesheets Plus — Coming Soon (standalone)
   Palette: Indigo-led · Typography: Poppins headings / Lato body
   ============================================================ */

@font-face {
  font-family: ElegantIcons;
  src: url(../fonts/ElegantIcons.woff) format("woff");
  font-display: block;
}

:root {
  --pri: #4b4fd6;
  --pri-h: #3d40b8;
  --pri-t: #eeeffd;
  --pri-d: #2f318f;
  --pri-b: #dcdcf7;
  --dot: #0ea5e9;
  --ink: #13132b;
  --body: #2d3e50;
  --body2: #33364d;
  --muted: #5f6378;
  --tint: #f6f6fc;
  --line: #d5dde7;
  --foot: #18181c;
  --foot-t: #b3b3bd;
  --fh: 'Poppins', sans-serif;
  --fb: 'Lato', system-ui, sans-serif;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--pri-h); }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }

.ei { font-family: ElegantIcons; font-style: normal; font-weight: normal; line-height: 1; speak: none; }
.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;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; display: flex; flex-direction: column; }

/* ============================================================
   Utility bar (language)
   ============================================================ */
.utility-inner {
  max-width: 1128px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.lang-btn .ei { font-size: 14px; }
.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 6px 0 0;
  padding: 6px 0;
  z-index: 30;
  min-width: 140px;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(11, 21, 38, .1);
}
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 8px 16px; font-size: 13px; color: var(--body); }
.lang-menu a:hover { background: var(--tint); color: var(--body); }
.lang-menu a[aria-current="true"] { font-weight: 700; color: var(--pri); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 2px 6px rgba(0, 0, 0, .06);
}
.header-inner {
  max-width: 1128px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-word { font-family: var(--fh); font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
.brand-word span { color: var(--dot); }
.btn-header {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--pri);
  border: 1.5px solid var(--pri);
  border-radius: 4px;
  white-space: nowrap;
}
.btn-header:hover { color: #fff; background: var(--pri-h); }

/* ============================================================
   Hero + waitlist
   ============================================================ */
.hero { padding: clamp(56px, 9vw, 112px) 24px 56px; text-align: center; }
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--pri);
  background: var(--pri-t);
  border: 1px solid var(--pri-b);
  padding: 6px 12px;
  border-radius: 3px;
}
.hero h1 {
  font-family: var(--fh);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.dot { color: var(--dot); font-weight: 500; }
.hero-sub { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 580px; text-wrap: pretty; }

.waitlist,
.waitlist-done { width: 100%; max-width: 480px; margin-top: 8px; }
.waitlist { display: flex; flex-direction: column; gap: 10px; }
.waitlist[hidden],
.waitlist-done[hidden] { display: none; }
.waitlist-row { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  outline: none;
}
.waitlist input:focus { border-color: var(--pri); }
.waitlist button {
  flex: 0 0 auto;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--pri);
  border: 1.5px solid var(--pri);
  border-radius: 6px;
  cursor: pointer;
}
.waitlist button:hover { background: var(--pri-h); }
.waitlist button:disabled { opacity: .6; cursor: progress; }
.waitlist-note { font-size: 13px; color: var(--muted); }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.waitlist-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile runs invisibly and only takes up space when it needs a click. */
.waitlist-captcha:empty { display: none; }
.waitlist-captcha { display: flex; justify-content: center; }
.waitlist-error { font-size: 14px; color: #b42318; }
.waitlist-error[hidden] { display: none; }
.waitlist-done {
  padding: 18px 20px;
  background: var(--pri-t);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.waitlist-done h2 { font-family: var(--fh); font-weight: 500; font-size: 16px; color: var(--pri-d); }
.waitlist-done p { font-size: 14px; color: var(--pri-d); overflow-wrap: anywhere; }

/* ============================================================
   Photo tiles
   ============================================================ */
.tiles-section { width: 100%; max-width: 1488px; margin: 0 auto; padding: 40px 24px 0; }
.tiles { display: flex; gap: 8px; height: clamp(320px, 38vw, 560px); }
.tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: #eceff3;
  transition: flex-grow .6s cubic-bezier(.4, 0, .2, 1),
              opacity .8s ease var(--d, 0s),
              transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
/* Hidden start state only when JS will run the entrance (html.js is set in <head>) */
.js .tile { opacity: 0; transform: translateY(40px); }
.tile:nth-child(2) { --d: .15s; }
.tile:nth-child(3) { --d: .3s; }
.tile.is-hover { flex-grow: 2.5; }
.tile-media {
  position: absolute;
  inset: 0;
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.js .tile-media { transform: scale(1.12); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 120px 32px 30px;
  background: linear-gradient(rgba(20, 22, 26, 0) 0%, rgba(20, 22, 26, .55) 45%, rgba(20, 22, 26, .85) 100%);
  color: #fff;
  font-family: var(--fh);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.2;
  pointer-events: none;
  text-wrap: pretty;
}
.tiles.is-in .tile { opacity: 1; transform: translateY(0); }
.tiles.is-in .tile-media { transform: scale(1); }

/* ============================================================
   Benefits
   ============================================================ */
.benefits { width: 100%; max-width: 1128px; margin: 0 auto; padding: 48px 24px 72px; }
.benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--body2);
}
.benefits li { display: flex; gap: 8px; }
.check { color: var(--pri); }

/* ============================================================
   Policy pages
   ============================================================ */
.page-banner { background: var(--tint); border-bottom: 1px solid #e2e8f0; padding: 56px 24px; }
.page-banner-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.page-banner h1 { font-family: var(--fh); font-weight: 400; font-size: clamp(30px, 4vw, 36px); line-height: 1.2; color: var(--ink); }
.breadcrumb { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #94a3b8; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pri); }

.prose { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; color: var(--body); }
.prose h2 { font-family: var(--fh); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); margin: 40px 0 14px; }
.prose h3 { font-family: var(--fh); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--ink); margin: 28px 0 10px; }
.prose p { font-size: 16px; line-height: 1.8; margin: 0 0 16px; }
.prose ul, .prose ol { font-size: 16px; line-height: 1.8; margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--foot); color: var(--foot-t); padding: 48px 24px 40px; }
.footer-inner { max-width: 1128px; margin: 0 auto; }
.foot-social { display: flex; align-items: center; gap: 40px; }
.foot-social-line { flex: 1; height: 1px; background: #4a4f55; }
.foot-social-icons { display: flex; gap: 28px; align-items: center; }
.foot-social-icons a { font-size: 22px; line-height: 1; color: var(--foot-t); }
.foot-social-icons a:hover { color: #fff; }
.foot-social-icons .x-mark { font-family: system-ui, sans-serif; font-weight: 700; }
.foot-bottom { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand span { font-family: var(--fh); font-size: 18px; color: #f1f5f9; }
.foot-brand span span { color: #a5b4fc; }
.foot-copy { font-size: 13px; font-weight: 700; }
.foot-copy a, .foot-copy a:hover { color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-size: 14px; }
.foot-legal a, .foot-legal a:hover { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal .sep { color: #6b7076; }
.foot-lang { font-size: 13px; }
.foot-lang a { color: var(--foot-t); }
.foot-lang a:hover { color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .utility-inner, .header-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .waitlist button { flex: 1 1 100%; }
  .tiles-section { padding: 24px 16px 0; }
  .tiles { flex-direction: column; height: auto; }
  .tile { flex: none; height: 300px; }
  .tile.is-hover { flex-grow: 0; }
  .tile-caption { padding: 80px 20px 20px; }
  .benefits { padding: 40px 16px 56px; }
  .page-banner { padding: 40px 16px; }
  .prose { padding: 40px 16px 64px; }
  .site-footer { padding: 40px 16px 32px; }
  .foot-social { gap: 20px; }
}

/* Logo and header button overflow side by side at 320px otherwise */
@media (max-width: 380px) {
  .header-inner { gap: 12px; }
  .brand-word { font-size: 18px; }
  .btn-header { padding: 8px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile-media { transition: none; }
  .js .tile { opacity: 1; transform: none; }
  .js .tile-media { transform: none; }
}
