/* ============================================================
   Queensland Web Portal Applications — design tokens

   Palette is lifted from the QWPA mark:
     amber   #E0A94E   the logo's ring, nodes and chevrons
     core    #241A0A   the dark disc at the centre of the mark
     ink     #0F2E3D   the wordmark's deep teal-navy
     coral   #F26D5B   the mark's two accent chevrons and core dot
     paper   #EFECE3   warm stock the whole thing sits on

   Type:  Archivo (display) / Inter (body) / IBM Plex Mono (figures only)
   Mono is reserved for money and numbers, so a price always reads as a
   price. It is never used for decorative labels.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --paper:        #EFECE3;
    --paper-raised: #F7F5EF;
    --ink:          #0F2E3D;
    --ink-soft:     #3D5766;
    --slate:        #5B7280;

    --amber:        #E0A94E;
    --amber-hover:  #D0982F;
    --core:         #241A0A;
    --coral:        #F26D5B;

    --good:         #2E6B5E;
    --good-bg:      #E3EDE9;
    --bad:          #A8433A;
    --bad-bg:       #F3E2DF;

    --line:         #DAD5C7;
    --line-strong:  #C3BCA9;

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-figure:  'IBM Plex Mono', ui-monospace, monospace;

    --max-width: 1160px;
    --radius:    10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.015em;
    font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.kicker {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--good);
    margin-bottom: 0.9em;
}

.lede {
    font-size: 1.13rem;
    max-width: 54ch;
    color: var(--ink-soft);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 18px;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 14px 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

.btn-primary {
    background: var(--amber);
    color: var(--core);
    border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--good);
    outline-offset: 2px;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(239, 236, 227, 0.93);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}
.logo picture { display: block; flex: none; }
.logo img { width: 44px; height: 44px; flex: none; }

.logo-text { display: grid; line-height: 1.15; }

.logo-short {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: 0.06em;
}

.logo-full {
    font-size: 0.72rem;
    color: var(--slate);
    letter-spacing: 0.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.btn { color: var(--core); }

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--line-strong);
    border-radius: 6px;
    padding: 9px 13px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--line);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero h1 { margin-bottom: 0.42em; }

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ---------- the whole bill (hero panel, signature element) ---------- */

.bill {
    background: var(--core);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 30px 30px 26px;
    box-shadow: 0 1px 0 var(--amber) inset;
}

.bill-title {
    font-size: 1.25rem;
    color: var(--amber);
    margin-bottom: 0.25em;
}

.bill-sub {
    font-size: 0.88rem;
    color: #B9B0A0;
    margin-bottom: 20px;
}

.bill-lines { margin: 0; }

.bill-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid rgba(224, 169, 78, 0.22);
}

.bill-line dt {
    font-size: 0.93rem;
    color: #E8E2D6;
}

.bill-line dd {
    margin: 0;
    font-family: var(--font-figure);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--amber);
    white-space: nowrap;
}

.bill-line dd.is-free { color: #8FA89C; }

.fig-unit {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.72rem;
    color: #9A917F;
    text-align: right;
    margin-top: 1px;
}

.bill-line.is-total {
    border-top: 2px solid var(--amber);
    margin-top: 6px;
    padding-top: 15px;
}
.bill-line.is-total dt { font-weight: 600; color: #FFF; }
.bill-line.is-total dd { font-size: 1.3rem; color: var(--coral); }

.bill-foot {
    margin-top: 18px;
    font-size: 0.82rem;
    color: #9A917F;
}

/* ---------- generic section ---------- */

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
    max-width: 62ch;
    margin-bottom: 42px;
}
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { font-size: 1.03rem; }

/* ---------- problem ---------- */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 20px;
}

.problem-item {
    border: 1px solid var(--line);
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 22px 24px;
    background: var(--paper-raised);
}

.problem-item h3 { margin-bottom: 8px; color: var(--ink); }
.problem-item p { margin: 0; font-size: 0.94rem; }

/* ---------- shared table frame ---------- */

.table-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-raised);
}

.compare-table,
.cost-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table thead th,
.cost-table thead th {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0;
    padding: 15px 18px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    vertical-align: bottom;
}

