/* Styles for the per-app setup pages (/chatgpt, /claude). Tokens, header, buttons and footer
   follow the home page (index.html), whose styles are inline; keep the two in step. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1B7EB0;
    --secondary: #4a4a4a;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --border: #e9ecef;
    --white: #ffffff;
    --text: #212529;
    --text-light: #495057;
    --note-bg: #e7f3ff;
    --warn-bg: #fff3cd;
    --warn-border: #ffeaa7;
    --warn-text: #856404;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a {
    color: var(--primary);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    overflow-wrap: anywhere;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

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

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.header-content nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
}

.header-content nav a:hover {
    color: var(--primary);
}

/* Page */
/* main also carries .container, whose shorthand padding would otherwise zero these */
main.container {
    padding-top: 32px;
    padding-bottom: 64px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--medium-gray);
}

.breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
}

.breadcrumb a {
    color: var(--medium-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 8px;
}

.title-row .tool-icon {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.title-row h1 {
    margin: 0;
}

h1 {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 12px 0 8px;
}

.lede {
    color: var(--text-light);
    font-size: 17px;
}

section {
    margin-top: 40px;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

section > p {
    color: var(--text-light);
    margin-bottom: 12px;
}

/* What you'll enter */
.values {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.value-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}

.value-row:first-child {
    border-top: none;
}

.value-row dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.value-row dd {
    min-width: 0;
}

.value-row dd .hint {
    display: block;
    font-size: 13px;
    color: var(--medium-gray);
}

.copy-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--light-gray);
}

.copy-btn.copied {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

/* Buttons (as on the home page) */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: background 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
}

.small {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 10px;
}

/* Link to the vendor's steps guide. A full border and an arrow, not the left accent the
   notes use, so the one clickable card does not read as another note. */
.guide-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(27, 126, 176, 0.12);
}

.guide-source {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary);
}

.guide-title {
    display: block;
    margin-top: 2px;
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary);
}

.guide-arrow {
    flex: none;
    font-size: 20px;
    color: var(--primary);
}

/* First-step screenshot from the vendor's guide */
.first-step {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-gray);
}

.first-step img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--white);
}

.first-step figcaption {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

/* Notes */
.note {
    margin-top: 20px;
    padding: 16px;
    background: var(--note-bg);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-light);
}

.note h3 {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 6px;
}

.note ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.note li {
    margin-bottom: 4px;
}

/* Try it + example prompts */
.prompt {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light-gray);
    font-size: 16px;
}

/* Placeholders the reader swaps for their own IDs: styled like the values above, not like links. */
.prompt var,
.example-prompt var {
    font-style: normal;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    color: var(--secondary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}

.examples {
    list-style: none;
    display: grid;
    gap: 10px;
}

.example-prompt {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
}

/* Closing */
.closing {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

.closing ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 8px;
}

/* Footer */
footer {
    background: var(--light-gray);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 560px) {
    .value-row {
        grid-template-columns: 1fr auto;
    }

    .value-row dt {
        grid-column: 1 / -1;
    }

    /* Keep the URL on one line: a value split mid-word reads as two values. */
    .value-row dd code {
        font-size: 12.5px;
        white-space: nowrap;
    }

    .prompt {
        flex-direction: column;
        align-items: stretch;
    }

    /* Both screenshots are wide crops with the Add menu at the right. Scaled to a phone they
       become unreadable, so show the right-hand part at a legible size instead. */
    .first-step img {
        height: 150px;
        object-fit: cover;
        object-position: right center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
