/* nfoGuides — clean modern responsive UI */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5c6570;
  --border: #e4e7ec;
  --primary: #111111;
  --primary-ink: #ffffff;
  --accent: #2563eb;
  --danger: #b91c1c;
  --success: #047857;
  --warning: #b45309;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; }

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-main { flex: 1; padding: 2rem 0 3rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

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

.brand-logo {
  border-radius: 50%;
  background: #000;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-tag { font-size: 0.75rem; color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
}


.site-nav a:hover { color: var(--accent); }

.site-nav a.btn,
.site-nav a.btn-primary {
  color: var(--primary-ink);
  padding: 0.4rem 0.85rem;
}

.site-nav a.btn-primary:hover {
  color: #fff;
  background: #000;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

.btn-primary:hover { background: #000; color: #fff; }

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

.btn-ghost:hover { background: #f0f2f5; color: var(--ink); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* Layout bits */
.section { margin-top: 2.5rem; }
.section-title { margin: 0 0 1rem; font-size: 1.35rem; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.product-card h3 { margin: 0.4rem 0; }
.product-card h3 a { color: inherit; }
.tip-card h3 { margin-top: 0; }

.badge {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.price { font-size: 1.25rem; font-weight: 700; margin: 0.75rem 0; }
.price-lg { font-size: 1.75rem; font-weight: 800; margin: 0.5rem 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Product page */
.breadcrumb { color: var(--muted); font-size: 0.92rem; }
.product-header { margin-bottom: 1.5rem; }
.product-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.prose p { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.product-buy { position: sticky; top: 88px; }
.buy-note { margin-top: 0.85rem; }

/* Auth */
.auth-section {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.auth-card { width: min(420px, 100%); }
.auth-card h1 { margin-top: 0; }
.auth-switch { margin-top: 1rem; text-align: center; }

.form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }

.form input {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.form input:focus {
  outline: 2px solid #cbd5e1;
  border-color: #94a3b8;
}

/* Alerts */
.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: #fff;
}

.alert-error { border-color: #fecaca; background: #fef2f2; color: var(--danger); }
.alert-success { border-color: #a7f3d0; background: #ecfdf5; color: var(--success); }
.error-list { margin: 0; padding-left: 1.1rem; }

/* Account */
.account-header { margin-bottom: 1.25rem; }
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.account-full { grid-column: 1 / -1; }

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.key-code {
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  word-break: break-all;
}

.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.sub-item:last-child { border-bottom: 0; }
.inline-form { margin: 0; }

.status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e5e7eb;
}

.status-active, .status-completed { background: #d1fae5; color: var(--success); }
.status-pending, .status-paused { background: #fef3c7; color: var(--warning); }
.status-expired, .status-cancelled, .status-revoked, .status-refunded { background: #fee2e2; color: var(--danger); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo { border-radius: 50%; background: #000; }
.footer-copy { margin: 0; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero,
  .product-layout,
  .account-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-mark { order: -1; }
  .hero-mark img { width: 110px; height: 110px; }
  .product-buy { position: static; }

  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.35rem;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 0.4rem; }
  .site-header { position: relative; }
  .site-header .container { position: relative; }
}


/* Free vs Pro comparison */
.compare-section {
  margin-top: 2.5rem;
}
.compare-section h2 { margin-bottom: 0.35rem; }
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: #111;
  color: #fff;
  font-weight: 600;
}
.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  text-align: center;
  width: 120px;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tr.required td:first-child {
  color: var(--danger);
  font-weight: 700;
}
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no { color: var(--danger); font-weight: 700; }
.compare-table .dash { color: #999; }
.compare-table .price-row td { background: #fafafa; }


/* Contact */
.contact-card { max-width: 640px; }
.stack-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.stack-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.stack-form input,
.stack-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.stack-form textarea { resize: vertical; min-height: 140px; }
.error-list { margin: 0; padding-left: 1.1rem; }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { color: var(--muted); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-inner { gap: 0.75rem; }
