:root {
    --brand: #0f5c55;
    --brand-600: #0b4a44;
    --brand-50: #e8f3f1;
    --accent: #e8a33d;
    --ink: #17212b;
    --muted: #64707d;
    --line: #e4e8ec;
    --surface: #ffffff;
    --canvas: #f5f6f4;
    --sidebar: #102a28;
    --sidebar-ink: #b9cfcb;
    --radius: 12px;
    --bs-primary: var(--brand);
    --bs-primary-rgb: 15, 92, 85;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 15, 92, 85;
    --bs-link-hover-color: var(--brand-600);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { background: var(--canvas); color: var(--ink); font-size: .935rem; }
.num, .table td.num, .table th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .85em; }

.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-600); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1e1606; font-weight: 600; }
.btn-accent:hover { background: #d8922a; border-color: #d8922a; color: #1e1606; }
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-50) !important; }
.form-control:focus, .form-select:focus { border-color: #5fa59d; box-shadow: 0 0 0 .2rem rgba(15, 92, 85, .15); }

/* ---------- app shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; flex-shrink: 0; background: var(--sidebar); color: var(--sidebar-ink);
    position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.sidebar .brand .hn-mark { flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.sidebar .brand .brand-note { color: var(--accent); font-weight: 600; }
.sidebar .brand { font-size: 1.15rem; letter-spacing: -.02em; }
.sidebar .agency { padding: 0 1.25rem 1rem; font-size: .8rem; color: #8fb0aa; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar .section { padding: 1rem 1.25rem .35rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6f918b; }
.sidebar a.nav-link { color: var(--sidebar-ink); padding: .45rem 1.25rem; display: flex; align-items: center; gap: .7rem; border-left: 3px solid transparent; }
.sidebar a.nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.sidebar a.nav-link.active { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--accent); }
.sidebar a.nav-link i { font-size: 1.05rem; width: 1.2rem; }
.sidebar .sell { margin: 1rem 1.25rem .25rem; }
.sidebar .foot { margin-top: auto; padding: 1rem 1.25rem; font-size: .8rem; border-top: 1px solid rgba(255,255,255,.06); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.45rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: .88rem; }

.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 600; padding: .85rem 1.1rem; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom-width: 1px; background: #fafbfa; white-space: nowrap; }
.table > :not(caption) > * > * { padding: .6rem .8rem; border-color: var(--line); }
.table-hover > tbody > tr:hover > * { background: #f8faf9; }
.table tfoot td { font-weight: 700; background: #fafbfa; }

.stat { padding: 1rem 1.1rem; }
.stat .label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat .value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .hint { color: var(--muted); font-size: .8rem; }

.b2b-card { padding: 1rem 1.1rem; height: 100%; }
.b2b-card .bal { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.b2b-card.low { border-color: #f1c27d; background: #fffaf1; }

.badge { font-weight: 600; }

/* ---------- quick sale ---------- */
.qs-summary { position: sticky; top: 80px; }
.qs-summary .row-line { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.qs-summary .profit { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.qs-b2b-info { font-size: .85rem; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: .25rem 0 .75rem; }

.auth-card { max-width: 440px; margin: 3rem auto; }
.auth-card.wide { max-width: 820px; }

/* ---------- print (invoice) ---------- */
.invoice { background: #fff; max-width: 820px; margin: 2rem auto; padding: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    .invoice { border: 0; margin: 0; padding: 0; max-width: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s ease; }
    .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .content { padding: 1rem; }
    .topbar { padding: .6rem 1rem; }
}
.validation-summary-valid { display: none !important; }

/* Selling price copy in the sale summary */
.sell-box { background: linear-gradient(135deg, #fff6e6, #ffeccc); border: 1px solid #f0c27a; border-radius: 12px; padding: .75rem .9rem; }
.sell-box-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #8a5a12; margin-bottom: .35rem; display: block; }
.sell-box-input { border-color: #e8a33d; font-weight: 800; font-size: 1.5rem; color: #4a3008; background: #fffdf8; }
.sell-box-cur { flex: 0 0 92px; border-color: #e8a33d; font-weight: 700; color: #4a3008; background-color: #fffdf8; }
.sell-box-rate { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: #8a5a12; font-weight: 600; }
.sell-box-rate input { max-width: 110px; border-color: #e8a33d; background: #fffdf8; }
.sell-box-conv { color: #8a5a12; }
.sell-box-input:focus { border-color: #d8922a; box-shadow: 0 0 0 .2rem rgba(232, 163, 61, .25); }

/* "Customer paid" choices */
.pay-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-pill { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .75rem; font-size: .85rem; font-weight: 600; }
.pay-pill i { margin-right: .2rem; color: var(--muted); }
.pay-pill:hover { border-color: #9cc5bf; }
.pay-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pay-pill.active i { color: #fff; }

/* "Saved" popup */
.saved-check { width: 64px; height: 64px; border-radius: 50%; background: #e6f4ea; color: #1e7e44; display: grid; place-items: center; font-size: 2rem; margin: 0 auto .75rem; }
.saved-summary .row-line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.saved-summary .row-line span:first-child { color: var(--muted); }

/* =====================================================================
   Public site (Hesabnote marketing pages)
   ===================================================================== */
.public { background: #fbfcfb; min-height: 100vh; overflow-x: clip; display: flex; flex-direction: column; font-size: 1rem; }
.public > main { flex: 1; }
.btn-pill { border-radius: 999px; font-weight: 600; }
.btn-accent.btn-pill { box-shadow: 0 8px 24px -10px rgba(232,163,61,.8); }

/* nav */
.pub-nav { position: sticky; top: 0; z-index: 1030; padding: .85rem 0; background: rgba(251,252,251,.72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, padding .2s; }
.pub-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16,24,40,.35); padding: .6rem 0; }
.pub-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.pub-word { font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.pub-word span { color: #0f7a70; font-weight: 600; }
.pub-links { gap: .25rem; }
.pub-links a { color: #3e4a55; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; transition: background .15s, color .15s; }
.pub-links a:hover, .pub-links a.active { color: var(--brand); background: var(--brand-50); }
.pub-signin { color: var(--ink); font-weight: 600; text-decoration: none; }
.pub-signin:hover { color: var(--brand); }
.pub-burger { font-size: 1.6rem; line-height: 1; padding: .2rem .5rem; color: var(--ink); }
.pub-mobile { display: flex; flex-direction: column; padding: .75rem 1rem 1.25rem; }
.pub-mobile a:not(.btn) { color: var(--ink); text-decoration: none; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } .hn-float { animation: none !important; } }

/* hero */
.hn-hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hn-hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 760px; pointer-events: none;
    background:
        radial-gradient(600px 380px at 82% 22%, rgba(23,151,138,.20), transparent 70%),
        radial-gradient(520px 320px at 12% 0%, rgba(232,163,61,.16), transparent 70%),
        linear-gradient(rgba(15,92,85,.05) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(15,92,85,.05) 1px, transparent 1px) 0 0 / 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.hn-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--brand); box-shadow: 0 4px 14px -8px rgba(16,24,40,.2); }
.hn-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,163,61,.2); }
.hn-h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 1.25rem 0 0; color: var(--ink); }
.hn-ink-grad { background: linear-gradient(100deg, #0f7a70 10%, #17978a 45%, #d8922a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hn-lead { font-size: 1.15rem; color: #4a5664; line-height: 1.6; margin-top: 1.25rem; max-width: 560px; }
.hn-btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.hn-btn-ghost:hover { border-color: #9cc5bf; background: #fff; }
.hn-checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: #4a5664; }
.hn-checks i { color: #17978a; margin-right: .25rem; }

/* product mock */
.hn-mock-wrap { position: relative; padding: 1.5rem 0 2rem; }
.hn-mock { background: #fff; border: 1px solid #dfe6e4; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(10,69,64,.35), 0 12px 24px -12px rgba(16,24,40,.12); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.hn-mock:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.hn-mock-bar { display: flex; align-items: center; gap: 6px; padding: .65rem .9rem; background: #f4f7f6; border-bottom: 1px solid #e6ecea; }
.hn-mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e2e7e5; }
.hn-mock-bar > span:nth-child(1) { background: #f5a3a3; } .hn-mock-bar > span:nth-child(2) { background: #f6d48a; } .hn-mock-bar > span:nth-child(3) { background: #9ad8a8; }
.hn-mock-url { margin-left: .75rem; flex: 1; background: #fff; border: 1px solid #e6ecea; border-radius: 8px; font-size: .72rem; color: var(--muted); padding: .2rem .6rem; }
.hn-mock-url i { color: #1e7e44; font-size: .65rem; }
.hn-mock-body { padding: 1rem; background: linear-gradient(#fbfcfc, #f6f8f7); }
.hn-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: .75rem; }
.hn-mock-stats > div { background: #fff; border: 1px solid #e8eeec; border-radius: 12px; padding: .6rem .75rem; display: flex; flex-direction: column; min-width: 0; }
.hn-mock-stats small { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.hn-mock-stats b { font-size: 1.1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hn-mock-stats em { font-style: normal; font-size: .68rem; color: var(--muted); }
.hn-mock-stats em.up { color: #1e7e44; }
.hn-mock-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: .65rem; }
.hn-mock-card { background: #fff; border: 1px solid #e8eeec; border-radius: 12px; padding: .7rem .8rem; }
.hn-mock-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .55rem; }
.hn-bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.hn-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(#bfe2dc, #8ccbc1); }
.hn-bars i.hi { background: linear-gradient(#17978a, #0f5c55); }
.hn-bars-x { display: flex; gap: 7px; margin-top: .3rem; } .hn-bars-x span { flex: 1; text-align: center; font-size: .6rem; color: #9aa5ae; }
.hn-b2b { display: flex; justify-content: space-between; align-items: baseline; font-size: .75rem; gap: .5rem; }
.hn-b2b span { color: #4a5664; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-b2b b { font-variant-numeric: tabular-nums; white-space: nowrap; } .hn-b2b small { color: var(--muted); font-weight: 600; font-size: .62rem; }
.hn-meter { height: 6px; background: #eef2f1; border-radius: 999px; margin: .3rem 0 .6rem; overflow: hidden; }
.hn-meter i { display: block; height: 100%; border-radius: 999px; background: #17978a; }
.hn-meter.low i { background: var(--accent); }
.hn-sale { display: flex; align-items: center; gap: .65rem; padding: .45rem 0; border-top: 1px dashed #e8eeec; }
.hn-sale:first-of-type { border-top: 0; }
.hn-sale > div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.hn-sale b { font-size: .82rem; } .hn-sale small { font-size: .68rem; color: var(--muted); }
.hn-av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; background: var(--brand-50); color: var(--brand); }
.hn-av.two { background: #fff1dc; color: #9a6210; }
.hn-amt { font-weight: 700; color: #1e7e44; font-size: .85rem; font-variant-numeric: tabular-nums; }
.hn-float { position: absolute; display: flex; align-items: center; gap: .65rem; background: #fff; border: 1px solid #e3e9e7; border-radius: 14px; padding: .6rem .85rem .6rem .6rem; box-shadow: 0 18px 40px -18px rgba(16,24,40,.35); animation: hn-bob 6s ease-in-out infinite; }
.hn-float b { display: block; font-size: .82rem; } .hn-float small { display: block; font-size: .7rem; color: var(--muted); }
.hn-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff1dc; color: #c27c16; font-size: 1rem; }
.hn-float .ic.ok { background: #e6f4ea; color: #1e7e44; }
.hn-float-a { top: 46%; left: -2.25rem; }
.hn-float-b { bottom: .25rem; right: -1rem; animation-delay: -3s; }
@keyframes hn-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* strip */
.hn-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 1.6rem 0; }
.hn-strip b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.hn-strip span { font-size: .85rem; color: var(--muted); }

/* sections */
.hn-section { padding: 5.5rem 0; }
.hn-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.hn-head h2, .hn-h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: .75rem 0 0; }
.hn-head p { color: #4a5664; font-size: 1.08rem; margin-top: 1rem; }
.hn-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0f7a70; }
.hn-kicker.light { color: #f2b44f; }
.hn-p { color: #4a5664; font-size: 1.05rem; line-height: 1.65; margin-top: 1rem; }
.hn-feature { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hn-feature:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(10,69,64,.35); border-color: #cfe3df; }
.hn-feature h3 { font-size: 1.08rem; font-weight: 700; margin: 1rem 0 .4rem; letter-spacing: -.01em; }
.hn-feature p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.6; }
.hn-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; }
.hn-ico.teal { background: #e3f3f0; color: #0f7a70; } .hn-ico.amber { background: #fff1dc; color: #c27c16; }
.hn-ico.blue { background: #e6effd; color: #2f62c9; } .hn-ico.rose { background: #fde8ec; color: #c03a59; }
.hn-ico.violet { background: #efe9fd; color: #6a45c9; }
.hn-how { background: linear-gradient(#f2f7f6, #fbfcfb); }
.hn-step { position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.6rem 1.6rem; }
.hn-step h3 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .4rem; }
.hn-step p { color: var(--muted); margin: 0; line-height: 1.6; }
.hn-step-n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #17978a, #0a4540); box-shadow: 0 0 0 6px #e3f3f0; }
.hn-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hn-list li { display: flex; gap: .6rem; padding: .4rem 0; color: #33404c; }
.hn-list i { color: #fff; background: #17978a; border-radius: 50%; width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; font-size: .8rem; margin-top: .1rem; }

/* capture illustration */
.hn-capture { background: radial-gradient(400px 260px at 70% 0%, rgba(232,163,61,.18), transparent 70%), linear-gradient(135deg, #e9f5f2, #f6faf9); border: 1px solid #d6e9e5; border-radius: 22px; padding: 2rem; }
.hn-capture-page { background: #fff; border-radius: 14px; border: 1px solid #e3e9e7; padding: 1.1rem 1.2rem 1.4rem; position: relative; box-shadow: 0 16px 36px -24px rgba(16,24,40,.35); }
.hn-cap-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .45rem 0; border-bottom: 1px dashed #e8eeec; }
.hn-cap-row span { color: var(--muted); }
.hn-cap-btn { position: absolute; right: 1rem; bottom: -1.1rem; border: 0; border-radius: 999px; background: var(--accent); color: #1e1606; font-weight: 700; font-size: .85rem; padding: .55rem 1rem; box-shadow: 0 10px 22px -8px rgba(216,146,42,.8); }
.hn-capture-arrow { text-align: center; color: #17978a; font-size: 1.4rem; margin: 1.4rem 0 .4rem; }
.hn-capture-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.hn-capture-result > div { background: #fff; border-radius: 12px; border: 1px solid #e3e9e7; padding: .7rem .9rem; }
.hn-capture-result small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.hn-capture-result b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* dark band */
.hn-dark { background: radial-gradient(700px 380px at 90% 0%, rgba(23,151,138,.35), transparent 70%), linear-gradient(160deg, #0d3f3b, #082a27); color: #c4dad6; }
.hn-dark .hn-p { color: #b4ccc8; }
.hn-dark .hn-h2, .hn-dark .hn-timeline h3 { color: #fff; }
.hn-dark .hn-timeline p { color: #b4ccc8; }
.hn-dark .hn-timeline::before { background: rgba(255,255,255,.18); }
.hn-dark .hn-timeline > div::before { background: #0d3f3b; border-color: #f5b041; }
.hn-role { height: 100%; border-radius: 16px; padding: 1.4rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s; }
.hn-role:hover { background: rgba(255,255,255,.08); }
.hn-role i { font-size: 1.4rem; color: #f2b44f; }
.hn-role h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: .7rem 0 .3rem; }
.hn-role p { margin: 0; font-size: .92rem; color: #a9c3be; }

/* faq */
.hn-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem; margin-bottom: .75rem; transition: border-color .2s; }
.hn-faq details[open] { border-color: #cfe3df; box-shadow: 0 16px 36px -28px rgba(10,69,64,.35); }
.hn-faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hn-faq summary::-webkit-details-marker { display: none; }
.hn-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: #0f7a70; transition: transform .2s; }
.hn-faq details[open] summary::after { transform: rotate(45deg); }
.hn-faq details p { color: #4a5664; padding-bottom: 1.1rem; margin: 0; line-height: 1.65; }

/* cta */
.hn-cta-wrap { padding: 0 0 5rem; }
.hn-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 3rem; border-radius: 26px; color: #fff;
    background: radial-gradient(500px 260px at 100% 0%, rgba(232,163,61,.35), transparent 70%), linear-gradient(135deg, #138a7e, #0a4540); box-shadow: 0 40px 80px -40px rgba(10,69,64,.6); }
.hn-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.hn-cta p { margin: .5rem 0 0; color: #cfe6e2; }

/* footer */
.pub-footer { background: #0b2421; color: #9fb8b4; padding: 4rem 0 1.5rem; margin-top: auto; }
.pub-footer .pub-word { color: #fff; } .pub-footer .pub-word span { color: #f2b44f; }
.pub-footer a { color: #c4dad6; text-decoration: none; }
.pub-footer a:hover { color: #fff; }
.pub-foot-title { color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; }
.pub-footer .col-6 a, .pub-footer .col-md-4 a { display: block; padding: .25rem 0; font-size: .93rem; }
.pub-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: #7f9a96; }

/* legal + about pages */
.hn-page-hero { padding: 3.5rem 0 2rem; text-align: center; }
.hn-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; margin: .75rem 0 .5rem; }
.hn-page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.hn-legal { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; max-width: 1080px; margin: 0 auto 5rem; }
.hn-toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; }
.hn-toc .pub-foot-title { color: var(--muted); }
.hn-toc a { display: block; color: #4a5664; text-decoration: none; padding: .3rem 0 .3rem .8rem; border-left: 2px solid var(--line); }
.hn-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.hn-doc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem; line-height: 1.75; color: #33404c; }
.hn-doc h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 2.25rem 0 .75rem; scroll-margin-top: 90px; }
.hn-doc h2:first-child { margin-top: 0; }
.hn-doc ul { padding-left: 1.2rem; } .hn-doc li { margin-bottom: .35rem; }
.hn-doc .hn-note { background: var(--brand-50); border-radius: 12px; padding: 1rem 1.2rem; font-size: .95rem; }
.hn-about-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; height: 100%; }
.hn-about-stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--brand); }
.hn-about-stat span { color: var(--muted); }
.hn-value { display: flex; gap: 1rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.hn-value h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.hn-value p { margin: 0; color: var(--muted); line-height: 1.6; }
.hn-name { background: linear-gradient(135deg, #0d3f3b, #082a27); color: #c4dad6; border-radius: 24px; padding: 2.5rem; }
.hn-name h2 { color: #fff; }
.hn-name .word { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.hn-name .word span { color: #f2b44f; }
.hn-timeline { position: relative; padding-left: 1.75rem; }
.hn-timeline::before { content: ""; position: absolute; left: 6px; top: .4rem; bottom: .4rem; width: 2px; background: #d6e9e5; }
.hn-timeline > div { position: relative; padding-bottom: 1.5rem; }
.hn-timeline > div::before { content: ""; position: absolute; left: -1.75rem; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #17978a; }
.hn-timeline h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .25rem; }
.hn-timeline p { margin: 0; color: var(--muted); }

@media (max-width: 991.98px) {
    .hn-hero { padding: 2.5rem 0 3.5rem; }
    .hn-mock { transform: none; }
    .hn-float-a { left: .5rem; } .hn-float-b { right: .5rem; }
    .hn-section { padding: 4rem 0; }
    .hn-legal { grid-template-columns: 1fr; gap: 1.5rem; }
    .hn-toc { position: static; display: none; }
}
@media (max-width: 575.98px) {
    .hn-mock-stats { grid-template-columns: 1fr 1fr; } .hn-mock-stats > div:last-child { display: none; }
    .hn-mock-grid { grid-template-columns: 1fr; }
    .hn-float { display: none; }
    .hn-cta { padding: 2rem 1.5rem; }
    .hn-doc { padding: 1.5rem; }
    .hn-capture { padding: 1.25rem; }
}

/* pricing */
.hn-price { display: grid; grid-template-columns: 1fr 1.15fr; max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid #d6e9e5; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(10,69,64,.4); }
.hn-price-main { padding: 2.5rem; color: #fff; background: radial-gradient(420px 240px at 100% 0%, rgba(232,163,61,.35), transparent 70%), linear-gradient(150deg, #138a7e, #0a4540); }
.hn-price-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 600; color: #ffe2b0; }
.hn-price-main h3 { font-size: 1.15rem; font-weight: 700; margin: 1.25rem 0 .5rem; color: #e0f0ed; }
.hn-price-amt { font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; display: flex; align-items: flex-start; gap: .15rem; flex-wrap: wrap; }
.hn-price-amt .cur { font-size: 1.6rem; margin-top: .35rem; }
.hn-price-amt .per { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: #cfe6e2; align-self: flex-end; margin: 0 0 .5rem .4rem; }
.hn-price-sub { color: #cfe6e2; margin: .4rem 0 0; }
.hn-price-note { font-size: .85rem; color: #cfe6e2; margin: 1rem 0 0; }
.hn-price-list { padding: 2.5rem; }
.hn-price-list .pub-foot-title { color: var(--muted); }
@media (max-width: 767.98px) { .hn-price { grid-template-columns: 1fr; } .hn-price-main, .hn-price-list { padding: 1.75rem; } }

/* =====================================================================
   Language switch + Dari (right-to-left)
   ===================================================================== */
.lang-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #dfe8e6; background: #fff; color: var(--ink); border-radius: 999px; padding: .32rem .7rem; font-size: .82rem; font-weight: 700; line-height: 1; transition: border-color .15s, box-shadow .15s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: #9cc5bf; box-shadow: 0 0 0 3px rgba(15,92,85,.08); }
.lang-btn .bi-globe2 { color: #0f7a70; font-size: .95rem; }
.lang-btn .caret { font-size: .65rem; color: var(--muted); transition: transform .15s; }
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang-btn [lang="fa"], .lang-list [lang="fa"] { font-family: "Vazirmatn", "Inter", system-ui, sans-serif; }
.lang-list { min-width: 9rem; padding: .35rem; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 36px -16px rgba(16,24,40,.3); margin-top: .4rem !important; }
.lang-list .dropdown-item { display: flex; justify-content: space-between; align-items: center; border-radius: 8px; padding: .45rem .7rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.lang-list .dropdown-item:hover { background: var(--brand-50); color: var(--brand); }
.lang-list .dropdown-item.active { background: var(--brand-50); color: var(--brand); }
.pub-mobile .lang-menu { align-self: flex-start; margin-top: .75rem; }
.pub-mobile .lang-list .dropdown-item { border-bottom: 0; padding: .45rem .7rem; }

/* How-to video */
.hn-video { max-width: 860px; margin: 0 auto; text-align: center; }
.hn-video video { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(15,92,85,.18); background: #0b2a27; }
