/*
  Shared styles for apps/coming-soon (index, terms, privacy).
  Served under MarketingSiteStack's CSP (`default-src 'self'`, no inline script):
  keep every asset same-origin.

  Look and feel mirrors apps/marketing after the Ratik Scheduling rebrand: the
  values below are copied from apps/marketing/src/theme/theme.css (navy "ink"
  sections, amber highlight, warm off-white canvas — see docs/design/brand.md).
  Keep them in sync if that theme changes.
*/
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
:root {
  /* Ink + brand ramps (apps/marketing theme.css) */
  --ink-0: #ffffff;
  --ink-50: #f4f4ef;
  --ink-200: #e0e0d8;
  --ink-300: #cbcbc2;
  --ink-500: #737d8c;
  --ink-600: #545d6b;
  --ink-900: #131a22;
  --brand-400: #f8b420;
  --brand-500: #f2a300;
  --brand-700: #a66e00;

  /* Light surfaces (legal pages) */
  --canvas: var(--ink-50);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-600);
  --fg-subtle: var(--ink-500);
  --border: var(--ink-200);
  --link: var(--brand-700);

  /* Dark "ink" sections (nav, hero, footer) */
  --ink-bg: var(--ink-900);
  --ink-bg-2: #1b242f;
  --ink-fg: var(--ink-0);
  --ink-fg-muted: var(--ink-300);
  --ink-border: #2a3441;
  --highlight: var(--brand-500);
  --highlight-hover: var(--brand-400);
  --on-highlight: var(--ink-900);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --radius-md: 8px;
  --shadow-md: 0 8px 24px rgba(19, 26, 34, 0.08), 0 2px 8px rgba(19, 26, 34, 0.06);
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.home {
  background: linear-gradient(to bottom, var(--ink-bg), var(--ink-bg-2));
  color: var(--ink-fg);
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav — the marketing site's dark top bar */
.nav {
  background: var(--ink-bg);
  border-bottom: 1px solid var(--ink-border);
  color: var(--ink-fg);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Logo (mark + wordmark), same geometry as apps/marketing Logo.tsx */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-fg);
}
.logo svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.logo .cell {
  fill: currentColor;
}
.logo .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.logo .hi {
  fill: var(--highlight);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.logo-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
}
.btn-highlight {
  background: var(--highlight);
  color: var(--on-highlight);
  box-shadow: var(--shadow-md);
}
.btn-highlight:hover {
  background: var(--highlight-hover);
}
.btn-outline {
  border: 1px solid var(--ink-border);
  color: var(--ink-fg);
}
.btn-outline:hover {
  border-color: var(--highlight);
}

/* Home hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
}
.hero .wrap {
  padding-top: 96px;
  padding-bottom: 112px;
}
.hero-copy {
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before {
    animation: none;
  }
}
.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero h1 span {
  color: var(--brand-400);
}
.lede {
  max-width: 46ch;
  margin: 24px 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-fg-muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.tagline {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-fg-muted);
  opacity: 0.7;
}

/* Footer — dark, like the marketing site */
.site-footer {
  background: var(--ink-bg);
  border-top: 1px solid var(--ink-border);
  color: var(--ink-fg-muted);
  padding: 32px 0;
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer nav a:hover {
  color: var(--ink-fg);
}
.site-footer .legal {
  width: 100%;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
}

/* Legal pages (light canvas between the dark nav and footer) */
.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  line-height: 1.6;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.doc .updated {
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}
.doc h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.doc p,
.doc li {
  color: var(--fg-muted);
}
.doc strong {
  color: var(--fg);
  font-weight: 600;
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li {
  margin: 6px 0;
}
.doc a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc .caps {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .hero .wrap {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .doc {
    padding: 40px 16px 56px;
  }
  .site-footer nav {
    gap: 16px;
  }
}
