/* DoDaily homepage — plain white + blue brand */

.hub-page {
  --hub-text: #0b1f3a;
  --hub-muted: #5a6b7d;
  --hub-border: #d6dde6;
  --hub-surface: #ffffff;
  --hub-bg: #ffffff;
  --hub-accent: #0066ff;
  --hub-accent-dark: #0047b3;
  --hub-red: #d93025;
  --hub-orange: #e37400;
  --hub-yellow: #f9ab00;
  --hub-green: #188038;
  --hub-teal: #007b83;
  --hub-blue: #0066ff;
  --hub-violet: #5b35b5;

  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--hub-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--hub-bg);
}

.hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid var(--hub-border);
  background: var(--hub-surface);
}

.hub-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.hub-topbar-brand:hover {
  text-decoration: none;
}

.hub-topbar-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.hub-topbar-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--hub-text);
}

.hub-topbar-logo {
  display: block;
  height: 40px;
  width: auto;
}

.hub-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hub-link {
  color: var(--hub-text);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.hub-link:hover {
  color: var(--hub-accent);
}

.hub-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--hub-accent);
  background: var(--hub-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.hub-btn-primary:hover {
  background: var(--hub-accent-dark);
  border-color: var(--hub-accent-dark);
  text-decoration: none;
  color: #fff;
}

.hub-btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

.hub-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--hub-border);
  background: #fff;
  color: var(--hub-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.hub-btn-ghost:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
  text-decoration: none;
}

.hub-btn-ghost.hub-btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

/* —— Brand-first hero —— */
.hub-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 102, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 55%, #ffffff 100%);
  overflow: hidden;
}

.hub-hero-inner {
  width: min(100%, 720px);
  text-align: center;
}

.hub-hero-mark {
  display: block;
  width: min(42vw, 220px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 28px rgba(0, 71, 179, 0.18));
}

.hub-hero-mark--enter {
  animation: hub-mark-rise 0.7s ease-out both;
}

@keyframes hub-mark-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hub-hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hub-text);
  animation: hub-fade-up 0.65s ease-out 0.12s both;
}

.hub-hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--hub-muted);
  animation: hub-fade-up 0.65s ease-out 0.2s both;
}

.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: hub-fade-up 0.65s ease-out 0.28s both;
}

@keyframes hub-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hub-section {
  padding: 4rem 1.5rem;
  background: #fff;
}

.hub-section--alt {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

.hub-section-inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

.hub-section-inner--narrow {
  width: min(100%, 640px);
}

.hub-section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hub-section-lead {
  margin: 0 0 1.75rem;
  color: var(--hub-muted);
  font-size: 1rem;
  max-width: 36rem;
}

.hub-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.15rem;
}

.hub-feature {
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: #fff;
}

.hub-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  color: var(--hub-accent);
  background: color-mix(in srgb, var(--hub-accent) 10%, #fff);
}

.hub-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.hub-feature p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hub-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hub-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hub-border);
}

.hub-step-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--hub-accent);
  font-size: 1.1rem;
  text-align: center;
  min-width: 2rem;
}

.hub-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.hub-step p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hub-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.hub-price-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--hub-border);
  background: #fff;
}

.hub-price-card--featured {
  border-color: var(--hub-accent);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
}

.hub-price-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hub-price-amount {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hub-price-amount small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--hub-muted);
}

.hub-price-blurb {
  margin: 0 0 0.5rem;
  color: var(--hub-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.hub-faq-item {
  border-bottom: 1px solid var(--hub-border);
}

.hub-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--hub-text);
  cursor: pointer;
}

.hub-faq-q:hover {
  color: var(--hub-accent);
}

.hub-faq-a {
  margin: 0 0 1rem;
  color: var(--hub-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hub-final-cta {
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(0, 102, 255, 0.2), transparent 50%),
    linear-gradient(180deg, #0b1f3a 0%, #062045 100%);
  color: #fff;
  text-align: center;
}

.hub-final-cta-inner {
  width: min(100%, 560px);
  margin: 0 auto;
}

.hub-final-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.hub-final-cta p {
  margin: 0 0 1.5rem;
  opacity: 0.85;
  line-height: 1.5;
}

.hub-final-cta .hub-btn-primary {
  background: #fff;
  color: var(--hub-accent);
  border-color: #fff;
}

.hub-final-cta .hub-btn-primary:hover {
  background: #e8f1ff;
  color: var(--hub-accent-dark);
  border-color: #e8f1ff;
}

.hub-apps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.hub-apps-toolbar .hub-section-title {
  margin-bottom: 0.25rem;
}

.hub-apps-toolbar .hub-section-lead {
  margin-bottom: 0;
}

.hub-filter {
  flex: 1 1 12rem;
  max-width: 16rem;
  margin-left: auto;
}

.hub-filter-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  background: var(--hub-surface);
  font: inherit;
  font-size: 0.9rem;
  color: var(--hub-text);
}

.hub-filter-input:focus {
  outline: 2px solid color-mix(in srgb, var(--hub-accent) 40%, transparent);
  outline-offset: 1px;
  border-color: var(--hub-accent);
}

.hub-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.hub-app-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.15rem 1rem 1.1rem;
  border-radius: 16px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  text-decoration: none;
  color: inherit;
  min-height: 9.5rem;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hub-app-tile:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}

