/*
 * Technolonica ERP product page (technolonica.com/erp/).
 * Copied from the Technolonica ERP repository (deploy/site/assets/site.css,
 * with tokens.css and fonts/), so this page matches the ERP's own website.
 * Technolonica Design System: every colour, radius and shadow comes from a
 * --tl-* variable in tokens.css. Light and dark follow the visitor's system
 * setting (prefers-color-scheme, at the end of tokens.css). Fonts are served
 * from this site (fonts/, SIL Open Font License), so the page loads nothing
 * from other companies.
 */

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-wght.woff2") format("woff2");
    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: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-ext-wght.woff2") format("woff2");
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Outfit;
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("fonts/outfit-latin-wght.woff2") format("woff2");
}

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--tl-band);
    color: var(--tl-ink);
    font-family: var(--tl-font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
}

a {
    color: var(--tl-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--tl-accent-strong);
}

:focus-visible {
    outline: 2px solid var(--tl-focus);
    outline-offset: 2px;
    border-radius: var(--tl-radius-sm);
}

h1,
h2,
h3 {
    font-family: var(--tl-font-display);
    font-weight: 600;
    color: var(--tl-ink);
    margin: 0;
}

p {
    margin: 0;
}

code {
    font-family: var(--tl-font-mono);
    font-size: 0.875em;
    padding: 0.1em 0.35em;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-surface-tint);
    color: var(--tl-accent-strong);
}

.skip-link {
    position: absolute;
    left: var(--tl-space-4);
    top: -100px;
    z-index: 10;
    padding: var(--tl-space-2) var(--tl-space-4);
    border-radius: var(--tl-radius-md);
    background: var(--tl-surface);
    color: var(--tl-ink);
    box-shadow: var(--tl-shadow-popover);
}

.skip-link:focus {
    top: var(--tl-space-2);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Top band: wordmark, divider and eyebrow, then the site links */

.band {
    display: flex;
    align-items: center;
    gap: var(--tl-space-3);
    min-height: var(--tl-band-height);
    padding: var(--tl-space-2) var(--tl-space-5);
    color: var(--tl-band-ink);
}

.band-brand {
    display: flex;
    align-items: center;
    flex: none;
    border-radius: var(--tl-radius-sm);
}

.band-brand img {
    display: block;
    height: 22px;
    width: auto;
}

.band-eyebrow {
    padding-left: var(--tl-space-3);
    border-left: 1px solid color-mix(in srgb, var(--tl-band-ink) 18%, transparent);
    font-family: var(--tl-font-display);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tl-band-muted);
    white-space: nowrap;
}

.band-nav {
    display: flex;
    align-items: center;
    gap: var(--tl-space-1);
    margin-left: auto;
}

.band-link {
    display: inline-flex;
    align-items: center;
    height: var(--tl-control-height);
    padding: 0 var(--tl-space-3);
    border-radius: var(--tl-radius-md);
    color: var(--tl-band-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.band-link:hover,
.band-link[aria-current="page"] {
    color: var(--tl-band-ink);
    background: color-mix(in srgb, var(--tl-band-ink) 10%, transparent);
}

.band-button {
    display: inline-flex;
    align-items: center;
    height: var(--tl-control-height);
    margin-left: var(--tl-space-2);
    padding: 0 var(--tl-space-4);
    border-radius: var(--tl-radius-md);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tl-band-ink) 30%, transparent);
    color: var(--tl-band-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.band-button:hover {
    color: var(--tl-band-ink);
    background: color-mix(in srgb, var(--tl-band-ink) 10%, transparent);
}

/* Buttons (components/Button.md) */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tl-space-2);
    min-height: var(--tl-control-height);
    padding: 0 var(--tl-space-4);
    border-radius: var(--tl-radius-md);
    font-family: var(--tl-font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.button svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.button-primary {
    background: var(--tl-primary);
    color: var(--tl-on-primary);
}

.button-primary:hover {
    background: var(--tl-primary-hover);
    color: var(--tl-on-primary);
}

.button-secondary {
    background: var(--tl-surface);
    color: var(--tl-ink);
    box-shadow: inset 0 0 0 1px var(--tl-line-strong);
}

.button-secondary:hover {
    background: var(--tl-surface-tint);
    color: var(--tl-ink);
}

.button-large {
    min-height: 44px;
    padding: 0 var(--tl-space-5);
    font-size: 15px;
}

/* Content shell: the rounded ground under the band, with the dot texture */

.shell {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--tl-band-height));
    margin: 0 var(--tl-space-2);
    border-radius: var(--tl-radius-xl) var(--tl-radius-xl) 0 0;
    background: var(--tl-ground);
    overflow: hidden;
}

.shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;
    height: 30rem;
    pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, var(--tl-accent) 16%, transparent) 1.1px, transparent 1.4px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(60% 55% at 100% 0%, var(--tl-ink) 0%, transparent 70%);
    mask-image: radial-gradient(60% 55% at 100% 0%, var(--tl-ink) 0%, transparent 70%);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--tl-space-8);
}

main {
    flex: 1;
}

.section {
    padding: var(--tl-space-12) 0 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-2);
    max-width: 44rem;
    margin-bottom: var(--tl-space-6);
}

.eyebrow {
    font-family: var(--tl-font-display);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tl-accent);
}

.section-title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.015em;
}

.lede {
    font-size: 18px;
    line-height: 28px;
    color: var(--tl-ink-muted);
}

.muted {
    color: var(--tl-ink-muted);
}

.section-note {
    margin-top: var(--tl-space-5);
    color: var(--tl-ink-muted);
}

.card-title {
    margin-top: var(--tl-space-2);
}

/* Cards */

.card {
    padding: var(--tl-space-5);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-surface);
    box-shadow: var(--tl-shadow-card);
}

.card h3 {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.01em;
}

.card p {
    margin-top: var(--tl-space-2);
    font-size: 15px;
    line-height: 24px;
    color: var(--tl-ink-muted);
}

.icon-tile {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--tl-space-4);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-surface-tint);
    color: var(--tl-accent);
}

.icon-tile svg {
    width: 22px;
    height: 22px;
}

.grid {
    display: grid;
    gap: var(--tl-space-4);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Home: hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--tl-space-12);
    padding: 72px 0 var(--tl-space-4);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-5);
}

.hero h1 {
    font-size: 52px;
    line-height: 56px;
    letter-spacing: -0.025em;
}

.hero-tagline {
    font-family: var(--tl-font-display);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.01em;
    color: var(--tl-ink);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tl-space-3);
    padding-top: var(--tl-space-2);
}

.hero-note {
    font-size: 14px;
    line-height: 20px;
    color: var(--tl-ink-muted);
}

/* Home: the sample invoice list beside the hero */

.preview {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tl-space-3);
    padding: var(--tl-space-4) var(--tl-space-5);
    border-bottom: 1px solid var(--tl-line);
}

.preview-title {
    font-family: var(--tl-font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.preview-tag {
    font-size: 12px;
    line-height: 16px;
    color: var(--tl-ink-muted);
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 20px;
}

.preview-table th {
    padding: var(--tl-space-2) var(--tl-space-5);
    background: var(--tl-surface-tint);
    color: var(--tl-accent-strong);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.preview-table td {
    padding: var(--tl-space-3) var(--tl-space-5);
    border-top: 1px solid var(--tl-line);
    vertical-align: top;
}

.preview-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.doc-no {
    display: block;
    font-family: var(--tl-font-mono);
    font-size: 12px;
    line-height: 18px;
    color: var(--tl-ink-muted);
}

.preview-foot {
    display: flex;
    justify-content: space-between;
    gap: var(--tl-space-3);
    padding: var(--tl-space-3) var(--tl-space-5);
    border-top: 1px solid var(--tl-line);
    font-size: 13px;
    color: var(--tl-ink-muted);
}

.preview-foot strong {
    color: var(--tl-ink);
    font-variant-numeric: tabular-nums;
}

.pill {
    display: inline-block;
    margin-top: var(--tl-space-1);
    padding: 0 var(--tl-space-2);
    border-radius: var(--tl-radius-sm);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.pill-success {
    background: var(--tl-success-wash);
    color: var(--tl-success);
}

.pill-info {
    background: var(--tl-info-wash);
    color: var(--tl-info);
}

.pill-warning {
    background: var(--tl-warning-wash);
    color: var(--tl-warning);
}

/* Home: Philippine conventions and subscriptions */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--tl-space-4);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-3);
    margin: var(--tl-space-4) 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 24px;
    color: var(--tl-ink);
}

.checklist li svg {
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    color: var(--tl-accent);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-4);
    margin: var(--tl-space-4) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-left: 44px;
    font-size: 15px;
    line-height: 24px;
    color: var(--tl-ink-muted);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--tl-radius-full);
    background: var(--tl-surface-tint);
    color: var(--tl-accent);
    font-family: var(--tl-font-display);
    font-size: 14px;
    font-weight: 600;
}

