/* RoaHost Identity — light editorial theme, coherent with ROA Credit
   (canvas #FDFBF7 · teal #0D5C63 · bronze-gold #B08D57 · Cormorant + Plus Jakarta Sans) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --canvas: #FDFBF7;   /* warm white */
  --surface: #F5F7FA;  /* panel surface */
  --text: #0F1B2D;     /* ink */
  --text-2: #475569;   /* muted */
  --primary: #0D5C63;  /* teal */
  --primary-hover: #0A4A50;
  --gold: #B08D57;     /* bronze accent */
  --money: #15803D;    /* success / verified */
  --err: #B42318;
  --hairline: #E2E8F0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-soft: 0 24px 60px -30px rgba(15, 27, 45, 0.28);
  --shadow-card: 0 12px 40px -24px rgba(15, 27, 45, 0.18);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

.hdr { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.brand { font-weight: 700; letter-spacing: -.01em; font-size: 17px; color: var(--text); }
.brand span { color: var(--gold); font-weight: 500; }
.progress { height: 3px; flex: 1; margin-left: 18px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.progress::after { content: ''; display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--primary), var(--gold)); transition: width .4s var(--ease); }

.stage { flex: 1; padding: 28px 22px; display: flex; }
.panel { flex: 1; display: flex; flex-direction: column; gap: 16px; animation: fade .3s var(--ease); }
.panel.hidden { display: none; }

h1 { font-family: var(--font-serif); font-size: 40px; line-height: 1.05; font-weight: 600; margin: 6px 0; letter-spacing: -.01em; }
h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 600; margin: 2px 0; letter-spacing: -.01em; }
p { color: var(--text-2); margin: 0; }
.fineprint { font-size: 12.5px; color: #8a94a3; margin-top: auto; padding-top: 8px; }

video {
  width: 100%; border-radius: 20px; background: #0b1518; aspect-ratio: 3/4; object-fit: cover;
  box-shadow: var(--shadow-card); border: 1px solid var(--hairline);
}
.instruction { font-size: 18px; color: var(--text); text-align: center; font-weight: 600; }
.score, .ocr { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: center; }

.receipt {
  background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 18px 20px;
  display: grid; gap: 8px; font-size: 14.5px; box-shadow: var(--shadow-card);
}
.receipt b { color: var(--text); font-weight: 600; }
.receipt div { color: var(--text-2); }
.receipt code { color: var(--primary); font-family: 'Plus Jakarta Sans', ui-monospace, monospace; }

.sigpad {
  width: 100%; height: 240px; background: #fff; border: 1px solid var(--hairline);
  border-radius: 16px; touch-action: none; box-shadow: var(--shadow-card);
}
.row { display: flex; gap: 12px; }

button { font-family: var(--font-ui); font-size: 16px; font-weight: 600; border: 0; border-radius: 14px; padding: 15px 20px; cursor: pointer; transition: background .2s var(--ease), transform .1s var(--ease); }
button.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(13, 92, 99, .6); }
button.primary:hover { background: var(--primary-hover); }
button.primary:active { transform: translateY(1px); }
button.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--hairline); }
button.ghost:hover { background: var(--surface); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li {
  padding: 14px 16px; background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  color: var(--text-2); position: relative; transition: all .3s var(--ease);
}
.steps li.done { color: var(--text); border-color: rgba(21, 128, 61, .35); background: #f6fbf7; }
.steps li.done::after { content: '✓'; color: var(--money); font-weight: 700; position: absolute; right: 16px; }

.err { color: var(--err); font-weight: 500; }

.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: -8px; }
input[type="email"] {
  width: 100%; font-family: var(--font-ui); font-size: 16px; color: var(--text);
  padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 14px; background: #fff;
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input[type="email"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,92,99,.12); }
.login-status { font-size: 13.5px; color: var(--text-2); min-height: 18px; }
.login-status.err { color: var(--err); }
.wallet-address {
  margin-top: 4px; font-size: 12.5px; color: var(--text-2); word-break: break-all;
  font-family: 'Plus Jakarta Sans', ui-monospace, monospace;
}
.wallet-address b { color: var(--primary); }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
