/** @author Sreejith Sreenivasan */
/* Public-page foundations, independent of the family/admin application stylesheet. */

:root {
  color-scheme: light;
  --bg: #fff8f1;
  --surface: #ffffff;
  --surface-strong: #f0e9ff;
  --ink: #111c3a;
  --muted: #675f7a;
  --line: #eadff4;
  --primary: #6d4adf;
  --primary-strong: #5736c4;
  --accent: #ff970f;
  --accent-strong: #f07800;
  --warning-surface: #fff1dc;
  --warning-ink: #a84d00;
  --input-bg: rgba(255, 255, 255, 0.92);
  --body-gradient: linear-gradient(135deg, rgba(255, 151, 15, 0.1) 0%, rgba(240, 233, 255, 0.52) 34%, rgba(255, 248, 241, 1) 72%);
  --ok: #4b8d66;
  --panel-gradient: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-strong) 24%, var(--surface)));
  --shadow: 0 18px 50px rgba(60, 36, 112, 0.12);
  --shadow-soft: 0 8px 24px rgba(60, 36, 112, 0.08);
  --radius-card: 8px;
  --radius-control: 12px;
  --radius-button: 14px;
  --motion-gentle: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-family-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-heading: Nunito, var(--font-family-body);
  --font-family-brand: Nunito, var(--font-family-body);
  --font-weight-body: 400;
  --font-weight-button: 600;
  --font-weight-heading: 700;
  --font-weight-logo: 800;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14111b;
  --surface: #201b2a;
  --surface-strong: #2b2438;
  --ink: #f8f4ff;
  --muted: #bdb3cc;
  --line: rgba(248, 244, 255, 0.13);
  --primary: #a892ff;
  --primary-strong: #ded4ff;
  --accent: #ff970f;
  --accent-strong: #ffc06a;
  --warning-surface: rgba(255, 151, 15, 0.12);
  --warning-ink: #ffd197;
  --input-bg: #17131f;
  --body-gradient: linear-gradient(135deg, #17121f 0%, #201a2a 46%, #111018 100%);
  --panel-gradient: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-strong) 44%, var(--surface)));
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--body-gradient);
  color: var(--ink);
}

body.progress-active,
body.message-active {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-family-heading);
}

button {
  border: 0;
  cursor: pointer;
  font-weight: var(--font-weight-button);
  transition:
    background var(--motion-gentle),
    border-color var(--motion-gentle),
    color var(--motion-gentle),
    box-shadow var(--motion-gentle),
    transform var(--motion-gentle);
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:not(:disabled):active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:focus-visible {
  outline: 3px solid rgba(255, 151, 15, 0.34);
  outline-offset: 2px;
}

.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  button:not(:disabled):hover {
    transform: none;
  }

  .landing-button:hover {
    transform: none;
  }
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.landing-body {
  background: var(--bg);
}


@media (max-width: 680px) {
  .landing-body { width: 100vw; max-width: 100vw; overflow-x: hidden; }
}
