/* Sandbox Studio: a fictional design and build studio (demo site). */
:root {
    --ink: #1b2430;
    --ink-soft: #4a5566;
    --paper: #fbf8f3;
    --paper-alt: #f2ece2;
    --navy: #1f3a5f;
    --sun: #f2c14e;
    --clay: #d9825b;
    --sage: #8fa98f;
    --line: #e3dccf;
    --ok: #2e7d4f;
    --bad: #b3412f;
    --radius: 14px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
}
a { color: var(--navy); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--ink-soft); font-size: 0.92em; }

.demo-bar {
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 8px 16px;
}

.nav { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--navy); box-shadow: inset 0 0 0 7px var(--navy), inset 0 0 0 26px var(--sun); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: #fff !important; background: var(--navy); padding: 8px 14px; border-radius: 999px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px; font-weight: 600; color: var(--clay); margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 68px); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 19px; }
.h1-small { font-size: clamp(30px, 4vw, 44px); }
.h2-small { font-size: 24px; margin-top: 36px; }

.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-card {
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr 0.8fr;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
    background: var(--paper-alt);
}
.tile { border-radius: 14px; }
.tile-a { background: var(--navy); }
.tile-b { background: var(--sun); border-radius: 14px 14px 14px 80px; }
.tile-c { background: var(--sage); border-radius: 80px 14px 14px 14px; }
.tile-d { background: var(--clay); }

.btn {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #17304f; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--ink-soft); }

.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--sun); color: var(--ink); font-weight: 700; margin-bottom: 14px;
}

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
form label { display: block; font-weight: 600; font-size: 14.5px; margin: 14px 0 6px; }
form input[type="text"], form input[type="email"], form textarea {
    width: 100%;
    font: inherit;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--navy); }
form .invalid { border-color: var(--bad) !important; outline-color: var(--bad); }
form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; margin: 18px 0; }
form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); font-size: 14.5px; }
.form-success h3 { color: var(--ok); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14.5px; }
.footer-inner { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }

/* /cookie-test */
.ct { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; font-size: 15px; }
.ct th, .ct td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; word-break: break-word; }
.ct thead th { background: var(--paper-alt); }
.ct tbody th[scope="row"] { width: 36%; }
.ct small { font-weight: 400; color: var(--ink-soft); }
.ct-yes { color: var(--ok); font-weight: 700; }
.ct-no { color: var(--bad); font-weight: 700; }
.ct-err { color: var(--clay); font-weight: 700; }

@media (max-width: 860px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-card { max-width: 360px; }
    .cards, .steps { grid-template-columns: 1fr; }
    .nav-links a:not(.nav-cta) { display: none; }
    .section { padding: 56px 0; }
    .ct { font-size: 13.5px; }
}
