:root {
  --ink: #1b2430;
  --muted: #637083;
  --line: #dce3ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --mint: #d8f3e4;
  --teal: #126b66;
  --coral: #ee7d5b;
  --sun: #ffd166;
  --shadow: 0 18px 45px rgba(27, 36, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(220, 227, 234, 0.8);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px) 56px;
}

.tool-hero {
  padding: 64px clamp(18px, 5vw, 72px) 34px;
  background: var(--paper);
}

.tool-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
}

.hero-visual {
  min-height: 420px;
}

.mock-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--sun);
}

.window-bar span:nth-child(3) {
  background: #79c99e;
}

.mock-canvas {
  position: relative;
  min-height: 390px;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(18, 107, 102, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(18, 107, 102, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.product-card {
  width: min(80%, 360px);
  margin: 0 auto;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(27, 36, 48, 0.16);
}

.product-photo {
  aspect-ratio: 1;
  border-radius: 6px;
  background:
    radial-gradient(circle at 52% 34%, #ffffff 0 16%, transparent 17%),
    linear-gradient(135deg, #cbe7ff, #d8f3e4 52%, #ffd7ba);
}

.product-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.product-lines span {
  height: 10px;
  border-radius: 20px;
  background: #dce3ea;
}

.product-lines span:nth-child(1) {
  width: 82%;
}

.product-lines span:nth-child(2) {
  width: 56%;
}

.product-lines span:nth-child(3) {
  width: 68%;
}

.crop-frame {
  position: absolute;
  inset: 64px 70px;
  border: 3px solid var(--coral);
  border-radius: 6px;
  pointer-events: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.8fr) minmax(300px, 1.1fr);
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: #eef5f2;
}

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading.wide {
  max-width: 760px;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 24px;
  border: 2px dashed #aac7c1;
  border-radius: 8px;
  background: #f7fbf9;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.dropzone.has-files {
  place-items: stretch;
  padding: 14px;
  border-style: solid;
  background: #ffffff;
  text-align: left;
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dropzone-content {
  display: grid;
  width: 100%;
  place-items: center;
}

.dropzone strong {
  color: var(--ink);
}

.dropzone-preview {
  display: grid;
  grid-template-columns: minmax(112px, 0.8fr) 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.dropzone-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dropzone-preview-grid img {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f2f4f7;
}

.dropzone-preview-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dropzone-preview-meta strong {
  overflow-wrap: anywhere;
}

.dropzone-preview-meta small {
  line-height: 1.5;
}

.uploaded-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.drop-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  font-size: 32px;
}

.status {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.thumb-grid,
.result-grid {
  display: grid;
  gap: 12px;
}

.thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.thumb img,
.result img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f2f4f7;
}

.thumb strong,
.result strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.thumb span,
.result span {
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label,
.field > span {
  font-size: 14px;
  font-weight: 800;
}

select,
input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.size-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.swatch.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 107, 102, 0.16);
}

.fit-check,
.smart-recommendation {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #b9d9d2;
  border-radius: 8px;
  background: #f7fbf9;
}

.fit-check span,
.smart-recommendation span,
.fit-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.smart-recommendation {
  border-color: #f4bf8f;
  background: #fff8ef;
}

.mini-button {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e8a66c;
  border-radius: 8px;
  background: #ffffff;
  color: #8a4a1f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mini-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.fit-note {
  display: block;
  margin-top: 8px;
}

.fit-note.good {
  color: var(--teal);
}

.fit-note.warn {
  color: #9a4c24;
}

.result {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #b9d9d2;
  border-radius: 8px;
  background: #f7fbf9;
}

.result .button {
  width: fit-content;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.platforms,
.tool-list,
.guide {
  padding: 64px clamp(18px, 5vw, 72px);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.platform-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.platform-grid span,
.tool-grid span,
.guide li,
footer {
  color: var(--muted);
}

.tool-list {
  background: #ffffff;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.tool-grid a {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.tool-grid a:hover {
  border-color: var(--teal);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px;
  padding: 64px clamp(18px, 5vw, 72px);
  background: var(--white);
}

.content-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.info-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.faq-section {
  padding: 64px clamp(18px, 5vw, 72px);
  background: #eef5f2;
}

.faq-section h2 {
  margin-bottom: 22px;
}

details {
  max-width: 920px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 32px;
  background: var(--ink);
  color: var(--white);
}

.guide .eyebrow {
  color: var(--sun);
}

.guide ol {
  margin: 0;
  padding-left: 24px;
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 48px);
  background: #121922;
  color: #cbd5df;
}

footer span:first-child {
  color: var(--white);
  font-weight: 800;
}

.legal-page {
  max-width: 860px;
  min-height: calc(100vh - 142px);
  padding: 64px clamp(18px, 5vw, 72px);
}

.legal-page h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 26px;
}

.legal-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.audit-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(280px, 0.55fr);
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: #eef5f2;
}

.audit-platform {
  margin-top: 18px;
}

.score-ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 10px solid var(--mint);
  border-radius: 50%;
  color: var(--teal);
  font-size: 42px;
  font-weight: 900;
}

.audit-verdict {
  color: var(--muted);
  line-height: 1.65;
}

.audit-stats {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.audit-results {
  padding: 28px clamp(18px, 4vw, 48px) 64px;
  background: #eef5f2;
}

.audit-callout {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #f4bf8f;
  border-radius: 8px;
  background: #fff8ef;
  color: #8a4a1f;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.audit-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.audit-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f2f4f7;
}

.audit-card strong,
.audit-card span,
.audit-card em,
.audit-card p {
  display: block;
}

.audit-card strong {
  overflow-wrap: anywhere;
}

.audit-card span,
.audit-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.audit-card em {
  margin: 8px 0;
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .hero,
  .workspace,
  .audit-workspace,
  .content-section,
  .guide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .audit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-visual {
    min-height: auto;
  }

  .mock-canvas {
    min-height: 300px;
    padding: 24px;
  }

  .crop-frame {
    inset: 44px 36px;
  }

  .dropzone-preview {
    grid-template-columns: 1fr;
  }

  .dropzone-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-grid,
  .tool-grid,
  .audit-card,
  .size-row,
  .thumb,
  .result {
    grid-template-columns: 1fr;
  }
}
