/* Direction: Firstlight — a sunrise onboarding desk. Frosted glass over peach-to-lilac
   light, rounded display type, one emerald accent for ticks, rings and the main button. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #fff8f3;
  --surface: #ffffff;
  --surface-2: #fdf2f6;
  --border: #ecdde6;
  --border-strong: #b3b4af;
  --ink: #2c2340;
  --muted: #6a6183;
  --accent: #0f9b74;
  --accent-hover: #0d8463;
  --accent-ink: #021610;
  --accent-text: #0a7a5b;
  --accent-strong: #09634a;
  --accent-soft: #e2f6ee;
  --accent-border: #93ceba;
  --success: #0f9b74;
  --success-ink: #2c2340;
  --success-soft: #e2ede4;
  --success-strong: #0b6f53;
  --warning: #b06a0d;
  --warning-ink: #ffffff;
  --warning-soft: #f6e7d7;
  --warning-strong: #955a0b;
  --danger: #c0434c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e2df;
  --danger-strong: #b13e46;
  --chart-1: #0f9b74;
  --chart-2: #149ac4;
  --chart-3: #695eb3;
  --chart-4: #ca6fa2;
  --chart-5: #a44d1a;
  --chart-6: #969119;

  --font-display: "Quicksand", "Trebuchet MS", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --radius-card: 24px;
  --radius-btn: 999px;
  --radius-input: 14px;
  --card-pad: 1.5rem;
  --shadow-card: 0 22px 48px -28px rgba(44, 35, 64, 0.4);
  --x-peach: rgba(255, 176, 128, 0.34);
  --x-lilac: rgba(178, 152, 246, 0.3);
  --x-glow: rgba(255, 229, 183, 0.42);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #02100c;
  --surface: #1b2824;
  --surface-2: #0f1c18;
  --border: #25312e;
  --border-strong: #4e5855;
  --ink: #fff8f3;
  --muted: #9a9b97;
  --accent: #0f9b74;
  --accent-hover: #33aa89;
  --accent-ink: #021610;
  --accent-text: #22a37f;
  --accent-strong: #22a37f;
  --accent-soft: #052f23;
  --accent-border: #084f3b;
  --success: #0f9b74;
  --success-ink: #ffffff;
  --success-soft: #052f23;
  --success-strong: #22a37f;
  --warning: #b06a0d;
  --warning-ink: #ffffff;
  --warning-soft: #28240c;
  --warning-strong: #bc8132;
  --danger: #c0434c;
  --danger-ink: #ffffff;
  --danger-soft: #2c1b1a;
  --danger-strong: #ce6d73;
  --chart-1: #0f9b74;
  --chart-2: #1eafdd;
  --chart-3: #7c72c9;
  --chart-4: #d276a9;
  --chart-5: #be6435;
  --chart-6: #a6a131;
}

/* Firstlight's own screens: the sunrise field, the frosted cards, the progress rings. */

.app-bg {
  background-color: var(--canvas);
  background-image:
    radial-gradient(1100px 640px at 6% -10%, var(--x-peach), transparent 70%),
    radial-gradient(940px 580px at 94% 2%, var(--x-lilac), transparent 72%),
    radial-gradient(760px 440px at 48% 112%, var(--x-glow), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.glass {
  background-color: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.glass-bar {
  background-color: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.lift {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 62px -30px rgba(44, 35, 64, 0.45);
}

.ring-fill {
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.9, 0.26, 1);
}

.page-in {
  animation: page-in 0.6s ease both;
}
@keyframes page-in {
  from {
    opacity: 0.3;
    transform: translateY(14px);
  }
}

.cheer {
  animation: cheer 3s ease-in-out infinite;
}
@keyframes cheer {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

.task-row {
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.task-row:hover {
  background-color: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  transform: translateX(3px);
}

.tick {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.task-row:active .tick {
  transform: scale(0.88);
}

html.reduced-motion .page-in,
html.reduced-motion .cheer {
  animation: none;
}
html.reduced-motion .ring-fill,
html.reduced-motion .lift,
html.reduced-motion .task-row,
html.reduced-motion .tick {
  transition: none;
}
html.reduced-motion .lift:hover,
html.reduced-motion .task-row:hover {
  transform: none;
}
