/* canva-to-html — one screen, three states, one window frame.
   Nothing here is decorative: every element states something true about the
   conversion in front of you. Depth is surface steps and hairlines; colour is
   reserved for status. */

:root {
  --page: #2C2C2A;
  --canvas: #242422;
  --row: #31312E;

  --text: #F1EFE8;
  --body: #B4B2A9;
  --meta: #888780;
  --on-light: #2C2C2A;
  --btn2: #D3D1C7;

  --line-window: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.10);
  --line-field: rgba(255, 255, 255, 0.14);
  --line-focus: rgba(255, 255, 255, 0.28);
  --line-btn: rgba(255, 255, 255, 0.20);

  /* status only — never buttons, headlines, body text, or backgrounds */
  --ok: #5DCAA5;
  --working: #EF9F27;
  --bad: #E24B4A;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 88px 24px 0;
  background-color: var(--page);
  background-image: radial-gradient(900px 480px at 50% -8%, rgba(255, 255, 255, 0.06), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 14px/1.6 var(--sans);
}

h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.stage { max-width: 700px; margin: 0 auto; }

.header { margin-bottom: 40px; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--body);
  font: 500 13px/1 var(--mono);
}

.brand svg { width: 15px; height: 15px; color: var(--meta); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: 0.5px solid var(--line-btn);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill s { color: var(--meta); font-weight: 400; text-decoration: line-through; }

.headline {
  margin: 0 0 14px;
  max-width: 480px;
  color: var(--text);
  font: 700 33px/1.18 var(--sans);
  letter-spacing: -0.01em;
}

.tagline {
  max-width: 460px;
  color: var(--body);
  font: 400 15px/1.6 var(--sans);
  margin-bottom: 18px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--meta);
  font: 500 12.5px/1.4 var(--sans);
  white-space: nowrap;
}

.features li span {
  color: var(--body);
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── window ───────────────────────────────────────────────────────────── */

.window {
  border: 0.5px solid var(--line-window);
  border-radius: 14px;
  background: var(--canvas);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 24px -12px rgba(0, 0, 0, 0.4),
    0 32px 64px -24px rgba(0, 0, 0, 0.6);
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 70%);
  border-bottom: 0.5px solid var(--line);
}

.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 999px; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }

.wtitle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 62%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--meta);
  font: 400 12px/1 var(--mono);
}

.wbody { padding: 26px 26px 28px; }

/* ── intake: present in every state, transforms in place ──────────────── */

.intake { display: flex; gap: 10px; }

.intake input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0.5px solid var(--line-field);
  border-radius: 9px;
  background: var(--row);
  color: var(--text);
  font: 400 13.5px/1.6 var(--mono);
  transition: border-color 0.2s ease, opacity 0.3s ease;
}

.intake input::placeholder { color: var(--meta); }
.intake input:focus { outline: none; border-color: var(--line-focus); }
.intake input:disabled { opacity: 0.6; }

.cta {
  height: 44px;
  padding: 0 20px;
  border: 0.5px solid transparent;
  border-radius: 9px;
  background: var(--text);
  color: var(--on-light);
  font: 600 14px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.cta:disabled { opacity: 0.45; cursor: default; }

/* in READY the download is the filled action, so the intake steps back */
.cta.quiet {
  background: transparent;
  border-color: var(--line-btn);
  color: var(--btn2);
  opacity: 1;
}

.cta.quiet:hover { border-color: var(--text); color: var(--text); }

:focus-visible { outline: 0.5px solid var(--text); outline-offset: 2px; }

.error {
  margin-top: 14px;
  padding: 11px 14px;
  border: 0.5px solid var(--line-btn);
  border-radius: 8px;
  background: var(--row);
  color: var(--text);
  font-size: 13px;
}

/* ── work: grows out of the same surface, never replaces it ───────────── */

.work {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.36s ease, opacity 0.36s ease, visibility 0.36s;
}

.work.open { grid-template-rows: 1fr; opacity: 1; visibility: visible; }

.work-inner { overflow: hidden; }
.work-pad { padding-top: 22px; }

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--line);
}

