/* One stylesheet for all three pages. Deliberately small: reviewers load this
   on unknown connections, and a marketing page that needs a framework to
   render a paragraph is a liability, not an asset. */

:root {
  /* Light, low-chroma, near-black accent. The same tokens as the application
     (web/src/app/globals.css) so the marketing site and the product do not
     read as two different companies -- when one moves, move the other. */
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f7f9;
  --sunken: #f8f9fb;
  --border: #e4e7ec;
  --border-strong: #d3d8e0;

  --text: #11181c;
  --muted: #5b6672;
  --faint: #8a94a1;

  /* The accent is the button colour, not a brand wash. Links get their own
     blue because near-black does not read as clickable in running text. */
  --accent: #11181c;
  --accent-hover: #000000;
  --on-accent: #ffffff;
  --link: #1a5fd0;
  /* The logo's merged output bar. Kept as its own token because --accent is
     now near-black: painting the mark with it would erase the one piece of
     brand colour on the page, and the app icon would stop matching. */
  --brand: #3987e5;

  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 14px;

  /* Elevation. Four steps, each a two-layer shadow: a tight contact shadow
     that grounds the element and a wider ambient one that gives it height.
     A single blurred shadow reads as a smudge at low opacity on white, which
     is why the previous one-layer --shadow-sm looked flat. */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 4px 12px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 12px 28px -6px rgba(16, 24, 40, 0.10);
  --shadow-xl:
    0 4px 8px rgba(16, 24, 40, 0.04),
    0 24px 56px -12px rgba(16, 24, 40, 0.16);

  /* Brand tints, derived from --brand so one change moves all of them. */
  --brand-tint: color-mix(in srgb, var(--brand) 8%, #fff);
  --brand-edge: color-mix(in srgb, var(--brand) 28%, transparent);
  --brand-ink: #1d6fd0;

  /* Motion. Durations are named for intent, not length, so a change of pace
     is one edit. The easings are asymmetric on purpose: things should leave
     faster than they arrive. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 520ms;

  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus.
 *
 * The pages relied on the browser default, which is a 1px ring in the UA's own
 * blue -- inconsistent between browsers and, on the near-black .btn, close to
 * invisible because it lands on a dark fill.
 *
 * Two-tone for the same reason as the app: a white separator immediately
 * outside the element, then the dark ring outside that, so one of the two
 * always contrasts with whatever is behind. Keep in step with
 * web/src/app/globals.css. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--on-accent);
  border-radius: 3px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

/* The two input strokes are muted and only the merged output bar is the
   accent -- the same treatment as the app icon, so the header mark and the
   OAuth consent-screen logo read as one brand. */
.brand .mark { width: 30px; height: 21px; flex: none; overflow: visible; color: var(--muted); }

nav.site { display: flex; align-items: center; gap: 22px; font-size: 14px; }
/* :not(.btn) matters. Without it this rule wins on specificity over .btn and
   paints the button's label muted grey on the accent background -- roughly
   1.7:1 contrast on the page's primary call to action. */
nav.site a:not(.btn) { color: var(--muted); }
nav.site a:not(.btn):hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--accent);
}
.btn:hover {
  text-decoration: none;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Secondary actions in the header. Same shape and rhythm as .btn so the three
   read as one group, but outlined rather than filled -- with three solid
   buttons side by side nothing is the primary action, and the eye has nowhere
   to land. Sign up stays filled; Book demo and Log in recede. */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.hero { padding: 88px 0 72px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.hero p.lede {
  margin: 0 0 32px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 58ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 40px 0 80px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

section.band { border-top: 1px solid var(--border); padding: 64px 0; }
section.band h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: -0.02em; }
section.band p { color: var(--muted); max-width: var(--measure); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Full width beneath the two inline spans: flex-basis 100% breaks it onto its
   own row without needing a wrapper element around the pair above it. Smaller
   and lighter than the links, because this is a statement of record rather
   than something a reader is being asked to act on. */
footer.site .disclaimer {
  flex-basis: 100%;
  margin: 20px 0 0;
  max-width: 68ch;
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.85;
}

/* Legal pages read as documents, not marketing. Narrow measure, generous
   leading, and headings that survive being skimmed by a reviewer. */
article.legal { padding: 56px 0 88px; max-width: var(--measure); }
article.legal h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; }
article.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
article.legal h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}
article.legal h3 { font-size: 16px; margin: 26px 0 8px; }
article.legal p, article.legal li { color: #33404a; }
article.legal ul { padding-left: 22px; }
article.legal li { margin-bottom: 8px; }
article.legal strong { color: var(--text); }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 640px) {
  nav.site { gap: 14px; font-size: 13px; }
  nav.site a.hide-sm { display: none; }
  .hero { padding: 56px 0 44px; }
}

/* A secondary call to action that stays visible on small screens. The
   .hide-sm treatment is for in-page anchors, which a phone user can reach by
   scrolling; a booking link has no such fallback, so hiding it removes the
   action entirely on the devices a good share of ad traffic arrives on. */
nav.site a.nav-cta {
  color: var(--text);
  font-weight: 500;
}
nav.site a.nav-cta:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  /* Tightened rather than dropped. */
  nav.site a.nav-cta { font-size: 13px; }
}
