/* InstallWise.com — site styles */
:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
}
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em 0; }
h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em 0; }
.muted { color: var(--muted); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.08);
}
.brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-links a { margin-left: 22px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: #cbd5e1; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 500px at 50% -200px, rgba(37,99,235,.12), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg) 70%);
  text-align: center;
}
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #eef2ff; color: #4338ca; font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  margin-bottom: 18px; text-transform: uppercase;
}
.hero h1 { font-size: 3rem; max-width: 820px; margin: 0 auto .4em; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cards / grids */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .12s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #6366f1; font-weight: 700; font-size: 2rem;
}
.product-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card-title {
  margin-bottom: 6px;
}
.product-card-title h3 { margin: 0; }
.product-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.product-card-title a:hover {
  color: var(--brand);
  text-decoration: none;
}
.product-card-description { font-size: .94rem; color: var(--ink-2); }
.product-card .meta { display: flex; gap: 10px; align-items: baseline; margin-top: auto; padding-top: 16px; }
.price { font-weight: 700; font-size: 1.2rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Features (homepage) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #eef2ff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 22px;
}

/* Forms */
.form { max-width: 520px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.note {
  background: #f1f5f9; border-radius: 10px; padding: 14px 16px;
  font-size: .92rem; color: var(--ink-2); margin-bottom: 18px;
}
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

/* Product detail */
.store-product-hero {
  --store-hero-base: #312414;
  --store-hero-mid: #242424;
  --store-hero-dark: #17191d;
  --store-hero-glow: rgba(37, 99, 235, .24);
  background:
    radial-gradient(820px 460px at 21% 3%, var(--store-hero-glow), transparent 62%),
    linear-gradient(135deg, var(--store-hero-base) 0%, var(--store-hero-mid) 52%, var(--store-hero-dark) 100%);
  color: #fff;
  padding: 76px 0 54px;
}
.store-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
}
.store-product-main { min-width: 0; }
.store-product-heading {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.store-product-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  flex: 0 0 auto;
}
.store-product-icon-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), #22c55e);
  color: #fff; font-weight: 800; font-size: 2.4rem;
}
.store-publisher {
  margin: 0 0 6px;
  color: #fde047;
  font-weight: 600;
}
.store-product-heading h1 {
  color: #fff;
  font-size: 3rem;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.store-tagline {
  color: #d7dee9;
  font-size: 1.08rem;
  margin: 0 0 12px;
  max-width: 760px;
}
.store-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.store-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #f1f5f9;
  font-size: .86rem;
}
.store-summary {
  max-width: 780px;
  color: #f8fafc;
  font-size: 1.08rem;
  margin: 26px 0 0 124px;
}
.store-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0 124px;
}
.store-action-row form { margin: 0; }
.store-install-button {
  min-width: 250px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 14px 24px;
  background: #ffd633;
  color: #111827;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.store-install-button:hover {
  background: #ffe066;
  color: #111827;
  text-decoration: none;
}
.store-install-button-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.store-install-button-secondary:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.store-install-button-download {
  background: #ffffff;
  color: #111827;
}
.store-install-button-download:hover {
  background: #f1f5f9;
  color: #111827;
}
.store-install-button:disabled,
.store-install-button[aria-disabled="true"] {
  opacity: .58;
  pointer-events: none;
  cursor: not-allowed;
}
.store-download-note {
  margin: 14px 0 0 124px;
  color: #cbd5e1;
  font-size: .92rem;
}
.store-facts {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 6px 20px;
  backdrop-filter: blur(10px);
}
.store-facts div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.store-facts div:last-child { border-bottom: 0; }
.store-fact-label {
  display: block;
  color: #cbd5e1;
  font-size: .78rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.store-facts strong {
  display: block;
  color: #fff;
  font-size: .96rem;
}
.store-product-content {
  background: var(--bg);
  padding: 28px 0 72px;
}
.store-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.store-content-main,
.store-side {
  display: grid;
  gap: 18px;
}
.store-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.store-panel h2 {
  font-size: 1.12rem;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.store-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.store-panel-head h2 { border-bottom: 0; }
.store-panel-head span {
  color: var(--muted);
  font-size: .88rem;
  padding-right: 22px;
}
.store-screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 58%);
  gap: 18px;
  overflow-x: auto;
  padding: 22px;
  scroll-snap-type: x proximity;
}
.store-screenshot-figure {
  margin: 0;
  scroll-snap-align: start;
}
.store-screenshot {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.store-screenshot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.store-screenshot-figure figcaption {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: .9rem;
}
.store-rich-text {
  padding: 22px;
  color: var(--ink-2);
  font-size: .98rem;
}
.store-info-list {
  margin: 0;
  padding: 4px 22px 18px;
}
.store-info-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.store-info-list div:last-child { border-bottom: 0; }
.store-info-list dt {
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 3px;
}
.store-info-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 900px) {
  .store-hero-grid,
  .store-content-grid {
    grid-template-columns: 1fr;
  }
  .store-facts { display: none; }
  .store-summary,
  .store-action-row,
  .store-download-note {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .store-product-hero { padding: 42px 0 34px; }
  .store-product-heading {
    flex-direction: column;
    gap: 18px;
  }
  .store-product-heading h1 { font-size: 2.2rem; }
  .store-product-icon { width: 84px; height: 84px; border-radius: 18px; }
  .store-action-row form { width: 100%; }
  .store-install-button { width: 100%; min-width: 0; }
  .store-screenshot-strip { grid-auto-columns: 86%; padding: 16px; }
}
.product-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 56px 0; align-items: start; }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.product-cover {
  background: linear-gradient(135deg, #1e3a8a, #6366f1);
  height: 320px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 4rem; font-weight: 700; letter-spacing: -.02em;
  box-shadow: var(--shadow-lg);
}
.plan-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 14px;
}
.plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.plan-card h4 { margin: 0 0 4px 0; }
.plan-card .price-line { font-size: 1.6rem; font-weight: 700; margin: 6px 0 8px; }
.plan-card .price-line small { font-weight: 500; color: var(--muted); font-size: .9rem; }

/* Key-recovery output */
.key-display {
  background: #0f172a; color: #fff;
  padding: 22px; border-radius: 12px;
  text-align: center; letter-spacing: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem; margin: 14px 0;
  word-break: break-all;
}

/* Product icon (73x73 strict) */
.product-icon {
  width: 73px; height: 73px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
  background: #fff;
}
.product-headline {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 8px;
}
.product-headline h1 { margin: 0; }

/* Screenshot gallery on the product page */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.screenshot-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  transition: transform .15s ease, box-shadow .15s ease;
}
.screenshot-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.screenshot-item img { display: block; width: 100%; height: auto; }

/* Footer */
.site-footer {
  margin-top: 80px;
  background: #0f172a; color: #cbd5e1;
  padding-top: 48px;
}
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: .95rem; }
.site-footer a { display: block; color: #cbd5e1; margin-bottom: 6px; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 32px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 20px 24px;
  font-size: .85rem; color: #94a3b8; text-align: center;
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 32px }
.flex { display: flex; gap: 12px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warn    { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