.compare-table tbody th,
.cost-table tbody th {
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--ink);
    padding: 15px 18px;
    vertical-align: middle;
}

.compare-table tbody td,
.cost-table tbody td {
    font-size: 0.94rem;
    padding: 15px 18px;
    vertical-align: middle;
    color: var(--ink-soft);
}

.compare-table tbody tr + tr th,
.compare-table tbody tr + tr td,
.cost-table tbody tr + tr th,
.cost-table tbody tr + tr td {
    border-top: 1px solid var(--line);
}

/* ---------- comparison table ---------- */

.compare-table .col-topic  { width: 26%; color: var(--slate); }
.compare-table .col-legacy { background: var(--bad-bg);  color: var(--bad); }
.compare-table .col-portal { background: var(--good-bg); color: var(--good); }

.compare-table .cell-legacy { background: rgba(168, 67, 58, 0.045); }
.compare-table .cell-portal { background: rgba(46, 107, 94, 0.055); }

.mark-no,
.mark-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: -3px;
}
.mark-no  { background: var(--bad);  color: #fff; }
.mark-yes { background: var(--good); color: #fff; }
.mark-no::before  { content: "\00d7"; }
.mark-yes::before { content: "\2713"; }

/* ---------- five-year cost table ---------- */

.cost-block { margin-top: 44px; }

.cost-heading { font-size: 1.3rem; margin-bottom: 0.35em; }
.cost-intro { max-width: 60ch; margin-bottom: 22px; }

.cost-table thead th { text-align: right; }
.cost-table thead th.col-topic { text-align: left; width: 27%; }

.cost-table tbody td {
    font-family: var(--font-figure);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: right;
    white-space: nowrap;
}

.cost-table .col-total {
    background: rgba(224, 169, 78, 0.14);
    border-left: 1px solid var(--line-strong);
    font-weight: 600;
}

.cost-table .row-ours th   { color: var(--good); }
.cost-table .row-ours td   { color: var(--ink); }
.cost-table .row-theirs th { color: var(--bad); }
.cost-table .row-theirs td { color: var(--bad); }

.cost-note {
    margin-top: 18px;
    font-size: 0.87rem;
    color: var(--slate);
    max-width: 72ch;
}

/* ---------- built for you ---------- */

.tailored-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.menu-mock {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-raised);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-mock-head {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}
.menu-mock-head h3 { margin: 0 0 4px; }
.menu-mock-sub { margin: 0; font-size: 0.85rem; color: var(--slate); }

.menu-mock.is-generic .menu-mock-head { background: var(--bad-bg); border-bottom-color: rgba(168, 67, 58, 0.28); }
.menu-mock.is-generic .menu-mock-head h3 { color: var(--bad); }

.menu-mock.is-yours { border-color: var(--line-strong); }
.menu-mock.is-yours .menu-mock-head { background: var(--good-bg); border-bottom-color: rgba(46, 107, 94, 0.28); }
.menu-mock.is-yours .menu-mock-head h3 { color: var(--good); }

.menu-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex: 1;
}

.menu-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 22px 9px 38px;
    font-size: 0.93rem;
    color: var(--ink);
    position: relative;
}

.menu-list li::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--good);
}

.menu-list li.is-unused {
    color: var(--slate);
    opacity: 0.62;
}
.menu-list li.is-unused::before { background: var(--line-strong); }

.menu-list li.is-unused span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bad);
    background: var(--bad-bg);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    flex: none;
    opacity: 0.9;
}

.menu-mock.is-yours .menu-list li { font-weight: 500; }

.menu-mock-foot {
    margin: 0;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--slate);
}
.menu-mock.is-generic .menu-mock-foot { color: var(--bad); }

.tailored-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px 32px;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.tailored-point h3 { margin-bottom: 7px; }
.tailored-point p { margin: 0; font-size: 0.94rem; }

