@font-face {
    font-family: "Public Sans";
    src: url("../fonts/PublicSans-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/PublicSans-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * The page is an accounting ledger: paper, ledger-green ruling, the red double
 * margin line, and one ink colour taken from a Romanian company stamp. Violet
 * is the only accent and it means "this is Deconto acting": the stamp, the
 * buttons, the row being written.
 */
:root {
    --paper: #fafaf7;
    --sheet: #ffffff;
    --rule: #d3e3d8;
    --rule-2: #a7c7b2;
    --head: #eaf2ec;
    --margin: #c23b32;
    --ink: #1e2328;
    --ink-2: #565c63;
    --stamp: #4c3a9e;
    --stamp-hover: #3d2e85;
    --stamp-tint: #efebfb;
    --on-stamp: #ffffff;
    --invoice: #ffffff;
    --invoice-line: #e4e6e2;
    --shadow: rgba(30, 35, 40, 0.18);
    --gutter: clamp(16px, 4vw, 64px);
    --wrap: 1440px;
    /* One family, the voice of official forms (Paul, 21.10). Columns of numbers use its
       tabular figures; no monospace anywhere (a mono headline is the AI-site tell). */
    --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: only light;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}
/* clip, never hidden: hidden makes body a scroll container and kills the sticky header */
body {
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font: 400 18px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-underline-offset: 4px;
}
p {
    margin: 0;
}
.wrap {
    width: min(var(--wrap), 100% - 2 * var(--gutter));
    margin-inline: auto;
}
/* Romanian hyphenated words (într-un, dintr-o) must not break at the hyphen. */
.nowrap {
    white-space: nowrap;
}
/* A file name is one long word: let it break anywhere rather than push the page sideways. */
.file {
    overflow-wrap: anywhere;
    color: var(--ink);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 50;
    padding: 10px 16px;
    background: var(--stamp);
    color: var(--on-stamp);
}
.skip:focus {
    top: 12px;
}
:focus-visible {
    outline: 3px solid var(--stamp);
    outline-offset: 3px;
}

/* Type */
h1,
h2,
h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.04;
    text-wrap: balance;
}
h1 {
    font-size: clamp(32px, 4.6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(30px, 3.2vw, 46px);
    letter-spacing: -0.025em;
}
h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.lead {
    font-size: clamp(18px, 1.5vw, 21px);
    color: var(--ink-2);
    max-width: 34em;
    text-wrap: pretty;
}
.muted {
    color: var(--ink-2);
}

/* Buttons and links */
.btn {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 4px;
    background: var(--stamp);
    color: var(--on-stamp);
    font: 700 17px/1.2 var(--sans);
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background-color 160ms ease;
}
.btn:hover {
    background: var(--stamp-hover);
}
.btn small {
    font-weight: 400;
    font-size: 15px;
}
.btn--sm {
    padding: 11px 18px;
    font-size: 16px;
}
.link {
    font-size: 16px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}
.link:hover {
    text-decoration-thickness: 2px;
}

/* Header */
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
}
.top.is-scrolled {
    border-bottom-color: var(--rule-2);
}
.top__in {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 76px;
}
.top__logo {
    flex: none;
    display: flex;
}
.top__logo img {
    height: 34px;
    width: auto;
}
.top__nav {
    display: flex;
    gap: 26px;
    font-size: 16px;
    color: var(--ink-2);
}
.top__nav a,
.top__cta a {
    white-space: nowrap;
}
.top__nav a {
    text-decoration: none;
}
.top__nav a:hover {
    color: var(--ink);
    text-decoration: underline;
}
.top__cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}
/* Below this the five section links no longer fit on one line beside the
   buttons (measured 21.10); the page's own links still reach every section. */
@media (max-width: 1060px) {
    .top__nav {
        display: none;
    }
}
@media (max-width: 480px) {
    .top__cta .link {
        display: none;
    }
}

