* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #171717;
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.logo span {
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.6;
}

.nav-button {
    padding: 10px 17px;
    border-radius: 8px;
    background: #171717;
    color: #ffffff;
}


/* HERO */

.hero {
    padding: 110px 0 105px;
    background:
        radial-gradient(
            circle at top right,
            #f1f1f1 0,
            transparent 38%
        ),
        #fafafa;
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -4px;
    max-width: 850px;
}

.hero h1 span {
    display: block;
    font-weight: 400;
}

.hero-text {
    max-width: 650px;
    margin: 28px 0 34px;
    font-size: 19px;
    color: #666666;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #171717;
    color: #ffffff;
}

.button-secondary {
    border: 1px solid #dddddd;
    background: #ffffff;
}


/* SECTIONS */

.tools-section {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 36px;
    letter-spacing: -1.5px;
}

.section-heading > p {
    max-width: 400px;
    margin: 0;
    color: #777777;
}

.eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #888888;
}


/* TOOL CARDS */

.tool-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #cccccc;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f2f2f2;
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 24px;
}

.tool-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.tool-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.tool-card p {
    margin: 12px 0 20px;
    color: #777777;
    font-size: 14px;
    line-height: 1.55;
}

.tool-price {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 5px;
    background: #f1f1f1;
}

.tool-price.free {
    background: #eeeeee;
}

.tool-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
}

.calculator-heading {
    margin-top: 100px;
}


/* HOW IT WORKS */

.how-section {
    padding: 100px 0;
    background: #fafafa;
}

.centered {
    display: block;
    text-align: center;
}

.centered h2 {
    margin-top: 6px;
}

.steps {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 50px;
    margin-top: 55px;
}

.step-number {
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 800;
    color: #888888;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.step p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}


/* CTA */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px;
    border-radius: 14px;
    background: #171717;
    color: #ffffff;
}

.cta-box .eyebrow {
    color: #aaaaaa;
}

