/* Hookline editor. Brand tokens match hooklineacademy.com / hooklinegrowth.com. */
:root {
  --ink: #04122c; --navy: #022554; --blue: #0466ff; --cyan: #00b0e4; --green: #03e0a8;
  --gradient-light: linear-gradient(100deg, #00b0e4 0%, #03e0a8 100%);
  --bg: #f2f6fb; --card: #fff; --line: #dbe3ee; --muted: #4a5873; --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* buttons and badges set their own display; hidden must still win */
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 'Manrope', system-ui, sans-serif; }
h1, h2 { font-family: 'Archivo', sans-serif; font-stretch: 115%; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); } h2 { font-size: 1.15rem; }
a { color: var(--blue); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); }
.bar .link { color: #c8d5ec; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.narrow { max-width: 440px; margin: 40px auto; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--cyan) 40%, transparent); border-color: var(--cyan); }
.btn { font: 800 1rem 'Manrope', sans-serif; padding: 13px 20px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:disabled { opacity: .6; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.link { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .note { background: #e8f1ff; padding: 12px 14px; border-radius: 12px; }
.eyebrow { font: 800 .72rem/1 'Manrope'; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.site__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--gradient-light); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.ask textarea { margin: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: 600 .85rem 'Manrope'; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--navy); cursor: pointer; }
.you { font-weight: 700; margin: 0 0 10px; }
.ai { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.ok { background: #e3faf3; color: #04513f; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.working { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cyan); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: min(70vh, 640px); margin-bottom: 8px; }
.frame iframe { width: 100%; height: 100%; border: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.history ul { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.dot--approved { background: var(--green); } .dot--preview, .dot--working, .dot--building { background: var(--cyan); } .dot--failed { background: #e05a3a; }
@media (max-width: 600px) { .actions .btn { flex: 1; } }

.billing .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 16px 0 8px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.limit { margin: 10px 0; font-weight: 700; }
select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.warn { background: #fff3dc; color: #6b4a10; border-radius: 12px; padding: 12px 14px; }

.ask__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.attach { display: inline-flex; align-items: center; cursor: pointer; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(4,18,44,.75); color: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.history__text { flex: 1; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 5px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1 0 auto; white-space: nowrap; font: 800 .95rem 'Manrope'; padding: 11px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tab.is-on { background: var(--ink); color: #fff; } .tab.is-on .muted { color: #9fb2d4; }
.quick details { border-top: 1px solid var(--line); padding: 4px 0; }
.quick summary { font: 800 1rem 'Manrope'; padding: 12px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.quick summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; line-height: 1; } .quick details[open] summary::after { content: '−'; }
.quick form { display: grid; gap: 12px; padding-bottom: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 10px; display: grid; gap: 10px; }
.svc-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
label.inline { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
label.inline input { width: auto; }

.help { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; font-size: .92rem; }
.help summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 6px 0; }
.help p { margin: 8px 0; }

.badge[hidden] { display: none; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e05a3a; color: #fff; font-size: .75rem; font-weight: 800; margin-left: 4px; }
.filters { display: flex; gap: 8px; margin: 4px 0 12px; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lead header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lead p { margin: 4px 0; }
.lead__msg { background: var(--bg); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; margin: 10px 0 !important; }
.lead__tools { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.lead.is-focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 30%, transparent); }
.ok-text { color: #02815f; font-weight: 700; }
.alerts h2 { font-size: 1.05rem; }
.sms { margin-top: 10px; }

.tapedit-open { width: 100%; margin-bottom: 8px; }
.tapedit { position: fixed; inset: 0; z-index: 50; background: var(--ink); display: flex; flex-direction: column; }
.tapedit[hidden] { display: none; }
.tapedit__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; color: #fff; font-weight: 700; }
.tapedit__actions { display: flex; gap: 8px; }
.tapedit__bar .btn { min-height: 42px; padding: 9px 16px; }
.tapedit__bar .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.tapedit__bar .btn:not(.btn--ghost) { background: linear-gradient(100deg, #00b0e4, #03e0a8); color: var(--ink); }
.tapedit iframe { flex: 1; width: 100%; border: 0; background: #fff; }
body.no-scroll { overflow: hidden; }

.btn--google { width: 100%; gap: 10px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); margin-top: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Formatting hint under text boxes that accept **bold**, links and lists. */
.hint { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; font-weight: 500; }

/* Look: the owner's site on top, picks underneath. */
.look { position: fixed; inset: 0; z-index: 50; background: var(--ink); display: flex; flex-direction: column; }
.look[hidden] { display: none; }
.look iframe { flex: 1; width: 100%; border: 0; background: #fff; min-height: 0; }
.look__panel { background: #fff; padding: 10px 0 12px; max-height: 48vh; overflow-y: auto; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.look__row { padding: 4px 14px; }
.look__row > b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.lchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; flex-wrap: nowrap; margin: 0; }
.lchip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 96px; max-width: 160px; padding: 8px 10px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-family: inherit; font-weight: 600; font-size: .85rem; line-height: 1.2; text-align: left; cursor: pointer; }
.lchip b { font-size: 1.05rem; } .lchip small { color: var(--muted); font-size: .72rem; line-height: 1.3; font-weight: 500; }
.lchip.is-on { box-shadow: inset 0 0 0 2.5px #00b0e4; background: #effbff; }
.sw { display: flex; } .sw i { width: 18px; height: 18px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px #fff; }
.look__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.look__bar .btn { min-height: 42px; padding: 9px 16px; }

/* Google listing preview. */
.serp { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface, #f4f6f8); font-family: Arial, sans-serif; }
.serp__url { color: #4d5156; font-size: .78rem; }
.serp__title { color: #1a0dab; font-size: 1.05rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp__desc { color: #4d5156; font-size: .85rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Photo framing. */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.thumb { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .8rem; line-height: 1.3; color: var(--ink); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.framing { position: fixed; inset: 0; z-index: 50; background: rgba(5, 15, 30, .7); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.framing[hidden] { display: none; }
.framing__box { width: min(560px, 100%); margin: 0; }
.framing__pick { position: relative; cursor: crosshair; }
.framing__pick img { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 10px; background: #f1f4f8; }
.framing__dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; background: #00b0e4; box-shadow: 0 2px 10px rgba(0,0,0,.4); pointer-events: none; }
.framing__crops { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 12px 0; align-items: end; }
.framing__crops figure { margin: 0; } .framing__crops figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.framing__crops img { width: 100%; object-fit: cover; border-radius: 8px; }
.framing__crops .tall { aspect-ratio: 4 / 5; } .framing__crops .wide { aspect-ratio: 21 / 9; }

/* Start (onboarding). */
.narrow-wrap { max-width: 680px; }
.src { display: inline-block; justify-self: start; width: fit-content; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e3faf3; color: #04513f; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.places { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.places .link { text-align: left; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--bg); width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; display: grid; gap: 6px; min-width: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photo-grid select, .photo-grid input { width: 100%; min-width: 0; font: inherit; font-size: .85rem; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); }
.photo-logo img { max-height: 48px; width: auto; }
.note ul { margin: 6px 0 0; padding-left: 1.2em; }

/* Results. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 2px; }
.tile__n { font: 800 2rem/1 'Archivo', sans-serif; font-stretch: 110%; }
.up { color: #04513f; font-size: .8rem; font-weight: 700; } .down { color: #9a2c12; font-size: .8rem; font-weight: 700; }
.sources { list-style: none; padding: 0; margin: 0 0 10px; }
.sources li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Own domain. */
.steps-list { padding-left: 1.3em; display: grid; gap: 8px; }
.records { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: .9rem; }
.records th, .records td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.records code { word-break: break-all; }
.checks-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.checks-list li { display: flex; gap: 10px; align-items: flex-start; }
.checks-list .dot { margin-top: 7px; }
.bar #admin-link { color: #c8d5ec; margin-right: 12px; }
.support-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px; background: #ffe9a8; color: #3d2e00; font-weight: 600; }
.support-bar .btn { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
/* Admin */
.wrap.wide { max-width: 1180px; }
.bar__label { color: #c8d5ec; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 18px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-list li { border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
.count { display: inline-block; min-width: 1.6em; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); font: 800 .8rem 'Manrope'; text-align: center; vertical-align: middle; }
.count--on { background: #ffe1dc; color: #8a1c0a; }
.atiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.atile { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.atile b { font: 800 1.4rem 'Archivo', sans-serif; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 8px 0; white-space: nowrap; }
.admin-table td { border-top: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
.admin-table .bad { color: #b42318; font-weight: 800; }
.btn--tight { min-height: 36px; padding: 6px 12px; font-size: .85rem; white-space: nowrap; }

/* Chatbot tab */
.chat-card summary { font: 800 1rem 'Manrope'; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.chat-card summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; line-height: 1; } .chat-card[open] summary::after { content: '−'; }
.chat-card[open] summary { margin-bottom: 12px; }
.chat-card .step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-size: .85rem; margin-right: 6px; }
.chat-card.is-done .step { background: var(--green); border-color: var(--green); color: var(--ink); }
.chat-card label { margin: 10px 0; }
.facts { display: grid; gap: 2px; margin-bottom: 8px; }
label.fact { align-items: flex-start; font-weight: 400; margin: 4px 0; }
label.fact input { margin-top: 4px; accent-color: var(--blue); }
label.q { font-weight: 600; }
.tones { display: grid; gap: 10px; }
.tone { display: grid; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 400; cursor: pointer; }
.tone input { position: absolute; opacity: 0; }
.tone.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.tone span { color: var(--muted); }
.told { list-style: none; padding: 0; margin: 0 0 10px; }
.told li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pair-row { display: flex; gap: 8px; } .pair-row input { flex: 1; min-width: 0; }
.chat-log { display: grid; gap: 8px; margin: 10px 0 14px; }
.chat-log:empty { display: none; }
.msg { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 85%; white-space: pre-wrap; }
.msg--v { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg--a { justify-self: start; background: var(--bg); border-bottom-left-radius: 4px; }
.fix { background: #fff3dc; border-radius: 12px; padding: 4px 12px; }
.unanswered { border-top: 1px solid var(--line); padding-top: 6px; }
.btn--small { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
.guide-credit { margin: 12px 0; } .guide-credit .pair-row { margin: 8px 0; }
.add-site { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0 14px; padding: 4px 0; }
.add-site summary { cursor: pointer; font-weight: 800; padding: 8px 0; color: var(--navy); }
.add-site__form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: end; padding-bottom: 12px; }
.add-site__form .btn { justify-self: start; }
.ok-box { background: #e3faf3; color: #04513f; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.ok-box ul { margin: 4px 0 8px; padding-left: 1.2em; } .ok-box p { margin: 4px 0; }
.setup-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.setup-list li { display: flex; gap: 10px; align-items: flex-start; }
.setup__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: var(--bg); color: var(--muted); }
.setup--ok .setup__mark { background: #e3faf3; color: #02815f; } .setup--broken .setup__mark { background: #fde8e3; color: #b3361b; }
