/* Rolovio apps — additions on top of styles.css / auth.css.
   Fonts are self-hosted (same as rolovio.com). */
@font-face { font-family: 'Urbanist'; font-weight: 600; font-display: swap; src: url(fonts/urbanist-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Urbanist'; font-weight: 700; font-display: swap; src: url(fonts/urbanist-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Urbanist'; font-weight: 800; font-display: swap; src: url(fonts/urbanist-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format('woff2'); }

:root {
  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
body { font-size: 17px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; }
a { color: inherit; }

/* Brand: Rolovio logo + product name */
.app-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.app-brand img { height: 24px; width: auto; }
.app-brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--white);
  padding-left: 10px; border-left: 1px solid var(--border-strong); line-height: 1.1;
}
.auth-logo.app-brand img { height: 28px; }

/* Dashboard */
.dash-user { flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.dash-user a { color: var(--text-muted); }
.dash-user a.on { color: var(--orange-light); }
.dash-nav a { color: var(--text); font-weight: 600; }
.dash-nav a:hover { border-color: var(--orange-light); }
.dash-nav a.active:hover { color: var(--white); }
.dash-section-title { font-size: 1.8rem; }
.dash-section-sub { font-size: 1rem; max-width: 62ch; }
.dash-card h2 { font-family: var(--font-display); text-transform: none; letter-spacing: -0.01em; font-size: 1.2rem; font-weight: 700; }
.form-field label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.field-hint { color: var(--text-faint); font-size: 0.85rem; margin-top: 6px; }
.card-note { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.card-note a, .dash-card p a { color: var(--orange-light); text-decoration: underline; text-underline-offset: 3px; }
.dash-foot {
  max-width: 1000px; margin: 0 auto; padding: 24px 24px 40px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--text-faint);
}
.dash-foot a { color: var(--text-muted); }
.dash-foot a:hover { color: var(--orange-light); }
.dash-email { color: var(--text-faint); }
@media (max-width: 640px) {
  .dash-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-body { padding-top: 28px; }
  .dash-card { padding: 22px 18px; }
  .dash-email { display: none; }
}

/* Two-column editor: preview + controls */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.editor .sticky { position: sticky; top: 20px; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } .editor .sticky { position: static; } }

/* Template + colour pickers */
.swatch-grid { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.swatch { position: relative; cursor: pointer; width: 62px; display: flex; flex-direction: column; align-items: center; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch-dot { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--orange-light); }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--white); outline-offset: 3px; }
.swatch-label { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; line-height: 1.25; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.template-option { position: relative; cursor: pointer; display: block; }
.template-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.template-card {
  min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px;
  color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
}
.template-option input:checked + .template-card { border-color: var(--orange); color: var(--white); background: rgba(255,106,0,0.08); }
.template-option input:focus-visible + .template-card { outline: 2px solid var(--white); outline-offset: 2px; }

/* Link boxes */
.link-row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; margin-bottom: 16px; }
.link-row input { flex: 1; min-width: 0; background: none; border: none; color: var(--text); font-family: var(--font-mono); font-size: 0.88rem; }
.link-row input:focus { outline: none; }
.prefix-row { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.prefix-row span { padding: 12px 0 12px 14px; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.88rem; white-space: nowrap; align-self: center; }
.prefix-row input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding-left: 2px !important; font-family: var(--font-mono) !important; font-size: 0.92rem !important; }
.inline-form { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.inline-form > .grow { flex: 1; min-width: 220px; }
.btn-small { padding: 8px 14px; font-size: 0.85rem; }
.btn-danger-link { background: none; border: 0; color: var(--text-faint); cursor: pointer; font: inherit; font-size: 0.88rem; padding: 0; text-decoration: underline; }
.btn-danger-link:hover { color: #F87171; }
.status-dot { font-size: 0.85rem; font-weight: 600; }
.status-dot.ok { color: #4ADE80; }
.status-dot.wait { color: var(--orange-light); }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; display: block; background: var(--surface-2); }
.thumb.round { border-radius: 50%; }
.thumb.wide { width: 200px; height: auto; max-height: 120px; }
.steps-list { color: var(--text-muted); line-height: 1.8; padding-left: 1.2em; list-style: decimal; }
.steps-list b { color: var(--text); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--bg); border-color: var(--white); }
.copy-toast { color: #4ADE80; font-size: 0.9rem; margin-top: 10px; min-height: 1.4em; }

/* Admin tables */
.admin-stats { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 24px; min-width: 140px; }
.admin-stat .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.admin-stat .label { font-size: 0.85rem; color: var(--text-faint); }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; vertical-align: middle; }
table.list th { color: var(--text-faint); font-weight: 600; font-size: 0.82rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-active { background: rgba(74,222,128,0.12); color: #4ADE80; }
.badge-suspended { background: rgba(248,113,113,0.12); color: #F87171; }
.badge-pending { background: rgba(255,106,0,0.12); color: var(--orange-light); }
.badge-admin { background: rgba(255,255,255,0.08); color: var(--text); }

/* Landing page */
.land { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse 70% 55% at 85% 0%, rgba(255,106,0,0.16), transparent 60%), var(--bg); }
.land-top { max-width: 1120px; width: 100%; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.land-top nav { display: flex; gap: 8px; align-items: center; }
.land-main { flex: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 40px 24px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.land-main h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.04; color: var(--white); margin-bottom: 18px; }
.land-main .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 46ch; margin-bottom: 28px; }
.land-points { margin: 0 0 32px; display: grid; gap: 10px; }
.land-points li { padding-left: 28px; position: relative; color: var(--text); }
.land-points li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.land-note { margin-top: 16px; color: var(--text-faint); font-size: 0.92rem; }
.land-art { display: flex; justify-content: center; }
.land-foot { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; color: var(--text-faint); font-size: 0.9rem; }
.land-foot a { color: var(--text-muted); }
@media (max-width: 860px) { .land-main { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; } }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; font-size: 0.92rem; color: var(--text-muted); cursor: pointer; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.check-row a { color: var(--orange-light); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.prose-page { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; color: var(--text-muted); }
.prose-page h1 { color: var(--white); font-size: 2.2rem; margin: 24px 0 12px; }
.prose-page h2 { color: var(--white); font-size: 1.25rem; margin: 28px 0 8px; }
.prose-page p { margin-bottom: 12px; }
.prose-page a { color: var(--orange-light); text-decoration: underline; }

/* Signature editor */
.sig-preview-box { background: #fff; color: #333; border-radius: var(--radius-sm); padding: 22px; overflow-x: auto; }
.sig-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Preview frames */
.frame { width: 100%; border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; background: #fff; }
.frame iframe { width: 100%; border: 0; display: block; }
.frame.phone { max-width: 360px; margin: 0 auto; border-radius: 28px; border-width: 8px; border-color: #2B2E35; }
.frame.phone iframe { height: 620px; }
.frame.page iframe { height: 640px; }
.frame-bar { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* Landing art */
.sig-art { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 24px; color: #333; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.sig-art-mail i { display: block; height: 9px; border-radius: 5px; background: #ECEEF1; margin-bottom: 9px; }
.sig-art-sig { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 3px solid var(--orange); }
.sig-art-ph { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #FFB46B, #FF6A00); color: #fff; display: grid; place-items: center; font-weight: bold; font-size: 22px; }
.sig-art-sig b { display: block; font-size: 16px; color: #111; }
.sig-art-sig span { display: block; font-size: 12.5px; color: #555; }
.sig-art-sig span.r { color: #C24E00; font-weight: bold; }
.sig-art-promo { margin-top: 14px; background: var(--orange); color: #fff; font-size: 12.5px; font-weight: bold; padding: 8px 14px; border-radius: 4px; display: inline-block; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-box svg { width: 280px; height: 280px; max-width: 100%; margin: 0 auto; border-radius: 14px; display: block; }
.pdf-frame { width: 100%; aspect-ratio: 96 / 56; border-radius: 10px; overflow: hidden; background: #2a2a2a; border: 1px solid var(--border-strong); }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Landing art: card */
.card-art-phone { width: 260px; border-radius: 36px; background: #2B2E35; padding: 10px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.card-art-head { height: 92px; border-radius: 28px 28px 0 0; background: linear-gradient(135deg, var(--orange), var(--orange-light)); position: relative; }
.card-art-av { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #3A3F49, #181A1E); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.card-art-body { background: #fff; border-radius: 0 0 28px 28px; padding: 46px 16px 18px; text-align: center; color: #181A1E; }
.card-art-body b { display: block; font-family: var(--font-display); font-size: 18px; }
.card-art-body > span { display: block; font-size: 13px; color: #6B7280; }
.card-art-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.card-art-acts i { font-style: normal; background: #F1F2F4; border-radius: 8px; padding: 8px 0; font-size: 11.5px; font-weight: 700; }
.card-art-body em { display: block; font-style: normal; text-align: left; font-size: 12px; color: #4B5160; padding: 7px 2px; border-top: 1px solid #F0F1F3; }
.card-art-body strong { display: block; margin-top: 10px; background: var(--orange); color: #fff; border-radius: 10px; padding: 10px; font-size: 13px; }

/* Landing art: website */
.site-art { width: 100%; max-width: 470px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); color: #181A1E; }
.site-art-bar { display: flex; gap: 6px; padding: 10px 14px; background: #F4F5F7; border-bottom: 1px solid #E3E6EB; }
.site-art-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3D7DE; }
.site-art-bar span { margin-left: 10px; font-size: 11.5px; color: #6B7280; background: #fff; border: 1px solid #E3E6EB; border-radius: 6px; padding: 2px 10px; flex: 1; }
.site-art-hero { background: linear-gradient(135deg, #1F2A24, #4F6E52); color: #fff; padding: 18px 20px 30px; }
.site-art-hero nav { display: flex; justify-content: space-between; font-size: 11px; opacity: .9; margin-bottom: 26px; }
.site-art-hero b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin-bottom: 6px; }
.site-art-hero p { font-size: 12px; opacity: .85; margin: 0 0 12px; }
.site-art-hero em { font-style: normal; display: inline-block; background: var(--orange); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; }
.site-art-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.site-art-cols div { border-radius: 8px; background: #F1F2F4; padding: 10px; font-size: 11px; color: #4B5160; }
.site-art-cols div b { display: block; color: #181A1E; font-size: 12px; margin-bottom: 4px; }

/* Website services editor */
.service-row { padding: 14px 0; border-top: 1px solid var(--border); }
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-edit { display: grid; gap: 8px; }
.service-edit input[type="text"] { width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--white); font: inherit; font-size: 0.95rem; }
.service-edit input[type="text"]:first-of-type { font-weight: 700; }
.service-edit input:focus { outline: none; border-color: var(--orange); }
.service-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.service-add { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.pdf-frame canvas { width: 100%; height: 100%; display: block; }
