/* operatrapp.com: the coming soon page and the policies. The colors, radii and type are the app's
   own (packages/design-tokens), copied here as plain values because this site has no build step. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f6f6f6;
  --card: #ffffff;
  --background: #ffffff;
  --surface: #f6f6f6;
  --hover: #ededed;
  --selected: #eaeaea;
  --text: #242424;
  --muted: #6b6b6b;
  --border: #e8e8e8;
  --border-strong: #d5d5d5;
  --primary: #222222;
  --on-primary: #ffffff;
  --focus: #3984d4;
  --critical-text: #b3342a;
  --card-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(0, 0, 0, 0.035), 0 10px 28px -18px rgba(0, 0, 0, 0.18);
  --hero-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(0, 0, 0, 0.05), 0 26px 50px -22px rgba(0, 0, 0, 0.26);
  --measure: 65ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #212121;
    --card: #2e2e2e;
    --background: #212121;
    --surface: #2b2b2b;
    --hover: #343434;
    --selected: #303030;
    --text: #eeeeee;
    --muted: #b1b1b1;
    --border: #383838;
    --border-strong: #505050;
    --primary: #f1f1f1;
    --on-primary: #1b1b1b;
    --critical-text: #f5a398;
    --card-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 32px -18px rgba(0, 0, 0, 0.55);
    --hero-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.35), 0 26px 50px -20px rgba(0, 0, 0, 0.72);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -0.011em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input { font: inherit; letter-spacing: inherit; }
a, button, input, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:is(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* The wordmark: Inter Semibold outlines from packages/design-tokens, in the theme's ink. */
.wordmark { display: block; height: auto; overflow: visible; fill: currentColor; }

/* Buttons: pill shaped, 50 pixels for the main action. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: var(--text); font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.2px;
  text-align: center; cursor: pointer;
}
.button.primary { background: var(--primary); color: var(--on-primary); }
/* Work in progress keeps the button focusable and its label; a second press does nothing. */
.button[aria-disabled="true"] { opacity: 0.55; cursor: default; }

/* The footer: the company and the two policies, on every page. */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 20px;
  padding: 8px 16px 16px; color: var(--muted); font-size: 13px; line-height: 18px; text-align: center;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a[aria-current="page"] { color: var(--text); }

/* Coming soon: one card on the soft gray page, centered. */
.hero { display: grid; flex: 1; place-items: center; padding: 48px 16px 24px; }
.hero-card {
  width: 100%; max-width: 440px; padding: 40px 24px 24px; border-radius: 20px;
  background: var(--card); box-shadow: var(--hero-shadow); text-align: center;
}
.hero-mark { margin: 0 0 32px; line-height: 0; }
.hero-mark .wordmark { width: 176px; margin-inline: auto; }
.hero-status { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.4px; }
.hero-line { max-width: 30ch; margin: 8px auto 0; color: var(--muted); font-size: 16px; line-height: 22px; text-wrap: balance; }
.hero-card .button { width: 100%; margin-top: 32px; }
@media (min-width: 761px) {
  .hero-card { padding: 56px 40px 40px; }
  .hero-mark { margin-bottom: 40px; }
  .hero-mark .wordmark { width: 208px; }
}

