/* hourarc.com marketing site. Adapted from the approved ChatGPT reference
   (hourarc-site-collateral.zip) -- same palette, layout, and copy; the
   things that changed are the ones the handoff's own README called out:
   the canonical brand mark instead of a placeholder, the app's actual
   wordmark typography, self-hosted fonts, and the NetTempo footer credit.

   Colors below already matched brand/colors.md's light palette exactly
   (green = brand.primary, brass = brand.endpoint, ink = text.primary,
   muted = text.secondary, paper = surface.page, line = border.subtle) --
   kept under the reference's own names rather than churning them to
   brand/tokens.css's names for a page that will never need dark mode or
   the app's other theme-driven surfaces. No app code shares this file. */

/* Self-hosted, not a Google Fonts <link> -- same reasoning as
   apps/web/src/index.css: no third-party request at runtime. Re-fetch
   from https://fonts.google.com/specimen/<Family> if a wider weight
   range is ever needed; keep both copies (apps/web and here) in step. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --ink: #18201f;
  --muted: #66736f;
  --green: #087f6a;
  --green-dark: #066b59;
  --mint: #e5f2ee;
  --mint-soft: #f0f7f4;
  --brass: #c9943a;
  --paper: #f7f6f1;
  --white: #ffffff;
  --line: #d7e0dc;
  --shadow: 0 24px 70px rgba(24, 32, 31, .10);
  --radius: 18px;
  --max: 1180px;
  /* Same two families and roles as the app (brand/colors.md): Manrope for
     headings/wordmark, Inter for body and interface copy. */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-interface: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-interface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(8,127,106,.32); outline-offset: 3px; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,246,241,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215,224,220,.85);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Wordmark next to the mark is real text in the app's own display font,
   not the brand logo SVG's URW Gothic lettering -- brand/colors.md is
   explicit that lettering is an editable working basis for the mark
   artwork, not a typeface to set text in (apps/web's HourArcLogo.tsx
   follows the same rule). */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; color: var(--ink); }
.brand-mark { width: 31px; height: 31px; display: block; }
/* The wordmark's TM (#351), raised with `top` so it can't grow the line box. */
.brand .tm { position: relative; top: -.7em; margin-left: .08em; font-size: .42em; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.button) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 560; }
.nav-links > a:not(.button):hover { color: var(--green); }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border: 1px solid var(--green); border-radius: 11px;
  color: white; background: var(--green); text-decoration: none; font-weight: 680;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(8,127,106,.18); }
.button.secondary { color: var(--green); background: transparent; }
.button.secondary:hover { background: var(--mint); box-shadow: none; }
.button svg { width: 17px; height: 17px; }

.hero { padding: 92px 0 78px; overflow: hidden; }
/* Always stacked, copy above the timesheet mockup -- never a side-by-side
   split. The mockup's .product-frame is a fixed 790px (its internal day/
   sheet grids are fixed-width too, ADR-040's reference handoff never made
   them fluid); --max caps .wrap at 1180px, so a `.88fr 1.12fr` two-column
   split only ever gives that column ~600px -- less than the mockup needs
   at *every* desktop width, squeezing the copy into an unreadably narrow
   sliver next to a mockup clipped by .hero's own `overflow: hidden`. */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: .78rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.08; }