.phase {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font: 400 13px/1.5 var(--sans);
}

.tally { color: var(--meta); font: 400 12px/1.5 var(--mono); white-space: nowrap; }

/* ── status marks: the one place colour lives ─────────────────────────── */

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--meta);
  transition: background 0.3s ease;
}

[data-status="working"] .dot { background: var(--working); animation: pulse 1.4s ease-in-out infinite; }
[data-status="done"] .dot { background: var(--ok); }
[data-status="failed"] .dot { background: var(--bad); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── file stream: every asset as it lands, kept after the run ─────────── */

.stream {
  height: 260px;
  margin-top: 16px;
  padding: 8px 0;
  overflow-y: auto;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--row);
  font: 400 11.5px/1.85 var(--mono);
  scrollbar-width: thin;
}

.sline {
  display: grid;
  grid-template-columns: 8px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--body);
  white-space: nowrap;
}

.sline i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
}

.sline .stag { color: var(--ok); }
.sline .spath { overflow: hidden; text-overflow: ellipsis; color: var(--meta); }
.sline .spath b { font-weight: 400; color: var(--body); }
.sline .ssize { color: var(--meta); }

.sline.bad i { background: var(--bad); }
.sline.bad .stag { color: var(--bad); }
.sline.bad .spath { color: var(--body); }

/* ── notes: skipped and failed said out loud ──────────────────────────── */

.notes { display: grid; gap: 7px; margin-top: 16px; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--body);
  font: 400 12.5px/1.6 var(--sans);
}

.working-hint {
  margin: 8px 0 0;
  color: var(--meta);
  font: 400 12.5px/1.6 var(--sans);
}

.note::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--bad);
}

.note.settled::before { background: var(--ok); }
.note.quiet::before { background: var(--meta); }
.note.quiet { color: var(--meta); }

/* ── preview: the converted site itself, as the proof it worked ───────── */

.preview {
  display: block;
  position: relative;
  margin-top: 18px;
  border: 0.5px solid var(--line-window);
  border-radius: 8px;
  background: var(--row);
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  /* a click opens the real thing rather than poking a scaled-down copy */
  pointer-events: none;
  transform-origin: top left;
}

.preview-cap { margin-top: 9px; color: var(--meta); font: 400 12px/1.5 var(--sans); }

/* ── result ───────────────────────────────────────────────────────────── */

.result {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.36s ease 0.08s, opacity 0.36s ease 0.08s;
}

.result.open { grid-template-rows: 1fr; opacity: 1; }
.result-inner { overflow: hidden; }

.dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 20px;
  padding: 0 20px;
  border: none;
  border-radius: 9px;
  background: var(--text);
  color: var(--on-light);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}

.dl:hover { background: #FFFDF6; }

.support-line {
  margin-top: 28px;
  color: var(--meta);
  font: 400 12px/1.5 var(--sans);
}

.support-line a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-line a:hover { color: var(--text); }

/* ── hosting options ─────────────────────────────────────────────────── */

.hosting {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 28px;
}

.host-option { min-width: 0; }

.host-label {
  color: var(--meta);
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.host-option pre {
  margin: 0;
  padding: 10px 14px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--row);
  font: 400 12.5px/1.6 var(--mono);
  color: var(--body);
  overflow-x: auto;
}

.host-option .prompt { color: var(--meta); user-select: none; margin-right: 8px; }
.host-option .cmd { color: var(--text); }
.host-option .flag { color: var(--working); }

.host-sub {
  margin-top: 6px;
  color: var(--meta);
  font: 400 11.5px/1.5 var(--sans);
}

.host-sub a { color: var(--body); text-decoration: underline; text-underline-offset: 2px; }
.host-sub a:hover { color: var(--text); }

.host-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  color: var(--meta);
  font: 400 11px/1 var(--sans);
}

