:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3eee6;
  --ink: #18181b;
  --muted: #57534e;
  --border: #e5dfd5;
  --accent: #d95d39;
  --accent-hover: #be4a28;
  --ok: #0f766e;
  --ok-bg: #e7f6f2;
  --warn-bg: #fef3c7;
  --warn: #92400e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--border); gap: 16px; flex-wrap: wrap;
}
.brand { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--accent); }
.brand-tag { font-size: 0.72rem; font-weight: 700; background: var(--ok-bg); color: var(--ok); padding: 3px 8px; border-radius: 999px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; font-weight: 600; flex-wrap: wrap; }
.nav-links a { color: var(--muted); }
.nav-links a.cta-sm { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.nav-links a.cta-sm:hover { background: var(--accent); text-decoration: none; }

.hero { padding: 42px 0 28px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700;
  color: var(--accent); background: #fdf0eb; border: 1px solid #f5cfc2; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.15rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 auto 14px; max-width: 860px; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin: 0 auto 22px; }
.trust-strip { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }

.tool-shell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; box-shadow: 0 12px 34px rgba(24, 24, 27, 0.06); margin-bottom: 42px;
}
.tool-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pro-badge { font-size: 0.8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--surface-alt); color: var(--muted); }
.pro-badge.is-pro { background: var(--ok-bg); color: var(--ok); }
.privacy-pill { font-size: 0.8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }

.dropzone {
  border: 2px dashed #cfc6b8; border-radius: 14px; padding: 28px 20px; text-align: center;
  background: #fcfaf7; cursor: pointer; transition: all 0.15s ease;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--accent); background: #fff7f4; }
.dropzone h3 { margin: 0 0 6px; font-size: 1.1rem; }
.dropzone p { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.drop-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.controls-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
  margin: 18px 0 14px; padding: 14px; background: var(--surface-alt); border-radius: 12px;
}
.ctrl label { display: block; font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }
.ctrl select, .ctrl input {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-size: 0.92rem; color: var(--ink);
}

.rp-status {
  padding: 11px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; margin-bottom: 16px;
  background: #f4f4f5; color: #3f3f46; border: 1px solid #e4e4e7;
}
.rp-status.ok { background: var(--ok-bg); color: var(--ok); border-color: #a7dfd3; }
.rp-status.warn { background: var(--warn-bg); color: var(--warn); border-color: #fcd34d; }

.ratio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; margin-bottom: 18px;
}
.ratio-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.ratio-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.ratio-top strong { display: block; font-size: 0.95rem; }
.ratio-sub { font-size: 0.75rem; color: var(--muted); }
.pill { font-size: 0.68rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.pro { background: #fdf0eb; color: var(--accent); }
.ratio-stage {
  background: #f5f2ec; border-radius: 8px; padding: 8px; display: flex; justify-content: center; align-items: center; min-height: 150px;
}
.ratio-stage canvas { max-width: 100%; max-height: 170px; height: auto; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.ratio-meta { font-size: 0.76rem; color: var(--muted); }
.ratio-meta code { background: var(--surface-alt); padding: 1px 5px; border-radius: 4px; color: var(--ink); font-weight: 700; }
.ratio-sizes { margin-top: 3px; line-height: 1.35; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 10px; border: 0; font-size: 0.94rem; font-weight: 700; cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #27272a; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-alt); text-decoration: none; }

.section { padding: 34px 0; }
.section h2 { font-size: 1.85rem; letter-spacing: -0.025em; margin: 0 0 10px; text-align: center; }
.section .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card ul { padding-left: 18px; margin: 0; color: var(--muted); }
.card li { margin-bottom: 8px; }

.pricing-box {
  max-width: 680px; margin: 0 auto; background: #18181b; color: #fff; border-radius: 20px; padding: 32px;
  box-shadow: 0 18px 46px rgba(24, 24, 27, 0.18);
}
.pricing-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.price-tag { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em; }
.price-tag small { font-size: 0.95rem; font-weight: 500; color: #a1a1aa; }
.pricing-box ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pricing-box li { font-size: 0.94rem; color: #e4e4e7; }
.pricing-box .btn-primary { width: 100%; padding: 15px 20px; font-size: 1.05rem; }
.guarantee { text-align: center; font-size: 0.82rem; color: #a1a1aa; margin-top: 12px; }

.video-showcase {
  max-width: 820px; margin: 0 auto 36px; background: #111; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.video-showcase video { width: 100%; display: block; }

.prose { max-width: 780px; margin: 36px auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.site-ftr {
  margin-top: 40px; padding: 24px 0 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.86rem; color: var(--muted);
}
.site-ftr a { color: var(--muted); }