.cta-box h2 {
    max-width: 650px;
    margin: 6px 0 8px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.cta-box p:last-child {
    margin: 0;
    color: #aaaaaa;
}

.cta-box .button-primary {
    flex-shrink: 0;
    background: #ffffff;
    color: #171717;
}


/* FOOTER */

.site-footer {
    padding: 50px 0 25px;
    border-top: 1px solid #eeeeee;
}

.footer-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 40px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: #888888;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
    font-size: 13px;
    font-weight: 600;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    color: #999999;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 800px) {

    .main-nav {
        gap: 14px;
    }

    .main-nav a:not(.nav-button) {
        display: none;
    }

    .hero {
        padding: 75px 0;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 12px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cta-box {
        display: block;
        padding: 35px;
    }

    .cta-box .button {
        margin-top: 25px;
    }

}


@media (max-width: 520px) {

    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        height: 68px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .tools-section,
    .how-section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .calculator-heading {
        margin-top: 70px;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-box {
        padding: 28px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 25px;
    }

}

/* AUTH PAGES */

main.auth-page {
    width: 100%;
    min-height: calc(100vh - 76px);
    margin: 0;
    padding: 60px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #fafafa;
}

main.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 40px;

    box-sizing: border-box;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading h1 {
    margin: 5px 0 8px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.auth-heading p:last-child {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #dcdcdc;
    border-radius: 7px;
    background: #ffffff;
    color: #171717;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: #777777;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #999999;
    font-size: 12px;
}

.auth-button {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.error-box {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid #e2caca;
    border-radius: 7px;
    background: #faf3f3;
}

.error-box p {
    margin: 3px 0;
    color: #8a3d3d;
    font-size: 13px;
}

.auth-footer {
    margin: 25px 0 0;
    text-align: center;
    color: #777777;
    font-size: 13px;
}

.auth-footer a {
    font-weight: 700;
    text-decoration: underline;
}

```css
/* DASHBOARD */

.dashboard-page {
    padding: 70px 0 90px;
    background: #fafafa;
    min-height: calc(100vh - 76px);
}

.dashboard-header {
    margin-bottom: 35px;
}

.dashboard-header h1 {
    margin: 5px 0 5px;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.dashboard-email {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 70px;
}

.dashboard-stat {
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
}

.dashboard-stat-label {
    display: block;
    margin-bottom: 7px;
    color: #999999;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.dashboard-stat strong {
    font-size: 25px;
    letter-spacing: -0.5px;
}

.dashboard-section {
    margin-bottom: 70px;
}

.dashboard-section-heading {
    margin-bottom: 25px;
}

.dashboard-section-heading h2,
.dashboard-panel-heading h2 {
    margin: 4px 0 0;
    font-size: 30px;
    letter-spacing: -1px;
}

.dashboard-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-tool-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-tool-card:hover {
    transform: translateY(-4px);
    border-color: #cccccc;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);
}

.dashboard-tool-card .tool-icon {
    margin-bottom: 24px;
}

.dashboard-tool-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard-tool-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-tool-top h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.dashboard-tool-content p {
    margin: 12px 0 20px;
    color: #777777;
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-tool-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-panel {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
}

.dashboard-panel-heading {
    margin-bottom: 25px;
}

.dashboard-empty {
    padding: 25px 0 5px;
    color: #888888;
    font-size: 14px;
}

.dashboard-empty p {
    margin: 0;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eeeeee;
}

.dashboard-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-list-item strong {
    display: block;
    font-size: 14px;
}

.dashboard-list-item span {
    display: block;
    margin-top: 3px;
    color: #888888;
    font-size: 12px;
}

.dashboard-list-item small {
    flex-shrink: 0;
    color: #999999;
    font-size: 11px;
}

.dashboard-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    border-radius: 14px;
    background: #171717;
    color: #ffffff;
}

.dashboard-upgrade .eyebrow {
    color: #aaaaaa;
}

.dashboard-upgrade h2 {
    max-width: 650px;
    margin: 5px 0 8px;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.dashboard-upgrade p:last-child {
    max-width: 600px;
    margin: 0;
    color: #aaaaaa;
    font-size: 14px;
}

.dashboard-upgrade .button {
    flex-shrink: 0;
}

.dashboard-upgrade .button-primary {
    background: #ffffff;
    color: #171717;
}


/* DASHBOARD MOBILE */

@media (max-width: 800px) {

    .dashboard-page {
        padding: 55px 0 70px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        margin-bottom: 55px;
    }

    .dashboard-tool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-upgrade {
        display: block;
        padding: 35px;
    }

    .dashboard-upgrade .button {
        margin-top: 25px;
    }

}


@media (max-width: 520px) {

    .dashboard-header h1 {
        font-size: 34px;
    }

    .dashboard-tool-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        margin-bottom: 55px;
    }

    .dashboard-panel {
        padding: 25px;
    }

    .dashboard-list-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .dashboard-upgrade {
        padding: 28px;
    }

    .dashboard-upgrade h2 {
        font-size: 24px;
    }

}

/* INVOICE GENERATOR */

.invoice-page {
    padding: 65px 0 90px;
    background: #fafafa;
    min-height: calc(100vh - 76px);
}

.invoice-page-header {
    margin-bottom: 35px;
}

.invoice-page-header h1 {
    margin: 5px 0 8px;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.invoice-page-header p:last-child {
    max-width: 650px;
    margin: 0;
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
}

.invoice-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
    gap: 25px;
    align-items: start;
}

.invoice-form-panel {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.invoice-form-section {
    padding: 0 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eeeeee;
}

.invoice-form-section:last-of-type {
    margin-bottom: 0;
    border-bottom: 0;
}

.invoice-form-section h2 {
    margin: 0 0 20px;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.invoice-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.invoice-full {
    grid-column: 1 / -1;
}

.invoice-form-group label,
.invoice-item-row label {
    display: block;
    margin-bottom: 7px;
    color: #555555;
    font-size: 12px;
    font-weight: 700;
}

.invoice-form-group input,
.invoice-form-group select,
.invoice-form-group textarea,
.invoice-item-row input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    border-radius: 7px;
    background: #ffffff;
    color: #171717;
    font: inherit;
    outline: none;
}

.invoice-form-group input,
.invoice-form-group select,
.invoice-item-row input {
    height: 44px;
    padding: 0 12px;
}

.invoice-form-group textarea {
    display: block;
    padding: 12px;
    resize: vertical;
}

.invoice-form-group input:focus,
.invoice-form-group select:focus,
.invoice-form-group textarea:focus,
.invoice-item-row input:focus {
    border-color: #888888;
}

.invoice-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.invoice-section-heading h2 {
    margin: 0;
}

.invoice-add-item {
    padding: 8px 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.invoice-add-item:hover {
    border-color: #aaaaaa;
}

.invoice-item-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 75px 110px 100px;
    gap: 10px;
    align-items: end;
    margin-bottom: 15px;
}

.invoice-item-description {
    min-width: 0;
}

.invoice-item-total {
    min-width: 0;
}

.invoice-item-total strong {
    display: block;
    height: 44px;
    padding: 12px 5px;
    box-sizing: border-box;
    font-size: 13px;
}

.invoice-remove-item {
    position: absolute;
    right: -10px;
    top: -8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #dddddd;
    border-radius: 50%;
    background: #ffffff;
    color: #777777;
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
}

.invoice-remove-item:hover {
    color: #171717;
    border-color: #aaaaaa;
}

.invoice-form-actions {
    display: flex;
    justify-content: flex-end;
}

.invoice-preview-panel {
    position: sticky;
    top: 25px;
}

.invoice-preview {
    padding: 45px;
    border: 1px solid #dddddd;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.invoice-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #dddddd;
}

.invoice-preview-top h2 {
    margin: 0 0 7px;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.invoice-preview-top p {
    margin: 3px 0;
    color: #777777;
    font-size: 12px;
}

.invoice-preview-title {
    text-align: right;
}

.invoice-preview-title span {
    display: block;
    margin-bottom: 5px;
    color: #999999;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.invoice-preview-title strong {
    font-size: 16px;
}

.invoice-preview-meta {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 30px;
    padding: 30px 0;
}

.invoice-preview-meta span {
    display: block;
    margin-bottom: 6px;
    color: #999999;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.invoice-preview-meta strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.invoice-preview-meta p {
    margin: 3px 0;
    color: #777777;
    font-size: 11px;
}

.invoice-preview-table {
    border-top: 1px solid #dddddd;
}

.invoice-preview-table-header,
.invoice-preview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px 90px 100px;
    gap: 15px;
    align-items: center;
}

.invoice-preview-table-header {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.invoice-preview-table-header span {
    color: #999999;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.invoice-preview-item {
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 11px;
}

.invoice-preview-item > span:nth-child(2),
.invoice-preview-item > span:nth-child(3),
.invoice-preview-item > strong {
    text-align: right;
}

.invoice-preview-bottom {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 50px;
    padding-top: 30px;
}

.invoice-preview-notes span {
    display: block;
    margin-bottom: 8px;
    color: #999999;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.invoice-preview-notes p {
    max-width: 280px;
    margin: 0;
    color: #777777;
    font-size: 11px;
    line-height: 1.5;
}

.invoice-preview-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
    color: #666666;
    font-size: 11px;
}

.invoice-preview-grand-total {
    margin-top: 10px;
    padding-top: 12px !important;
    border-top: 1px solid #dddddd;
    color: #171717 !important;
    font-size: 15px !important;
}

.invoice-preview-grand-total strong {
    font-size: 17px;
}


/* INVOICE MOBILE */

@media (max-width: 1100px) {

    .invoice-workspace {
        grid-template-columns: 1fr;
    }

    .invoice-preview-panel {
        position: static;
    }

}

@media (max-width: 650px) {

    .invoice-page {
        padding: 50px 0 70px;
    }

    .invoice-page-header h1 {
        font-size: 34px;
    }

    .invoice-form-panel {
        padding: 22px;
    }

    .invoice-form-grid {
        grid-template-columns: 1fr;
    }

    .invoice-full {
        grid-column: auto;
    }

    .invoice-item-row {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-item-description {
        grid-column: 1 / -1;
    }

    .invoice-item-total {
        grid-column: 1 / 2;
    }

    .invoice-preview {
        padding: 25px;
    }

    .invoice-preview-top {
        gap: 20px;
    }

    .invoice-preview-meta {
        grid-template-columns: 1fr;
    }

    .invoice-preview-table-header,
    .invoice-preview-item {
        grid-template-columns: minmax(0, 1fr) 35px 70px 75px;
        gap: 8px;
    }

    .invoice-preview-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}