.steps strong {
    display: block;
    color: var(--tl-ink);
    font-weight: 600;
}

/* Home: sign in and the privacy summary */

.signin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--tl-space-4);
}

.signin .card {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-3);
}

.signin .card p {
    margin: 0;
}

.signin .icon-tile {
    margin: 0;
}

.signin .card .button {
    align-self: flex-start;
    margin-top: auto;
}

.address {
    font-family: var(--tl-font-mono);
    font-size: 14px;
    color: var(--tl-ink);
}

.privacy-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--tl-space-5);
    padding: var(--tl-space-6);
}

.privacy-summary .icon-tile {
    margin: 0;
}

.privacy-summary h2 {
    font-size: 18px;
    line-height: 26px;
}

.privacy-summary p {
    margin-top: var(--tl-space-1);
    font-size: 15px;
    line-height: 24px;
    color: var(--tl-ink-muted);
}

/* Footer */

.site-footer {
    margin-top: 64px;
    padding: var(--tl-space-6) 0;
    border-top: 1px solid var(--tl-line);
    font-size: 13px;
    line-height: 20px;
    color: var(--tl-ink-muted);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: var(--tl-space-2);
    row-gap: var(--tl-space-1);
    text-align: center;
}

.site-footer a {
    color: var(--tl-ink-muted);
}

.site-footer a:hover {
    color: var(--tl-accent);
}

/* Privacy Policy */

.page-head {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-1);
    padding: var(--tl-space-8) 0 var(--tl-space-6);
}

.breadcrumbs {
    font-size: 12px;
    line-height: 16px;
    color: var(--tl-ink-muted);
}

.breadcrumbs a {
    color: var(--tl-ink-muted);
}

.breadcrumbs a:hover {
    color: var(--tl-accent);
}

.page-title {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.02em;
}

.page-meta {
    margin-top: var(--tl-space-1);
    font-size: 14px;
    line-height: 20px;
    color: var(--tl-ink-muted);
}

.doc-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    gap: var(--tl-space-8);
}

.toc {
    position: sticky;
    top: var(--tl-space-4);
    padding: var(--tl-space-3);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-sidebar);
}

.toc-title {
    padding: var(--tl-space-2) var(--tl-space-3) var(--tl-space-2);
    font-family: var(--tl-font-display);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tl-accent);
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: block;
    padding: 6px var(--tl-space-3);
    border-radius: var(--tl-radius-md);
    color: var(--tl-ink-muted);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.toc a:hover {
    background: var(--tl-surface);
    box-shadow: var(--tl-shadow-pill);
    color: var(--tl-accent);
}

.doc {
    max-width: 50rem;
    padding: var(--tl-space-8);
}

.doc-section + .doc-section {
    margin-top: var(--tl-space-8);
    padding-top: var(--tl-space-8);
    border-top: 1px solid var(--tl-line);
}

.doc-section {
    scroll-margin-top: var(--tl-space-4);
}

.doc h2 {
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.01em;
}

.doc h3 {
    margin-top: var(--tl-space-6);
    font-size: 17px;
    line-height: 24px;
    letter-spacing: -0.005em;
}

.doc p,
.doc ul,
.doc ol,
.doc dl,
.doc .table-wrap {
    margin-top: var(--tl-space-3);
}

.doc p,
.doc li,
.doc dl {
    font-size: 16px;
    line-height: 26px;
    color: var(--tl-ink);
}

.doc ul,
.doc ol {
    padding-left: var(--tl-space-6);
}

.doc li + li {
    margin-top: var(--tl-space-2);
}

.doc li::marker {
    color: var(--tl-accent);
}