/* ---------- pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.price-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 32px;
}

.price-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--amber);
    color: var(--core);
    padding: 5px 11px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.price-amount {
    font-family: var(--font-figure);
    font-size: 3.1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--amber);
    margin: 0 0 10px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.price-amount span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #A9BAC4;
}

.price-lede { color: #C2D0D8; font-size: 0.97rem; }

.price-includes {
    list-style: none;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: grid;
    gap: 10px;
    font-size: 0.94rem;
    color: #DCE5EA;
}
.price-includes li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
}
.price-includes li::before {
    content: "\2713";
    color: var(--amber);
    font-weight: 700;
}

.never-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    background: var(--paper-raised);
}
.never-card h3 { margin-bottom: 18px; }

.never-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 11px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.never-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
}
.never-list li::before {
    content: "\00d7";
    color: var(--bad);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
}

.never-foot {
    font-size: 0.87rem;
    color: var(--slate);
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

/* ---------- hosting ---------- */

.hosting-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--paper-raised);
}

.hosting-amount {
    font-family: var(--font-figure);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    margin: 0;
}
.hosting-amount span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate);
    margin-top: 6px;
}
.hosting-label {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--slate);
}
.hosting-copy h3 { margin-bottom: 10px; }
.hosting-copy p { font-size: 0.96rem; }
.hosting-copy p + p { margin-top: 0.9em; }

.pricing-fineprint {
    margin-top: 28px;
    font-size: 0.87rem;
    color: var(--slate);
    max-width: 74ch;
}

/* ---------- philosophy ---------- */

.philosophy .wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.philosophy-mark {
    font-size: 1.02rem;
    color: var(--ink-soft);
    border-left: 3px solid var(--amber);
    padding-left: 16px;
}

.philosophy-points { display: grid; gap: 26px; }
.philosophy-point h3 { margin-bottom: 6px; }
.philosophy-point p { margin: 0; font-size: 0.96rem; }

/* ---------- process ---------- */

.process-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.process-step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 22px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}
.process-step:last-child { padding-bottom: 0; }

.process-step::before {
    content: counter(step);
    font-family: var(--font-figure);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--core);
    background: var(--amber);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pin the number to the gutter and keep every real child in column 2.
   Without this, grid auto-placement wraps the paragraph back into the
   58px number column and the text runs down the page a word at a time. */
.process-step::before { grid-column: 1; grid-row: 1; }
.process-step > *     { grid-column: 2; }

.process-step h3 { margin-bottom: 6px; }
.process-step p {
    font-size: 0.96rem;
    max-width: 84ch;   /* caps line length; raise or delete for full width */
}

.process-fork {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.fork-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    background: var(--paper-raised);
}
.fork-card.is-refine { border-left: 3px solid var(--slate); }
.fork-card.is-deploy { border-left: 3px solid var(--good); }
.fork-card h4 { margin: 0 0 6px; }
.fork-card p { margin: 0; font-size: 0.9rem; }

/* ---------- contact ---------- */

#contact .wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.contact-meta { display: grid; gap: 20px; align-content: start; }
.contact-meta h2 { margin: 0; }
.contact-meta p { margin: 0; }

.contact-email-box {
    font-size: 1rem;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-raised);
    color: var(--ink-soft);
}
.contact-email-box a { text-decoration: none; color: var(--good); font-weight: 600; }

.contact-form { display: grid; gap: 16px; }

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

.field { display: grid; gap: 6px; }

.field label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
}

.field input,
.field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--paper-raised);
    color: var(--ink);
}
.field textarea { resize: vertical; min-height: 118px; }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-banner {
    font-size: 0.93rem;
    padding: 13px 16px;
    border-radius: 6px;
    margin: 0;
}
.form-banner.is-success { background: var(--good-bg); color: var(--good); }
.form-banner.is-error   { background: var(--bad-bg);  color: var(--bad); }

.contact-form .btn { justify-self: start; }

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    background: var(--paper-raised);
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-brand picture { display: block; }
.footer-brand img { width: 128px; height: auto; }

