* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #fff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
}

main {
    width: 100%;
    max-width: 580px;
    text-align: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.brand .leaf {
    width: 84px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.brand .wordmark {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    line-height: 1;
}

.tagline {
    font-size: 15px;
    color: #4a5a5a;
    margin: 0 auto 48px;
    max-width: 460px;
    line-height: 1.45;
}

.question {
    font-size: clamp(22px, 4.6vw, 30px);
    font-weight: 500;
    line-height: 1.32;
    margin: 0 0 28px;
    color: #1a1a1a;
    min-height: 2.6em;
    transition: opacity 0.35s ease;
    opacity: 1;
}

.credibility {
    margin: 36px auto 0;
    font-size: 13px;
    color: #5a6868;
    max-width: 440px;
    line-height: 1.45;
    min-height: 2.9em;
    transition: opacity 0.35s ease;
    opacity: 1;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.form input {
    font: inherit;
    font-size: 18px;
    padding: 16px 18px;
    border: 2px solid #e4e4e4;
    border-radius: 12px;
    width: 100%;
    outline: none;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s;
}

.form input:focus {
    border-color: #2266c8;
}

.form input:focus-visible {
    border-color: #2266c8;
    box-shadow: 0 0 0 3px rgba(34, 102, 200, 0.22);
}

.form button {
    align-self: center;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    min-height: 44px;
    background: #1a6fd0;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    touch-action: manipulation;
}

.form button:hover { background: #1559b3; }
.form button:active { transform: translateY(1px); }
.form button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 102, 200, 0.35);
}
.form button:disabled { opacity: 0.55; cursor: default; }

.vent-note {
    margin: -4px 0 0;
    font-size: 13px;
    color: #7a8888;
    font-style: italic;
    line-height: 1.3;
}

.form input::placeholder {
    color: #a4adad;
}

.status {
    min-height: 20px;
    font-size: 14px;
    color: #5a6868;
    margin: 4px 0 0;
}

.thanks {
    font-size: 18px;
    color: #1a6fd0;
    margin: 0;
    padding: 12px 0;
}

@media (max-width: 480px) {
    .brand { margin-bottom: 12px; gap: 12px; }
    .brand .wordmark { font-size: 30px; }
    .brand .leaf { width: 68px; }
    .tagline { font-size: 14px; margin-bottom: 36px; }
    .credibility { font-size: 12px; margin-top: 28px; }
    .question { min-height: 3em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .question, .credibility { opacity: 1 !important; }
}
