:root {
  --bg: #f3f1eb;
  --bg-2: #ece8df;
  --ink: #12141a;
  --muted: #5c6370;
  --line: #ddd6c8;
  --card: #fffcf7;
  --pdf: #e23b2e;
  --img: #2f6bff;
  --doc: #2a62d9;
  --xls: #1f8a4c;
  --accent: #111827;
  --accent-hot: #ff5a36;
  --ok: #0f8f63;
  --warn: #b42318;
  --shadow: 0 24px 60px rgba(18, 20, 26, 0.08);
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, #fff7e8 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #e8eefc 0%, transparent 50%),
    var(--bg);
  letter-spacing: -0.01em;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.nav, .page, .foot { position: relative; z-index: 1; }

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 24px) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  background: #111827;
  color: #f8f5ee;
}
.pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3ee0a0;
  box-shadow: 0 0 0 4px rgba(62, 224, 160, 0.18);
}
.pill.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.page { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 24px) 48px; }

.hero { padding: 28px 0 18px; max-width: 760px; width: 100%; }
.kicker {
  margin: 0 0 12px;
  color: var(--accent-hot);
  font-size: clamp(11px, 2.4vw, 12px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 7vw, 68px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-style: italic;
  color: #3a3329;
}
.lede {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 17px);
  max-width: 560px;
  line-height: 1.5;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  color: var(--muted);
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font: inherit;
  color: var(--ink);
  font-size: 15px;
}
.trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0;
  margin: 18px 0 8px;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.trust li { position: relative; padding-left: 14px; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-hot);
}