/* Hero */
.hero {
    padding: clamp(28px, 4.5vw, 68px) 0 clamp(56px, 7vw, 96px);
}
.hero__head {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 44px;
}
.hero__side {
    display: grid;
    gap: 22px;
    justify-items: start;
}
@media (max-width: 1000px) {
    .hero__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* The ledger */
.ledger {
    position: relative;
    background: var(--sheet);
    border-top: 3px solid var(--ink);
}
.ledger__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding: 14px 16px 12px 96px;
    border-bottom: 1px solid var(--rule-2);
}
.ledger__title b {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.ledger__title span {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.ledger__scroll {
    overflow-x: auto;
    min-height: calc(38px + 9 * 38px);
}
.ledger table,
.sheet-table table {
    width: 100%;
    border-collapse: collapse;
    font: 400 14px/1.3 var(--sans);
    font-variant-numeric: tabular-nums;
}
.ledger th,
.sheet-table th {
    text-align: left;
    font: 700 13px/1.3 var(--sans);
    color: var(--ink-2);
    background: var(--head);
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule-2);
    white-space: nowrap;
}
.ledger td,
.sheet-table td {
    padding: 0 12px;
    height: 37px;
    border-bottom: 1px solid var(--rule);
    white-space: nowrap;
}
.ledger td:first-child,
.ledger th:first-child {
    width: 78px;
    min-width: 60px;
    text-align: right;
    padding-right: 16px;
    color: var(--ink-2);
    border-right: 4px double var(--margin);
}
.num {
    text-align: right !important;
}
tr.is-writing td {
    background: var(--stamp-tint);
}
.caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--stamp);
    vertical-align: -2px;
    animation: blink 0.8s steps(1) infinite;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}
