/*
 * EzUptime marketing site.
 * Deliberately framework-free — CoreUI belongs to the app, not to a static landing page.
 */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1140px;
  --font-display: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-ghost {
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-alt);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-end: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section:nth-of-type(even) {
  background: var(--surface-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.lead {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.section-cta {
  text-align: center;
  margin-top: 36px;
}

.hero {
  padding: 96px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-soft), var(--surface));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  max-width: 15ch;
  margin-inline: auto;
  margin-bottom: 28px;
}

.group-label {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin: 36px 0 16px;
}

/* ---------- Cards ---------- */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card h3,
.card h4 {
  font-size: 1.12rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  margin-bottom: 0;
}

.card-tagline {
  color: var(--brand) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  margin-bottom: 8px !important;
}

.card-icon {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 10px;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 500;
}

.section-insights,
.section-alerts,
.section-cta-final {
  text-align: center;
}

/* ---------- Embeds ---------- */

.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

.embed-frame-tall iframe {
  height: 82vh;
  min-height: 620px;
}

/* ---------- Pricing ---------- */

.trial-note {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.plan-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.plan-featured {
  border-color: var(--brand);
  box-shadow: 0 10px 34px rgb(37 99 235 / 12%);
}

.plan-tagline {
  color: var(--ink-muted);
  font-size: 0.95rem;
  min-height: 3em;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
}

.plan-price span {
  color: var(--ink-muted);
}

.plan-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  text-align: start;
}

.plan-features li {
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 14px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--ink-muted);
  padding-bottom: 12px;
}

/* ---------- Articles ---------- */

.article-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.article-card a {
  color: inherit;
}

.article-card img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  margin-bottom: 12px;
}

.article-card h2 {
  font-size: 1.18rem;
}

.article-date {
  color: var(--ink-muted);
  font-size: 0.87rem;
  margin-bottom: 6px;
}

.article-excerpt {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.article-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.article-cover {
  border-radius: var(--radius-lg);
  margin: 20px 0 8px;
  width: 100%;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose img {
  border-radius: var(--radius);
}

.prose code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

.prose pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 3px solid var(--brand);
  color: var(--ink-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

.article-promo {
  margin-top: 52px;
  padding: 30px;
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state {
  text-align: center;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.footer-inner {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h2 {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--ink);
  font-size: 0.95rem;
}

.footer-col a[aria-current="true"] {
  font-weight: 700;
  color: var(--brand);
}

.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 720px) {
  .section {
    padding: 52px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 16px;
  }

  .header-actions {
    margin-inline-start: auto;
  }
}
