:root {
  --primary: #1e3a8a;
  --secondary: #38bdf8;
  --accent-sun: #facc15;
  --rain-blue: #0ea5e9;
  --background: #f8fafc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 30px rgba(30, 58, 138, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --container: 1180px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 42%, #eef5ff 100%);
  color: var(--text);
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  transform: none;
  opacity: 0.7;
  cursor: wait;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.28);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.16));
  color: var(--primary);
  border-color: rgba(56, 189, 248, 0.18);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border-color: var(--border);
}

.btn-surface {
  background: rgba(241, 245, 249, 0.9);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-sm {
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
}

.btn-md {
  padding: 0.95rem 1.35rem;
}

.input,
.select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field-label {
  font-weight: 600;
  color: var(--text);
}

.field-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.check-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.helper-link {
  color: var(--primary);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-default {
  background: rgba(226, 232, 240, 0.72);
  color: var(--text);
}

.badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  display: inline-block;
  line-height: 1;
  font-size: 1.1rem;
  color: var(--primary);
}

.brand-footer .brand-icon,
.sidebar-brand .brand-icon {
  width: 2.55rem;
  height: 2.55rem;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-panel a:not(.btn) {
  color: var(--muted);
  font-weight: 600;
}

.nav-panel a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle.is-open span:first-child {
  transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: rotate(-45deg);
}

.landing-main {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 4rem 0 3rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.6;
}

.hero::before {
  inset: 2rem auto auto -6rem;
  width: 16rem;
  height: 16rem;
  background: rgba(56, 189, 248, 0.18);
}

.hero::after {
  inset: auto -4rem 10rem auto;
  width: 14rem;
  height: 14rem;
  background: rgba(250, 204, 21, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  margin-top: 0.8rem;
  max-width: 12ch;
}

.hero-copy p {
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  padding: 1rem;
}

.hero-stack {
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}

.hero-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(30, 58, 138, 0.06));
  z-index: -1;
}

.hero-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hero-summary h3 {
  font-size: 1.35rem;
  margin-top: 0.45rem;
}

.hero-weather {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1.6rem 0;
}

.hero-temp {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-timeline {
  display: grid;
  gap: 0.8rem;
}

.hero-timeline-item,
.email-timeline-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-timeline-item:last-child,
.email-timeline-row:last-child {
  border-bottom: 0;
}

.hero-recommendation {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(56, 189, 248, 0.08));
}

.hero-recommendation span,
.email-recommendation span,
.metric span,
.weekly-card span,
.location-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-pill {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--rain-blue);
  font-weight: 700;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 0.65rem;
}

.feature-grid,
.steps-grid,
.use-case-grid,
.pricing-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.step-card,
.use-case-card,
.pricing-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-card);
}

.feature-card h3,
.step-card h3,
.pricing-card h3 {
  margin: 0.7rem 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(30, 58, 138, 0.08));
  color: var(--primary);
  font-weight: 800;
}

.use-case-card {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  padding: 1.15rem;
}

.email-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.email-sidecopy {
  padding: 1.5rem;
}

.email-preview {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.email-header,
.card-head,
.dashboard-section-head,
.location-card-head,
.inline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.email-timeline {
  margin: 1rem 0 1.2rem;
}

.email-recommendation {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(14, 165, 233, 0.08);
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  display: grid;
  gap: 1rem;
}

.pricing-card ul {
  display: grid;
  gap: 0.75rem;
}

.pricing-card li {
  color: var(--muted);
  position: relative;
  padding-left: 1.3rem;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--secondary);
}

.pricing-card.is-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.95));
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-6px);
}

.pricing-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  width: fit-content;
}

.pricing-badge-sky {
  background: rgba(56, 189, 248, 0.12);
  color: var(--rain-blue);
}

.pricing-badge-sun {
  background: rgba(250, 204, 21, 0.14);
  color: #b45309;
}

.pricing-badge-blue {
  background: rgba(30, 58, 138, 0.12);
  color: var(--primary);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-grid h4 {
  margin-bottom: 1rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  color: var(--muted);
}

.footer-copy {
  max-width: 20rem;
}

.auth-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
}

