/* Direction: Soft Glass Dawn — a peach-into-lilac sky, frosted cards, rounded
   display type, one deep teal accent for money, reminders and the Add 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: #fdeee6;
  --surface: #fffaf7;
  --surface-2: #f5ebfa;
  --border: #e7d8e6;
  --border-strong: #b2aba6;
  --ink: #2a2144;
  --muted: #645879;
  --accent: #0e6f72;
  --accent-hover: #0c5e61;
  --accent-ink: #ffffff;
  --accent-text: #0a5a5d;
  --accent-strong: #084f52;
  --accent-soft: #d6ebeb;
  --accent-border: #91b5b2;
  --success: #2d7a53;
  --success-ink: #ffffff;
  --success-soft: #e4e0d4;
  --success-strong: #29704c;
  --warning: #9d6310;
  --warning-ink: #ffffff;
  --warning-soft: #f1ddcc;
  --warning-strong: #84540e;
  --danger: #ab3547;
  --danger-ink: #ffffff;
  --danger-soft: #f3d8d3;
  --danger-strong: #ab3547;
  --chart-1: #0e6f72;
  --chart-2: #487bc7;
  --chart-3: #6a317a;
  --chart-4: #b55157;
  --chart-5: #664604;
  --chart-6: #4e8a39;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --radius-card: 26px;
  --radius-btn: 999px;
  --radius-input: 16px;
  --card-pad: 1.5rem;
  --shadow-card: 0 20px 55px -28px rgba(66, 42, 92, 0.45);
  --x-glass: rgba(255, 255, 255, 0.58);
  --x-glass-strong: rgba(255, 255, 255, 0.8);
  --x-glass-dark: rgba(40, 32, 62, 0.55);
  --x-line: rgba(255, 255, 255, 0.72);
  --x-line-dark: rgba(255, 255, 255, 0.14);
  --x-glow: rgba(14, 111, 114, 0.38);
  --gradient-dawn: linear-gradient(162deg, #fde2d0 0%, #fbdcea 40%, #eddcf7 74%, #e3e7fc 100%);
  --gradient-dusk: linear-gradient(162deg, #2a2142 0%, #332446 45%, #272a4d 100%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #021010;
  --surface: #1b2828;
  --surface-2: #0f1c1c;
  --border: #253131;
  --border-strong: #4e5858;
  --ink: #fdeee6;
  --muted: #999590;
  --accent: #0e6f72;
  --accent-hover: #328587;
  --accent-ink: #ffffff;
  --accent-text: #52999a;
  --accent-strong: #52999a;
  --accent-soft: #052526;
  --accent-border: #073b3c;
  --success: #2d7a53;
  --success-ink: #ffffff;
  --success-soft: #0b271f;
  --success-strong: #5b987a;
  --warning: #9d6310;
  --warning-ink: #ffffff;
  --warning-soft: #242210;
  --warning-strong: #b38645;
  --danger: #ab3547;
  --danger-ink: #ffffff;
  --danger-soft: #27181c;
  --danger-strong: #c36f7b;
  --chart-1: #227b7e;
  --chart-2: #5487d5;
  --chart-3: #a065b2;
  --chart-4: #c35d63;
  --chart-5: #a77613;
  --chart-6: #5a9646;
}

/* Renewly's own surfaces: frosted glass, a lifting card, a due-soon glow. */

.glass {
  @apply bg-[var(--x-glass)] dark:bg-[var(--x-glass-dark)] border border-[var(--x-line)] dark:border-[var(--x-line-dark)];
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-card);
}

.glass-thin {
  @apply bg-[var(--x-glass)] dark:bg-[var(--x-glass-dark)] border border-[var(--x-line)] dark:border-[var(--x-line-dark)];
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.lift {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease;
}
.lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px -30px var(--x-glow);
}

.due-glow {
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 34px -8px var(--x-glow);
  animation: dueGlow 3s ease-in-out infinite;
}
@keyframes dueGlow {
  0%, 100% { box-shadow: 0 0 0 1.5px var(--accent), 0 0 24px -12px var(--x-glow); }
  50% { box-shadow: 0 0 0 1.5px var(--accent), 0 0 46px -4px var(--x-glow); }
}

.page-in {
  animation: pageIn 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes pageIn {
  from { opacity: 0.4; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.timeline-rail {
  background: linear-gradient(to bottom, var(--accent-soft), transparent);
}

html.reduced-motion .page-in,
html.reduced-motion .due-glow {
  animation: none;
}
html.reduced-motion .lift:hover {
  transform: none;
}
