
:root {
    --ink: #173b42;
    --teal: #167c79;
    --muted: #526d70;
    --paper: #f2f7f6;
    --line: #d5e5e2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

.wrap {
    max-width: 1160px;
    margin: auto;
    padding: 28px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    font-size: 32px;
    letter-spacing: -1.5px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.brand span { color: var(--teal); }

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

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

nav a {
    text-decoration: none;
    font-weight: 600;
}

.preview {
    font-size: 14px;
    color: var(--muted);
    background: #e5efed;
    padding: 10px 16px;
    margin: 20px 0;
    border-radius: 8px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 45px;
    align-items: center;
    padding: 50px 0;
}

.hero img {
    width: 100%;
    border-radius: 22px;
}

.kicker {
    color: var(--teal);
    font-weight: 750;
    font-size: 13px;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin: 18px 0 25px;
}

h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-top: 0;
}

h3 { line-height: 1.3; }

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

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
}

.number {
    color: var(--teal);
    font-weight: 800;
    font-size: 26px;
}

section { margin-bottom: 24px; }

.button {
    display: inline-block;
    background: var(--teal);
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 9px;
    font-weight: 650;
}

.vision {
    background: #e3efed;
    border-radius: 18px;
    padding: 38px;
}

.warning {
    background: #fff4e3;
    border-left: 4px solid #d98b25;
    padding: 18px 24px;
    border-radius: 8px;
}

details {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--teal);
}

footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding: 24px 0;
    font-size: 15px;
    color: var(--muted);
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .wrap { padding: 20px; }
    .hero, .grid { grid-template-columns: 1fr; }
    .hero img { max-width: 230px; }
    .hero { padding: 25px 0; gap: 20px; }
    .card, .vision { padding: 24px; }
}


.ava-chat {
    border-top: 5px solid var(--teal);
    scroll-margin-top: 20px;
}

.ava-chat textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    resize: vertical;
    font: inherit;
    padding: 16px;
    border: 1px solid #b8d5d1;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}

.ava-chat button {
    font: inherit;
    cursor: pointer;
    border: 0;
}

.ava-chat button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.chat-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.secondary-button {
    padding: 12px 20px;
    border-radius: 9px;
    background: #e3efed;
    color: var(--ink);
}

.chat-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    font-size: 15px;
}

.chat-consent input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.turn {
    padding: 20px;
    margin: 14px 0;
    border-radius: 12px;
    background: #f2f7f6;
    overflow-wrap: anywhere;
}

.turn > strong {
    color: var(--teal);
}

.turn p {
    white-space: pre-wrap;
    margin: 8px 0;
}

.turn.user {
    background: #e3efed;
    margin-left: 8%;
}

.turn.assistant {
    margin-right: 8%;
}

.turn.urgent {
    background: #fff4e3;
    border-left: 4px solid #d98b25;
}

.turn.emergency {
    background: #fff0ee;
    border-left: 5px solid #b42318;
}

.turn small {
    color: var(--muted);
    display: block;
    margin: 10px 0;
}

.turn ol {
    font-size: 14px;
}

.chat-status {
    color: var(--teal);
    min-height: 28px;
    margin-top: 10px;
}

.chat-privacy {
    font-size: 14px;
    color: var(--muted);
    margin-top: 18px;
}

@media (max-width: 700px) {
    .turn.user, .turn.assistant {
        margin-left: 0;
        margin-right: 0;
    }
}


.ava-feedback {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #cadfdb;
}

.feedback-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.feedback-buttons button {
    padding: 10px 20px;
    border: 1px solid #b8d5d1;
    border-radius: 8px;
    background: white;
    color: #173b42;
    font: inherit;
}

.feedback-buttons button:hover:not(:disabled) {
    background: #e3efed;
}

.feedback-buttons button.selected {
    background: #c4e2dc;
    opacity: 1;
    font-weight: bold;
}

.ava-feedback small {
    margin-top: 8px;
}