.auth-grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
}

.auth-card {
  padding: 2rem;
}

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

.auth-copy {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.auth-copy h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 232, 240, 0.9);
}

.auth-alt {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--muted);
}

.auth-aside {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.12), transparent 20%),
    linear-gradient(145deg, rgba(30, 58, 138, 0.94), rgba(14, 165, 233, 0.86));
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: auto -6rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(8px);
}

.auth-aside p,
.auth-aside .muted,
.auth-aside .email-recommendation span {
  color: rgba(255, 255, 255, 0.78);
}

.auth-aside .email-preview {
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.auth-aside .email-preview h3,
.auth-aside .email-preview strong {
  color: var(--text);
}

.auth-aside .email-preview p,
.auth-aside .email-preview .email-timeline-row span,
.auth-aside .email-preview .email-recommendation span {
  color: var(--muted);
}

.auth-aside .email-preview .eyebrow {
  color: var(--primary);
}

.preview-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-stat {
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.16);
}

.mini-stat p {
  color: rgba(255, 255, 255, 0.78);
}

.onboarding-shell {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
}

.onboarding-card {
  width: min(860px, 100%);
  padding: 2rem;
}

.progress-block {
  display: grid;
  gap: 0.85rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.progress-segment {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
}

.progress-segment.is-complete {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.step-copy {
  margin: 1.8rem 0;
}

.step-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.step-body,
.step-footer {
  display: grid;
  gap: 1rem;
}

.step-footer {
  margin-top: 1.4rem;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-search {
  display: grid;
  gap: 1rem;
}

.search-results,
.frequent-grid,
.preference-grid,
.settings-grid,
.locations-list {
  display: grid;
  gap: 1rem;
}

.location-option,
.frequent-card,
.radio-tile,
.settings-section,
.location-manage-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.location-option:hover,
.frequent-card:hover,
.radio-tile:hover,
.location-manage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.location-option.is-selected,
.radio-tile.is-selected {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.location-option button {
  width: 100%;
  text-align: left;
}

.chip-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-weight: 700;
  color: var(--text);
}

.chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.frequent-card {
  display: grid;
  gap: 1rem;
}

.frequent-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.preference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-group {
  display: grid;
  gap: 0.8rem;
}

.radio-tile input {
  display: none;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.76);
}

.toggle {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: background var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 4px;
  left: 4px;
  border-radius: 999px;
  background: white;
  transition: transform var(--transition);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.toggle-copy {
  margin: 0;
  font-size: 0.92rem;
}

.empty-state {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.55);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(226, 232, 240, 0.76);
}

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

.sidebar-group {
  display: grid;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
}

.sidebar-foot {
  display: grid;
  gap: 1rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.user-pill strong,
.location-card strong,
.timeline-card strong,
.alert-card h3 {
  display: block;
}

.user-pill span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.2);
}

.avatar-small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.dashboard-main {
  padding: 1.5rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.dashboard-header-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dashboard-content {
  display: grid;
  gap: 1.2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.dashboard-grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.2rem;
}

.weather-card,
.recommendation-card,
.dashboard-panel,
.weekly-panel,
.locations-panel,
.settings-section {
  padding: 1.4rem;
}

.weather-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.2rem;
}

.weather-stack {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather-stack h3 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
}

.recommendation-card {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.95)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(250, 204, 21, 0.06));
}

.recommendation-card .weather-icon {
  justify-self: start;
}

.multi-location-grid,
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.location-card {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-card);
}

.location-card.is-selected {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.location-label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-weight: 700;
}

.location-card-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.timeline-wrap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.timeline-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: grid;
  gap: 0.6rem;
}

.timeline-time {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.mock-map {
  position: relative;
  min-height: 340px;
  padding: 1rem;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.72), rgba(239, 246, 255, 0.98)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 22%);
  border: 1px solid rgba(186, 230, 253, 0.9);
}

.mock-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
}

.mock-map-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.orbit-one {
  inset: 3rem 8rem 4rem 6rem;
}