.footer-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--slate);
}
.footer-meta p { margin: 0; color: var(--slate); }
.footer-meta p + p { margin-top: 6px; }
.footer-meta a { color: var(--slate); text-decoration: underline; }
.footer-meta a:hover { color: var(--ink); }
.footer-meta a + a { margin-left: 14px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
    .philosophy .wrap { grid-template-columns: 1fr; gap: 34px; }
    #contact .wrap { grid-template-columns: 1fr; gap: 38px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hosting-card { grid-template-columns: 1fr; gap: 20px; }
    .tailored-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    section { padding: 60px 0; }
    .wrap { padding: 0 20px; }

    .logo-full { display: none; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px 22px;
        gap: 16px;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a.btn { text-align: center; }
    .nav-toggle { display: block; }

    .process-fork { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-meta { text-align: left; }
    .site-footer .wrap { justify-content: flex-start; }

    /* --- tables become stacked cards --- */
    .table-frame {
        border: none;
        border-radius: 0;
        background: none;
        overflow: visible;
    }

    .compare-table,
    .cost-table { display: block; }

    .compare-table thead,
    .cost-table thead { display: none; }

    .compare-table tbody,
    .cost-table tbody { display: block; }

    .compare-table tbody tr,
    .cost-table tbody tr {
        display: block;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper-raised);
        overflow: hidden;
        margin-bottom: 14px;
    }

    .compare-table tbody th,
    .cost-table tbody th {
        display: block;
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        padding: 14px 16px;
        background: var(--paper);
        border-bottom: 1px solid var(--line-strong);
    }

    .compare-table tbody td,
    .cost-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 16px;
        text-align: right;
    }

    .compare-table tbody td::before,
    .cost-table tbody td::before {
        content: attr(data-label);
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--slate);
        text-align: left;
        flex: none;
    }

    .compare-table tbody tr + tr th,
    .compare-table tbody tr + tr td,
    .cost-table tbody tr + tr th,
    .cost-table tbody tr + tr td { border-top: none; }

    .compare-table tbody td + td { border-top: 1px solid var(--line); }
    .cost-table tbody td + td { border-top: 1px solid var(--line); }

    .cost-table .col-total { border-left: none; border-top: 2px solid var(--line-strong); }

    .mark-no, .mark-yes { margin-right: 0; margin-left: 8px; order: 2; }
    .compare-table tbody td { flex-wrap: nowrap; }
}

@media (max-width: 520px) {
    .bill { padding: 24px 20px 22px; }
    .price-card, .never-card { padding: 24px 22px; }
    .hosting-card { padding: 24px 22px; }
    .price-amount { font-size: 2.6rem; }
    .hero { padding: 52px 0 48px; }
}

/* ============================================================
   Admin
   ============================================================ */

.admin-body {
    background: var(--paper);
    font-family: var(--font-body);
    color: var(--ink);
}

.admin-login {
    max-width: 400px;
    margin: 90px auto;
    padding: 0 24px;
}

.admin-brand {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--slate);
    margin-bottom: 0.4em;
}

.admin-form { display: grid; gap: 14px; margin-top: 18px; }
.admin-form--inline { grid-template-columns: 1fr auto; align-items: end; }

.admin-form label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
}

.admin-form input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--paper-raised);
    color: var(--ink);
}

.admin-error   { color: var(--bad);  font-size: 0.93rem; }
.admin-success { color: var(--good); font-size: 0.93rem; }
.admin-back { display: inline-block; margin-top: 20px; font-size: 0.9rem; color: var(--slate); }

.admin-dashboard { max-width: 1000px; margin: 0 auto; padding: 50px 24px 80px; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}
.admin-header h1 { margin: 0; }

.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--paper-raised);
    margin-bottom: 24px;
}
.admin-card h2 { font-size: 1.3rem; }

.admin-card.admin-warning {
    border-color: var(--bad);
    border-left: 4px solid var(--bad);
    background: var(--bad-bg);
}
.admin-card.admin-warning h2 { color: var(--bad); }
.admin-card.admin-warning code {
    font-family: var(--font-figure);
    font-size: 0.85em;
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 3px;
}
.admin-card.admin-warning pre {
    font-family: var(--font-figure);
    font-size: 0.82rem;
    background: var(--core);
    color: #E8E2D6;
    padding: 14px 16px;
    border-radius: 6px;
    overflow-x: auto;
}

.admin-hint  { font-size: 0.9rem; color: var(--slate); }
.admin-empty { font-size: 0.9rem; color: var(--slate); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
.admin-table th,
.admin-table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.admin-table th {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .admin-form--inline { grid-template-columns: 1fr; }
}