.ledger__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: space-between;
    padding: 12px 16px 12px 96px;
    font: 400 14px/1.4 var(--sans);
    color: var(--ink-2);
    border-bottom: 3px double var(--ink);
    font-variant-numeric: tabular-nums;
}
.stamp {
    position: absolute;
    right: 7%;
    bottom: 40px;
    width: 210px;
    height: 210px;
    color: var(--stamp);
    opacity: 0;
    transform: scale(1.6) rotate(-26deg);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.stamp.is-on {
    animation: stamp 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
@keyframes stamp {
    to {
        opacity: 0.9;
        transform: scale(1) rotate(-12deg);
    }
}

/* The invoices waiting to be entered sit in a tray beside the ledger */
.desk {
    overflow-x: clip;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 28px;
    align-items: start;
}
.tray {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding-top: 8px;
    pointer-events: none;
}
.tray__stack {
    position: relative;
    width: 152px;
    height: 200px;
}
.tray__count {
    font: 500 14px/1.35 var(--sans);
    color: var(--ink-2);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.invoice {
    position: absolute;
    inset: 0;
    background: var(--invoice);
    color: #2a2e33;
    padding: 12px 12px 0;
    font: 400 7.5px/1.45 var(--sans);
    box-shadow:
        0 1px 1px var(--shadow),
        0 10px 22px -10px var(--shadow);
    transform-origin: 50% 50%;
    will-change: transform;
}
.invoice b {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
}
.invoice i {
    display: block;
    font-style: normal;
    color: #6c7177;
}
.invoice hr {
    border: 0;
    height: 1px;
    background: var(--invoice-line);
    margin: 7px 0;
}
.invoice .bar {
    height: 5px;
    margin: 4px 0;
    background: var(--invoice-line);
}
.invoice .sum {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-weight: 700;
    font-size: 8.5px;
}
@media (max-width: 1000px) {
    .desk {
        grid-template-columns: minmax(0, 1fr);
    }
    .tray {
        display: none;
    }
    .ledger__title,
    .ledger__foot {
        padding-left: 16px;
    }
    .hide-s {
        display: none;
    }
    .ledger td,
    .ledger th {
        padding: 0 8px;
        font-size: 13px;
    }
    .ledger th {
        padding-block: 10px;
    }
    .ledger td:first-child,
    .ledger th:first-child {
        width: 44px;
        min-width: 44px;
        padding-right: 10px;
    }
    .stamp {
        width: 150px;
        height: 150px;
        right: 4%;
    }
}

/* Sections: a label column on the left, the content on the right, ruled apart */
.sec {
    border-top: 1px solid var(--rule-2);
    padding: clamp(48px, 6vw, 88px) 0;
}
.sec__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 4vw, 72px);
}
.sec__head {
    display: grid;
    gap: 16px;
    align-content: start;
}
.sec__head--sticky {
    position: sticky;
    top: 104px;
}
@media (max-width: 1000px) {
    .sec__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .sec__head--sticky {
        position: static;
    }
}

/* By hand vs Deconto */
.vs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.vs > div {
    display: grid;
    gap: 14px;
    align-content: start;
    padding-right: clamp(24px, 3vw, 48px);
}
.vs > div + div {
    padding: 0 0 0 clamp(24px, 3vw, 48px);
    border-left: 4px double var(--margin);
}
.calc-line {
    margin-top: 10px;
    font: 400 clamp(18px, 1.8vw, 24px) / 1.5 var(--sans);
    font-variant-numeric: tabular-nums;
}
.calc-line strong {
    font-weight: 500;
    border-bottom: 3px double var(--ink);
}
@media (max-width: 760px) {
    .vs {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .vs > div {
        padding-right: 0;
    }
    .vs > div + div {
        padding: 28px 0 0;
        border-left: 0;
        border-top: 4px double var(--margin);
    }
}

/* Ruled rows: steps, privacy, included items */
.rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule-2);
}
.rows > li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    border-bottom: 1px solid var(--rule);
}
.rows > li > :first-child {
    padding: 22px 16px 22px 0;
    text-align: right;
    font: 500 15px/1.6 var(--sans);
    color: var(--ink-2);
    border-right: 4px double var(--margin);
    font-variant-numeric: tabular-nums;
}
.rows > li > :last-child {
    padding: 20px 0 22px 22px;
    display: grid;
    gap: 6px;
}
.rows p {
    color: var(--ink-2);
    max-width: 40em;
}
.rows > li > .tick {
    color: var(--stamp);
    font: 700 19px/1.3 var(--sans);
}
.rows strong {
    color: var(--ink);
    font-weight: 700;
}

