:root {
  color: #172332;
  background: #f7fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f7fafc; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { width: 1.1em; height: 1.1em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(33,48,64,.08);
  box-shadow: 0 10px 28px rgba(35,58,82,.06);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.18rem; }
.brand-mark, .tool-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #f36f62, #20a79a 58%, #3557d6);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(32,95,124,.14);
}

.brand-mark {
  background: url("/assets/icon.svg") center / cover no-repeat;
  color: transparent;
}

.brand-mark svg {
  opacity: 0;
}

.nav { display: flex; align-items: center; gap: 4px; color: #526272; font-weight: 760; font-size: .92rem; }
.nav a { padding: 9px 10px; border-radius: 8px; }
.nav a:hover { color: #172332; background: rgba(32,167,154,.08); }
.menu-button { display: none !important; }

.hero {
  display: grid;
  grid-template-areas: "copy product";
  grid-template-columns: minmax(0,.86fr) minmax(360px,.82fr);
  gap: clamp(30px,5vw,70px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(58px,8vw,108px) clamp(18px,5vw,42px) 34px;
}
.hero-copy { grid-area: copy; max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  color: #1f8c84;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .78rem;
}
.hero h1, .tool-title h1, .legal-page h1 {
  margin: 0;
  color: #172332;
  font-size: clamp(3.2rem,7vw,6.6rem);
  line-height: .96;
  letter-spacing: 0;
}
.hero p, .tool-title p, .section-heading p, .legal-page p, .seo-copy p, .tool-seo-copy p {
  max-width: 720px;
  color: #526272;
  font-size: 1.05rem;
  line-height: 1.72;
}
.hero-actions, .actions, .mini-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.primary, .download, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.primary, .download { color: #fff; background: #172332; box-shadow: 0 16px 28px rgba(23,35,50,.18); }
.secondary { color: #1f6d67; background: #e9f8f6; }
.secondary.strong { background: #fff; border: 1px solid rgba(32,167,154,.18); }
.secondary.danger { color: #a33a33; background: #fff0ee; }

.hero-product {
  grid-area: product;
  display: grid;
  gap: 18px;
  min-height: 460px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(237,248,247,.95)), #fff;
  border: 1px solid rgba(33,48,64,.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(38,61,82,.14);
}
.product-topbar { display: flex; gap: 7px; }
.product-topbar span { width: 11px; height: 11px; border-radius: 999px; background: #f36f62; }
.product-topbar span:nth-child(2) { background: #f1c45b; }
.product-topbar span:nth-child(3) { background: #20a79a; }
.product-upload {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 230px;
  color: #2f4657;
  text-align: center;
  border: 1.5px dashed rgba(32,167,154,.32);
  border-radius: 14px;
  background: #f8fffd;
}
.product-upload svg { width: 52px; height: 52px; color: #20a79a; }
.product-upload strong { font-size: 1.25rem; }
.product-upload small { color: #6b7b88; font-weight: 720; }
.product-stack { display: grid; gap: 10px; }
.product-stack div {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid rgba(33,48,64,.07);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(42,67,88,.06);
}
.product-stack span { color: #415564; font-weight: 850; }
.product-stack strong { color: #1f8c84; }

.trust-row, .tool-badges, .brand-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.brand-strip { justify-content: center; padding: 12px 18px 18px; }
.trust-row span, .tool-badges span, .brand-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  color: #415564;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(34,55,74,.08);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(42,71,96,.06);
  font-weight: 760;
  font-size: .9rem;
}

.ad-slot { display: none; }
.tools-section, .workflow-section, .seo-section, .tool-page, .legal-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 54px clamp(18px,5vw,72px);
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .seo-section h2, .tool-seo-copy h2, .preview-heading h2, .panel-head h2 {
  margin: 0;
  color: #172332;
  letter-spacing: 0;
}
.section-heading h2, .seo-section h2 { font-size: clamp(1.9rem,4vw,3.3rem); line-height: 1.04; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(238px,1fr)); gap: 18px; }
.tool-card, .workflow-grid article, .work-panel, .preview-panel, .contact-card, .tool-seo-copy, .seo-section, .guide-panel, .faq-section, .rail-card, .blog-grid article, .article-body section {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(33,48,64,.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(42,67,88,.08);
}
.tool-card {
  display: grid;
  gap: 13px;
  min-height: 218px;
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(42,67,88,.13); }
.tool-card strong { font-size: 1.2rem; }
.tool-card span:last-of-type { color: #617386; line-height: 1.56; }
.tool-card em { align-self: end; color: #1f8c84; font-style: normal; font-weight: 900; }

.workflow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.workflow-grid article { padding: 24px; }
.workflow-grid article span { color: #f36f62; font-weight: 950; }
.workflow-grid h3 { margin: 9px 0 8px; font-size: 1.28rem; }
.workflow-grid p { margin: 0; color: #5f7181; line-height: 1.62; }

.seo-section {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 28px;
  margin-top: 34px;
  margin-bottom: 64px;
  padding: clamp(24px,4vw,40px);
}
.seo-copy p:first-child { margin-top: 0; }

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(340px,.74fr);
  gap: clamp(26px,5vw,62px);
  align-items: center;
  min-height: 500px;
}
.tool-title h1, .legal-page h1 { font-size: clamp(2.7rem,7vw,5.2rem); }
.tool-badges { margin-top: 18px; }
.tool-showcase { position: relative; min-height: 390px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 58px rgba(32,49,69,.14); }
.tool-showcase img { width: 100%; height: 390px; object-fit: cover; display: block; }
.showcase-card {
  position: absolute;
  display: grid;
  gap: 5px;
  width: min(270px,calc(100% - 32px));
  padding: 15px 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(29,45,62,.14);
  backdrop-filter: blur(14px);
}
.showcase-card strong { color: #172332; }
.showcase-card span { color: #607284; line-height: 1.45; }
.showcase-card.top { top: 18px; left: 18px; }
.showcase-card.bottom { right: 18px; bottom: 18px; }

.commercial-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; align-items: start; }
.workspace { display: grid; grid-template-columns: minmax(0,.92fr) minmax(320px,.68fr); gap: 22px; align-items: start; }
.work-panel, .preview-panel, .tool-seo-copy, .guide-panel, .faq-section { padding: clamp(18px,3vw,28px); }
.panel-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.panel-head span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: #172332; border-radius: 9px; font-weight: 900; flex: 0 0 auto; }
.panel-head h2 { font-size: 1.35rem; }
.panel-head p { margin: 3px 0 0; color: #6b7b88; }

.dropzone {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 268px;
  padding: 30px;
  color: #3c5568;
  text-align: center;
  border-radius: 14px;
  border: 2px dashed rgba(32,167,154,.36);
  background: #f8fffd;
}
.dropzone svg { width: 42px; height: 42px; color: #1f8c84; }
.dropzone strong { font-size: 1.18rem; }
.dropzone span { color: #647687; }
.dropzone.active { border-color: #f36f62; background: #fff; }
.dropzone input { display: none; }

.message { min-height: 18px; margin: 10px 0 0; color: #637486; }
.message.error { color: #c33b31; font-weight: 820; }
.file-list { display: grid; gap: 10px; margin: 18px 0; }
.file-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(33,48,64,.09);
}
.file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item small, .preview-heading span { color: #728292; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #526372;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(33,48,64,.09);
  border-radius: 8px;
  cursor: pointer;
}

.control-row { display: grid; grid-template-columns: auto minmax(120px,1fr) auto; gap: 10px; align-items: center; margin: 16px 0; }
.control-row label { font-weight: 900; }
.control-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(33,48,64,.15);
  border-radius: 8px;
  background: #fff;
}
.notice { display: flex; gap: 12px; padding: 14px; margin: 16px 0; color: #516370; background: #fff6e4; border: 1px solid rgba(224,158,67,.3); border-radius: 10px; }
.notice.success { background: #eefbf6; border-color: rgba(32,167,154,.24); }
.notice p { margin: 0; line-height: 1.55; }
.security-box { display: grid; gap: 12px; margin-top: 16px; }
.segmented { display: inline-grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; width: min(420px,100%); padding: 4px; background: #e9f3f2; border-radius: 9px; }
.segmented button { min-height: 40px; color: #4f6272; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-weight: 900; }
.segmented button.active { color: #172332; background: #fff; box-shadow: 0 8px 18px rgba(42,67,88,.1); }
.field-hint { color: #728292; font-weight: 800; }

.progress-wrap { margin-top: 20px; }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e2eceb; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg,#f36f62,#20a79a,#3557d6); transition: width .22s ease; }
.progress-wrap p { margin: 9px 0 0; color: #627485; }

.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.preview-heading h2 { font-size: 1.36rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(118px,1fr)); gap: 12px; max-height: 600px; overflow: auto; padding-right: 4px; }
.page-thumb { display: grid; gap: 8px; padding: 8px; color: #526372; background: #fff; border: 2px solid transparent; border-radius: 10px; cursor: pointer; opacity: .58; }
.page-thumb.selected { opacity: 1; border-color: #20a79a; box-shadow: 0 10px 24px rgba(32,167,154,.14); }
.page-thumb img { width: 100%; aspect-ratio: .72; object-fit: cover; border-radius: 7px; background: #f1f4f2; }
.empty-preview { grid-column: 1/-1; display: grid; place-items: center; min-height: 260px; color: #728292; text-align: center; border: 1px dashed rgba(33,48,64,.16); border-radius: 10px; }

.tool-seo-copy, .guide-panel, .faq-section { margin-top: 24px; }
.guide-panel h2, .faq-section h2 { margin: 0 0 18px; color: #172332; font-size: clamp(1.55rem,3vw,2.2rem); }
.guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.guide-steps article { padding: 18px; border-radius: 12px; background: #f8fffd; border: 1px solid rgba(32,167,154,.11); }
.guide-steps strong { color: #f36f62; }
.guide-steps h3 { margin: 8px 0 7px; }
.guide-steps p, .faq-section p { margin: 0; color: #5f7181; line-height: 1.62; }
.faq-section details { padding: 16px 0; border-top: 1px solid rgba(33,48,64,.08); }
.faq-section summary { cursor: pointer; color: #172332; font-weight: 900; }
.faq-section details p { margin-top: 8px; }

.side-rail { position: sticky; top: 92px; display: grid; gap: 18px; }
.side-rail .ad-slot { display: none; }
.rail-card { display: grid; gap: 10px; padding: 18px; }
.rail-card h3 { margin: 0; color: #172332; }
.rail-card a { display: flex; align-items: center; gap: 9px; min-height: 40px; color: #415564; font-weight: 840; border-bottom: 1px solid rgba(33,48,64,.06); }
.rail-card a:last-child { border-bottom: 0; }
.rail-card p { margin: 0; color: #5f7181; line-height: 1.62; }
.rail-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #1f6d67;
  background: #e9f8f6;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 900;
}
.rail-button.primary-rail {
  color: #fff;
  background: #172332;
}

.legal-page { min-height: 62vh; }
.contact-card { display: inline-flex; align-items: center; gap: 10px; padding: 16px 18px; margin-top: 14px; font-weight: 800; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; margin-top: 28px; }
.blog-grid article, .article-body section { padding: 22px; }
.blog-grid h2 { margin: 0 0 10px; color: #172332; font-size: 1.24rem; }
.blog-grid p { margin: 0 0 16px; color: #5f7181; }
.blog-grid a { color: #1f8c84; font-weight: 900; }
.blog-article { max-width: 940px; }
.article-body { display: grid; gap: 18px; margin: 28px 0; }
.article-body h2 { margin: 0 0 8px; color: #172332; }
.article-body p { margin: 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 30px 18px 44px;
  color: #607080;
  background: #fff;
  border-top: 1px solid rgba(33,48,64,.08);
}
.footer-brand { flex-basis: 100%; text-align: center; }
.footer-brand span { color: #253340; font-weight: 950; }
.footer-brand p { margin: 6px auto 0; max-width: 560px; color: #607080; }

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(45,64,82,.14);
  }
  .nav.open { display: grid; }
  .menu-button { display: inline-grid !important; }
  .hero, .workspace, .tool-hero, .commercial-layout, .seo-section { grid-template-columns: 1fr; }
  .hero { grid-template-areas: "copy" "product"; }
  .workflow-grid, .guide-steps { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .section-heading { display: block; }
}

@media (max-width: 620px) {
  .site-header { padding: 12px 16px; }
  .hero, .tools-section, .workflow-section, .tool-page, .legal-page { padding-left: 16px; padding-right: 16px; }
  .hero h1, .tool-title h1, .legal-page h1 { font-size: 3.05rem; }
  .hero-product { min-height: 360px; padding: 16px; }
  .brand-strip { justify-content: flex-start; }
  .control-row, .file-item { grid-template-columns: 1fr; }
  .file-item { justify-items: start; }
  .icon-button { justify-self: end; }
  .preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
