/* SoloDesk — design system
   Free, private, client-side business tools for freelancers. */

:root {
  --bg: #0b1020;
  --bg-soft: #121a30;
  --panel: #ffffff;
  --ink: #0e1525;
  --ink-soft: #4a5568;
  --muted: #8a94a6;
  --line: #e6e9f0;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #ffffff;
  --accent: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(13, 20, 40, .12);
  --shadow-sm: 0 2px 8px rgba(13, 20, 40, .08);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f6f7fb;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;
  font-size: 1.18rem; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700;
  font-size: .95rem; font-family: inherit; transition: transform .06s ease,
    box-shadow .2s ease, background .2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #6366f1);
  color: #fff; box-shadow: var(--shadow-sm); }
.btn-cta { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  box-shadow: var(--shadow-sm); }
.btn-ghost { background: #eef1f8; color: var(--ink); }
.btn-ghost:hover { background: #e4e8f3; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero { background:
    radial-gradient(1200px 500px at 80% -10%, rgba(6,182,212,.18), transparent),
    radial-gradient(900px 500px at 0% 0%, rgba(79,70,229,.20), transparent),
    var(--bg);
  color: #fff; padding: 76px 0 84px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 16px;
  max-width: 16ch; }
.hero p.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #c7d0e4;
  max-width: 56ch; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem;
  font-weight: 600; color: #c7d0e4; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); padding: 7px 14px;
  border-radius: 999px; margin-bottom: 22px; }
.trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap;
  color: #aab4cc; font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 800; color: var(--brand); margin: 0 0 10px; }

/* Cards / grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease; }
.card.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow);
  text-decoration: none; }
.card .ico { width: 46px; height: 46px; border-radius: 11px; display: grid;
  place-items: center; font-size: 22px; margin-bottom: 14px;
  background: #eef1ff; color: var(--brand); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); }
.card .more { margin-top: 14px; font-weight: 700; color: var(--brand); }

/* Generic tool layout */
.tool-main { padding: 30px 0 70px; }
.tool-grid { display: grid; grid-template-columns: 420px 1fr; gap: 28px;
  align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel .panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-weight: 800; display: flex; align-items: center;
  justify-content: space-between; }
.panel .panel-body { padding: 20px; }

/* Forms */
label { display: block; font-weight: 600; font-size: .85rem;
  color: var(--ink-soft); margin: 0 0 6px; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
  color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
textarea { resize: vertical; min-height: 70px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.muted { color: var(--muted); font-size: .85rem; }

/* Banner / upsell */
.upsell { background: linear-gradient(135deg, #0b1020, #1b2547); color: #fff;
  border-radius: var(--radius); padding: 30px; display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: var(--shadow); }
.upsell h3 { margin: 0 0 6px; font-size: 1.4rem; }
.upsell p { margin: 0; color: #c7d0e4; max-width: 60ch; }

/* Pricing */
.price-card { text-align: center; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.feature-list li { padding: 8px 0 8px 30px; position: relative;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.feature-list li:before { content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 800; }
.badge { display: inline-block; background: #eef1ff; color: var(--brand);
  font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; }
details summary { font-weight: 700; cursor: pointer; }
details p { color: var(--ink-soft); margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--bg); color: #aab4cc; padding: 46px 0 30px;
  margin-top: 40px; }
.site-footer .cols { display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 28px; }
.site-footer a { color: #c7d0e4; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer .links { display: flex; flex-direction: column; gap: 8px;
  font-size: .92rem; }
.site-footer .legal { margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
  color: var(--muted); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; }

/* Invoice / quote preview document */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 44px; box-shadow: var(--shadow-sm); color: #1a2233; }
.doc .doc-top { display: flex; justify-content: space-between;
  align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.doc .doc-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em;
  text-transform: uppercase; color: #0e1525; }
.doc .meta-line { display: flex; justify-content: space-between; gap: 12px;
  font-size: .92rem; }
.doc .parties { display: flex; justify-content: space-between; gap: 30px;
  margin: 24px 0; flex-wrap: wrap; }
.doc .parties .block { min-width: 220px; }
.doc .parties .lbl { font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: #8a94a6; font-weight: 700; margin-bottom: 4px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.doc table th { text-align: left; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; color: #8a94a6; padding: 10px 8px;
  border-bottom: 2px solid #e6e9f0; }
.doc table td { padding: 11px 8px; border-bottom: 1px solid #eef1f6;
  font-size: .95rem; }
.doc table td.num, .doc table th.num { text-align: right; }
.doc .totals { margin-left: auto; width: 280px; margin-top: 14px; }
.doc .totals .line { display: flex; justify-content: space-between;
  padding: 7px 0; font-size: .95rem; }
.doc .totals .grand { border-top: 2px solid #0e1525; margin-top: 6px;
  padding-top: 12px; font-size: 1.25rem; font-weight: 800; }
.doc .notes { margin-top: 28px; font-size: .9rem; color: #4a5568; }
.doc .doc-logo { max-height: 60px; max-width: 200px; border-radius: 6px; }

/* line item editor rows */
.li-row { display: grid; grid-template-columns: 1fr 70px 90px 90px 32px;
  gap: 8px; align-items: center; margin-bottom: 8px; }
.li-row input { padding: 8px 9px; }
.li-row .del { background: #fdeaea; color: var(--danger); border: 0;
  border-radius: 8px; height: 36px; cursor: pointer; font-weight: 800; }
.li-head { display: grid; grid-template-columns: 1fr 70px 90px 90px 32px;
  gap: 8px; font-size: .72rem; text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 6px; padding: 0 2px; }

/* Result big number (calculator) */
.result-hero { text-align: center; padding: 26px; background:
    linear-gradient(135deg, #eef1ff, #e0f7ff); border-radius: var(--radius);
  border: 1px solid #dfe4ff; }
.result-hero .big { font-size: 3rem; font-weight: 800; color: var(--brand);
  letter-spacing: -.03em; }
.result-hero .sub { color: var(--ink-soft); font-weight: 600; }
.breakdown { margin-top: 18px; }
.breakdown .line { display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line); }

.note-box { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem;
  margin: 14px 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .nav .nav-links { display: none; }
}

/* Print: only the .doc shows */
@media print {
  .site-header, .site-footer, .panel.editor, .tool-actions, .upsell,
  .no-print { display: none !important; }
  body { background: #fff; }
  .tool-grid { display: block; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  @page { margin: 18mm; }
}
