* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #141414;
    --paper: #f3f2ef;
    --line: #d8d6d0;
    --muted: #6f6d66;
    --faint: #9b9992;
}

html { -webkit-font-smoothing: antialiased; }

.doc {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
}

.doc__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 56px 90px;
}

/* Top bar: brand + back link */
.doc__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.doc__brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--ink);
    text-decoration: none;
}
.doc__brand sup { font-size: 10px; }
.doc__back {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.doc__back:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.doc__topline { border-top: 1px solid var(--line); }

.doc__label {
    font-family: ui-monospace, 'SFMono-Regular', monospace;
    color: var(--faint);
    font-size: 14px;
    letter-spacing: 2px;
    margin: 26px 0 0;
}
.doc__label span { margin-left: 4px; }

/* Two-column editorial layout */
.doc__grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 40px 56px;
    margin-top: 10px;
    align-items: start;
}

.doc__left { position: sticky; top: 30px; }
.doc__heading {
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1.2px;
}
.doc__intro {
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 42ch;
}

/* Record rows */
.rec {
    display: grid;
    grid-template-columns: 64px minmax(180px, 1.1fr) 1.2fr;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.rec:first-child { border-top: none; }
.rec--no-icon { grid-template-columns: minmax(180px, 1.1fr) 1.2fr; }

.rec__icon { display: flex; }
.rec__iconbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #141414;
    border-radius: 10px;
    flex: none;
}
.rec__iconimg { width: 60%; height: 60%; object-fit: contain; }

.rec__title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.2px;
}
.rec__desc {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
}

.doc__empty { color: var(--faint); padding: 30px 0; }

/* ---- Grid layout (mis. Energy AI) ---- */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    row-gap: 0;
}
.cell {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 22px 0 24px;
    border-top: 1px solid var(--line);
}
.cell__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cell__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.2px;
}
.cell__arrow {
    font-size: 18px;
    color: var(--ink);
    flex: none;
    line-height: 1.4;
    transition: transform .18s ease;
}
a.cell:hover .cell__arrow { transform: translateX(5px); }
.cell__desc {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    max-width: 34ch;
}

.doc__cta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 16px 24px;
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
    transition: background .15s, color .15s;
}
.cta-btn > span:first-child { max-width: 72px; }
.cta-btn:hover { background: var(--ink); color: #fff; }
.cta-btn__arrow { flex: none; }

@media (max-width: 860px) {
    .grid2 { grid-template-columns: 1fr; column-gap: 0; }
}

/* ---- Contact form (Get started page) ---- */
.form { max-width: 560px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__row { margin-bottom: 24px; }
.form__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
    line-height: 1.5;
}
.req { color: #d0342c; }

.form__input,
.form__select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    padding: 4px 0 10px;
    border-radius: 0;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f6d66' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    cursor: pointer;
}
.form__textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 12px 14px;
    min-height: 96px;
    resize: vertical;
    border-radius: 2px;
}

.form__submit {
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: #eceae5;
    border: 1px solid var(--line);
    padding: 12px 42px;
    cursor: pointer;
    border-radius: 2px;
    transition: background .15s, color .15s, border-color .15s;
}
.form__submit:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.form__robot {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 13px 18px;
    border-radius: 3px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form__robot input { width: 18px; height: 18px; }

.form__privacy {
    margin-top: 20px;
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
    max-width: 44ch;
}
.form__privacy a { color: var(--muted); }

.form__errors {
    border: 1px solid #e3b0ac;
    background: #fbecea;
    color: #a3352c;
    padding: 14px 18px 14px 34px;
    border-radius: 3px;
    margin-bottom: 24px;
    font-size: 14px;
}
.form__errors ul { margin: 0; padding: 0; list-style: none; }
.form__errors li { margin: 2px 0; }

.form__success {
    border: 1px solid var(--line);
    background: #fff;
    padding: 28px 30px;
    border-radius: 3px;
    max-width: 560px;
    line-height: 1.6;
    color: var(--muted);
}
.form__success-title {
    color: var(--ink);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.4px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 860px) {
    .doc__inner { padding: 24px 24px 64px; }
    .doc__grid { grid-template-columns: 1fr; gap: 8px; }
    .doc__left { position: static; margin-bottom: 12px; }
    .rec { grid-template-columns: 48px 1fr; }
    .rec__desc { grid-column: 2; }
    .rec--no-icon { grid-template-columns: 1fr; }
    .rec--no-icon .rec__desc { grid-column: 1; }
    .form { max-width: none; }
}