.orbit-two {
  inset: 6rem 4rem 3rem 10rem;
}

.map-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  z-index: 2;
}

.map-pin span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: white;
}

.map-pin.is-active span {
  transform: rotate(-45deg) scale(1.1);
}

.map-legend {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  z-index: 3;
}

.map-legend div {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.72);
}

.map-legend span {
  color: var(--muted);
  font-size: 0.88rem;
}

.alert-list {
  display: grid;
  gap: 0.9rem;
}

.alert-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.alert-card p {
  margin: 0.7rem 0 0;
}

.weekly-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekly-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.88);
  display: grid;
  gap: 0.55rem;
  text-align: center;
}

.dashboard-panel {
  display: grid;
  gap: 1rem;
}

.dashboard-panel h2,
.weekly-panel h2,
.locations-panel h2,
.settings-section h2 {
  font-size: 1.2rem;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.locations-list {
  margin-top: 1rem;
}

.location-manage-card {
  display: grid;
  gap: 1rem;
}

.location-manage-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.location-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal {
  width: min(520px, 100%);
  padding: 1.5rem;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.modal form {
  display: grid;
  gap: 1rem;
}

.settings-grid {
  margin-top: 1rem;
}

.settings-section {
  display: grid;
  gap: 1rem;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.mobile-nav {
  display: none;
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.7rem;
  z-index: 100;
}

.toast {
  padding: 0.95rem 1.1rem;
  min-width: 220px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
  animation: slideUp 220ms ease;
}

.toast-info {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toast-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.toast-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.toast.is-out {
  opacity: 0;
  transform: translateY(10px);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.7), rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.7));
  background-size: 220% 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-title {
  width: 40%;
  height: 1.2rem;
  margin-bottom: 1rem;
}

.skeleton-line {
  height: 1rem;
  margin-bottom: 0.75rem;
}

.skeleton-line.short {
  width: 70%;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.skeleton-block {
  height: 120px;
}

.weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.weather-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-icon-sm {
  width: 32px;
  height: 32px;
}

.weather-icon-md {
  width: 44px;
  height: 44px;
}

.weather-icon-lg {
  width: 72px;
  height: 72px;
}

.weather-icon-clear {
  color: var(--accent-sun);
}

.weather-icon-cloudy {
  color: #94a3b8;
}

.weather-icon-rain,
.weather-icon-storm {
  color: var(--rain-blue);
}

.weather-icon-storm {
  color: #0284c7;
}

.weather-icon-wind {
  color: #64748b;
}

.weather-icon-heat {
  color: #f97316;
}

.weather-icon-sun-cloud {
  color: #0ea5e9;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .email-section,
  .dashboard-grid,
  .dashboard-grid-bottom,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-case-grid,
  .pricing-grid,
  .multi-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dashboard-main {
    padding-bottom: 6.5rem;
  }

  .mobile-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.45rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    z-index: 30;
  }

  .mobile-nav a {
    padding: 0.9rem 0.8rem;
    text-align: center;
    border-radius: 16px;
    color: var(--muted);
    font-weight: 700;
  }

  .mobile-nav a.is-active {
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
  }

  .metric-grid,
  .location-card-body,
  .preference-grid {
    grid-template-columns: 1fr;
  }

  .weather-main {
    grid-template-columns: 1fr;
  }

  .weekly-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: var(--shadow-soft);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .feature-grid,
  .steps-grid,
  .use-case-grid,
  .pricing-grid,
  .multi-location-grid,
  .weekly-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .page-head,
  .auth-row,
  .email-header,
  .location-manage-top {
    flex-direction: column;
    align-items: stretch;
  }

  .onboarding-card,
  .auth-card,
  .auth-aside {
    padding: 1.4rem;
  }

  .step-actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .dashboard-header-actions,
  .inline-actions,
  .location-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .dashboard-header-actions .btn,
  .inline-actions .btn,
  .location-actions .btn {
    width: 100%;
  }

  .timeline-wrap {
    grid-auto-columns: minmax(140px, 1fr);
  }

  .map-legend {
    grid-template-columns: 1fr;
  }
}