.callout {
    padding: var(--tl-space-5);
    border-radius: var(--tl-radius-lg);
    background: var(--tl-surface-tint);
}

.callout h2 {
    font-size: 18px;
    line-height: 26px;
}

.callout ul {
    margin-top: var(--tl-space-3);
}

.statement {
    margin-top: var(--tl-space-4);
    padding: var(--tl-space-4) var(--tl-space-5);
    border-radius: var(--tl-radius-md);
    background: var(--tl-surface-tint);
    color: var(--tl-ink);
    font-weight: 500;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--tl-radius-lg);
    box-shadow: var(--tl-shadow-card);
}

.basis-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 22px;
}

.basis-table th {
    padding: var(--tl-space-2) var(--tl-space-4);
    background: var(--tl-surface-tint);
    color: var(--tl-accent-strong);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.basis-table td {
    padding: var(--tl-space-3) var(--tl-space-4);
    border-top: 1px solid var(--tl-line);
    vertical-align: top;
}

.contact-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--tl-space-5);
    row-gap: var(--tl-space-2);
}

.contact-list dt {
    color: var(--tl-ink-muted);
}

.contact-list dd {
    margin: 0;
    color: var(--tl-ink);
}

/* Tablets */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--tl-space-8);
        padding-top: var(--tl-space-12);
    }

    .doc-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--tl-space-4);
    }

    .toc {
        position: static;
    }

    .toc ol {
        columns: 2;
        column-gap: var(--tl-space-2);
    }

    .doc {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .split,
    .signin {
        grid-template-columns: minmax(0, 1fr);
    }

    .privacy-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--tl-space-4);
    }
}

/* Phones: 16px side gutters, the shell runs edge to edge */

@media (max-width: 640px) {
    .band {
        padding: var(--tl-space-2) var(--tl-space-4);
        gap: var(--tl-space-2);
    }

    .band-brand img {
        height: 18px;
    }

    .band-eyebrow {
        display: none;
    }

    .band-link {
        padding: 0 var(--tl-space-2);
    }

    .band-button {
        margin-left: var(--tl-space-1);
        padding: 0 var(--tl-space-3);
    }

    .shell {
        margin: 0;
    }

    .container {
        padding: 0 var(--tl-space-4);
    }

    .section {
        padding-top: var(--tl-space-8);
    }

    .hero {
        padding-top: var(--tl-space-8);
    }

    .hero h1 {
        font-size: 38px;
        line-height: 44px;
    }

    .hero-tagline {
        font-size: 20px;
        line-height: 28px;
    }

    .lede {
        font-size: 16px;
        line-height: 26px;
    }

    .section-title {
        font-size: 24px;
        line-height: 30px;
    }

    .actions .button {
        flex: 1 1 100%;
    }

    .preview-table th,
    .preview-table td,
    .preview-head,
    .preview-foot {
        padding-left: var(--tl-space-4);
        padding-right: var(--tl-space-4);
    }

    .page-title {
        font-size: 30px;
        line-height: 36px;
    }

    .toc ol {
        columns: 1;
    }

    .toc a {
        padding: var(--tl-space-1) var(--tl-space-3);
    }

    .callout {
        padding: var(--tl-space-4);
    }

    .doc {
        padding: var(--tl-space-5) var(--tl-space-4);
    }

    .doc ul,
    .doc ol {
        padding-left: var(--tl-space-5);
    }

    .basis-table,
    .basis-table tbody {
        display: block;
        min-width: 0;
    }

    .basis-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .basis-table tr {
        display: block;
        padding: var(--tl-space-3) var(--tl-space-4);
    }

    .basis-table tr + tr {
        border-top: 1px solid var(--tl-line);
    }

    .basis-table td {
        display: block;
        padding: 0;
        border: 0;
    }

    .basis-table td + td {
        margin-top: var(--tl-space-2);
    }

    .basis-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        color: var(--tl-accent);
    }

    .contact-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .contact-list dd + dt {
        margin-top: var(--tl-space-3);
    }

    .site-footer {
        margin-top: var(--tl-space-12);
    }
}

/* Very narrow phones: the wordmark and breadcrumbs already lead home */

@media (max-width: 380px) {
    .band-link-optional {
        display: none;
    }
}
