/* Way Cloud Design System v1.0.0 (waycloud.com.br/waycloud-design-system.html), laid out like the customer area login: form on the left, animated brand ribbons on the right. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-v12-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --blue: #1d66ff;
  --blue-dark: #1349c0;
  --blue-tint: #eef4ff;
  --ink: #0b1023;
  --ink-2: #3a4562;
  --ink-3: #5b6785;
  --line: #e0e6f7;
  --line-strong: #cbd4ea;
  --white: #ffffff;
  --ok: #0e7a42;
  --danger: #8f1c14;
  --danger-tint: #fff0ef;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  word-spacing: 0.05em; /* the font's space is narrow */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }
a { color: var(--blue-dark); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 14px; height: 14px; }
:focus-visible { outline: 3px solid rgba(29, 102, 255, 0.5); outline-offset: 2px; border-radius: 6px; }

/* ---- split screen ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.pane.form { display: flex; flex-direction: column; padding: 28px 40px 24px; min-height: 100vh; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; }
.logo img { display: block; height: 28px; width: auto; }
.bar-nav { display: flex; gap: 22px; }
.bar-nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.bar-nav a:hover { color: var(--blue-dark); }
.flow { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 36px 0; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.legal { max-width: 440px; margin: 0 auto; width: 100%; font-size: 12px; color: var(--ink-3); }
.legal a { color: var(--ink-3); }

/* ---- brand pane (animated ribbons) ---- */
.brand { position: relative; overflow: hidden; background: var(--white); border-left: 1px solid var(--line); display: flex; align-items: center; }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(#0000 0%, #000 12%, #000 88%, #0000 100%), linear-gradient(90deg, #0000 0%, #000 12%, #000 88%, #0000 100%);
  mask-image: linear-gradient(#0000 0%, #000 12%, #000 88%, #0000 100%), linear-gradient(90deg, #0000 0%, #000 12%, #000 88%, #0000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.brand-copy { position: relative; padding: 48px clamp(32px, 6vw, 80px); max-width: 620px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h1 { font-size: clamp(28px, 3.1vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 14em; }

@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .pane.form { min-height: 0; padding: 20px 20px 24px; }
  .brand { border-left: 0; border-top: 1px solid var(--line); min-height: 340px; }
  .brand-copy { padding: 40px 24px; }
}
@media (max-width: 520px) { .bar-nav a:first-child { display: none; } }

/* ---- progress ---- */
.prog { margin-bottom: 26px; }
.prog p { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.segs i { height: 4px; border-radius: 4px; background: var(--line); transition: background 0.3s; }
.segs i.on { background: var(--blue); }

/* ---- blocks ---- */
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.block:not([hidden]) ~ .block:not([hidden]) { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 20px; border-radius: 10px; background: var(--danger-tint); color: var(--danger); border: 1px solid #ffd5d2; font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.alert .ic { margin-top: 2px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.note { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.note.soft { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.note.soft .ic { margin-top: 3px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.status { min-height: 20px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }

/* ---- drop zone ---- */
.drop { margin-top: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 224px; padding: 24px 20px; text-align: center; cursor: pointer; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: #fbfcff; transition: border-color 0.15s, background 0.15s; }
.drop .cloud { width: 56px; height: 56px; stroke-width: 1.3; color: #b9c3dc; margin-bottom: 8px; transition: color 0.15s; }
.drop-text { font-size: 15px; color: var(--ink-3); max-width: 15em; }
.pick { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.drop-sub { font-size: 12.5px; color: var(--ink-3); }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-tint); }
.drop:hover .cloud, .drop.over .cloud { color: var(--blue); }
.drop.busy { pointer-events: none; opacity: 0.55; }

/* ---- uploaded file row (like a recent-uploads list) ---- */
.files { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.files li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files .ic { color: var(--ink-3); }
.fmeta { flex: 1; min-width: 0; display: grid; }
.fmeta strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta span { font-size: 12px; color: var(--ink-3); }
.fstate { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.fstate.ok { color: var(--ok); }
.fstate.err { color: var(--danger); }
.fstate.load::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fstate.ok::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #17c86a; color: var(--white); font-size: 10px; }

.help { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.help summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); width: fit-content; }
.help p { margin: 10px 0; }
.quote { border-left: 3px solid var(--blue); background: #fbfcff; border-radius: 0 10px 10px 0; padding: 10px 14px; }
.quote p { margin: 0 0 6px; font-size: 13px; color: var(--ink); }

/* ---- buttons and links ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--white); cursor: pointer; transition: background 0.15s, transform 0.1s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.line { background: var(--white); color: var(--blue-dark); }
.btn.line:hover { background: var(--blue-tint); }
.btn.big { height: 50px; padding: 0 30px; font-size: 16px; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--blue-dark); cursor: pointer; padding: 4px 0; }
.text-btn:hover { text-decoration: underline; }
.text-btn.muted { color: var(--ink-3); font-weight: 500; text-decoration: underline; }
.link-out { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--blue-dark); text-decoration: none; }
.link-out:hover { text-decoration: underline; }
.urlrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); font: 600 15px/1.3 ui-monospace, "SF Mono", Consolas, monospace; border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 13px 15px; word-break: break-all; transition: border-color 0.15s, background 0.15s; }
.urlrow:hover { border-color: var(--blue); background: var(--blue-tint); }
.urlrow .ic { color: var(--blue); }
.restart { text-align: center; margin-top: 18px; }
.restart:has(button[hidden]) { display: none; }

/* ---- plans ---- */
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.seg-btn { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 15px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); cursor: pointer; }
.seg-btn.on { background: var(--blue); color: var(--white); }
.plans { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 18px; background: var(--white); }
.plan + .plan { border-top: 1px solid var(--line); }
.plan.best { background: var(--blue-tint); box-shadow: inset 3px 0 0 var(--blue); }
.plan-fit { font-size: 12px; font-weight: 700; color: var(--blue-dark); margin-bottom: 2px; }
.plan h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.plan-specs { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.plan-for { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.plan-buy { text-align: right; display: grid; gap: 4px; justify-items: end; }
.plan-price { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.plan-save { font-size: 12px; font-weight: 600; color: var(--ok); }
.plan .btn { margin-top: 6px; height: 40px; }
@media (max-width: 520px) { .plan { grid-template-columns: minmax(0, 1fr); } .plan-buy { text-align: left; justify-items: start; } }

/* ---- sign-up form ---- */
.summary { margin: 4px 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--blue-tint); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select { width: 100%; height: 44px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder { color: #9aa5c0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 102, 255, 0.15); }
.field [aria-invalid="true"] { border-color: #d92d20; }
.pair { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.err { margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--danger); }
.cb { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.cb input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.wide { width: 100%; margin-top: 4px; }
#signup-fallback { margin: 0 0 12px; }

/* ---- waiting + publishing ---- */
.bar-load { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 18px 0; }
.bar-load span { display: block; height: 100%; width: 30%; background: var(--blue); border-radius: 99px; animation: slide 1.5s ease-in-out infinite; }
@keyframes slide { from { margin-left: -30%; } to { margin-left: 100%; } }
.timeline { list-style: none; margin: 18px 0 6px; display: grid; }
.timeline li { position: relative; padding: 0 0 15px 28px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 20px; bottom: 1px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: #17c86a; border-color: #17c86a; content: "\2713"; color: var(--white); font-size: 10px; line-height: 13px; text-align: center; }
.timeline li.done::after { background: #17c86a; }
.timeline li.cur { color: var(--ink); }
.timeline li.cur::before { border-color: var(--blue); background: var(--blue-tint); }
#deploy-done { margin-top: 18px; }

/* ---- use it from your AI (lives in the brand pane, always visible) ---- */
.ia { margin-top: 36px; max-width: 460px; }
.ia h2 { font-size: 17px; }
.ia .sub { margin: 6px 0 8px; font-size: 13.5px; }
.use-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.use-list dt { font-weight: 700; font-size: 13.5px; }
.use-list dt span { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.use-list dd { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
code { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; line-height: 1.5; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; word-break: break-word; }
.use-list .text-btn { margin-top: 5px; }

@media (max-width: 520px) { .pane.form { padding: 16px 16px 20px; } .drop { min-height: 190px; } }
