/*
 * ARRCO simplified interface (homepage, registration, client portal, admin).
 * Builds on the brand tokens in styles.css (blue + lime). Rules of thumb:
 * readable 16px+ text, 48px+ touch targets, visible focus, no horizontal
 * scrolling, and one obvious primary action per step.
 */

:root { --ui-radius: 14px; --ui-gap: 16px; --focus: 0 0 0 3px #fff, 0 0 0 6px var(--primary); }

/* ---------- accessibility basics ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: #0a1a2b; padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
html { overflow-x: hidden; }
body { overflow-x: hidden; font-size: 17px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .btn:hover { transform: none; } }
.btn-wide { width: 100%; }
.btn-outline-blue { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.text-link { color: var(--primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 12px 4px; display: inline-block; }
.optional { color: var(--muted); font-weight: 500; }
[hidden] { display: none !important; }

/* ---------- header (shared) ---------- */
.site-header .nav { height: 68px; }
.mobile-toggle { min-width: 48px; min-height: 48px; }
.mobile-drawer a { padding: 16px 0; font-size: 1.05rem; }
.cookie-banner { left: 12px !important; right: 12px !important; bottom: 12px !important; max-width: 720px; margin: 0 auto; font-size: .9rem; }

/* ---------- homepage ---------- */
.hero-simple { background: linear-gradient(140deg, #0033c9, #075fff 70%, #0a3fd9); color: #fff; padding: 40px 0 44px; }
.hero-simple-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker { margin: 0 0 8px; font-weight: 800; color: var(--lime); letter-spacing: .02em; }
.hero-simple h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 900; max-width: 18ch; text-wrap: balance; }
.hero-simple-lead { font-size: 1.12rem; max-width: 52ch; margin: 0 0 22px; color: #e6eeff; }
.price-card { background: #fff; color: var(--ink); border-radius: var(--ui-radius); padding: 20px; max-width: 460px; box-shadow: var(--shadow); }
.price-card-row { display: flex; align-items: baseline; gap: 10px; }
.price-big { font-size: 2.6rem; font-weight: 900; color: var(--primary); letter-spacing: -.03em; }
.price-unit { font-weight: 700; color: var(--muted); }
.price-facts { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 6px; }
.price-facts li { padding-left: 26px; position: relative; }
.price-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.hero-simple-shot { margin: 0; }
.hero-simple-shot img { border-radius: var(--ui-radius); box-shadow: 0 24px 60px rgba(0, 10, 60, .35); width: 100%; height: auto; }
.hero-simple-shot figcaption { margin-top: 10px; font-size: .92rem; color: #dbe6ff; }

.band { padding: 56px 0; }
.band-white { background: #fff; }
.band-dark { background: linear-gradient(145deg, #071426, #0b1f37); color: #fff; }
.band-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 900; }
.band-lead { margin: 0 0 24px; color: var(--muted); font-size: 1.08rem; }
.band-dark .band-lead { color: #c3d0e6; }
.narrow { max-width: 780px; }

.steps-simple { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ui-gap); }
.steps-simple li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--ui-radius); padding: 18px; }
.steps-simple h3 { margin: 2px 0 6px; font-size: 1.08rem; }
.steps-simple p { margin: 0; color: #334155; }
.step-n { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.work-card { border: 1px solid var(--line); border-radius: var(--ui-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.work-card img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-body h3 { margin: 0; font-size: 1.3rem; }
.work-body p { margin: 0; color: #334155; }
.work-tag { color: var(--primary) !important; font-weight: 800; font-size: .9rem; }
.work-links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.pricing-terms { background: rgba(199, 244, 0, .1); border: 1px solid rgba(199, 244, 0, .45); border-radius: 12px; padding: 14px 16px; margin: 6px 0 22px; }
.pricing-terms p { margin: 0; }
.pricing-terms a { color: var(--lime); text-decoration: underline; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan { background: #0f2440; border: 1px solid #23395a; border-radius: var(--ui-radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan-featured { border: 2px solid var(--lime); }
.plan-flag { position: absolute; top: -13px; left: 20px; background: var(--lime); color: #0a1a2b; font-weight: 900; font-size: .8rem; padding: 4px 10px; border-radius: 999px; margin: 0; }
.plan h3 { margin: 0; font-size: 1.35rem; }
.plan-price { margin: 0; color: #c3d0e6; }
.plan-price span { font-size: 2.2rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.plan-for { margin: 0 0 4px; color: #e2e8f0; font-weight: 600; }
.plan-list { margin: 4px 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.plan-list li { padding-left: 24px; position: relative; color: #e2e8f0; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 900; }
.plan-more { margin: 4px 0 12px; color: #c3d0e6; }
.plan-more summary { cursor: pointer; font-weight: 800; color: #fff; padding: 10px 0; min-height: 44px; }
.plan-more ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 5px; }
.plan .btn { margin-top: auto; }
.updates-explainer { margin-top: 28px; background: #fff; color: var(--ink); border-radius: var(--ui-radius); padding: 22px; }
.updates-explainer h3 { margin: 0 0 12px; font-size: 1.25rem; }
.updates-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.updates-cols ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.updates-yes, .updates-no { margin: 0; font-weight: 900; }
.updates-yes { color: #107552; }
.updates-no { color: #a85c00; }
.updates-note { margin: 16px 0 0; color: #334155; }

.faq-simple { display: grid; gap: 10px; }
.faq-simple details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-simple summary { cursor: pointer; padding: 16px 18px; font-weight: 800; min-height: 48px; list-style-position: outside; }
.faq-simple details p { margin: 0; padding: 0 18px 16px; color: #334155; }
.faq-simple a, .ask-hint a { color: var(--primary); text-decoration: underline; }
.faq-more { margin-top: 16px; }
.faq-more a { color: var(--primary); font-weight: 800; text-decoration: underline; }

.ask-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.ask-hint { color: var(--muted); font-style: italic; }
.ask-form { background: #fff; border: 1px solid var(--line); border-radius: var(--ui-radius); padding: 22px; display: grid; gap: 14px; }

/* ---------- forms (shared by public pages, portal and admin) ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 800; }
.field small, .help { color: var(--muted); font-size: .92rem; }
.field input, .field select, .field textarea, .ui-input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field .error-text { color: var(--danger); font-weight: 700; font-size: .92rem; }
.example { display: block; color: var(--muted); font-size: .92rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: 0 0 24px; accent-color: var(--primary); }

/* ---------- registration ---------- */
.reg-shell { min-height: 100vh; background: var(--paper); }
.reg-top { background: #0033c9; padding: 14px 0; }
.reg-top img { height: 38px; width: auto; }
.reg-wrap { width: min(1040px, calc(100% - 32px)); margin: 28px auto 60px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.reg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--ui-radius); padding: 24px; }
.reg-card h1 { font-size: 1.7rem; margin: 0 0 6px; line-height: 1.15; }
.reg-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .9rem; font-weight: 800; color: var(--muted); flex-wrap: wrap; }
.reg-steps li { background: #eef3ff; padding: 6px 10px; border-radius: 999px; }
.reg-steps li[aria-current="step"] { background: var(--primary); color: #fff; }
.plan-picker { display: grid; gap: 10px; margin: 6px 0 4px; }
.plan-option { display: flex; gap: 12px; align-items: center; border: 2px solid #cbd5e1; border-radius: 12px; padding: 14px; cursor: pointer; min-height: 56px; }
.plan-option input { width: 22px; height: 22px; accent-color: var(--primary); flex: 0 0 22px; }
.plan-option:has(input:checked) { border-color: var(--primary); background: #f3f7ff; }
.plan-option strong { display: block; }
.plan-option span.sub { color: var(--muted); font-size: .92rem; }
.plan-option .opt-price { margin-left: auto; font-weight: 900; white-space: nowrap; }
.cost-box { position: sticky; top: 16px; background: #fff; border: 2px solid var(--primary); border-radius: var(--ui-radius); padding: 22px; }
.cost-box h2 { margin: 0 0 12px; font-size: 1.2rem; }
.cost-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cost-line:last-of-type { border-bottom: 0; }
.cost-line strong { white-space: nowrap; }
.cost-note { background: #fff7e8; border: 1px solid #ffe2a8; border-radius: 10px; padding: 12px; margin-top: 12px; font-size: .95rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; min-height: 38px; border: 0; background: #eef3ff; color: var(--primary); font-weight: 800; border-radius: 8px; padding: 0 12px; }

/* ---------- app shell (portal + admin) ---------- */
.ux-app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.ux-side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #071426, #0b2038); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.ux-side .brand img { height: 42px; width: auto; margin: 0 8px 18px; }
.ux-nav { display: grid; gap: 4px; }
.ux-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 10px; color: #d3dfef; font-weight: 800; min-height: 48px; }
.ux-nav a:hover { background: #123150; color: #fff; }
.ux-nav a[aria-current="page"] { background: #123150; color: #fff; box-shadow: inset 4px 0 var(--lime); }
.ux-nav .count { margin-left: auto; background: var(--lime); color: #0a1a2b; border-radius: 999px; font-size: .8rem; padding: 2px 9px; }
.ux-main { min-width: 0; }
.ux-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; min-height: 64px; }
.ux-top h1 { font-size: 1.3rem; margin: 0; }
.ux-top-actions { display: flex; align-items: center; gap: 10px; }
.ux-content { padding: 22px; max-width: 1100px; }
.profile-menu { position: relative; }
.profile-menu > button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; min-height: 46px; font-weight: 800; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; }
.profile-panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-soft); min-width: 220px; padding: 8px; z-index: 40; }
.profile-panel a, .profile-panel button { display: block; width: 100%; text-align: left; padding: 12px; border-radius: 8px; border: 0; background: none; font-weight: 700; min-height: 44px; color: var(--ink); }
.profile-panel a:hover, .profile-panel button:hover { background: #eef3ff; }
.ux-tabbar { display: none; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--ui-radius); padding: 20px; }
.card + .card, .stack > * + * { margin-top: 16px; }
.card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Home: now / to do / next */
.now-card { border-left: 6px solid var(--primary); }
.now-card[data-tone="attention"] { border-left-color: var(--warning); }
.now-card[data-tone="done"] { border-left-color: var(--success); }
.now-title { font-size: 1.35rem; margin: 0 0 14px; line-height: 1.25; }
.ntn { display: grid; gap: 12px; margin: 0 0 18px; }
.ntn div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.ntn dt { font-weight: 900; color: var(--muted); }
.ntn dd { margin: 0; }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.milestones li { border-top: 6px solid #dbe3ef; padding-top: 8px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.milestones li[data-state="done"] { border-color: var(--success); color: #107552; }
.milestones li[data-state="current"] { border-color: var(--primary); color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 800; background: #e7efff; color: var(--primary); }
.pill-success { background: #e7fbf3; color: #107552; }
.pill-warning { background: #fff4dc; color: #8a5300; }
.pill-danger { background: #fff0f0; color: #a51d2d; }
.pill-muted { background: #eef2f7; color: #475569; }

.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-weight: 600; }
.notice-info { background: #eef3ff; color: #12307a; }
.notice-success { background: #e7fbf3; color: #0d5c40; }
.notice-warning { background: #fff4dc; color: #6b4200; }
.notice-error { background: #fff0f0; color: #8f1a26; }
.saved-status { font-size: .92rem; font-weight: 700; color: var(--muted); }
.saved-status[data-state="saved"] { color: #107552; }
.saved-status[data-state="error"] { color: var(--danger); }

/* business-details wizard */
.wizard-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.wizard-steps button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; min-height: 44px; color: var(--muted); }
.wizard-steps button[aria-current="step"] { border-color: var(--primary); color: var(--primary); }
.wizard-steps button[data-done="true"]::before { content: "✓ "; color: var(--success); }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }

/* uploads */
.dropzone { border: 2px dashed #9fb3d1; border-radius: 12px; padding: 20px; text-align: center; background: #f8fbff; }
.dropzone.drag { border-color: var(--primary); background: #eef3ff; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.upload-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.upload-list .name { overflow-wrap: anywhere; font-weight: 700; }
.upload-list progress { width: 100%; height: 10px; grid-column: 1 / -1; }
.upload-list .state-ok { color: #107552; font-weight: 800; }
.upload-list .state-err { color: var(--danger); font-weight: 800; grid-column: 1 / -1; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 4px; width: 100%; text-align: left; background: none; border: 0; color: inherit; min-height: 56px; }
button.list-item:hover { background: #f7f9fd; }
.list-item .title { font-weight: 800; overflow-wrap: anywhere; }
.list-item .sub { color: var(--muted); font-size: .92rem; }
.empty-state { text-align: center; padding: 26px 10px; color: var(--muted); }

/* conversations */
.thread { display: grid; gap: 10px; margin: 12px 0; }
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 14px; background: #eef3ff; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.me { justify-self: end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.note { justify-self: stretch; max-width: 100%; background: #fff8e1; border: 1px dashed #e5b84a; }
.bubble .meta { display: block; font-size: .8rem; opacity: .8; margin-top: 6px; white-space: normal; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--primary); padding: 10px 0; min-height: 44px; border: 0; background: none; }

/* billing */
.meter { height: 12px; background: #e6ebf3; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.meter > span { display: block; height: 100%; background: var(--primary); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { font-weight: 800; color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.ui-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ui-table th, .ui-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ui-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* admin */
.attention-group h3 { display: flex; align-items: center; gap: 10px; }
.attention-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); }
.attention-item:first-of-type { border-top: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--line); margin: 0 0 16px; padding-bottom: 0; scrollbar-width: thin; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 800; color: var(--muted); white-space: nowrap; min-height: 48px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.danger-zone { border: 2px solid #ffd0d4; background: #fffafa; }

/* modal (confirmations) */
.ux-dialog { border: 0; border-radius: var(--ui-radius); padding: 0; max-width: min(520px, calc(100% - 24px)); width: 100%; }
.ux-dialog::backdrop { background: rgba(7, 20, 38, .55); }
.ux-dialog form { padding: 22px; display: grid; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-simple-grid, .ask-grid, .reg-wrap { grid-template-columns: 1fr; }
  .hero-simple-shot { order: 2; }
  .steps-simple, .plan-grid, .grid-3 { grid-template-columns: 1fr; }
  .plan-flag { left: 16px; }
  .cost-box { position: static; }
}
@media (max-width: 860px) {
  .ux-app { grid-template-columns: 1fr; }
  .ux-side { display: none; }
  .ux-top { padding: 8px 14px; }
  .ux-content { padding: 14px 14px 96px; }
  .ux-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); }
  .ux-tabbar a { display: grid; place-items: center; gap: 2px; padding: 8px 2px; min-height: 56px; font-size: .78rem; font-weight: 800; color: var(--muted); border-radius: 10px; position: relative; }
  .ux-tabbar a b { font-size: 1.15rem; line-height: 1; }
  .ux-tabbar a[aria-current="page"] { color: var(--primary); background: #eef3ff; }
  .ux-tabbar .count { position: absolute; top: 4px; right: 18%; background: var(--lime); color: #0a1a2b; border-radius: 999px; font-size: .7rem; padding: 0 6px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .work-grid, .updates-cols, .grid-2, .form-grid-2 { grid-template-columns: 1fr; }
  .band { padding: 40px 0; }
  .hero-simple { padding: 26px 0 32px; }
  .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntn div { grid-template-columns: 1fr; gap: 2px; }
  .bubble { max-width: 95%; }
  .ux-top h1 { font-size: 1.1rem; }
  .profile-menu > button .pm-name { display: none; }
  .reg-card, .card, .cost-box, .ask-form, .updates-explainer { padding: 16px; }
}

/* Disclosure arrows inside their boxes (FAQ, plan details) */
.faq-simple summary, .plan-more summary { list-style: none; display: flex; align-items: center; gap: 10px; }
.faq-simple summary::-webkit-details-marker, .plan-more summary::-webkit-details-marker { display: none; }
.faq-simple summary::before, .plan-more summary::before { content: "+"; flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef3ff; color: var(--primary); font-weight: 900; }
.plan-more summary::before { background: rgba(255,255,255,.12); color: #fff; }
.faq-simple details[open] summary::before, .plan-more[open] summary::before { content: "−"; }

/* ---------- Template Website editor (site-editor.js) ---------- */
.se-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--ui-gap); margin-top: 16px; }
.se-gallery-1 { grid-template-columns: 1fr; }
.se-design h3 { margin: 12px 0 6px; display: flex; align-items: center; flex-wrap: wrap; }
.se-design p { margin: 0 0 8px; }
.se-shots { position: relative; background: #eef2f7; border-radius: 10px; padding: 10px 10px 18px; }
.se-shots img { display: block; height: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(7,20,38,.15); }
.se-shot-desktop { width: 82%; }
.se-shot-phone { position: absolute; right: 8px; bottom: 8px; width: 22%; border: 3px solid #0b1f37; border-radius: 10px !important; }
.se-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.se-save { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; flex-wrap: wrap; }
.se-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success, #12a36b); }
.se-save[data-state="saving"] .se-dot, .se-save[data-state="unsaved"] .se-dot { background: #e5a100; }
.se-save[data-state="failed"] { color: #a51d2d; }
.se-save[data-state="failed"] .se-dot { background: #d92d3f; }
.se-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 0 0 14px; }
.se-tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 800; color: var(--muted); min-height: 46px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.se-tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.se-badge { display: inline-block; margin-left: 6px; background: #fff4dc; color: #8a5300; border-radius: 999px; padding: 0 7px; font-size: .78rem; }
.se-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.se-panel > div > .card, .se-panel > .card, .se-panel details.card { margin-bottom: 12px; }
.se-panel .field { margin-bottom: 12px; }
.se-preview { position: sticky; top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--ui-radius); overflow: hidden; }
.se-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #f7f9fd; }
.se-preview-bar select { min-height: 40px; border-radius: 8px; border: 1px solid var(--line); padding: 4px 8px; }
.se-frame { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #fff; }
.se-preview[data-device="phone"] .se-frame { width: 390px; max-width: 100%; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.se-phone-switch { display: none; }
.se-phone-switch button { border: 2px solid var(--primary); background: #fff; color: var(--primary); font-weight: 800; padding: 8px 16px; min-height: 44px; }
.se-phone-switch button:first-child { border-radius: 10px 0 0 10px; }
.se-phone-switch button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.se-phone-switch button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.se-only-phone { display: none; }
.se-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.se-fieldset legend { font-weight: 800; margin-bottom: 8px; }
.se-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.se-swatch { position: relative; }
.se-swatch input { position: absolute; opacity: 0; }
.se-swatch label { display: grid; gap: 6px; padding: 10px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; min-height: 48px; }
.se-swatch input:checked + label { border-color: var(--primary); background: #eef3ff; }
.se-swatch input:focus-visible + label { box-shadow: var(--focus); }
.se-chips { display: flex; gap: 4px; }
.se-chips i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); display: block; }
.se-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.se-check input { width: 22px; height: 22px; flex: 0 0 22px; }
.se-pagepick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.se-section summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; }
.se-section.se-hidden { opacity: .75; background: #fafbfc; }
.se-sec-title { flex: 1 1 200px; overflow-wrap: anywhere; }
.se-sec-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.se-move { display: inline-flex; gap: 4px; }
.se-move .btn { min-width: 44px; }
.se-items { display: grid; gap: 10px; margin: 10px 0; }
.se-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.se-item legend { font-weight: 800; padding: 0 6px; }
.se-item.se-demo { border-color: #e5b84a; background: #fffdf5; }
.se-imgpick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.se-imgpick img, .se-noimg { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.se-noimg { display: grid; place-items: center; color: var(--muted); font-size: .85rem; background: #f4f6fa; }
.se-imgpick-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.se-link { display: grid; gap: 6px; }
.se-link select, .se-hours input { min-height: 44px; border-radius: 10px; border: 2px solid var(--line); padding: 6px 10px; font: inherit; }
.se-hours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.se-upload { display: grid; gap: 4px; }
.se-upload label.btn { justify-self: start; cursor: pointer; }
.se-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; }
.se-media-pick { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; display: grid; gap: 4px; font-size: .8rem; text-align: left; overflow-wrap: anywhere; }
.se-media-pick:hover { border-color: var(--primary); }
.se-media-pick img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.se-media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.se-media-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.se-picker, .se-crop { max-width: min(720px, calc(100% - 24px)); }
.se-crop-stage { position: relative; max-height: 50vh; overflow: hidden; border-radius: 8px; }
.se-crop-box { position: absolute; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(7,20,38,.55); pointer-events: none; }
.se-menu { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; }
.se-record { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.se-record-why { margin: 0 0 8px; font-weight: 800; }
.se-record code, .se-break { overflow-wrap: anywhere; word-break: break-all; background: #f4f6fa; padding: 2px 6px; border-radius: 6px; }
.se-checks { list-style: none; padding: 0; display: grid; gap: 4px; }
.se-checks li[data-ok="true"] { color: #107552; font-weight: 700; }
.se-checks li[data-ok="false"] { color: #8a5300; font-weight: 700; }
.se-missing { padding-left: 18px; display: grid; gap: 8px; }
.se-missing li { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .se-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 860px) {
  .se-layout { grid-template-columns: 1fr; }
  .se-phone-switch { display: inline-flex; }
  .se-only-phone { display: inline-flex; }
  .se-layout[data-phone="edit"] .se-preview { display: none; }
  .se-layout[data-phone="preview"] .se-panel { display: none; }
  .se-preview { position: static; }
  .se-frame { height: 72vh; }
  .se-hours { grid-template-columns: 1fr 1fr; }
}
.se-gallery > .card + .card { margin-top: 0; }
@media (max-width: 860px) {
  .se-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .se-tabs button { white-space: nowrap; }
}

/* ---------- Template Website offer (homepage, gallery, sign-up) ---------- */
.tpl-kicker { margin: 0 0 8px; font-weight: 800; color: var(--primary); letter-spacing: .02em; }
.tpl-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.tpl-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.tpl-facts li { padding-left: 28px; position: relative; color: #1e293b; }
.tpl-facts li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 900; }
.tpl-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tpl-cta .btn { min-width: 200px; }
.tpl-demo-note { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.tpl-path-box { background: #f4f7ff; border: 1px solid #d9e3ff; border-radius: var(--ui-radius); padding: 20px; }
.tpl-path-box h3 { margin: 0 0 12px; font-size: 1.2rem; }
.tpl-path { list-style: none; counter-reset: tplstep; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.tpl-path li { counter-increment: tplstep; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; color: #334155; }
.tpl-path li::before { content: counter(tplstep); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; }
.tpl-path b { color: var(--ink); }
.tpl-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.tpl-compare > div { border: 1px solid var(--line); border-radius: var(--ui-radius); padding: 20px; background: #fff; }
.tpl-compare h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tpl-compare ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; color: #334155; }
.hero-alt { margin-top: 16px; max-width: 460px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--ui-radius); padding: 16px; }
.hero-alt p { margin: 0 0 12px; color: #fff; }
.hero-alt .tpl-cta .btn { min-width: 0; flex: 1 1 160px; }
.btn-white { background: #fff; color: var(--primary); }
@media (max-width: 860px) {
  .tpl-grid, .tpl-compare { grid-template-columns: 1fr; }
  .tpl-cta .btn { flex: 1 1 100%; min-width: 0; }
}

/* ---------- main-site header and footer on Build It Yourself pages ---------- */
.tpl-page { padding-top: 28px; padding-bottom: 56px; }
.reg-shell.tpl-page { padding-top: 0; padding-bottom: 0; }
.auth-page.with-chrome { display: block; padding: 0; place-items: normal; }
.auth-wrap { display: grid; place-items: center; padding: 40px 18px 56px; min-height: calc(100vh - 78px); }

/* ---------- client portal: same blue header and logo as arrcodm.com ---------- */
.portal-page .ux-top { background: rgba(0, 54, 211, .97); border-bottom-color: rgba(255, 255, 255, .15); color: #fff; }
.portal-page .ux-top h1 { color: #fff; }
.portal-page .profile-menu > button { border-color: rgba(255, 255, 255, .5); }
.ux-top-brand { display: none; }
.ux-top-brand img { height: 32px; width: auto; display: block; }
.ux-side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ux-side-foot a { color: #b8cce2; padding: 10px 14px; font-weight: 700; border-radius: 10px; font-size: .95rem; }
.ux-side-foot a:hover { background: #123150; color: #fff; }
/* The customer's own website keeps its template look; this strip marks where ARRCO ends and their site begins. */
.se-preview-label { margin: 0; padding: 8px 12px; background: #071426; color: #fff; font-size: .85rem; font-weight: 800; }
.se-preview-label span { color: var(--lime); }
@media (max-width: 860px) {
  .portal-page .ux-top-brand { display: block; }
  .portal-page .ux-top h1 { font-size: 1.05rem; }
}
.tpl-page .cost-box { top: 96px; }
