:root {
  --green: #079455; --green-d: #05603A; --green-l: #ECFDF3; --green-m: #D1FADF;
  --orange: #F79009; --orange-d: #B54708; --orange-l: #FFFAEB;
  --ink: #0B1B32; --text: #344054; --muted: #667085; --line: #EAECF0; --bg: #FCFCFD; --card: #fff;
  --red: #D92D20; --radius: 16px; --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hide-sm { }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-word { font-weight: 800; font-size: 1.45rem; color: var(--ink); letter-spacing: -.04em; }
.brand-word b { color: var(--green); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff !important; border: 0; border-radius: 12px;
  padding: 14px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 6px 16px -6px rgba(7,148,85,.55); }
.btn:hover { background: var(--green-d); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-orange { background: var(--orange); box-shadow: 0 6px 16px -6px rgba(247,144,9,.6); }
.btn-orange:hover { background: var(--orange-d); }
.btn-ghost { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: #F9FAFB; border-color: #D0D5DD; }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 18px 28px; font-size: 1.08rem; border-radius: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* ---------- alerts ---------- */
.alert { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.alert-success { background: var(--green-l); color: var(--green-d); border: 1px solid var(--green-m); }
.alert-error { background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }
.alert-info { background: var(--orange-l); color: var(--orange-d); border: 1px solid #FEDF89; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(18,183,106,.16), transparent 60%),
  radial-gradient(600px 300px at 0% 100%, rgba(247,144,9,.12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-m); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin: 18px 0 16px; }
.hero h1 .hl { color: var(--green); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: rgba(247,144,9,.35); z-index: -1; border-radius: 4px; }
.hero p.sub { font-size: 1.15rem; max-width: 560px; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.trust-row span::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }

.hero-card { position: relative; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(16,24,40,.25); padding: 22px; border: 1px solid var(--line); transform: rotate(1.2deg); }
.hero-card .chat-mini { display: grid; gap: 10px; }
.bubble-mini { padding: 10px 14px; border-radius: 16px; font-size: .92rem; max-width: 85%; }
.bubble-mini.bot { background: var(--green-l); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble-mini.me { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.hero-card .research { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--orange-l); font-size: .88rem; border: 1px dashed #FEC84B; }
.hero-card .research b { color: var(--orange-d); }
.sticker { position: absolute; background: var(--orange); color: #fff; font-weight: 800; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); transform: rotate(-6deg); }
.sticker.price { top: -18px; right: -10px; font-size: 1.05rem; }
.sticker.price small { display: block; font-size: .7rem; font-weight: 600; opacity: .9; }
.sticker.time { bottom: -16px; left: -12px; background: var(--ink); transform: rotate(4deg); font-size: .9rem; }

section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product .ico { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--green-l); margin-bottom: 14px; }
.product.featured { border: 2px solid var(--green); position: relative; }
.product.featured::before { content: 'Most popular'; position: absolute; top: -12px; left: 24px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.product ul { padding-left: 0; list-style: none; margin: 8px 0 20px; flex: 1; }
.product li { padding-left: 24px; position: relative; margin: 6px 0; font-size: .95rem; }
.product li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.product .price-tag { font-weight: 800; color: var(--ink); font-size: 1.3rem; margin-bottom: 12px; }
.product .price-tag small { font-weight: 600; color: var(--muted); font-size: .85rem; }

.pain { background: var(--ink); color: #D0D5DD; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pain h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.vs { display: grid; gap: 14px; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs-card { border-radius: 14px; padding: 14px; font-size: .9rem; }
.vs-card.bad { background: rgba(240,68,56,.12); border: 1px solid rgba(240,68,56,.35); color: #FECDCA; }
.vs-card.good { background: rgba(18,183,106,.14); border: 1px solid rgba(18,183,106,.45); color: #D1FADF; }
.vs-card b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; opacity: .85; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
.step h3 { margin-top: 10px; }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit { display: flex; gap: 14px; background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.benefit .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-l); font-size: 1.3rem; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefit p { margin: 0; font-size: .95rem; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--green); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; }

.final-cta { background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.final-cta p { color: #D1FADF; font-size: 1.1rem; }
.final-cta .btn-ghost { border-color: transparent; }


/* ---------- forms / auth ---------- */
.auth { min-height: calc(100vh - 64px - 160px); display: grid; place-items: center; padding: 40px 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.auth .card { width: 100%; max-width: 420px; }
.auth h1 { font-size: 1.6rem; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=date], textarea, select {
  width: 100%; padding: 13px 14px; border: 1.5px solid #D0D5DD; border-radius: 12px; font: inherit; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-m); }
textarea { min-height: 96px; resize: vertical; }
.form-foot { margin-top: 18px; text-align: center; font-size: .93rem; }
.pw-wrap { position: relative; }
.pw-wrap .toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .85rem; }
.otp { letter-spacing: .5em; text-align: center; font-size: 1.4rem !important; font-weight: 800; }

/* ---------- chat wizard ---------- */
.wizard-page { background: linear-gradient(180deg, var(--green-l), var(--bg) 300px); }
.wizard-chat-page .topbar, .wizard-chat-page .footer { display: none; }
.wizard { max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }
.wizard-back { margin-bottom: 16px; }
.wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wizard-top h1 { font-size: 1.15rem; margin: 0; }
.progress { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #32D583); transition: width .4s; }
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 50vh; }
.msg { display: flex; gap: 10px; align-items: flex-end; animation: pop .25s ease-out; }
.msg.me { justify-content: flex-end; }
.msg .avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.msg .avatar img { width: 24px; }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 6px rgba(16,24,40,.05); white-space: pre-line; }
.msg.bot .bubble { border-bottom-left-radius: 6px; }
.msg.me .bubble { background: var(--green); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.msg.me .bubble .edit { color: #D1FADF; font-size: .78rem; margin-left: 8px; cursor: pointer; text-decoration: underline; }
.bubble .hint { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #98A2B3; margin: 0 2px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.composer { position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(180deg, transparent, var(--bg) 25%); margin-top: 16px; }
.composer-box { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer-row input, .composer-row textarea { border: 0; box-shadow: none !important; padding: 10px; }
.composer-row textarea { min-height: 70px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #D0D5DD; background: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink); transition: all .15s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.group-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.group-card .full { grid-column: 1 / -1; }
.group-card label { margin-top: 8px; font-size: .82rem; }
.group-card input, .group-card textarea { padding: 10px 12px; }
.err { color: var(--red); font-size: .85rem; font-weight: 600; }
.gen-status { text-align: center; padding: 26px; }
.gen-status .spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--green-m); border-top-color: var(--green); animation: spin 1s linear infinite; margin: 0 auto 14px; }
@media (max-width: 600px) {
  body.wizard-page.wizard-generating::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(16, 24, 40, .48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .wizard-page.wizard-generating .gen-status {
    position: fixed;
    z-index: 81;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    margin: 0;
    padding: 22px 18px;
  }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- preview / paywall ---------- */
.preview-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 60px; align-items: start; }
.paper { background: #fff; border-radius: 6px; box-shadow: 0 20px 50px -20px rgba(16,24,40,.3); position: relative; overflow: hidden; }
.paper.locked { user-select: none; -webkit-user-select: none; }
.paper.locked .lk { filter: blur(4.5px); color: #475467; }
.paper .watermark { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.paper .watermark span { transform: rotate(-30deg); font-size: 4.2rem; font-weight: 800; color: rgba(7,148,85,.07); white-space: nowrap; }
.paper .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.92) 55%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px; }
.paywall { position: sticky; top: 84px; }
.paywall .card { padding: 24px; }
.paywall .big-price { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; }
.paywall .big-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.paywall ul { padding-left: 0; list-style: none; margin: 16px 0; }
.paywall li { padding-left: 26px; position: relative; margin: 8px 0; font-size: .94rem; }
.paywall li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.tailor { background: var(--orange-l); border: 1px solid #FEDF89; border-radius: 16px; padding: 18px; margin-top: 16px; }
.tailor h3 { font-size: 1rem; color: var(--orange-d); }
.tailor ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.paylogos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.paylogos span { font-size: .75rem; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--muted); }

/* ---------- dashboard ---------- */
.page { padding: 32px 0 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc-card .type { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.doc-card h3 { font-size: 1.05rem; margin: 0; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.badge.paid { background: var(--green-l); color: var(--green-d); }
.badge.unpaid { background: var(--orange-l); color: var(--orange-d); }
.empty { text-align: center; padding: 50px 20px; background: #fff; border: 2px dashed var(--line); border-radius: 20px; }
.quick-new { display: flex; flex-wrap: wrap; gap: 10px; }

table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #F9FAFB; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 1.6rem; color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 24px; background: #fff; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .pain, .preview-grid { grid-template-columns: 1fr; }
  .products, .steps { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .hero-card { transform: none; margin-top: 10px; }
  .paywall { position: static; }
  .pain { padding: 32px 22px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .group-card { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  section.block { padding: 52px 0; }
  .bubble { max-width: 90%; }
}

/* small-screen safety */
.composer-row input, .composer-row textarea { min-width: 0; flex: 1; }
.wizard-top { flex-wrap: wrap; }
html { overflow-x: hidden; } /* on html only: on both, body becomes its own scroller and the window never scrolls */
body { overflow-x: clip; }
@media (max-width: 600px) { .nav { gap: 12px; } .brand-word { font-size: 1.25rem; } }

/* ---------- document type icons ---------- */
.dicon { display: inline-grid; place-items: center; border-radius: 30%; flex: 0 0 auto; }
.dicon-cv { background: #ECFDF3; color: #079455; }
.dicon-resume { background: #EFF8FF; color: #1570EF; }
.dicon-letter { background: #FFFAEB; color: #DC6803; }
.dicon-hr { background: #F4F3FF; color: #6938EF; }

/* ---------- create dock (always there, never in the way) ---------- */
body { padding-bottom: 84px; }
body.wizard-page { padding-bottom: 0; }
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 45; display: flex; gap: 4px; padding: 5px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(16,24,40,.28); }
.dock a { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: .88rem; white-space: nowrap; transition: background .15s; }
.dock a:hover { background: #F2F4F7; }
.dock .dicon { border-radius: 50%; }
@media (max-width: 600px) {
  .dock { left: 10px; right: 10px; transform: none; bottom: 10px; justify-content: space-between; border-radius: 18px; }
  .dock a { flex: 1; flex-direction: column; gap: 2px; padding: 5px 4px; font-size: .74rem; border-radius: 14px; }
  .dock .d-long { display: none; }
}

/* ---------- advice card ---------- */
.advice { position: fixed; right: 18px; bottom: 86px; z-index: 46; }
.wizard-page .advice { bottom: 18px; }
.advice.mini .advice-mini { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem;
  cursor: pointer; box-shadow: 0 8px 20px -8px rgba(16,24,40,.3); }
.advice.pulse .advice-mini { animation: kzpulse 1.6s ease-out 3; border-color: var(--orange); }
@keyframes kzpulse { 0% { box-shadow: 0 0 0 0 rgba(247,144,9,.55); } 100% { box-shadow: 0 0 0 16px rgba(247,144,9,0); } }
.advice.open { width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 24px 48px -16px rgba(16,24,40,.35); animation: pop .3s ease-out; }
.advice-head { display: flex; justify-content: space-between; align-items: center; }
.advice-tag { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-d); }
.advice-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.advice h4 { margin: 8px 0 4px; font-size: 1rem; }
.advice p { margin: 0 0 6px; font-size: .92rem; }
.advice .advice-more { color: var(--text); background: #F9FAFB; border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.advice-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
@media (max-width: 600px) { .advice { right: 12px; bottom: 82px; } .advice.open { right: 12px; } }

/* ---------- document page ---------- */
.doc-titlebar { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.doc-titlebar h1 { font-size: 1.3rem; margin: 0; }
.doc-tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.doc-tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); }
.doc-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.save-status { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--muted); }
.save-status.ok { color: var(--green); } .save-status.bad { color: var(--red); }
.editor { padding: 22px; }
.ed-section + .ed-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ed-section h3 { font-size: 1.05rem; }
.ed-field { margin-bottom: 14px; }
.ed-label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ed-input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem;
  color: var(--ink); background: #fff; resize: none; overflow: hidden; line-height: 1.45; }
.ed-input:hover { border-color: #D0D5DD; }
.ed-list { display: grid; gap: 8px; }
.ed-row { display: flex; gap: 6px; align-items: flex-start; }
.ed-card { position: relative; border: 1.5px dashed #D0D5DD; border-radius: 14px; padding: 14px 40px 4px 14px; background: #FCFCFD; }
.ed-group { display: grid; gap: 0; }
.ed-x { flex: 0 0 34px; height: 34px; margin-top: 4px; border: 0; border-radius: 9px; background: #FEF3F2; color: #D92D20; font-size: 1.2rem;
  line-height: 1; cursor: pointer; font-weight: 700; }
.ed-x:hover { background: #FEE4E2; }
.ed-card > .ed-x { position: absolute; top: 8px; right: 8px; margin: 0; }
.ed-add { justify-self: start; background: none; border: 1.5px dashed var(--green); color: var(--green); border-radius: 10px; padding: 7px 14px;
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.ed-add:hover { background: var(--green-l); }
.versions { margin-top: 16px; padding: 20px; }
.versions h3 { font-size: 1rem; }
.ver-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.ver-list li { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.ver-list li.current { border-color: var(--green); background: var(--green-l); }
.ver-list a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.3; }
.badge.free { background: #F4F3FF; color: #5925DC; }
.more-versions summary { cursor: pointer; color: var(--green); font-weight: 600; }
.more-versions ul { padding-left: 18px; margin: 6px 0 0; }
.quick-new .btn-ghost { padding: 5px 12px 5px 6px; }

/* four products */
.products.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .products.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products.four { grid-template-columns: 1fr; } }
.product .dicon { margin-bottom: 14px; }
.product.free-one { border-color: #D9D6FE; background: linear-gradient(180deg, #FAFAFF, #fff); }
.free-flag { display: inline-block; background: #6938EF; color: #fff; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

/* ---------- document picker + results in the chat ---------- */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; cursor: pointer; color: var(--ink); position: relative; transition: border-color .15s, background .15s; }
.pick:hover { border-color: #D0D5DD; }
.pick.on { border-color: var(--green); background: var(--green-l); }
.pick-text { display: flex; flex-direction: column; line-height: 1.3; }
.pick-text b { display: flex; align-items: center; gap: 6px; }
.pick-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D0D5DD; display: grid; place-items: center;
  font-size: .75rem; color: transparent; flex: 0 0 22px; }
.pick.on .pick-check { background: var(--green); border-color: var(--green); color: #fff; }
.pick:focus-visible, .ready-item:focus-visible { outline: 3px solid var(--green-m); outline-offset: 2px; }
.gen-list { display: grid; gap: 8px; margin: 14px auto 0; max-width: 420px; text-align: left; }
.gen-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; }
.gen-row .dicon { width: 30px !important; height: 30px !important; }
.gen-name { font-weight: 600; font-size: .92rem; }
.gen-state { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--muted); }
.gen-state.busy { color: var(--orange-d); } .gen-state.ok { color: var(--green); } .gen-state.bad { color: var(--red); }
.ready-list { display: grid; gap: 8px; margin: 4px 0 4px 44px; }
.ready-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  text-decoration: none; color: var(--ink); font-weight: 700; }
.ready-item:hover { border-color: var(--green); }
.ready-item b { margin-left: auto; color: var(--green); }
.support-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
#vary-note { margin-top: 8px; display: grid; gap: 6px; }
@media (max-width: 600px) { .picker { grid-template-columns: 1fr; } .ready-list { margin-left: 0; } }

/* home: links to guides */
.home-guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-guide { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: var(--ink); transition: border-color .15s; }
.home-guide:hover { border-color: var(--green); }
@media (max-width: 900px) { .home-guides { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-guides { grid-template-columns: 1fr; } }
.footer-guides { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.footer-guides a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.footer-guides a:hover { color: var(--green); }

/* ---------- preview: document tabs, design + photo cards ---------- */
.type-tabs { display: flex; gap: 8px; margin: 22px 0 4px; overflow-x: auto; padding-bottom: 4px; }
.ttab { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s; }
.ttab:hover { border-color: #D0D5DD; }
.ttab.on { border-color: var(--green); background: var(--green-l); }
.ttab.missing { border-style: dashed; color: var(--muted); }
.ttab.missing .dicon { opacity: .7; }
.tstate { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tstate.ok { color: var(--green); }
.tstate.add { color: var(--green); background: var(--green-l); padding: 2px 8px; border-radius: 99px; }
.make-panel { max-width: 640px; margin: 24px auto 60px; text-align: center; padding: 36px 28px; }
.make-panel .dicon { margin: 0 auto 14px; }
.make-panel h1 { font-size: 1.5rem; }
.design-card, .photo-card { margin-top: 16px; padding: 20px; }
.design-card h3, .photo-card h3 { font-size: 1rem; }
.design-foot { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-top: 8px; }
#design-why { background: var(--orange-l); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; }
.dropzone { border: 2px dashed #D0D5DD; border-radius: 16px; padding: 14px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px;
  align-items: center; background: #FCFCFD; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--green); background: var(--green-l); outline: none; }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone::before { content: '📷'; font-size: 1.6rem; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; }
.dropzone.has-photo::before { display: none; }
#photo-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-m); }
.dz-text { display: flex; flex-direction: column; line-height: 1.35; }
.dz-tips { grid-column: 1 / -1; margin: 6px 0 0; padding-left: 18px; color: var(--text); }
.dz-tips li { margin: 2px 0; }
.switch-row { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin: 12px 0 4px; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--green); }
.err-note { color: var(--red); font-weight: 600; } .ok-note { color: var(--green); font-weight: 600; }
#design-note, #make-note { display: grid; gap: 6px; margin-top: 8px; justify-items: center; }

/* dashboard cards: long job titles and web addresses never overflow */
.doc-card { min-width: 0; }
.dc-head { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.dc-text { min-width: 0; flex: 1; }
.dc-text h3 { margin: 2px 0 0; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-company { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.quick-new .btn { white-space: nowrap; }

/* photos (landing + guides) */
.benefits-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.benefits-split .benefits { grid-template-columns: 1fr 1fr; }
.benefits-photo { margin: 0; position: sticky; top: 90px; }
.benefits-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); display: block; }
.final-split { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: center; text-align: left; }
.final-photo { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 18px; display: block; }
@media (max-width: 900px) {
  .benefits-split { grid-template-columns: 1fr; }
  .benefits-photo { position: static; }
  .benefits-photo img { aspect-ratio: 16 / 10; }
  .final-split { grid-template-columns: 1fr; text-align: center; }
  .final-split .cta-row { justify-content: center; }
  .final-photo { max-height: 220px; }
}
@media (max-width: 600px) { .benefits-split .benefits { grid-template-columns: 1fr; } }

/* saved designs, design top-up, quick-pay pop-up */
.design-left { margin: 8px 0 0; }
.design-pay { background: var(--orange-l); border: 1px solid #FEDF89; border-radius: 14px; padding: 12px 14px; margin-top: 4px; }
.design-saved { margin-top: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.swatch { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px;
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 100%; }
.swatch:hover { border-color: #D0D5DD; }
.swatch.on { border-color: var(--green); background: var(--green-l); }
.sw-colors { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; }
.sw-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.paymodal { position: fixed; inset: 0; z-index: 100; background: rgba(11, 27, 50, .55); display: grid; place-items: center; padding: 16px; }
.paymodal-box { background: #fff; border-radius: 18px; width: min(560px, 100%); padding: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.paymodal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.paymodal iframe { width: 100%; height: min(640px, 75vh); border: 1px solid var(--line); border-radius: 12px; background: #F9FAFB; }

/* redesign prompt */
.redesign-form { display: grid; gap: 6px; }
.redesign-form input { padding: 10px 12px; font-size: .92rem; }
.prompt-ideas { display: flex; flex-wrap: wrap; gap: 5px; }
.idea { border: 1px solid var(--line); background: #F9FAFB; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: .76rem; font-weight: 600;
  color: var(--text); cursor: pointer; }
.idea:hover { border-color: var(--green); color: var(--green); }

/* photo cropper */
.crop-box { width: min(420px, 100%); }
.crop-stage { position: relative; width: 300px; height: 300px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #F2F4F7; touch-action: none; }
.crop-stage canvas { width: 300px; height: 300px; display: block; cursor: grab; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-stage canvas:focus-visible { outline: 3px solid var(--green-m); outline-offset: -3px; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(11, 27, 50, .45); border: 2px solid rgba(255,255,255,.9); pointer-events: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 33.1%, rgba(255,255,255,.35) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.35) 66.6%, transparent 66.9%),
              linear-gradient(180deg, transparent 33.1%, rgba(255,255,255,.35) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.35) 66.6%, transparent 66.9%); }
.crop-controls { display: grid; gap: 8px; margin-top: 14px; }
.crop-controls label { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.crop-controls input[type=range] { width: 100%; accent-color: var(--green); }
.crop-rotate { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (max-width: 380px) { .crop-stage, .crop-stage canvas { width: 260px; height: 260px; } }

/* referrals */
.big-price .was { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.ref-deal { background: var(--green-l); color: var(--green-d); font-weight: 700; border-radius: 10px; padding: 6px 10px; margin: 8px 0 0; }
.refer-hint { margin: 10px 0 0; }
.refer-hint a { color: var(--orange-d); font-weight: 700; text-decoration: none; }
.refer-hint a:hover { text-decoration: underline; }
.ref-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #fff, var(--orange-l)); }
.ref-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.ref-steps { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.ref-steps li { counter-increment: r; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .93rem; }
.ref-steps li::before { content: counter(r); width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.ref-share { margin-top: 16px; }
.copy-row { display: flex; gap: 8px; margin-top: 6px; }
.copy-row input { flex: 1; min-width: 0; font-weight: 600; color: var(--green-d); background: var(--green-l); border-color: var(--green-m); }
.ref-code-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ref-code { font: inherit; font-weight: 800; letter-spacing: .12em; font-size: 1.05rem; background: #fff; border: 2px dashed var(--orange); color: var(--orange-d);
  border-radius: 10px; padding: 6px 14px; cursor: pointer; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.share-wa { background: #25D366; box-shadow: none; }
.share-wa:hover { background: #1DA851; }
.ref-stats { margin-top: 16px; }
.stat-hi { background: var(--orange-l); border-color: #FEDF89; }
.ref-list { display: grid; gap: 8px; }
.ref-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.ref-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-l); color: var(--green-d); font-weight: 800; display: grid; place-items: center; flex: 0 0 38px; }
.ref-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.footer-legal { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--green); font-weight: 600; }
@media (max-width: 760px) { .ref-hero { grid-template-columns: 1fr; } }
.big-price small { white-space: nowrap; }

/* career files vault */
.vault-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.vault-upload { position: sticky; top: 84px; }
.vault-drop { grid-template-columns: auto 1fr; }
.vault-drop::before { content: '📎'; }
.vault-drop.has-photo::before { display: grid; content: '✅'; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.vault-cat h2 { font-size: 1.05rem; margin: 6px 0 10px; }
.vault-cat + .vault-cat { margin-top: 22px; }
.vfile { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; flex-wrap: wrap; }
.vthumb { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background: #F9FAFB; text-decoration: none; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .pdf { font-size: .72rem; font-weight: 800; color: #fff; background: #D92D20; border-radius: 6px; padding: 4px 6px; }
.vinfo { flex: 1; min-width: 160px; display: flex; flex-direction: column; line-height: 1.35; }
.vinfo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vexp { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; margin-top: 4px; }
.vexp.ok { background: var(--green-l); color: var(--green-d); }
.vexp.soon { background: var(--orange-l); color: var(--orange-d); }
.vexp.expired { background: #FEF3F2; color: #B42318; }
.vactions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vedit { position: relative; }
.vedit summary { list-style: none; cursor: pointer; padding: 6px 8px; }
.vedit[open] > .vedit-form, .vedit[open] > .vdel { width: 100%; }
.vedit[open] { flex-basis: 100%; }
.vfile:has(.vedit[open]) .vedit { width: 100%; }
.vedit-form { background: #F9FAFB; border-radius: 12px; padding: 4px 12px 12px; margin-top: 6px; }
.vedit-foot { margin-top: 10px; }
.vdel { margin-top: 6px; text-align: right; }
.vault-missing { margin-top: 18px; }
.vault-strip { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  margin-bottom: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.vault-strip:hover { border-color: var(--green); }
.vault-strip > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.vault-ico { font-size: 1.4rem; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-l); display: grid; place-items: center; flex: 0 0 44px; }
.vault-go { color: var(--green); }
.attach-card { margin-top: 16px; padding: 20px; }
.attach-card h3 { font-size: 1rem; }
.attach-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.attach-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.attach-list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.attach-list a { text-decoration: none; font-weight: 700; }
@media (max-width: 860px) { .vault-grid { grid-template-columns: 1fr; } .vault-upload { position: static; } }
.vault-grid { margin-top: 16px; }

/* ---------- header navigation (desktop links, account menu, mobile dropdown) ---------- */
.topbar { transition: transform .3s ease, box-shadow .2s; }
.topbar.nav-hidden { transform: translateY(-100%); }
.topbar.menu-open { box-shadow: 0 12px 30px -12px rgba(16,24,40,.25); }
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop > a, .mnav a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .93rem;
  border-radius: 10px; transition: background .15s, color .15s; }
.nav-desktop > a { padding: 8px 12px; }
.nav-desktop > a:hover, .mnav a:hover { background: #F2F4F7; color: var(--ink); }
.nav-desktop a.on, .mnav a.on { background: var(--green-l); color: var(--green-d); }
.nav-desktop > a.btn { color: #fff; margin-left: 6px; padding: 8px 14px; }
.nico { flex: 0 0 18px; opacity: .85; }
.nav-gift { color: var(--orange-d) !important; }
.nav-gift:hover { background: var(--orange-l) !important; }
.acct { position: relative; margin-left: 6px; }
.acct summary { list-style: none; cursor: pointer; border-radius: 50%; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:focus-visible { outline: 3px solid var(--green-m); outline-offset: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #12B76A, #05603A); color: #fff; font-weight: 800;
  display: grid; place-items: center; flex: 0 0 36px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 40px -16px rgba(16,24,40,.3); padding: 8px; z-index: 60; animation: pop .18s ease-out; }
.acct-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .93rem; }
.acct-menu a:hover { background: #F2F4F7; }
.acct-who { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.35; }
.acct-out { color: #B42318 !important; }

.nav-mobile-bar { display: none; align-items: center; gap: 10px; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.menu-btn:focus-visible { outline: 3px solid var(--green-m); }
.burger { width: 20px; height: 14px; position: relative; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s, top .25s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-btn.x .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn.x .burger i:nth-child(2) { opacity: 0; }
.menu-btn.x .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mnav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; animation: drop .22s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mnav-in { padding-top: 12px; padding-bottom: 18px; display: grid; gap: 14px; }
.mnav-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.mnav-user > div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.mnav-group { display: grid; gap: 2px; }
.mnav-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 4px 4px; }
.mnav a { padding: 11px 10px; font-size: 1rem; }
.mnav-create { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mnav-create a { border: 1px solid var(--line); padding: 10px; border-radius: 14px; font-size: .92rem; }
.mnav-create em { font-style: normal; font-size: .7rem; background: #F4F3FF; color: #5925DC; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile-bar { display: flex; }
}
@media (min-width: 861px) { .mnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .topbar, .mnav, .burger i { transition: none; animation: none; } }

/* companies */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.co-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.co-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #D0D5DD; }
.co-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.co-badge { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; }
.co-badge-lg { width: 64px; height: 64px; flex: 0 0 64px; font-size: 1.7rem; border-radius: 18px; }
.co-name { min-width: 0; display: flex; flex-direction: column; }
.co-name h2 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
.co-roles { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-types { display: flex; gap: 6px; flex-wrap: wrap; }
.co-type { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .85rem; color: var(--ink); background: #F9FAFB;
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px 3px 3px; }
.co-type.none { opacity: .45; }
.co-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.co-hero { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin: 6px 0 22px; }
.co-hero-text { flex: 1; min-width: 240px; }
.co-hero-text h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 1.9rem); overflow-wrap: anywhere; }
.co-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--muted); }
.co-meta a { text-decoration: none; font-weight: 600; }
.co-pack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; max-width: 260px; }
.co-role { margin-bottom: 22px; }
.co-role h2 { font-size: 1.1rem; margin-bottom: 10px; }
.co-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.co-slot { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.co-slot.empty { border-style: dashed; background: #FCFCFD; }
.co-slot.empty .dicon { opacity: .65; }
.co-slot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; line-height: 1.3; }
.co-slot .btn { flex: 0 0 auto; }
.co-note { margin-top: 8px; }
.co-note a { font-weight: 700; }
/* company slots: stacked cards on wide screens, compact rows on phones */
@media (min-width: 641px) {
  .co-slots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .co-slot { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .co-slot-text { width: 100%; }
  .co-slot .btn { width: 100%; margin-top: auto; }
}
/* date fields: let them shrink inside two columns (they have a built-in min width) */
.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.two-col > div { min-width: 0; }
input[type=date] { min-width: 0; max-width: 100%; padding-left: 10px; padding-right: 8px; font-size: .9rem; }
@media (max-width: 380px) { .two-col { grid-template-columns: 1fr; } }
/* attachments question in the chat */
.attach-chips .chip { text-align: left; }
.attach-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.attach-upload .attach-cat { width: auto; max-width: 100%; padding: 8px 10px; font-size: .88rem; }
.wizard-page .advice { bottom: auto; top: 80px; } /* in the chat, keep tips clear of the answer box */

/* ---------- phones: sticky "next step" bar ---------- */
.nextbar { display: none; }
@media (max-width: 860px) {
  .dock-desktop-only { display: none; }
  .nextbar { display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 45; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 12px; box-shadow: 0 14px 34px -12px rgba(16,24,40,.35); animation: pop .25s ease-out; }
  .nextbar .dicon { flex: 0 0 34px; width: 34px !important; height: 34px !important; }
  .nb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .nb-text b { font-size: .92rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nb-text span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nb-actions { display: flex; gap: 6px; flex: 0 0 auto; }
  .nb-actions form { margin: 0; }
  .nb-actions .btn { padding: 10px 14px; font-size: .9rem; border-radius: 12px; white-space: nowrap; box-shadow: none; }
  .advice { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- admin: email sequence editor ---------- */
.admin-app .topbar, .admin-app .footer { display: none; }
.admin-app { padding-bottom: 0; }
.admin-app #advice { display: none !important; }
.admin-page { min-height: 100vh; padding: 24px 0 48px; }
.admin-layout { max-width: 1500px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; min-height: calc(100vh - 40px); padding: 18px 12px;
  color: #D0D5DD; background: #101828; border-radius: 18px; box-shadow: 0 16px 38px -24px rgba(16,24,40,.5); }
.admin-sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 24px; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.admin-brand > span { display: grid; line-height: 1.2; }
.admin-brand b { font-size: 1.02rem; }
.admin-brand small { color: #98A2B3; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.admin-sidebar-label { padding: 0 10px 8px; color: #98A2B3; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-sidebar-links { display: grid; gap: 5px; }
.admin-sidebar-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 10px; color: #D0D5DD; border-radius: 10px;
  text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .15s, color .15s; }
.admin-sidebar-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar-link.active { color: #fff; background: #079455; }
.admin-sidebar-icon { display: inline-grid; place-items: center; width: 22px; font-size: 1.1rem; }
.admin-sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-sidebar-close, .admin-menu-toggle { display: none; }
.admin-main { min-width: 0; }
.admin-content { max-width: 1280px; min-width: 0; }
.admin-app .admin-main .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 860px) {
  .admin-page { padding-top: 14px; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 91; width: min(290px, 86vw); min-height: 0; padding: 20px 14px;
    border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .2s ease; }
  .admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-app.admin-sidebar-open::before { content: ''; position: fixed; inset: 0; z-index: 90; background: rgba(16,24,40,.48); }
  .admin-sidebar-open { overflow: hidden; }
  .admin-sidebar-close { display: inline-grid; place-items: center; width: 36px; height: 36px; color: #fff; background: transparent; border: 0;
    border-radius: 8px; font: inherit; font-size: 1.7rem; cursor: pointer; }
  .admin-menu-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .admin-sidebar { transition: none; } }
.em-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.em-list { display: grid; gap: 6px; position: sticky; top: 84px; }
.em-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  text-decoration: none; color: var(--text); min-width: 0; }
.em-item:hover { border-color: #D0D5DD; }
.em-item.on { border-color: var(--green); background: var(--green-l); }
.em-num { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #F2F4F7; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--ink); }
.em-item.on .em-num { background: var(--green); color: #fff; }
.em-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.em-meta b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.em-editor { padding: 20px; }
.em-editor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.em-editor-head h2 { margin: 0; font-size: 1.15rem; }
.em-unsaved { color: var(--orange-d) !important; font-weight: 700; }
.em-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; align-items: center; }
.em-tools .idea { font-family: ui-monospace, Consolas, monospace; }
.em-btn-pick { width: auto; padding: 5px 10px; font-size: .8rem; border-radius: 99px; }
#em-body { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; line-height: 1.55; min-height: 360px; }
.em-errors p { color: var(--red); font-weight: 600; font-size: .88rem; margin: 8px 0 0; }
.em-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.em-preview { padding: 16px; position: sticky; top: 84px; }
.em-prev-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.em-prev-tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.em-prev-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.em-inbox { display: flex; gap: 10px; align-items: flex-start; background: #F9FAFB; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem; }
.em-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.em-inbox-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.em-inbox > div { min-width: 0; }
.em-frame-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin: 0 auto; transition: max-width .2s; max-width: 100%; }
.em-frame-wrap.mobile { max-width: 375px; }
.em-frame-wrap iframe { width: 100%; height: 600px; border: 0; display: block; }
.em-text { white-space: pre-wrap; font-size: .85rem; background: #F9FAFB; border: 1px solid var(--line); border-radius: 12px; padding: 14px; max-height: 70vh; overflow: auto; margin: 0; }
@media (max-width: 1180px) { .em-layout { grid-template-columns: 240px minmax(0, 1fr); } .em-preview { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) { .em-layout { grid-template-columns: 1fr; } .em-list { position: static; } }
