/*
 * Preuvora Coming Soon page (founder directive, 20 Nov 2026).
 * Colours: the four approved brand values plus the app's existing derived neutrals and its
 * sign-in error pair (#a13336 on #fff0ef). Fonts: installed system fonts only, as in the app.
 */
:root {
  --ink: #0f1115;
  --green: #0e6b4f;
  --green-dark: #0b5740;
  --copper: #b87333;
  --canvas: #f2f2ef;
  --paper: #fefefe;
  --surface: #ffffff;
  --muted: #4a4d52;
  --line: #d6d6cf;
  --field: #6b6e73;
  --error: #a13336;
  --error-bg: #fff0ef;
  --font: "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--green);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/*
 * Layout (revision 4, founder feedback 20 Nov): the logo in its own top bar; below it the page
 * fills the rest of the screen. One column on phones; from 1024 px two columns whose edges line
 * up, the animation panel as tall as the text column and the scene as large as the panel allows.
 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.topbar-inner,
.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.topbar-inner {
  padding-block: 1rem;
}

.page {
  display: grid;
  flex: 1 0 auto;
  gap: 2.5rem;
  padding-block: 1rem 2.5rem;
  align-content: center;
}

@media (min-width: 640px) {
  .topbar-inner,
  .page {
    padding-inline: 2rem;
  }

  .topbar-inner {
    padding-block: 1.5rem;
  }

  .page {
    padding-block: 1.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .topbar-inner,
  .page {
    padding-inline: 3.5rem;
  }

  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-content: center;
    align-items: stretch;
    gap: 3.5rem;
    padding-block: 0.5rem 3rem;
  }
}

/* Brand: the approved mark beside the live wordmark (the app's compact logo). */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
}

.brand-name {
  color: var(--copper);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

@media (min-width: 1024px) {
  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1.875rem;
  }
}

/* The supporting headline: the largest type on the page, on two lines. */
.intro {
  container-type: inline-size;
}

/* Sized to its column, so each statement stays on one line wherever it fits. */
.headline {
  margin: 0;
  font-size: clamp(2rem, 6.8cqi, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.headline-line {
  display: block;
  text-wrap: balance;
}

.headline-accent {
  color: var(--green);
}

/* The official slogan: bold, set once, in ink as in the approved lockup. */
.slogan {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding-bottom: 0.375rem;
  border-bottom: 3px solid var(--copper);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Coming Soon and the form share one panel, so they hold their own weight. */
.signup {
  margin-top: 2.25rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}

@media (min-width: 640px) {
  .signup {
    max-width: 560px;
    padding: 1.75rem;
  }
}

.soon {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.form {
  margin: 0;
}

.label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

.input[aria-invalid="true"] {
  border-color: var(--error);
}

.button {
  min-height: 52px;
  padding: 0.75rem 1.375rem;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--green-dark);
}

.button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.85;
}

.error {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  font-weight: 600;
}

.consent {
  margin: 0.875rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* The honeypot: out of sight and out of the accessibility tree. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.done {
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--green);
  border-radius: 4px;
  background: #edf5f0;
}

.done-title {
  margin: 0;
  color: #1d2a26;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.done-title:focus {
  outline: none;
}

.done-text {
  margin: 0.375rem 0 0;
  color: #25332f;
  font-size: 1rem;
}

/* Announcements for screen readers; the same words are already on screen. */
.status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* The animated workplace. */
.visual {
  position: relative;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--canvas);
}

@media (min-width: 640px) {
  .visual {
    padding: 1.5rem;
  }
}

.scene {
  display: block;
  width: 100%;
  height: auto;
}

/* Desktop: the text column spans the panel's height, headline level with the panel's top edge
   and the form level with its bottom edge. */
@media (min-width: 1024px) {
  .intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }

  .intro > * {
    max-width: 100%;
  }

  .headline {
    align-self: stretch;
  }

  .signup {
    width: 100%;
  }

  .visual {
    align-self: center;
  }
}

/* SVG parts. The scene's text uses the page font; every colour is a brand value or app neutral. */
.scene {
  font-family: var(--font);
}