/* The waitlist: a centered popup with the app's dialog size, fade and tiny scale. */
.waitlist {
  width: min(440px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 1px solid var(--border); border-radius: 20px; background: var(--background); color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
}
.waitlist::backdrop { background: rgb(0 0 0 / 0.4); }
.waitlist-inner { position: relative; padding: 20px 24px 24px; }
.waitlist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.waitlist-head h2 { margin: 0; font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.4px; }
.waitlist-head h2:focus { outline: none; }
.waitlist-line { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.close-button {
  display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin: -4px -8px -4px 0; padding: 0; border: 1px solid transparent; border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.close-button:hover { background: var(--hover); }
.close-button:active { background: var(--selected); }
.waitlist form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: 14px; line-height: 19px; font-weight: 600; }
.field > legend { margin-bottom: 8px; }
.field input:is([type="text"], [type="email"]) {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--background); color: var(--text); font-size: 16px; line-height: 22px;
}
.field input[aria-invalid="true"] { border-color: var(--critical-text); }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: 12px; font-size: 15px; line-height: 22px; cursor: pointer;
}
.choice:hover { background: var(--hover); }
.choice:has(input:checked) { border-color: var(--text); background: var(--selected); }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.form-message { margin: 0; color: var(--critical-text); font-size: 14px; line-height: 19px; }
.form-message:empty { margin-top: -16px; }
.waitlist .button { width: 100%; }
.legal-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 18px; text-align: center; }
.legal-note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.waitlist-done { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 22px; }
/* For bots only: a field people never see or reach. */
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .waitlist[open] { animation: dialog-in 140ms ease-out; transform-origin: center; }
  .waitlist[open]::backdrop { animation: backdrop-in 140ms ease-out; }
  .waitlist[data-exiting="true"] { animation: dialog-out 100ms ease-in forwards; }
  .waitlist[data-exiting="true"]::backdrop { animation: backdrop-out 100ms ease-in forwards; }
}
@keyframes dialog-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: scale(1); } }
@keyframes dialog-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.985); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }

/* Terms and Privacy: the wordmark home, then the policy at a comfortable reading width. */
.legal-header { padding: 16px 16px 0; }
.legal-header-inner, .legal-body { max-width: var(--measure); margin-inline: auto; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; color: var(--text); }
.home-link .wordmark { width: 96px; }
.legal { flex: 1; width: 100%; padding: 24px 16px 48px; }
.legal-body h1 { margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.6px; text-wrap: balance; }
.legal-body .effective-date { margin: 8px 0 32px; color: var(--muted); font-size: 14px; line-height: 19px; }
.legal-body .effective-date em { font-style: normal; }
.legal-body h2 { margin: 40px 0 12px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.4px; text-wrap: balance; }
.legal-body h3 { margin: 28px 0 8px; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.2px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 26px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 20px; padding-left: 22px; }
.legal-body li { margin: 6px 0; padding-left: 4px; }
.legal-body li::marker { color: var(--muted); }
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body > :last-child { margin-bottom: 0; }
.contact-table-wrap { margin: 16px 0 20px; overflow: hidden; border-radius: 12px; background: var(--card); box-shadow: var(--card-shadow); }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th, .contact-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 21px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.contact-table tr:last-child :is(th, td) { border-bottom: 0; }
.contact-table th { width: 38%; color: var(--muted); font-weight: 400; }
.legal-body .small-note { color: var(--muted); font-size: 14px; line-height: 20px; }
/* On a phone each fact stacks under its label, so the address and email keep whole lines. */
@media (max-width: 480px) {
  .contact-table, .contact-table tbody { display: block; }
  .contact-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .contact-table tr:last-child { border-bottom: 0; }
  .contact-table th, .contact-table td { display: block; width: auto; padding: 0; border: 0; }
  .contact-table th { margin-bottom: 2px; font-size: 13px; line-height: 18px; }
}
/* From the medium window band (761 pixels), the policy sits on a white card. */
@media (min-width: 761px) {
  .legal-header { padding-top: 32px; }
  .legal-header-inner { max-width: calc(var(--measure) + 112px); padding-inline: 56px; }
  .legal { padding: 24px 16px 64px; }
  .legal-body { max-width: calc(var(--measure) + 112px); padding: 56px; border-radius: 20px; background: var(--card); box-shadow: var(--card-shadow); }
  .legal-body h1 { font-size: 34px; line-height: 41px; letter-spacing: -0.8px; }
  .contact-table-wrap { background: var(--surface); box-shadow: none; }
}
@media (forced-colors: active) {
  .hero-card, .legal-body, .waitlist, .choice, .close-button { border: 1px solid CanvasText; }
}