.hub-app-tile--blue:hover {
  border-color: color-mix(in srgb, var(--hub-blue) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-blue) 4%, #fff);
}
.hub-app-tile--green:hover {
  border-color: color-mix(in srgb, var(--hub-green) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-green) 4%, #fff);
}
.hub-app-tile--teal:hover {
  border-color: color-mix(in srgb, var(--hub-teal) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-teal) 4%, #fff);
}
.hub-app-tile--orange:hover {
  border-color: color-mix(in srgb, var(--hub-orange) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-orange) 4%, #fff);
}
.hub-app-tile--red:hover {
  border-color: color-mix(in srgb, var(--hub-red) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-red) 4%, #fff);
}
.hub-app-tile--violet:hover {
  border-color: color-mix(in srgb, var(--hub-violet) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-violet) 4%, #fff);
}
.hub-app-tile--yellow:hover {
  border-color: color-mix(in srgb, var(--hub-yellow) 45%, var(--hub-border));
  background: color-mix(in srgb, var(--hub-yellow) 6%, #fff);
}

.hub-app-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
  overflow: hidden;
}

.hub-app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-app-icon-img--default {
  object-fit: contain;
  padding: 0.35rem;
  box-sizing: border-box;
}

.hub-app-icon--blue {
  color: var(--hub-blue);
  background: linear-gradient(160deg, #e8f1ff 0%, #d6e7ff 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-blue) 12%, transparent);
}
.hub-app-icon--green {
  color: var(--hub-green);
  background: linear-gradient(160deg, #e8f7ec 0%, #d4efdb 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-green) 12%, transparent);
}
.hub-app-icon--teal {
  color: var(--hub-teal);
  background: linear-gradient(160deg, #e6f7f8 0%, #d0eef1 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-teal) 12%, transparent);
}
.hub-app-icon--orange {
  color: var(--hub-orange);
  background: linear-gradient(160deg, #fff3e6 0%, #ffe4c7 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-orange) 14%, transparent);
}
.hub-app-icon--red {
  color: var(--hub-red);
  background: linear-gradient(160deg, #fdecea 0%, #fadad6 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-red) 12%, transparent);
}
.hub-app-icon--violet {
  color: var(--hub-violet);
  background: linear-gradient(160deg, #f1ebfa 0%, #e4daf5 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-violet) 12%, transparent);
}
.hub-app-icon--yellow {
  color: #b78100;
  background: linear-gradient(160deg, #fff8e1 0%, #ffefc2 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-yellow) 18%, transparent);
}

.hub-app-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.hub-app-desc {
  font-size: 0.75rem;
  color: var(--hub-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fce8e6;
  color: var(--hub-red);
  font-size: 0.875rem;
}

.hub-empty {
  text-align: center;
  color: var(--hub-muted);
  margin-top: 1.5rem;
}

.hub-footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--hub-muted);
  border-top: 1px solid var(--hub-border);
  background: var(--hub-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.hub-footer-links {
  display: inline-flex;
  gap: 1rem;
}

.hub-footer-links a {
  color: var(--hub-muted);
  text-decoration: none;
  font-weight: 500;
}

.hub-footer-links a:hover {
  color: var(--hub-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hub-faq-a[hidden] {
  display: none;
}

.hub-btn-primary:focus-visible,
.hub-btn-ghost:focus-visible,
.hub-link:focus-visible,
.hub-app-tile:focus-visible,
.hub-faq-q:focus-visible,
.hub-filter-input:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hub-hero-mark--enter,
  .hub-hero-title,
  .hub-hero-lead,
  .hub-hero-actions {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .hub-page {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .hub-topbar {
    padding: 0.85rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hub-topbar-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .hub-topbar-title {
    font-size: 0.95rem;
  }

  .hub-topbar-logo {
    height: 34px;
  }

  .hub-hero {
    min-height: auto;
    padding: 2rem 1rem 2.5rem;
  }

  .hub-hero-actions {
    flex-direction: column;
  }

  .hub-hero-actions .hub-btn-primary,
  .hub-hero-actions .hub-btn-ghost {
    width: 100%;
    min-height: 44px;
  }

  .hub-section {
    padding: 2.5rem 1rem;
  }

  .hub-feature-grid,
  .hub-pricing-grid {
    grid-template-columns: 1fr;
  }

  .hub-price-amount {
    text-align: left;
  }

  .hub-apps-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-filter {
    max-width: none;
    margin-left: 0;
  }

  .hub-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hub-app-tile {
    min-height: 8.5rem;
    padding: 1rem 0.85rem;
  }

  .hub-faq-q {
    min-height: 44px;
  }
}

@media (min-width: 900px) {
  .hub-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hub-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

