/* accounting.dogware.ai — app shell. RTL-first, logical properties only (inset/start/end).
   Palette/typography = Direction A "יציב" tokens from docs/brand/tokens.css (baseline per Tamar, #322/#323). */
:root {
    /* brand core (Direction A) */
    --brand-navy:        #13294B;
    --brand-navy-deep:   #0C1B33;
    --brand-navy-soft:   #2C4A7C;
    --brand-amber:       #E8A33D;
    --brand-amber-deep:  #C77F1B;
    --brand-amber-tint:  #FBEED8;

    /* surfaces & ink */
    --paper:        #FAF7F2;
    --surface:      #FFFFFF;
    --surface-alt:  #F2EDE4;
    --ink:          #1E2B3A;
    --ink-soft:     #52627A;
    --ink-faint:    #8794A6;
    --line:         #E4DED2;
    --line-strong:  #C9C0AE;

    /* semantic */
    --success:      #1F8A5F;
    --success-tint: #E3F2EB;
    --warning:      #B3750E;
    --warning-tint: #FCF3E0;
    --danger:       #B3372F;
    --danger-tint:  #F9E9E7;

    /* typography */
    --font-display: 'Frank Ruhl Libre', 'David Libre', serif;
    --font-body:    'Assistant', 'Heebo', system-ui, sans-serif;
    --font-mono:    ui-monospace, 'IBM Plex Mono', monospace;
    --numeric-variant: tabular-nums lining-nums;
    --fs-hero:   clamp(2rem, 4vw, 3rem);
    --lh-tight:  1.25;
    --lh-body:   1.6;

    /* shape & elevation */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(19, 41, 75, 0.08);
    --shadow:    0 4px 16px rgba(19, 41, 75, 0.10);
    --shadow-lg: 0 18px 48px rgba(12, 27, 51, 0.18);

    /* component tone */
    --btn-primary-bg:    var(--brand-navy);
    --btn-primary-fg:    #FFFFFF;
    --btn-primary-hover: var(--brand-navy-soft);
    --btn-cta-bg:        var(--brand-amber);
    --btn-cta-fg:        var(--brand-navy-deep);
    --btn-cta-hover:     var(--brand-amber-deep);
    --focus-ring: 0 0 0 3px rgba(232, 163, 61, 0.45);

    --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: var(--lh-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip; /* full-bleed .section.alt breakout must never cause a horizontal scrollbar */
}

/* sums/figures inside RTL copy: LTR, isolated, aligned digits (#807 §5) */
.mono {
    font-family: var(--font-mono);
    font-variant-numeric: var(--numeric-variant);
    direction: ltr;
    unicode-bidi: isolate;
}

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); }

a { color: var(--brand-navy-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    inline-size: 100%;
    max-inline-size: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    inset-block-start: -60px;
    inset-inline-start: 12px;
    background: var(--brand-amber);
    color: var(--brand-navy-deep);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: inset-block-start .15s;
    z-index: 100;
}
.skip-link:focus { inset-block-start: 12px; }

/* ---- header (#807: sticky + blur, pankas-lines mark, anchor nav) ---- */
.site-header {
    border-block-end: 1px solid var(--line);
    background: rgba(250, 247, 242, .86);
    backdrop-filter: blur(10px);
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-navy); font-weight: 700; font-family: var(--font-display); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-content: center;
    inline-size: 34px; block-size: 34px;
    flex: 0 0 auto;
}
.brand-mark svg { display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--brand-navy); letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--brand-navy); text-decoration: none; }
.nav-inline { display: inline; margin: 0; }

