/* --------------------------------------------------------------------------
   WFsign Web — mobile-only layout
   The pages are intentionally capped to a phone-width canvas at every viewport.
   -------------------------------------------------------------------------- */
html {
    background: #dce9fb;
}

body {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(11, 61, 122, 0.06), 0 0 70px rgba(11, 61, 122, 0.12);
    -webkit-tap-highlight-color: transparent;
}

/* Header: compact app bar, no desktop navigation. */
.site-header {
    position: sticky;
    top: 0;
}

.header-inner {
    max-width: 480px;
    min-height: 62px;
    padding: 8px 14px;
    gap: 8px;
}

.brand {
    gap: 8px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
}

.brand-copy strong {
    font-size: 15px;
}

.brand-copy small {
    font-size: 9px;
}

.main-nav,
.header-cta {
    display: none !important;
}

.header-side {
    gap: 6px;
}

.status-chip {
    padding: 5px 8px;
    gap: 5px;
    font-size: 9px;
}

.status-chip i {
    width: 6px;
    height: 6px;
}

.status-chip span {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Single-column shell. */
.page {
    max-width: 480px;
    padding: 0 14px calc(36px + env(safe-area-inset-bottom));
}

.hero,
.hero-compact {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 0 16px;
}

.hero-art,
.upload-illustration,
.hero-proof,
.side-stack {
    display: none !important;
}

.eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
}

.hero h1 {
    margin: 10px 0;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.85;
}

.hero-points {
    gap: 6px;
    margin-bottom: 0;
}

.hero-points span {
    padding: 5px 8px;
    font-size: 9.5px;
}

.signer-shell,
.upload-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    scroll-margin-top: 78px;
}

/* Form: phone-sized controls and 16px inputs to avoid iOS auto-zoom. */
.form-card {
    padding: 16px;
    border-radius: 20px;
}

.card-head {
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.card-head h2 {
    font-size: 16px;
}

.card-head p {
    font-size: 10.5px;
    line-height: 1.6;
}

.step-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 12px;
}

.secure-pill {
    display: none;
}

.file-grid,
.field-grid,
.upload-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.dropzone-wide {
    grid-column: auto;
}

.dropzone {
    min-height: 84px;
    padding: 10px;
    gap: 9px;
    border-radius: 15px;
}

.drop-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.drop-copy strong {
    font-size: 12px;
}

.drop-copy span,
.drop-copy small {
    font-size: 9.5px;
}

.drop-choose {
    padding: 5px 7px;
    font-size: 9px;
    color: #ffffff;
    background: #123e6b;
    border-color: #123e6b;
}

.password-field {
    padding: 11px;
    border-radius: 15px;
}

.field {
    gap: 5px;
}

.field label {
    font-size: 12px;
}

.field-hint {
    font-size: 10px;
}

.input-wrap input,
.select-wrap select {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
}

.input-wrap input::placeholder {
    font-size: 13px;
}

.check-row {
    margin: 14px 0;
    gap: 8px;
}

.check-row strong {
    font-size: 11.5px;
}

.check-row small {
    font-size: 9.5px;
}

.btn-xl {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 14px;
}

.form-note {
    font-size: 10px;
}

/* Progress and results. */
.progress-card,
.result-card {
    padding: 16px;
    margin-top: 14px;
    border-radius: 20px;
}

.progress-head h2 {
    font-size: 15px;
}

.progress-percent {
    font-size: 20px;
}

.progress-steps {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.progress-step {
    padding: 8px;
    gap: 6px;
}

.progress-step small {
    display: none;
}

.progress-step strong {
    font-size: 9.5px;
}

.progress-step > span {
    width: 20px;
    height: 20px;
}

.result-head {
    gap: 9px;
    padding-bottom: 12px;
}

.result-check {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.result-head h2 {
    font-size: 16px;
}

.result-head .btn {
    width: 100%;
    margin-inline-start: 0;
}

.result-app {
    gap: 9px;
    padding: 12px 0;
}

.app-icon.large {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
}

.result-app h3 {
    font-size: 15px;
}

.result-app p {
    font-size: 10px;
}

.result-app code {
    font-size: 8.5px;
}

.verified-pill {
    padding: 5px 7px;
    font-size: 8.5px;
}

.result-actions {
    grid-template-columns: 1fr;
    gap: 8px;
}

.result-share {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px;
}

.qr-box {
    min-height: 110px;
}

.result-details {
    grid-template-columns: 1fr;
    gap: 6px;
}

.result-details div {
    padding: 8px 10px;
}

.result-details span {
    font-size: 8.5px;
}

.result-details strong {
    font-size: 10px;
}

/* Install landing page. */
.install-page {
    max-width: 480px;
    padding: 16px 12px calc(30px + env(safe-area-inset-bottom));
}

.install-card {
    padding: 16px;
    border-radius: 20px;
}

.install-top {
    margin-bottom: 12px;
}

.install-app-head {
    padding: 11px;
    gap: 9px;
}

.app-icon.hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 22px;
}

.install-app-head h1 {
    font-size: 18px;
}

.install-app-head p {
    font-size: 10px;
}

.install-app-head code {
    font-size: 8px;
}

.btn-install {
    padding: 15px;
    font-size: 14px;
    border-radius: 14px;
}

.install-hint {
    font-size: 9.5px;
}

.install-share {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px;
}

.qr-panel {
    order: 2;
}

.install-details {
    grid-template-columns: 1fr;
    gap: 6px;
}

.install-details div {
    padding: 8px 10px;
}

.install-steps {
    grid-template-columns: 1fr;
    gap: 6px;
}

/* How section and footer. */
.how-section {
    padding-top: 24px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    font-size: 20px;
}

.section-heading p {
    font-size: 11px;
}

.how-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.how-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 12px;
}

.how-number {
    display: none;
}

.how-icon {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 11px;
}

.how-card h3 {
    margin: 0;
    font-size: 12px;
}

.how-card p {
    font-size: 9.5px;
    line-height: 1.6;
}

.site-footer {
    margin-top: 20px;
}

.footer-inner {
    max-width: 480px;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    gap: 10px;
}

.footer-brand p {
    font-size: 9px;
}

.footer-links {
    display: none;
}

.footer-note {
    padding-top: 8px;
    font-size: 8.5px;
}

/* Modal fits the phone canvas. */
.modal {
    padding: 12px;
}

.modal-card {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
}

@media (min-width: 481px) {
    body {
        border-inline: 1px solid rgba(11, 61, 122, 0.08);
    }
}
