:root {
  --bg: #ffffff; --surface: #f8f9fa; --border: #dadce0;
  --text: #202124; --muted: #5f6368;
  --blue: #1a73e8; --blue-dark: #174ea6; --blue-soft: #e8f0fe;
  --green: #34a853; --green-soft: #e6f4ea;
  --yellow: #f9ab00; --yellow-dark: #b06000; --yellow-soft: #fef7e0;
  --red: #d93025; --red-soft: #fce8e6;
  --purple: #a142f4; --purple-soft: #f3e8fd;
  --radius: 16px; --maxw: 1040px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65; font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.2px; color: var(--text); }

/* ---------- header ---------- */
header.site { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 19px; color: var(--text); }
.brand::before {
  content: ""; width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 45deg, #1a73e8 0 25%, #34a853 0 50%, #f9ab00 0 75%, #d93025 0);
}
nav.main a { margin-left: 8px; color: var(--muted); font-size: 14.5px; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
nav.main a:hover { background: var(--surface); color: var(--blue-dark); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 44px; align-items: start; padding-top: 10px; }
.layout .main { min-width: 0; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }

.kicker { font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; font-weight: 600; }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .sep { margin: 0 7px; color: var(--border); }

/* ---------- home hero ---------- */
.hero-home { text-align: center; padding: 64px 0 40px; background: var(--surface); border-bottom: 1px solid var(--border); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.hero-copy h1 { font-size: 40px; line-height: 1.15; margin: 0 auto 14px; max-width: 700px; }
.hero-copy h1 em { font-style: normal; color: var(--blue); }
.hero-copy .sub { color: var(--muted); font-size: 17.5px; margin: 0 auto 26px; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-chips { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-chips span {
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.hero-chips span::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero-launch { max-width: 620px; margin: 36px auto 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: left; }
.launch-title { font-weight: 600; font-size: 15px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.launch-grid a {
  display: block; border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-size: 14.5px; font-weight: 500; background: var(--bg);
}
.launch-grid a:hover { border-color: var(--blue); background: var(--blue-soft); }
.launch-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; }

/* ---------- tool cards ---------- */
.tool-section { margin: 46px 0; }
.tool-section h2 { font-size: 25px; margin: 0 0 6px; }
.cluster-blurb { color: var(--muted); margin: 0 0 18px; max-width: 660px; }
.tool-grid, .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 13px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; color: var(--text); background: var(--bg);
  transition: box-shadow .15s, border-color .15s;
}
.tool-card:hover { border-color: var(--blue); box-shadow: 0 1px 3px rgba(60, 64, 67, .15), 0 4px 12px rgba(60, 64, 67, .1); }
.tool-card .ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin-top: 1px;
}
.ic.c-blue { background: var(--blue-soft); color: var(--blue-dark); }
.ic.c-green { background: var(--green-soft); color: #188038; }
.ic.c-yellow { background: var(--yellow-soft); color: var(--yellow-dark); }
.ic.c-red { background: var(--red-soft); color: var(--red); }
.ic.c-purple { background: var(--purple-soft); color: #7627bb; }
.tool-card .t { font-weight: 600; font-size: 14.5px; }
.tool-card .d { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.5; }

/* ---------- tool page ---------- */
h1.tool-h1 { font-size: 33px; margin: 6px 0 10px; line-height: 1.2; }
p.tool-intro { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.dropzone {
  border: 2px dashed var(--blue); border-radius: var(--radius); background: var(--blue-soft);
  padding: 50px 20px; text-align: center; cursor: pointer; transition: all .15s;
}
.dropzone.drag, .dropzone:hover { background: #dbe8fd; }
.dropzone input { display: none; }
.dropzone .dz-title { font-size: 17.5px; font-weight: 600; margin: 0 0 5px; }
.dropzone .hint { color: #188038; font-size: 13px; margin: 6px 0 0; }
#tool-status { text-align: center; color: var(--muted); font-size: 14px; min-height: 20px; padding: 8px 0; }
.src-info { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 16px 0; }

.controls {
  display: flex; flex-direction: column; gap: 14px; margin: 16px 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.field label { display: block; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.field input[type=number], .field select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: var(--bg); color: var(--text); font-family: inherit;
}
.field input[type=number]:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field input[type=range] { width: 100%; accent-color: var(--blue); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 110px; }
.target-pill {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  border: 1px solid var(--blue); border-radius: 999px; padding: 6px 20px; font-weight: 600;
}

.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--blue-dark);
  font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all .15s; align-self: flex-start; font-family: inherit;
}
.btn:hover { background: var(--blue-soft); border-color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 1px 3px rgba(26, 115, 232, .4); }
.btn-ghost { border-color: transparent; background: none; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }

.result {
  display: flex; gap: 24px; flex-wrap: wrap; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 16px 0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .12);
}
.result .preview { max-width: 340px; max-height: 280px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); object-fit: contain; }
.result-meta { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.result-meta .lbl { display: inline-block; min-width: 70px; color: var(--muted); font-size: 13px; }
.badge { background: var(--green-soft); color: #188038; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; }
.live-preview { text-align: center; margin: 8px 0; }
.live-preview img { max-width: 100%; max-height: 340px; border: 1px solid var(--border); border-radius: 12px; }

h3.sub { font-size: 16.5px; margin: 20px 0 6px; }
.info-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td { border-bottom: 1px solid var(--border); padding: 9px 14px; text-align: left; }
.info-table th { color: var(--muted); font-weight: 500; width: 38%; }

.tool-section h2 { font-size: 23px; margin: 0 0 12px; }
details.faq { border-bottom: 1px solid var(--border); padding: 13px 4px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
ol.steps li { margin: 8px 0; }
ol.steps { padding-left: 22px; }

.privacy-strip {
  background: var(--green-soft); border: 1px solid #ceead6; color: #188038;
  border-radius: 999px; padding: 11px 20px; font-size: 14px; margin: 22px 0; text-align: center; font-weight: 500;
}

.cta-box { background: var(--blue-soft); border: 1px solid var(--blue); border-radius: var(--radius); padding: 20px 24px; margin: 30px 0; }
.cta-box .btn-primary { margin-top: 12px; }

/* ---------- aside ---------- */
.aside { position: sticky; top: 84px; }
.aside .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.aside .box h3 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.aside .box ul { list-style: none; margin: 0; padding: 0; }
.aside .box li { margin: 10px 0; font-size: 14.5px; }
.aside .box li::before { content: "→"; color: var(--blue); margin-right: 8px; }
.aside .box .mini-note { font-size: 13px; color: var(--muted); margin: 0; }
.aside .box .mini-note strong { color: #188038; }

/* ---------- footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--border); margin-top: 72px; padding: 44px 0 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site .brand { font-size: 19px; }
footer.site p { margin: 12px 0 0; max-width: 300px; color: var(--muted); }
footer.site h4 { color: var(--text); font-size: 13px; letter-spacing: .8px; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
footer.site nav a { display: block; color: var(--muted); margin: 0 0 10px; }
footer.site nav a:hover { color: var(--blue); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--border); padding: 18px 22px; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 30px; }
  .result { flex-direction: column; }
  .result .preview { max-width: 100%; }
  nav.main a { margin-left: 2px; padding: 8px 10px; }
  .btn { align-self: stretch; text-align: center; }
}