/* hamburger (<880px) — button hidden on desktop; nav becomes a drawer panel */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    inline-size: 42px; block-size: 38px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav-toggle-bar { display: block; block-size: 2px; inline-size: 100%; background: var(--brand-navy); border-radius: 2px; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font: inherit; font-weight: 700;
    cursor: pointer;
    transition: transform .05s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* #807 system: amber .btn-cta = THE main CTA; navy .btn-primary = secondary actions */
.btn-cta { background: var(--btn-cta-bg); color: var(--btn-cta-fg); }
.btn-cta:hover { background: var(--btn-cta-hover); color: #fff; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--brand-navy); }
.btn-ghost:hover { border-color: var(--brand-navy); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.06rem; }
.btn-block { inline-size: 100%; }

/* ---- kicker pill (#807 design language, site-wide) ---- */
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .86rem; letter-spacing: .4px;
    color: var(--brand-amber-deep);
    background: var(--brand-amber-tint);
    padding: 5px 13px;
    border-radius: 999px;
    margin-block-end: 16px;
}

/* ---- hero: two-column copy + product preview (#807 §1) ---- */
.hero { padding-block: 64px 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 900; color: var(--brand-navy-deep); margin: 0 0 18px; }
.hero h1 .amber { color: var(--brand-amber-deep); }
.hero-sub { font-size: 1.18rem; color: var(--ink-soft); max-inline-size: 34ch; margin-block-end: 27px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-block-end: 24px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .9rem; font-weight: 600; color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 13px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.chip svg { color: var(--success); }

/* hero product preview — illustrative client-area glimpse */
.preview { position: relative; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--brand-navy-deep); color: #fff; }
.preview-top .t { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.preview-top .dots { display: flex; gap: 6px; }
.preview-top .dots i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); display: block; }
.preview-body { padding: 18px; display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .lbl { font-size: .8rem; color: var(--ink-soft); margin-block-end: 6px; }
.stat .val { font-size: 1.5rem; font-weight: 700; color: var(--brand-navy); }
.led { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.led .led-l { display: flex; align-items: center; gap: 11px; }
.led .ic { inline-size: 30px; block-size: 30px; border-radius: 8px; display: grid; place-content: center; flex: 0 0 auto; }
.led .ic.ok { background: var(--success-tint); color: var(--success); }
.led .ic.due { background: var(--warning-tint); color: var(--warning); }
.led .nm { font-weight: 600; font-size: .95rem; }
.led .sub { font-size: .8rem; color: var(--ink-soft); }
.preview-card .badge { border: none; font-size: .78rem; padding: 3px 9px; }
.preview-card .badge.ok { background: var(--success-tint); color: var(--success); }
.preview-card .badge.due { background: var(--warning-tint); color: var(--warning); }
.preview-float {
    position: absolute; inset-block-end: -22px; inset-inline-start: -18px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 12px 16px; display: flex; align-items: center; gap: 11px;
}
.preview-float .rev { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.preview-float .float-nm { font-weight: 700; font-size: .92rem; }
.preview-float .float-sub { font-size: .78rem; color: var(--ink-soft); }
/* ⚖️ sample-data note under the preview card (#808 S1) — clears the -22px float overhang */
.preview-note { margin-block-start: 34px; font-size: .78rem; text-align: center; }
.contact-disclaimer { margin-block-start: 18px; font-size: .85rem; }

/* ---- section frame (#807) — .alt bands bleed edge-to-edge from inside main.container ---- */
.section { padding-block: 64px; }
.section.alt {
    background: var(--surface-alt);
    border-block: 1px solid var(--line);
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
}
.section-head { text-align: center; max-inline-size: 60ch; margin: 0 auto 44px; }
.section-head .kicker { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brand-navy-deep); margin: 0 0 11px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.step .num { counter-increment: step; font-family: var(--font-mono); font-weight: 500; font-size: .9rem; color: var(--brand-amber-deep); }
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: 1.2rem; color: var(--brand-navy); margin: 10px 0 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---- features (#807 restyle: icon tile + hover lift) ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.feature .fic {
    inline-size: 52px; block-size: 52px; border-radius: 14px;
    background: var(--brand-amber-tint); color: var(--brand-amber-deep);
    display: grid; place-content: center;
    margin-block-end: 16px;
}
.feature h3 { font-size: 1.25rem; margin: 0 0 9px; color: var(--brand-navy); }
.feature p { color: var(--ink-soft); margin: 0; }

/* trust band */
.trust-band {
    background: var(--brand-navy-deep); color: #fff;
    border-radius: var(--radius-lg); padding: 40px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    box-shadow: var(--shadow-lg);
}
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item .ic {
    inline-size: 44px; block-size: 44px; border-radius: 12px;
    background: rgba(232, 163, 61, .16); color: var(--brand-amber);
    display: grid; place-content: center; flex: 0 0 auto;
}
.trust-item h3 { color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
.trust-item p { color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 0; }

/* about/contact split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); }
.card-panel h2 { font-size: 1.5rem; color: var(--brand-navy-deep); margin: 0 0 11px; }
.card-panel p { color: var(--ink-soft); margin: 0 0 16px; }
.card-panel .panel-disclaimer { font-size: .92rem; }
.card-panel .panel-cta { margin-block-start: 6px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 13px; }
.contact-list li { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 600; }
.contact-list .ic { color: var(--brand-navy-soft); display: grid; place-content: center; flex: 0 0 auto; }

/* ---- launch waitlist (#378, restyled #807: navy-deep card) ---- */
.waitlist-card {
    background: var(--brand-navy-deep);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.waitlist-card .kicker { background: rgba(232, 163, 61, .18); color: var(--brand-amber); }
.waitlist-card h2 { color: #FFFFFF; font-size: 1.8rem; margin: 0 0 10px; }
.waitlist-card .sub { color: rgba(255, 255, 255, .72); max-inline-size: 52ch; margin: 0 auto 29px; }
.waitlist-form {
    display: flex; gap: 11px; justify-content: center; flex-wrap: wrap;
    max-inline-size: 640px; margin-inline: auto;
}
.waitlist-form input[type="text"],
.waitlist-form input[type="email"],
.waitlist-form select {
    flex: 1 1 180px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
}
.waitlist-form input::placeholder { color: var(--ink-faint); }
.waitlist-form .btn { flex: 0 0 auto; }
.waitlist-form input:focus,
.waitlist-form select:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--brand-amber); }
.waitlist-privacy { color: rgba(255, 255, 255, .6); font-size: .85rem; margin-block: 18px 0; }
.waitlist-card .waitlist-privacy a { color: var(--brand-amber); text-decoration: underline; }
/* the same classes render on light pages too (contact form) — keep them readable there */
.contact-card .waitlist-privacy { color: var(--ink-faint); }
.waitlist-success {
    background: var(--success-tint);
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-weight: 700;
    max-inline-size: 560px;
    margin-inline: auto;
}
.waitlist-error {
    background: var(--danger-tint);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 10px 14px;
    max-inline-size: 560px;
    margin-inline: auto;
    margin-block-end: 14px;
}
/* honeypot — visually removed, still in the DOM for bots */
.hp-field {
    position: absolute;
    inset-inline-start: -9999px;
    inline-size: 1px; block-size: 1px;
    overflow: hidden;
}

/* ---- auth ---- */
.auth-card {
    max-inline-size: 420px;
    margin-inline: auto;
    margin-block: 48px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.auth-card h1 { margin-block-start: 0; color: var(--brand-navy); }
.stub-note { font-size: .9rem; margin-block-end: 18px; }
.form { display: grid; gap: 16px; margin-block-start: 8px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input {
    inline-size: 100%;
    padding: 11px 13px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
}
.field input:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--brand-amber); }
.hint { color: var(--ink-faint); font-size: .82rem; }
.auth-alt { margin-block-start: 18px; color: var(--ink-soft); text-align: center; }

/* ---- lead capture (#809): /contact form + homepage CTA band ---- */
.contact-card { max-inline-size: 520px; }
.contact-card .waitlist-error,
.contact-card .waitlist-success { margin-block-end: 14px; }
.contact-hint { font-size: .85rem; margin-block: -6px 0; }
.contact-card .kicker { margin-block-end: 10px; }
.field textarea {
    inline-size: 100%;
    padding: 11px 13px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}
.field textarea:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--brand-amber); }
/* ⚖️ consent checkbox (חוק הגנת הפרטיות) — clear, clickable, never pre-checked */
.consent-field {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .92rem; color: var(--ink-soft); cursor: pointer;
}
.consent-field input[type="checkbox"] {
    margin-block-start: 3px;
    inline-size: 18px; block-size: 18px;
    accent-color: var(--brand-navy);
    flex: 0 0 auto;
}
.consent-field a { color: var(--brand-navy); text-decoration: underline; }

/* ---- legal pages (#769/#809) ---- */
.legal-page { max-inline-size: 720px; margin-inline: auto; padding-block: 32px 56px; }
.legal-page h1 { color: var(--brand-navy); }
.legal-page h2 { color: var(--brand-navy); font-size: 1.15rem; margin-block-start: 26px; }
.legal-page ul { padding-inline-start: 22px; }

/* ---- dashboard ---- */
.dash-head { padding-block: 40px 8px; }
.dash-head h1 { margin: 0 0 6px; color: var(--brand-navy); }
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-block: 20px;
}
.dash-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
    min-block-size: 120px;
    box-shadow: var(--shadow-sm);
}
.dash-card h2 { font-size: 1.05rem; margin: 0; color: var(--brand-navy); }
.badge {
    align-self: flex-start;
    background: var(--brand-amber-tint);
    color: var(--brand-amber-deep);
    border: 1px solid var(--brand-amber);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: .8rem; font-weight: 700;
}
.dash-empty { padding-block: 12px 60px; }

/* ---- flash ---- */
.flash {
    margin-block: 16px 0;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}
.flash-error { border-color: var(--danger); background: var(--danger-tint); color: var(--danger); }
.flash-success { border-color: var(--success); background: var(--success-tint); color: var(--success); }

/* ---- misc ---- */
.muted { color: var(--ink-soft); }
/* sums / invoice numbers: aligned digits, LTR (brand rule — see tokens.css) */
.amount { font-variant-numeric: var(--numeric-variant); direction: ltr; }
.error-page { text-align: center; padding-block: 100px; }
.error-page h1 { font-size: 4rem; margin: 0; color: var(--brand-navy); }

/* ---- footer (#807: 3-column brand/nav/legal + legal line) ---- */
.site-footer {
    margin-block-start: auto;
    background: var(--brand-navy-deep);
    color: rgba(255, 255, 255, .7);
    padding-block: 48px 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-block-end: 32px;
    border-block-end: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { color: rgba(255, 255, 255, .62); font-size: .92rem; margin-block: 13px 0; max-inline-size: 40ch; }
.footer-col h4 { color: #fff; font-size: .95rem; font-family: var(--font-body); font-weight: 700; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.endorse { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 16px; font-size: .9rem; color: rgba(255, 255, 255, .85); font-weight: 600; }
.endorse .dot {
    inline-size: 20px; block-size: 20px; border-radius: 6px;
    background: var(--brand-amber); color: var(--brand-navy-deep);
    display: grid; place-content: center;
    font-weight: 800; font-size: .8rem;
}
.footer-legal {
    padding-block-start: 22px;
    display: flex; flex-wrap: wrap; gap: 6px 19px;
    font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.footer-legal .disc { color: rgba(255, 255, 255, .72); font-weight: 600; }

/* ---- responsive (#807: single breakpoint 880px for the marketing shell) ---- */
@media (max-width: 880px) {
    .hero { padding-block: 44px 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .preview { max-inline-size: 420px; margin-inline: auto; }
    .section { padding-block: 48px; }
    .steps, .features, .trust-band, .split, .footer-grid { grid-template-columns: 1fr; }
    .trust-band { padding: 32px 24px; }
    .waitlist-card { padding: 36px 22px; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); }

    /* hamburger drawer: nav collapses into a panel under the header */
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        inset-block-start: 100%;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--paper);
        border-block-end: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 14px 20px 18px;
    }
    .nav.open { display: flex; }
    .nav a { padding-block: 9px; font-size: 1.05rem; }
    .nav .btn { margin-block-start: 6px; }
    /* the sticky .site-header is the positioned ancestor — the drawer spans its full width */
}
@media (max-width: 520px) {
    .dash-grid { grid-template-columns: 1fr; }
}

/* ---- onboarding (#349) ---- */
.onb-card {
    max-inline-size: 720px;
    margin-inline: auto;
    margin-block: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.onb-card h1 { margin-block-start: 0; color: var(--brand-navy); }
.onb-card fieldset { border: none; padding: 0; margin: 0; }
.onb-card legend { font-weight: 600; font-size: .95rem; padding: 0; margin-block-end: 8px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-option input { position: absolute; opacity: 0; }
.type-box {
    display: flex; flex-direction: column; gap: 6px;
    block-size: 100%;
    padding: 14px;
    border: 2px solid var(--line-strong);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface);
}
.type-box small { color: var(--ink-soft); line-height: 1.4; }
.type-option input:checked + .type-box {
    border-color: var(--brand-amber);
    background: var(--brand-amber-tint);
    box-shadow: var(--shadow-sm);
}
.type-option input:focus-visible + .type-box { box-shadow: var(--focus-ring); }
.field select {
    inline-size: 100%;
    padding: 11px 13px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
}
.field select:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--brand-amber); }
.radio-row { display: flex; gap: 24px; }
.radio-row label { display: flex; align-items: center; gap: 8px; }
/* #447 O-4ג: the company branch block + its derived-classification info note */
.company-only { display: grid; gap: 18px; }
.company-only[hidden] { display: none; }
.info-note {
    margin: 0;
    background: #E8EEF7;
    border-inline-start: 3px solid var(--brand-navy-soft);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: .9rem;
    color: var(--brand-navy);
}

/* onboarding summary */
.biz-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-list { display: grid; gap: 10px; padding-inline-start: 20px; margin-block: 12px 24px; }
.price-box {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-block: 16px;
}
.price-line { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; color: var(--brand-navy); }
.price-box .link { color: var(--brand-navy); font-weight: 700; text-decoration: underline; }
.legal-note { color: var(--ink-soft); font-size: .92rem; border-inline-start: 3px solid var(--brand-amber); padding-inline-start: 12px; }
.actions-row { display: flex; gap: 12px; margin-block-start: 20px; flex-wrap: wrap; }

/* ---- shared panels + tables (#349) ---- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-block: 20px;
    box-shadow: var(--shadow-sm);
}
.panel h2 { margin-block-start: 0; font-size: 1.1rem; color: var(--brand-navy); }
.data-table { inline-size: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td {
    padding: 10px 12px;
    border-block-end: 1px solid var(--line);
    text-align: start;
}
.data-table thead th { color: var(--ink-soft); font-size: .85rem; }
.num { font-variant-numeric: var(--numeric-variant); direction: ltr; text-align: start; white-space: nowrap; }
.badge-test { background: var(--surface-alt); color: var(--ink-soft); border-color: var(--line-strong); margin-inline-start: 6px; }
.small { font-size: .85rem; }
.edit-link { margin-inline-start: 10px; font-size: .9rem; }

/* ---- tax calendar ---- */
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cal-item {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.cal-date {
    display: flex; flex-direction: column; align-items: center;
    min-inline-size: 64px;
    padding: 6px 10px;
    background: var(--brand-navy);
    color: #fff;
    border-radius: var(--radius-sm);
}
.cal-date strong { font-size: 1.05rem; }
.cal-date small { opacity: .75; }
.cal-body { display: flex; flex-direction: column; gap: 2px; }
.cal-deferred { font-size: .8rem; color: var(--brand-amber-deep); }
.cal-amount { font-size: .85rem; font-weight: 600; color: var(--brand-navy); }
.cal-amount .badge-test { font-weight: 400; }
/* #432 cohesion: uniform amount slot on every obligation row */
.cal-pending { font-weight: 400; color: var(--ink-soft); font-style: italic; }
/* #447 spec §2.1: "בקרוב" = calm grey-blue info badge (not danger, not amber-CTA) —
   the obligation is real, its engine isn't built; the row never shows an invented amount */
.badge-soon {
    background: #E8EEF7;
    color: var(--brand-navy-soft);
    border-color: var(--brand-navy-soft);
    font-weight: 600;
    margin-inline-end: 6px;
}
.cal-soon { font-weight: 400; color: var(--ink-soft); }
/* #531 (the #523 split): a PERMANENT-refusal row — a professional boundary, not an
   error: calm amber-tint badge (the licensed-CPA line) + quiet explanatory text */
.badge-refusal {
    background: var(--brand-amber-tint);
    color: var(--brand-amber-deep);
    border-color: var(--brand-amber-deep);
    font-weight: 600;
    margin-inline-end: 6px;
}
.cal-refusal { font-weight: 400; color: var(--ink-soft); }
.cal-computed-note { font-weight: 400; font-size: .78rem; color: var(--ink-soft); margin-inline-start: 6px; white-space: nowrap; }
.cal-breakdown { font-size: .8rem; }
.cal-explain { font-size: .8rem; }

/* ---- documents ---- */
.docs-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 20px; align-items: start; }

/* ---- VAT demo ---- */
.disclaimer {
    background: var(--brand-amber-tint);
    border: 1px solid var(--brand-amber);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--brand-navy-deep);
    font-weight: 600;
}
.vat-empty { text-align: center; padding-block: 40px; }
.vat-empty form { margin-block-start: 16px; }
.calc-lines { display: grid; gap: 8px; padding-inline-start: 20px; }
.summary-table th { font-weight: 600; }
.total-row th, .total-row td { border-block-start: 2px solid var(--brand-navy); font-size: 1.15rem; }
.total { font-weight: 700; color: var(--brand-navy); }
.warn { color: var(--danger); background: var(--danger-tint); border-radius: var(--radius); padding: 10px 14px; }
.reseed { margin-block: 8px 32px; }

