/* Globicent marketing site.
   The first :root block is copied from the app (ClearPayroll_Frontend/Styles.css, :root at lines 3-92)
   so the site and the app read as one product. Change a token in the app first, then mirror it here.
   Assets are cached for 30 days (.htaccess): after editing this file, bump ?v= on its <link> in every page. */

:root {
  /* ── copied from the app ── */
  --gray-50: #F8FAFC;
  --gray-100: #F4F7FB;
  --gray-200: #E4EBF3;
  --gray-300: #CBD8E8;
  --gray-500: #5B6B7F;
  --gray-600: #475569;
  --gray-700: #33455E;
  --gray-900: #0A1A2F;
  --white: #ffffff;

  --surface-dark: #0A1A2F;
  --surface-dark-2: #16304A;
  --on-dark-text: #EAF2F8;
  --on-dark-muted: #B8C7D6;
  --on-dark-line: rgba(255,255,255,0.12);
  --on-dark-fill: rgba(255,255,255,0.06);

  --accent: #1FC29B;             /* brand teal: fills, marks, teal on dark surfaces */
  --accent-2: #12A886;           /* second gradient stop; never text */
  --on-accent: #0A1A2F;          /* text on the teal: 7.70:1 */
  --accent-glow: rgba(31,194,155,0.16);
  --fill-accent-hover: #19B08C;
  --accent-strong: #0B7A61;      /* deep teal: links and teal text on light surfaces */
  --accent-strong-hover: #096A54;
  --accent-soft: #E7F8F2;

  --success-text: #166534;  --success-bg: #E6F4ED;  --success-border: #B6DFC8;
  --danger-text:  #B42318;  --danger-bg:  #FDF0EF;  --danger-border:  #F4C0BB;
  --info-text:    #1E40AF;  --info-bg:    #EFF6FF;  --info-border:    #BFDBFE;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --shadow-overlay: 0 8px 24px rgba(10,26,47,0.12), 0 2px 6px rgba(10,26,47,0.06);
  --shadow-focus: 0 0 0 3px rgba(31,194,155,0.16);

  --font: 'IBM Plex Sans', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-caption: 11px;
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-title: 18px;
  --fs-heading: 28px;
  --fs-display: 36px;
  --fs-hero: 44px;
  --tracking-display: -0.02em;
  --tracking-title: -0.01em;
  --tracking-caps: 0.04em;
  --tracking-wide: 0.12em;
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-ui: 1.4;
  --lh-body: 1.55;
  --measure: 64ch;

  /* ── site only ── */
  --fs-prose: 16px;
  --fs-lede: 18px;
  --wrap: 1120px;
  --gutter: 16px;
  --section-y: 56px;
  --header-h: 64px;
}
@media (min-width: 760px) {
  :root { --gutter: 24px; --section-y: 88px; }
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
  color: var(--gray-900);
  font-family: var(--font);
  font-size: var(--fs-prose);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong-hover); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

main { flex: 1 0 auto; }

.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;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent); font-weight: var(--fw-medium); text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Lucide line icons, styled as in the app (Styles.css .ic) */
.ic {
  display: inline-block; width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--font); font-size: var(--fs-body); font-weight: var(--fw-medium); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -12px var(--accent-glow); }
.btn-primary:hover { background: var(--fill-accent-hover); color: var(--on-accent); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: var(--fs-small); }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-1px); }
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface-dark);
  border-bottom: 1px solid var(--on-dark-line);
}
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--white); text-decoration: none;
  font-size: var(--fs-title); font-weight: var(--fw-bold); letter-spacing: var(--tracking-display);
}
.brand:hover { color: var(--white); }
.brand-glyph {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px var(--accent-glow);
  font-family: var(--mono); font-weight: var(--fw-semibold); font-size: 16px; letter-spacing: 0;
  color: var(--on-accent);
}
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a:not(.btn) { color: var(--on-dark-muted); text-decoration: none; font-size: var(--fs-body); padding: 6px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 759px) {
  .site-nav { width: 100%; padding-bottom: 12px; }
  .js .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--on-dark-line); border-radius: var(--r-md);
    background: transparent; color: var(--white); cursor: pointer; font-size: 20px;
  }
  .js .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; }
  .js body.nav-open .site-nav { display: flex; }
  .js .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--on-dark-line); }
  .js .site-nav .btn { margin-top: 16px; min-height: 44px; font-size: var(--fs-body); }
}

/* ── HERO (same surface as the app's sign-in stage, Styles.css .gcl-stage) ── */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark-muted);
  background:
    radial-gradient(120% 90% at 12% 8%, #163049 0%, transparent 55%),
    radial-gradient(90% 80% at 95% 100%, #0d2136 0%, transparent 50%),
    linear-gradient(155deg, #0A1A2F 0%, #0d2136 55%, #0A1A2F 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  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: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 80% at 20% 20%, #000 40%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 20% 20%, #000 40%, transparent 85%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
  padding-block: 56px 64px;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; padding-block: 96px 104px; }
}
.eyebrow {
  font-family: var(--mono); font-size: var(--fs-caption); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 14px;
}
.hero .eyebrow { color: var(--accent); margin-bottom: 20px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5.2vw, 52px); font-weight: var(--fw-bold);
  line-height: var(--lh-tight); letter-spacing: var(--tracking-display);
  max-width: 18ch;
}
.hero .lede { margin-top: 20px; font-size: var(--fs-lede); line-height: var(--lh-body); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.link-on-dark { color: var(--on-dark-text); font-weight: var(--fw-medium); }
.link-on-dark:hover { color: var(--white); }
.hero-note {
  display: flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--mono); font-size: var(--fs-small); color: var(--on-dark-muted);
}
.hero-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* the illustration card (same treatment as the app's .gcl-proof) */
.period-card {
  border: 1px solid var(--on-dark-line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: 20px 22px; max-width: 420px; width: 100%;
}
@media (min-width: 960px) { .period-card { justify-self: end; } }
.period-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--on-dark-fill);
  color: var(--white); font-weight: var(--fw-semibold); font-size: var(--fs-body);
}
.tag {
  font-family: var(--mono); font-size: var(--fs-caption); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--on-dark-muted); border: 1px solid var(--on-dark-line); border-radius: var(--r-pill);
  padding: 3px 9px;
}
.period-list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  font-size: var(--fs-body); color: var(--on-dark-text);
}
.period-list li + li { border-top: 1px solid var(--on-dark-fill); }
.tick {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--on-accent); font-size: 13px;
}
.tick .ic { stroke-width: 2.4; vertical-align: 0; }
.period-list .pending { color: var(--on-dark-muted); }
.period-list .pending .tick { background: transparent; color: var(--accent); border: 1px solid var(--on-dark-line); font-size: 15px; }
.period-list .pending .tick .ic { stroke-width: 1.8; }