h1 { max-width: 640px; font-size: clamp(3rem, 5vw, 5.05rem); font-weight: 700; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 24px 0 32px; color: var(--muted); font-size: 1.16rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microcopy { margin-top: 15px; color: var(--muted); font-size: .86rem; }

.product-frame {
  position: relative; width: 790px; max-width: none;
  padding: 22px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--white); box-shadow: var(--shadow);
}
.product-frame::before { content: ""; position: absolute; inset: -80px -130px auto auto; width: 320px; height: 320px; border-radius: 50%; background: rgba(201,148,58,.10); z-index: -1; }
.window-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.window-title { font-size: .91rem; font-weight: 700; }
.status { padding: 5px 10px; color: var(--green); background: var(--mint); border-radius: 999px; font-size: .72rem; font-weight: 740; }
.days { display: grid; grid-template-columns: 190px repeat(5, 1fr) 72px; gap: 8px; align-items: end; }
.task-head, .total-head { padding: 0 8px 10px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.total-head { text-align: center; }
.day-card { min-width: 82px; padding: 11px 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: center; font-size: .76rem; color: var(--muted); }
.day-card strong { display: block; margin-top: 3px; color: var(--ink); font-size: .89rem; }
.day-card.active { border-color: var(--green); color: var(--green); background: var(--mint); }
.day-card.active strong { color: var(--green); }
.sheet { margin-top: 11px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.sheet-row { display: grid; grid-template-columns: 190px repeat(5, 1fr) 72px; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); }
.sheet-row:last-child { border: 0; }
.assignment { padding: 11px 14px; font-size: .8rem; }
.assignment strong { display: block; font-size: .86rem; font-weight: 600; }
.assignment span { color: var(--muted); }
.hours { justify-self: center; min-width: 44px; padding: 6px 8px; border-radius: 8px; color: var(--green); background: var(--mint); text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.hours.empty { color: #8b9692; background: transparent; }
.row-total { height: 100%; display: grid; place-items: center; border-left: 1px solid var(--line); font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.proof { padding: 28px 0 92px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-item { padding: 27px 34px; border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border: 0; padding-right: 0; }
.proof-item strong { display: block; margin-bottom: 5px; font-size: 1rem; font-family: var(--font-display); font-weight: 700; }
.proof-item span { color: var(--muted); font-size: .93rem; }

.section { padding: 100px 0; }
.section.white { background: var(--white); }
.section-head { max-width: 700px; margin-bottom: 50px; }
h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); font-weight: 700; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { min-height: 265px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 34px; border-radius: 11px; color: var(--green); background: var(--mint); }
.feature-icon svg { width: 22px; height: 22px; }
h3 { font-size: 1.35rem; font-weight: 700; }
.feature p { margin: 13px 0 0; color: var(--muted); font-size: .98rem; }

.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 86px; align-items: center; }
.split-copy p { margin: 20px 0 0; color: var(--muted); font-size: 1.04rem; }
.check-list { display: grid; gap: 15px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: .75rem; }
.report-card { padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 18px 45px rgba(24,32,31,.07); }
.report-top { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.client-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: white; background: #24425b; font-family: var(--font-display); font-weight: 800; }
.report-meta { text-align: right; }
.report-meta strong { display: block; font-family: var(--font-display); font-weight: 700; }
.report-meta span { color: var(--muted); font-size: .8rem; }
.report-lines { display: grid; gap: 13px; padding-top: 25px; }
.report-line { display: grid; grid-template-columns: 1fr 90px; gap: 18px; align-items: center; }
.bar { height: 9px; border-radius: 99px; background: #e8eeeb; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.report-line span { text-align: right; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.report-total { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 720; }

.install { padding: 100px 0 112px; background: var(--ink); color: white; }
.install .section-head p { color: #b8c3bf; }
.install-layout { display: grid; grid-template-columns: 330px 1fr; gap: 34px; align-items: start; }
.install-tabs { display: grid; gap: 10px; }
.install-tab {
  width: 100%; min-height: 62px; display: flex; align-items: center; gap: 13px; padding: 0 18px;
  border: 1px solid #3a4643; border-radius: 12px; color: #c8d1ce; background: transparent;
  font: inherit; font-weight: 620; text-align: left; cursor: pointer;
}
.install-tab svg { width: 22px; height: 22px; }
.install-tab[aria-selected="true"] { color: white; border-color: var(--green); background: rgba(8,127,106,.23); }
.install-panel { min-height: 330px; padding: 38px 42px; border: 1px solid #3a4643; border-radius: 18px; background: #202a28; }
.install-panel[hidden] { display: none; }
.install-panel h3 { font-size: 1.65rem; }
.steps { display: grid; gap: 20px; margin: 28px 0 30px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 34px; padding-left: 48px; color: #d5ddda; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #50605c; border-radius: 50%; color: #9de0cf; font-size: .82rem; font-weight: 720; }
.install-note { color: #94a39f; font-size: .87rem; }
.install-panel .button { margin-top: 3px; }

.final-cta { padding: 92px 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 50px 54px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.cta-box h2 { max-width: 650px; font-size: clamp(2rem, 3.5vw, 3.15rem); }
.cta-box p { margin: 12px 0 0; color: var(--muted); }

footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--green); }
/* The NetTempo credit is a distinct block from the hourarc brand mark
   above -- one product's brand, one company's copyright. */
.footer-credit { display: flex; align-items: center; gap: 10px; }
.footer-credit img { height: 18px; width: auto; display: block; }
.footer-credit span { font-size: .82rem; }

/* Help pages (ADR-058): a sidebar of every page beside the text, stacked
   above it on a phone. Pages are built from Markdown by scripts/build-help,
   so everything here styles plain elements inside .help-page. */
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 46rem); gap: 48px; padding: 48px 0 72px; }
.help-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 100px; }
.help-nav li { margin: 0 0 4px; }
.help-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 560; }
.help-nav a:hover { color: var(--green); }
.help-nav a[aria-current="page"] { color: var(--green); background: var(--mint); }
.help-page h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 20px; }
.help-page h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.help-page p, .help-page li { line-height: 1.65; }
.help-page ul, .help-page ol { padding-left: 1.25rem; margin: 10px 0; }
.help-page li { margin: 6px 0; }
.help-page a { color: var(--green); }
.help-page code { font-size: .9em; }
.help-page img { display: block; max-width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
/* A long OAuth client ID has no break points: wrap it anywhere, so it's
   all visible on a phone (selecting it still copies it whole). */
.help-page pre { white-space: pre-wrap; word-break: break-all; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: .88rem; }

@media (max-width: 980px) {
  .hero { padding-top: 70px; }
  .split { grid-template-columns: 1fr; }
  /* .hero-grid is already single-column at every width (see base rule);
     this still clips .product-frame's fixed 790px once .wrap (capped at
     var(--max)) narrows below that, ahead of the 720px breakpoint's
     transform: scale(). */
  .product-window { overflow: hidden; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .install-layout { grid-template-columns: 1fr; }
  .install-tabs { grid-template-columns: repeat(3, 1fr); }
  .install-tab { justify-content: center; }
}
@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { height: 66px; }
  .nav-links > a:not(.button) { display: none; }
  .nav .button { min-height: 42px; padding-inline: 15px; }
  .hero { padding: 58px 0 50px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1.04rem; }
  .hero-actions .button { width: 100%; }
  .product-frame { width: 720px; padding: 16px; transform: scale(.72); transform-origin: left top; margin-bottom: -118px; }
  .proof { padding-top: 10px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child, .proof-item:last-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .section, .install { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .feature { padding: 24px; }
  .feature-icon { margin-bottom: 24px; }
  .report-card { padding: 25px; }
  .install-tabs { grid-template-columns: 1fr; }
  .install-tab { justify-content: flex-start; }
  .install-panel { padding: 27px 23px; }
  .cta-box { align-items: flex-start; flex-direction: column; padding: 34px 28px; }
  .cta-box .button { width: 100%; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0 56px; }
  .help-nav ul { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .help-nav li { margin: 0; }
  .help-nav a { padding: 6px 10px; border: 1px solid var(--line); }
}
@media (max-width: 430px) {
  .brand span { font-size: 1.12rem; }
  .brand-mark { width: 28px; height: 28px; }
  .product-frame { transform: scale(.52); margin-bottom: -205px; }
  .report-line { grid-template-columns: 1fr 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