/* Companies table on a sheet */
.sheet-table {
    background: var(--sheet);
    border-top: 3px solid var(--ink);
    border-bottom: 3px double var(--ink);
    overflow-x: auto;
}
/* Price and the referral offer, in the pricing column */
.price {
    font-size: 20px;
    color: var(--ink-2);
}
.price strong {
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.refer {
    display: grid;
    gap: 14px;
    margin-top: 12px;
    padding: 22px 0 0;
    border-top: 4px double var(--margin);
}
.refer h3 {
    font-size: 22px;
    line-height: 1.2;
}
.refer p {
    color: var(--ink-2);
}
.refer .sheet-table td:last-child,
.refer .sheet-table th:last-child {
    text-align: right;
}
.refer .sheet-table td {
    font-size: 16px;
}
.sheet-table tr.is-free td {
    background: var(--stamp-tint);
    color: var(--stamp);
    font-weight: 800;
}
.refer__foot {
    font-size: 14px;
}

/* Fit calculator */
.calc {
    background: var(--sheet);
    border-top: 3px solid var(--ink);
}
.calc__row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 96px;
    gap: 20px;
    align-items: center;
    padding: 16px 16px;
    border-bottom: 1px solid var(--rule);
}
.calc__row label {
    font-weight: 700;
}
.calc__row small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: var(--ink-2);
}
.calc__row output {
    font: 500 22px/1 var(--sans);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
input[type="range"] {
    width: 100%;
    accent-color: var(--stamp);
    height: 28px;
}
.calc__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 16px 6px;
    font-weight: 700;
}
.calc__total output {
    font: 500 clamp(30px, 3vw, 40px) / 1 var(--sans);
    border-bottom: 4px double var(--ink);
    padding-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.calc__verdict {
    padding: 8px 16px 20px;
    font-size: 19px;
    font-weight: 700;
    border-bottom: 3px double var(--ink);
}
.calc__verdict[data-fit="no"] {
    color: var(--margin);
}
@media (max-width: 640px) {
    .calc__row {
        grid-template-columns: minmax(0, 1fr) 72px;
    }
    .calc__row input {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.after-bill {
    display: grid;
    gap: 28px;
    margin-top: 32px;
    justify-items: start;
}

/* Video slot */
.video {
    aspect-ratio: 16 / 7;
    background: var(--sheet);
    border-top: 3px solid var(--ink);
    border-bottom: 3px double var(--ink);
    background-image: repeating-linear-gradient(to bottom, transparent 0 36px, var(--rule) 36px 37px);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}
@media (max-width: 700px) {
    .video {
        aspect-ratio: auto;
        min-height: 280px;
    }
}
.video__in {
    display: grid;
    gap: 10px;
    justify-items: center;
    max-width: 30em;
    background: var(--sheet);
    padding: 18px 22px;
}
.video__play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--stamp);
    color: var(--stamp);
    display: grid;
    place-items: center;
}

/* FAQ */
.qa {
    border-top: 1px solid var(--rule-2);
}
.qa details {
    border-bottom: 1px solid var(--rule);
}
.qa summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 2px;
    font-size: 19px;
    font-weight: 700;
}
.qa summary::-webkit-details-marker {
    display: none;
}
.qa summary::after {
    content: "+";
    flex: none;
    font: 500 22px/1 var(--sans);
    color: var(--stamp);
    transition: transform 200ms ease;
    font-variant-numeric: tabular-nums;
}
.qa details[open] summary::after {
    transform: rotate(45deg);
}
.qa p {
    padding: 0 2px 22px;
    color: var(--ink-2);
    max-width: 44em;
}

/* Closing and footer */
.closing {
    border-top: 3px double var(--ink);
    padding: clamp(56px, 7vw, 104px) 0;
}
.closing__in {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
}
.closing__act {
    display: grid;
    gap: 16px;
    justify-items: start;
}
@media (max-width: 900px) {
    .closing__in {
        grid-template-columns: minmax(0, 1fr);
    }
}
.foot {
    border-top: 1px solid var(--rule-2);
    padding: 36px 0 40px;
    font-size: 15px;
    color: var(--ink-2);
}
.foot__row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    align-items: center;
}
.foot__row img {
    height: 28px;
    width: auto;
}
.foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.foot__links a:hover {
    color: var(--ink);
}
.foot__powered {
    margin-left: auto;
}
.foot__legal {
    margin-top: 22px;
    font-size: 13px;
    max-width: 72em;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .caret {
        animation: none;
    }
    .stamp.is-on {
        animation-duration: 1ms;
    }
}

/* Legal pages */
.doc {
    padding: 48px 0 96px;
}
.doc__in {
    max-width: 780px;
}
.doc h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
}
.doc h2 {
    font-size: 24px;
    margin: 40px 0 12px;
    letter-spacing: -0.015em;
}
.doc p,
.doc li {
    color: var(--ink-2);
}
.doc p + p {
    margin-top: 12px;
}
.draft {
    margin: 20px 0 32px;
    padding: 12px 0 12px 18px;
    border-left: 4px double var(--margin);
    color: var(--margin);
    font-size: 16px;
}
.fill {
    background: var(--stamp-tint);
    color: var(--stamp);
    padding: 0 4px;
    font-weight: 700;
}