.grid-line {
  fill: none;
  stroke: #e3e3dc;
  stroke-width: 1;
}

.marks path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 2;
}

.shadow {
  fill: rgba(15, 17, 21, 0.16);
}

.frame-fill {
  fill: var(--surface);
}

.frame-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.bar-fill,
.bar-cover {
  fill: var(--ink);
}

.dot-brand {
  fill: var(--copper);
}

.dot-live {
  fill: #3fb68b;
}

.t-bar {
  fill: #ecece7;
  font-size: 13px;
  font-weight: 600;
}

.t-bar-muted {
  fill: #b9bcc2;
  font-size: 11px;
}

.t-clock {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rail-fill {
  fill: var(--canvas);
}

.tile {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}

.tile-on {
  fill: var(--green);
  stroke: var(--green);
}

.glyph {
  fill: none;
  stroke: var(--field);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph-on {
  stroke: #ffffff;
}

.panel {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}

.panel-approval {
  stroke: var(--copper);
  stroke-width: 1.5;
}

.rule {
  stroke: #ecece6;
  stroke-width: 1;
}

.count {
  fill: var(--canvas);
}

.t-head {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.t-count {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.t-row {
  fill: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.t-sub {
  fill: #6b6e73;
  font-size: 10.5px;
}

.t-item {
  fill: #3a3d44;
  font-size: 11px;
}

.t-initials {
  fill: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.avatar.a1 {
  fill: var(--green);
}

.avatar.a2 {
  fill: var(--copper);
}

.avatar.a3 {
  fill: #3a3d44;
}

.pill {
  fill: #ecece6;
}

.pill-green {
  fill: #d3e6de;
}

.pill-copper {
  fill: #f3e3d3;
}

.pill-new {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.25;
}

.t-pill {
  fill: #4a4d52;
  font-size: 10px;
  font-weight: 700;
}

.t-pill-green {
  fill: var(--green-dark);
}

.t-pill-copper {
  fill: #8a4f1d;
}

.glow {
  fill: #edf5f0;
  opacity: 0;
}

.box {
  fill: var(--surface);
  stroke: #b9bcc2;
  stroke-width: 1.5;
}

.check-disc {
  fill: var(--green);
}

.check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action {
  fill: var(--green);
}

.t-action {
  fill: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.link {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.75;
  stroke-dasharray: 1 1.01;
}

.pulse {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.06 1;
  stroke-dashoffset: 0.06;
  opacity: 0;
}

.toast-fill {
  fill: var(--ink);
}

.t-toast {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

/* The still scene (reduced motion): the finished workday. */
.old,
.clock-1,
.clock-2,
.toast {
  opacity: 0;
}

/*
 * Motion: one 14 second cycle. The window draws; the title bar and applications arrive; the
 * queue and records assemble; work arrives; the applications connect; the checks tick, the
 * approval turns green, a notification arrives and the ticket resolves while the company clock
 * runs; the scene holds, clears and rebuilds. It loops without a pause control (founder decision
 * 20 Nov); reduced motion shows the finished scene, still.
 */
@media (prefers-reduced-motion: no-preference) {
  .anim-a,
  .anim-b,
  .anim-c,
  .anim-d,
  .anim-e,
  .anim-f,
  .old,
  .new,
  .clock-1,
  .clock-2,
  .clock-3,
  .toast,
  .glow {
    animation: 14s cubic-bezier(0.2, 0.7, 0.2, 1) infinite both;
    transform-box: fill-box;
    transform-origin: center;
  }

  .anim-a { animation-name: phase-a; }
  .anim-b { animation-name: phase-b; }
  .anim-c { animation-name: phase-c; }
  .anim-d { animation-name: phase-d; }
  .anim-e { animation-name: phase-e; }
  .anim-f { animation-name: phase-f; }
  .old { animation-name: swap-old; }
  .new { animation-name: swap-new; }
  .clock-1 { animation-name: clock-1; }
  .clock-2 { animation-name: clock-2; }
  .clock-3 { animation-name: clock-3; }
  .toast { animation-name: toast; }
  .glow { animation-name: glow; }

  .frame-line {
    animation: draw-a 14s cubic-bezier(0.45, 0, 0.2, 1) infinite both;
  }

  .link {
    animation: draw-e 14s cubic-bezier(0.45, 0, 0.2, 1) infinite both;
  }

  .pulse {
    animation: pulse 14s linear infinite both;
  }

  /* Small offsets inside a phase. */
  .dl1 { animation-delay: 0.25s; }
  .dl2 { animation-delay: 0.5s; }
  .dl3 { animation-delay: 0.8s; }
  .dl4 { animation-delay: 1.1s; }

  .visual.is-offscreen * {
    animation-play-state: paused !important;
  }
}

/* Reduced motion: the finished workplace, still. No loop. */
@media (prefers-reduced-motion: reduce) {
  .link {
    stroke-dasharray: none;
  }

  .pulse {
    display: none;
  }
}

@keyframes phase-a {
  0% { opacity: 0; transform: translateY(10px); }
  6% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

@keyframes phase-b {
  0%, 7% { opacity: 0; transform: translateY(10px); }
  13% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

@keyframes phase-c {
  0%, 14% { opacity: 0; transform: translateY(12px); }
  20% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

@keyframes phase-d {
  0%, 22% { opacity: 0; transform: translateX(-14px); }
  28% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

@keyframes phase-e {
  0%, 36% { opacity: 0; transform: translateY(-10px); }
  41% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

@keyframes phase-f {
  0%, 46% { opacity: 0; transform: scale(0.5); }
  49% { opacity: 1; transform: scale(1.15); }
  51% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

/* A status changes: the old pill gives way to the new one. */
@keyframes swap-old {
  0%, 56% { opacity: 1; }
  59%, 100% { opacity: 0; }
}

@keyframes swap-new {
  0%, 56% { opacity: 0; transform: scale(0.85); }
  59% { opacity: 1; transform: scale(1.06); }
  61%, 100% { opacity: 1; transform: none; }
}

/* The company clock: 09:00, 09:15, 09:30. */
@keyframes clock-1 {
  0%, 40% { opacity: 1; }
  42%, 100% { opacity: 0; }
}

@keyframes clock-2 {
  0%, 40% { opacity: 0; }
  42%, 62% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes clock-3 {
  0%, 62% { opacity: 0; }
  64%, 86% { opacity: 1; }
  88%, 100% { opacity: 0; }
}

@keyframes toast {
  0%, 60% { opacity: 0; transform: translateY(14px); }
  64% { opacity: 1; transform: none; }
  77% { opacity: 1; transform: none; }
  81%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes glow {
  0%, 38% { opacity: 0; }
  42%, 52% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes draw-a {
  0% { stroke-dashoffset: 1; opacity: 1; }
  8% { stroke-dashoffset: 0; opacity: 1; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  88% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes draw-e {
  0%, 30% { stroke-dashoffset: 1; opacity: 1; }
  38% { stroke-dashoffset: 0; opacity: 1; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  88% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

/* Signals travel along the connections while the work is live. */
@keyframes pulse {
  0%, 40% { stroke-dashoffset: 0.06; opacity: 0; }
  41% { stroke-dashoffset: 0.06; opacity: 1; }
  50% { stroke-dashoffset: -1; opacity: 1; }
  51% { stroke-dashoffset: 0.06; opacity: 0; }
  60% { stroke-dashoffset: 0.06; opacity: 0; }
  61% { stroke-dashoffset: 0.06; opacity: 1; }
  70% { stroke-dashoffset: -1; opacity: 1; }
  71%, 100% { stroke-dashoffset: 0.06; opacity: 0; }
}

/* The privacy notice page. */
.page-text {
  display: block;
  flex: 0 0 auto;
  max-width: 720px;
  min-height: 0;
  padding-top: 2.5rem;
}

.text .brand {
  margin-bottom: 2rem;
}

.text-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  line-height: 1.15;
}

.draft {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.375rem 0.75rem;
  border-left: 4px solid var(--copper);
  background: var(--canvas);
  font-weight: 600;
}
