/* Utilvio v2 — Claude homepage design, made production-ready.
   Colours / type / spacing taken from the Claude mockup:
   blue #2456E8, ink #0F1B2D, muted #5A6678, line #D9DFE8, bg #F6F8FB.
   No external fonts or scripts: Inter falls back to system-ui so
   nothing is fetched from a third party. */
:root {
  --accent: #2456E8;
  --accent-dark: #1a44c0;
  --accent-soft: #eaf0fe;
  --ink: #0F1B2D;
  --body: #334155;
  --muted: #5A6678;
  --line: #D9DFE8;
  --bg: #F6F8FB;
  --card: #ffffff;
  --soft: #ffffff;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 2.2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 40px; max-width: 1100px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; }
.main-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--muted); font-size: 15px; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero — Claude headline */
.hero { padding: 80px 0 40px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; max-width: 14em; margin: 0 0 16px; }
.hero p.lede { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.search-row input[type="search"] {
  flex: 1; min-width: 220px; padding: 14px 16px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: none;
}
.search-row input[type="search"]:focus { border-color: var(--accent); }
.search-btn {
  padding: 14px 22px; font: inherit; font-weight: 600; color: #fff;
  background: var(--accent); border: 0; border-radius: 10px; cursor: pointer;
}
.search-btn:hover { background: var(--accent-dark); }
.search-hint { color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* Tool cards — Claude letter badges */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.tool-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); display: flex; gap: 14px; align-items: flex-start; }
.tool-card:hover { border-color: var(--accent); }
.tool-card .card-body { min-width: 0; }
.tool-card .letter-badge {
  flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.tool-card.soon .letter-badge { background: var(--muted); }
.tool-card h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.tool-card h3 a { color: var(--ink); }
.tool-card h3 a:hover { color: var(--accent); }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tool-card .badge-row { margin-top: 8px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e7f7ee; color: #15803d; border: 1px solid #a7f3d0; }
.badge.soon { background: var(--bg); color: var(--muted); border-color: var(--line); }
.no-results { display: none; color: var(--muted); text-align: center; padding: 24px 0; }

/* Privacy strip — from the Claude mockup */
.privacy-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-strip h3 { font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.privacy-strip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Sections */
.section { padding: 10px 0 30px; }
.section-intro { color: var(--muted); }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.faq p { margin: .5rem 0 0; }

/* Tool page */
.tool-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; margin: 20px 0; }
.tool-box label { font-weight: 700; color: var(--ink); display: block; margin: 14px 0 6px; }
.tool-box label:first-child { margin-top: 0; }
input[type="text"], input[type="date"], textarea, select {
  width: 100%; padding: 12px 14px; font-size: 1rem; border: 1.5px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink); font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.checks label { font-weight: 500; color: var(--body); display: inline-flex; align-items: center; gap: 7px; margin: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none; border-radius: 9px;
  padding: 12px 22px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 16px;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: #fff; color: var(--accent-dark); border: 1.5px solid var(--accent); margin-left: 8px; }
.result-box {
  margin-top: 18px; padding: 16px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 9px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem; word-break: break-all; color: var(--ink); min-height: 58px;
}
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.result-item { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.result-item .k { font-size: .85rem; color: var(--muted); }
.result-item .v { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.meter > div { height: 100%; width: 0; background: #059669; transition: width .3s; }
.strength-label { font-weight: 700; color: var(--ink); margin-top: 8px; }
.error { color: #b91c1c; font-weight: 600; margin-top: 10px; display: none; }
.qr-output { margin-top: 18px; text-align: center; }
.qr-output img { max-width: 100%; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.breadcrumb { color: var(--muted); font-size: .92rem; margin: 22px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); margin-top: 40px; padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 16px 20px; flex-wrap: wrap; gap: 8px; }
  .hero { padding: 48px 0 28px; }
  .btn.secondary { margin-left: 0; margin-top: 10px; }
}

/* PDF tools */
.drop-zone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); cursor: pointer; background: var(--bg); margin-top: 8px; }
.drop-zone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.drop-zone strong { color: var(--ink); display: block; font-size: 1.05rem; margin-bottom: 4px; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; }
.file-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.file-item .fname { font-weight: 700; color: var(--ink); word-break: break-all; }
.file-item .fmeta { color: var(--muted); font-size: .85rem; }
.file-item .spacer { flex: 1; }
.btn.small { padding: 7px 12px; font-size: .88rem; margin-top: 0; }
.btn.danger { background: #fff; color: #b91c1c; border: 1.5px solid #fca5a5; margin-left: 0; }
.btn.danger:hover { background: #fef2f2; }
.progress-wrap { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 16px; display: none; }
.progress-wrap > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.status { margin-top: 12px; color: var(--muted); }
.status.ok { color: #15803d; font-weight: 600; }
.status.warn { color: #b45309; font-weight: 600; }
.size-line { margin-top: 10px; font-weight: 700; color: var(--ink); }
.note { background: var(--accent-soft); border: 1px solid #c7d6fb; border-radius: 9px; padding: 12px 14px; margin-top: 16px; font-size: .95rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.radio-row label { font-weight: 500; color: var(--body); display: inline-flex; align-items: center; gap: 7px; margin: 0; }
input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
