/* Sqrted - marketing one-pager
   Palette mirrors the desktop app: blue brand on slate neutrals. */

:root {
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #3b82f6;
  --brand-tint: #eff6ff;
  --brand-soft: #dbeafe;

  --ink: #0f172a;
  --ink-deep: #0b1220;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f8fafc;

  --ok: #15803d;
  --no: #b45309;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 60px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 900px; }
.center { text-align: center; }

h1, h2, h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }

p { margin: 0; }

code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--brand-tint);
  color: var(--brand-hover);
  padding: .12em .42em;
  border-radius: 5px;
  white-space: nowrap;
}

a { color: var(--brand); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
}

.lede { font-size: 1.1rem; color: var(--muted); margin-top: 1.1rem; max-width: 34em; }
.sub { color: var(--muted); margin-top: .9rem; font-size: 1.02rem; }
.micro { font-size: .84rem; color: var(--subtle); margin-top: 1rem; }

.grad {
  background: linear-gradient(100deg, var(--brand-light), var(--brand-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: .96rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: .89rem; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 1.03rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .3), 0 8px 20px rgba(37, 99, 235, .22);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand-soft); background: var(--brand-tint); color: var(--brand-hover); }

.cta-row { display: flex; gap: 12px; margin-top: 1.9rem; flex-wrap: wrap; }
.cta-row.center-row { justify-content: center; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 7px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 84px 0 92px;
  background:
    radial-gradient(1100px 460px at 12% -8%, rgba(59, 130, 246, .13), transparent 62%),
    radial-gradient(900px 420px at 92% 4%, rgba(37, 99, 235, .09), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }

/* Hero illustration */
.flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 6px 9px 14px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.flow-icon { border-radius: 4px; flex: none; }
.flow-title { font-size: .78rem; color: var(--subtle); }

/* Windows-style caption buttons, since this is a Windows application. */
.win-buttons { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.win-btn {
  width: 26px;
  height: 20px;
  padding: 5px 8px;
  box-sizing: border-box;
  overflow: visible;
  stroke: var(--subtle);
  stroke-width: 1;
  fill: none;
}
.win-btn rect { fill: none; }
.win-close { stroke: var(--subtle); }

.flow-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 22px 18px;
}
.flow-src { display: flex; flex-direction: column; gap: 6px; }

.page {
  height: 26px;
  border-radius: 5px;
  background: repeating-linear-gradient(
    to bottom, #f1f5f9 0 3px, transparent 3px 7px
  ), var(--canvas);
  border: 1px solid var(--line);
}
.page.qr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  height: 30px;
  background: var(--brand-tint);
  border-color: var(--brand-soft);
}
.qr-mark {
  width: 15px; height: 15px; flex: none;
  border-radius: 3px;
  border: 3px solid var(--brand);
  box-shadow: inset 0 0 0 2px #fff;
}
.page-label {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .62rem;
  color: var(--brand-hover);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-arrow { color: var(--subtle); font-size: 1.3rem; }

.flow-dst { font-size: .72rem; }
.tree-line { padding: 1.5px 0; white-space: nowrap; }
.tree-line.i1 { padding-left: 13px; }
.tree-line.i2 { padding-left: 26px; }
.tf { color: var(--muted); font-weight: 600; }
.tf::before { content: "▸ "; color: var(--subtle); }
.td {
  font-family: "Cascadia Mono", Consolas, monospace;
  color: var(--ok);
  font-size: .68rem;
}
.td::before { content: "✓ "; }

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.section.alt { background: var(--canvas); border-block: 1px solid var(--line); }
.section h2.center + .steps,
.section h2.center + .grid { margin-top: 3rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 6px; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Feature cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ic {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.15rem;
  margin-bottom: 15px;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .93rem; }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .93rem;
}
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; }
.compare thead th {
  background: var(--canvas);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--subtle);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.compare thead th:last-child { color: var(--brand); }
.compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare td:first-child { font-weight: 600; width: 34%; }
.compare .no { color: var(--muted); }
.compare .no::before { content: "- "; color: var(--no); font-weight: 700; }
.compare .yes { color: var(--ink); background: rgba(239, 246, 255, .55); }
.compare .yes::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 2.8rem;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--brand-soft); box-shadow: var(--shadow-lg); }
.tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--brand-tint);
  color: var(--brand-hover);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.price { margin: 12px 0 18px; font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; }
.price .cur { font-size: 1.3rem; vertical-align: super; color: var(--muted); }
.price .per { font-size: .9rem; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; }
.price-card li {
  padding: 7px 0 7px 25px;
  position: relative;
  color: var(--muted);
  font-size: .93rem;
}
.price-card li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--ok);
  font-weight: 700;
}
.price-card .btn { width: 100%; }

/* Volume pricing */
.volume { margin-top: 2.6rem; }
.volume-title {
  text-align: center;
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: 1.1rem;
}
.volume-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .92rem;
  min-width: 460px;
}
.volume-table th, .volume-table td { padding: 12px 18px; text-align: left; }
.volume-table thead th {
  background: var(--canvas);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--subtle);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.volume-table tbody tr + tr td { border-top: 1px solid var(--line); }
.volume-table td:nth-child(2), .volume-table td:nth-child(4) { font-weight: 650; font-variant-numeric: tabular-nums; }
.volume-table td:nth-child(3) { border-left: 1px solid var(--line); }
.volume-table th:nth-child(3) { border-left: 1px solid var(--line); }

/* Download */
.download {
  background:
    radial-gradient(800px 340px at 50% 0%, rgba(59, 130, 246, .14), transparent 65%),
    var(--surface);
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--canvas); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-size: .98rem; }
.footer .micro { margin: 0; margin-left: auto; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--brand); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 68px; }
  .footer .micro { margin-left: 0; }
}

@media (max-width: 620px) {
  .compare { display: block; overflow-x: auto; white-space: nowrap; }
  .compare td:first-child { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