.netlify-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--row);
  color: var(--body);
  font: 400 13px/1.4 var(--sans);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.netlify-drop:hover { border-color: #05BDBA; color: var(--text); }

.netlify-logo { width: 24px; height: 24px; flex: none; }

.banner {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 0.5px solid var(--line-btn);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--text);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ── content pages (guides, comparisons, use cases) ─────────────────── */

.content-page { max-width: 640px; }

.content-page .brand { text-decoration: none; }

.prose { margin-top: 8px; }

.prose h2 {
  margin: 36px 0 12px;
  color: var(--text);
  font: 600 20px/1.35 var(--sans);
  letter-spacing: -0.005em;
}

.prose h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font: 600 15px/1.4 var(--sans);
}

.prose p {
  margin: 0 0 14px;
  color: var(--body);
  font: 400 14.5px/1.7 var(--sans);
}

.prose ul, .prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 6px;
  color: var(--body);
  font: 400 14.5px/1.7 var(--sans);
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: #fff; }

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--row);
  color: var(--text);
  font: 400 13px/1 var(--mono);
}

.prose pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--row);
  font: 400 13px/1.6 var(--mono);
  color: var(--body);
  overflow-x: auto;
}

.prose .cta-inline {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 8px 0 14px;
  padding: 0 18px;
  border: none;
  border-radius: 9px;
  background: var(--text);
  color: var(--on-light);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}

.prose .cta-inline:hover { background: #FFFDF6; color: var(--on-light); }

/* ── home sections (how it works, faq) ────────────────────────────────── */

.home-section {
  max-width: 700px;
  margin: 72px auto 0;
}

.section-heading {
  margin: 0 0 28px;
  color: var(--text);
  font: 700 22px/1.3 var(--sans);
  letter-spacing: -0.01em;
}

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

.step {
  padding: 20px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--row);
  color: var(--meta);
  font: 600 12px/1 var(--mono);
  margin-bottom: 12px;
}

.step-title {
  margin: 0 0 6px;
  color: var(--text);
  font: 600 14px/1.4 var(--sans);
}

.step-desc {
  margin: 0;
  color: var(--body);
  font: 400 13px/1.6 var(--sans);
}

.step-desc a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.step-desc a:hover { color: #fff; }
.step-desc code { font: 400 12px/1 var(--mono); color: var(--meta); }

.faq { display: grid; gap: 0; }

.faq-item {
  border-top: 0.5px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0.5px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--text);
  font: 500 14.5px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--meta);
  font: 400 18px/1 var(--mono);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover { color: #fff; }

.faq-item p {
  margin: 0 0 16px;
  color: var(--body);
  font: 400 13.5px/1.65 var(--sans);
}

.faq-item a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.faq-item a:hover { color: #fff; }

/* ── site footer ─────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  left: -24px;
  width: calc(100% + 48px);
  margin-top: 120px;
}

.footer-rule {
  border: none;
  border-top: 0.5px solid var(--line);
  margin: 0 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 48px;
}

.footer-col ul { margin: 0; padding: 0; list-style: none; }

.footer-heading {
  margin: 0 0 14px;
  color: var(--text);
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--meta);
  font: 400 13px/1.5 var(--sans);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px 48px 24px;
  border-top: 0.5px solid var(--line);
  color: var(--meta);
  font: 400 12px/1 var(--mono);
}

@media (max-width: 560px) {
  body { padding: 48px 16px 0; }
  .header { margin-bottom: 32px; }
  .headline { font-size: 26px; }
  .wbody { padding: 18px 16px 20px; }
  .intake { flex-direction: column; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hosting { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .home-section { padding: 0; }
  .host-divider { padding-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .site-footer { left: -16px; width: calc(100% + 32px); margin-top: 80px; }
  .footer-grid { padding: 0 24px; }
  .footer-bottom { padding: 20px 24px 16px; }
}