.group { margin-top: 34px; }
.group-head { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.group-head h2 { margin: 0; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.group-head p { margin: 0; color: var(--muted); font-size: 13px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}
.tool {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 132px;
  min-width: 0;
  width: 100%;
  color: inherit;
  font: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool:hover, .tool:focus-visible {
  transform: translateY(-3px);
  border-color: #cfc6b6;
  box-shadow: var(--shadow);
  outline: none;
}
.tool strong { font-size: 15px; letter-spacing: -0.03em; }
.tool small { color: var(--muted); line-height: 1.35; }
.badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: #efece4;
}
.chev { color: var(--muted); font-size: 13px; }
.tone-pdf .chip.from { background: #ffe6e2; color: var(--pdf); }
.tone-img .chip.from { background: #e4ecff; color: var(--img); }
.tone-doc .chip.from { background: #e3ebff; color: var(--doc); }
.tone-xls .chip.from { background: #def7e8; color: var(--xls); }
.chip.to { background: #111827; color: #f8f5ee; }

.empty { color: var(--muted); padding: 40px 0; }

.back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 8px 0 18px;
}
.back:hover { color: var(--ink); }

.work-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.work-title { min-width: 0; flex: 1 1 240px; }
.work-title h1 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.work-title p { margin: 0; color: var(--muted); max-width: 460px; }
.badges.lg .chip { font-size: 11px; padding: 6px 10px; }

.steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b0a899;
  flex: 1 1 260px;
  max-width: 100%;
}
.steps li {
  padding: 0 14px 10px;
  border-bottom: 2px solid #e7e0d4;
}
.steps li.is-on { color: var(--ink); border-color: var(--accent-hot); }

.studio {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(12px, 2.5vw, 18px);
  box-shadow: var(--shadow);
}

.drop {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(200px, 36vh, 280px);
  border: 1.5px dashed #d2cbbd;
  border-radius: 22px;
  cursor: pointer;
  background: linear-gradient(180deg, #fffdfa, #f6f1e8);
}
.drop.is-over { border-color: var(--accent-hot); background: #fff4ef; }
.drop input { display: none; }
.drop-art .orb {
  position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,54,.18), transparent 70%);
  right: -30px; top: -40px;
}
.drop-art .orb.two {
  left: -50px; bottom: -60px; right: auto; top: auto;
  background: radial-gradient(circle, rgba(47,107,255,.12), transparent 70%);
}
.drop-inner {
  position: relative;
  min-height: clamp(200px, 36vh, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  color: var(--muted);
  padding: clamp(18px, 4vw, 28px);
}
.drop-inner strong { color: var(--ink); font-size: clamp(18px, 4vw, 22px); letter-spacing: -0.03em; }
.up-icon { color: var(--ink); margin-bottom: 8px; }
.types {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #111827;
  color: #f8f5ee;
  border-radius: 999px;
  padding: 6px 10px;
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tray { margin-top: 16px; }
.tray-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tray-head h3 { margin: 0; font-size: 14px; }
.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}
.file-copy { min-width: 0; }
.files b {
  font-size: 14px;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ext {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  background: #111827; color: #fff;
}
.files .meta { color: var(--muted); font-size: 12px; }
.x {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; color: var(--muted); font-size: 18px;
}
.x:hover { color: var(--warn); }

.cta-row { margin-top: 16px; }
.go, .ghost {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  min-height: 48px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.go {
  width: 100%;
  background: var(--ink);
  color: #f8f5ee;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}
.go:hover:not(:disabled) { background: #000; }
.go:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.status { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.status.is-error { color: var(--warn); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 26, 0.46);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.overlay[hidden] { display: none !important; }
.overlay .card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.overlay h2 { margin: 12px 0 6px; font-family: var(--serif); font-size: clamp(22px, 5vw, 28px); }
.overlay p { margin: 0; color: var(--muted); }
.spinner {
  width: 48px; height: 48px; margin: 0 auto;
  border-radius: 50%;
  border: 3px solid #ece6db;
  border-top-color: var(--accent-hot);
  animation: spin 0.8s linear infinite;
}
.check {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #def7e8; color: var(--ok);
  font-size: 26px;
}
.done-actions { display: grid; gap: 8px; margin-top: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 24px) calc(32px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.foot p {
  margin: 0 auto;
  max-width: 42rem;
  line-height: 1.5;
}
.foot .copy {
  margin-top: 10px;
  letter-spacing: 0.04em;
  font-weight: 650;
}
.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent-hot); }
.foot-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.foot-links a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.guide { padding-top: 12px; }
.guide h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 560;
  letter-spacing: -0.03em;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  margin-top: 18px;
}
.doc h1 {
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.prose, .note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.prose h2, .prose h3, .note-card h3 { margin: 18px 0 6px; letter-spacing: -0.03em; }
.prose h2:first-child, .prose h3:first-child, .note-card h3:first-child { margin-top: 0; }
.prose p, .prose li, .faq p { color: var(--muted); line-height: 1.65; }
.prose a { color: var(--ink); font-weight: 750; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.form .go { justify-self: start; }
.alert {
  background: #def7e8;
  color: var(--ok);
  border-radius: 12px;
  padding: 12px 14px;
}
.alert.bad { background: #fde8e6; color: var(--warn); }
.prose a.go.guide-go {
  display: inline-block;
  width: auto;
  margin: 8px 0 4px;
  text-decoration: none;
  text-align: center;
}
.msg { margin-top: 14px; }
.msg .file { margin: 0 0 8px; font-size: 12px; font-weight: 750; color: var(--ink); }
.msg pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
}
@media (max-width: 980px) {
  .work-head { flex-direction: column; }
  .steps { width: 100%; }
}
@media (max-width: 800px) {
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { justify-content: center; text-align: left; }
  .nav-meta { justify-content: center; width: 100%; }
  .search { max-width: 100%; }
  .trust { gap: 10px 16px; }
  .drop, .drop-inner { min-height: 210px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
  .steps { justify-content: space-between; }
  .steps li { padding: 0 6px 10px; font-size: 10px; flex: 1; text-align: center; }
  .tool { min-height: 0; }
  .pill { font-size: 11px; }
}
@media (max-width: 400px) {
  .brand strong { font-size: 15px; }
  .steps li { letter-spacing: 0; font-size: 9px; padding-left: 2px; padding-right: 2px; }
  .types { border-radius: 12px; }
}
@media (hover: none) {
  .tool:hover, .tool:focus-visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tool, .spinner { transition: none; animation: none; }
}