/* ── SECTIONS ── */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--white); border-block: 1px solid var(--gray-200); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head h2, .contact-copy h2 {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: var(--fw-bold);
  line-height: var(--lh-snug); letter-spacing: var(--tracking-title);
}
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--gray-600); }

/* cards */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 24px;
}
.section-alt .card { background: var(--gray-50); }
.card h3 { font-size: var(--fs-title); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-title); line-height: var(--lh-snug); }
.card p { margin-top: 8px; color: var(--gray-600); font-size: var(--fs-body); }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 20px; margin-bottom: 16px;
}
.card-icon .ic { vertical-align: 0; }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step-num {
  display: block; font-family: var(--mono); font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--accent-strong); letter-spacing: var(--tracking-caps); margin-bottom: 10px;
}
.step h3 { font-size: var(--fs-title); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-title); line-height: var(--lh-snug); }
.step p { margin-top: 8px; color: var(--gray-600); font-size: var(--fs-body); }

/* good to know */
.note {
  margin-top: 48px; padding: 22px 24px;
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--r-lg);
  max-width: 46rem;
}
.note h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-body); font-weight: var(--fw-semibold);
}
.note h3 .ic { color: var(--accent-strong); }
.note ul { margin-top: 10px; display: grid; gap: 6px; }
.note li { position: relative; padding-left: 18px; color: var(--gray-700); font-size: var(--fs-body); }
.note li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300);
}

/* ── CONTACT ── */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.contact-copy p:not(.eyebrow) { margin-top: 14px; color: var(--gray-600); max-width: 42ch; }
.form-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  box-shadow: var(--shadow-overlay); padding: 24px;
}
@media (min-width: 760px) { .form-card { padding: 32px; } }
.lead-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .field > legend {
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--gray-700); padding: 0;
}
.optional { color: var(--gray-500); font-weight: var(--fw-regular); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--gray-300); border-radius: var(--r-md);
  background: var(--white); color: var(--gray-900);
  font-family: var(--font); font-size: var(--fs-prose); line-height: var(--lh-ui);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.choices { display: grid; gap: 8px; margin-top: 2px; }
.choice {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: var(--r-md);
  font-size: var(--fs-body); color: var(--gray-900);
}
.choice:hover { border-color: var(--gray-500); }
.choice:has(input:checked) { border-color: var(--accent-strong); background: var(--accent-soft); }
.choice input { accent-color: var(--accent-strong); width: 16px; height: 16px; margin: 0; flex: none; }
.form-help { font-size: var(--fs-small); color: var(--gray-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid;
  font-size: var(--fs-body);
}
.form-status[hidden] { display: none; }
.form-status .ic { margin-top: 3px; }
.form-status[data-tone="error"] { color: var(--danger-text); background: var(--danger-bg); border-color: var(--danger-border); }
.form-status[data-tone="info"]  { color: var(--info-text);   background: var(--info-bg);   border-color: var(--info-border); }

.form-success { text-align: center; padding: 24px 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success .ic { width: 40px; height: 40px; color: var(--accent-strong); margin: 0 auto 14px; display: block; }
.form-success h3 { font-size: var(--fs-title); font-weight: var(--fw-semibold); }
.form-success p { margin-top: 6px; color: var(--gray-600); }

/* ── STUB PAGES (pricing, terms, privacy, thanks, 404) ── */
.stub { padding-block: 88px 112px; }
.stub-inner { max-width: 40rem; }
.stub h1 {
  font-size: clamp(30px, 4.4vw, var(--fs-hero)); font-weight: var(--fw-bold);
  line-height: var(--lh-tight); letter-spacing: var(--tracking-display);
}
.stub p { margin-top: 16px; color: var(--gray-600); font-size: var(--fs-lede); max-width: 46ch; }
.stub .btn, .stub .back { margin-top: 28px; }
.stub .stub-icon { width: 44px; height: 44px; color: var(--accent-strong); margin-bottom: 20px; display: block; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
  font-family: var(--mono); font-size: var(--fs-caption); font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid rgba(11,122,97,.18); border-radius: var(--r-pill); padding: 5px 12px;
}
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-medium); }

/* ── FOOTER ── */
.site-footer { background: var(--surface-dark); color: var(--on-dark-muted); font-size: var(--fs-body); }
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px;
  padding-block: 48px 32px;
}
.footer-grid p { margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-base { padding-bottom: 28px; font-family: var(--mono); font-size: var(--fs-small); }
.footer-base p { padding-top: 20px; border-top: 1px solid var(--on-dark-line); }

@media (prefers-reduced-motion: reduce) {
  .btn, .field input, .field select, .field textarea { transition: none; }
}