@media (max-width: 860px) {
    .type-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr; }
}

/* narrow screens: wide numeric tables scroll inside their panel instead of
   overflowing the page (#852 S4 — /vat-demo was 195px over at 390px) */
@media (max-width: 640px) {
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- VAT demo: purchase-line status (#355 gates) ---- */
.badge-blocked { background: var(--danger-tint); color: var(--danger); border-color: var(--danger); }
.badge-ok { background: var(--success-tint); color: var(--success); border-color: var(--success); }
.row-blocked td { color: var(--ink-faint); }
.row-blocked .badge-blocked { opacity: 1; }
.panel h3 { font-size: .98rem; color: var(--brand-navy); margin-block: 18px 8px; }

/* the hidden classification radio must not inherit the 100%-width text-input rule —
   unanchored absolute + inline-size:100% overflowed the document to 3000px */
.type-option { position: relative; }
.type-option input { inline-size: 1px; block-size: 1px; inset-block-start: 50%; inset-inline-start: 8px; margin: 0; }
.radio-row input { inline-size: auto; }

/* ---- proactive-advisory notifications (#401) ---- */
.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notif-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--brand-amber);
    border-radius: var(--radius);
    background: var(--surface);
}
.notif-new { border-inline-start-color: var(--brand-navy); }
.notif-title { color: var(--brand-navy); }
.notif-body { margin-block: 6px 8px; font-size: .92rem; }
.notif-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; }
.badge-flag { background: var(--surface-alt); color: var(--ink-soft); border-color: var(--line-strong); font-weight: 600; }
.notif-cta { color: var(--brand-amber-deep); font-weight: 600; }
