:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --gradient: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    --option-bg: #fff;
    --option-border: #e5e7eb;
    --option-shadow: 0 2px 8px rgba(16, 185, 129, 0.07);
    --option-selected-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
    --bg: #f3f4f6;
    --text: #222;
}

body {
    font-family: system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 350px;
    width: 100%;
    /* Ensure content stays centered even on very short viewports */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.option-group {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin: 2.5rem 0 2.5rem 0;
    justify-content: center;
}

.service-btn {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 180px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    background: #FFF;
    border: 2px solid var(--text-tertiary, #B6B9B9);
    border-radius: 16px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.1rem 0.4rem 1rem 0.4rem;
    cursor: pointer;
    outline: none;
    position: relative;
}

.service-btn.selected {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box;
    box-shadow: 0 8px 32px rgba(54, 199, 202, 0.15);
    z-index: 1;
    position: relative;
    border-radius: 16px;
    background-clip: padding-box, border-box;
}

/* Remove the ::before for selected, not needed with double background */
.service-btn.selected::before {
    display: none !important;
}

.service-btn.selected>* {
    position: relative;
    z-index: 1;
}

/* Remove the unselected ::before border */
.service-btn::before {
    display: none !important;
}

.service-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1em;
    min-width: 2.1em;
    margin-bottom: 0.2em;
}

.service-btn .option-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.2em;
}

.service-btn .option-desc {
    font-size: 0.95em;
    /* Improved contrast for WCAG AA at small sizes */
    color: #555;
    font-weight: 400;
    margin-bottom: 0;
}

.aira-btn {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 30px;
    background: linear-gradient(92deg, #21BECE 0%, #38DACF 50.6%, #2FC291 100.39%);
    color: #111;
    cursor: pointer;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.10);
    max-width: 329px;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    letter-spacing: 0.01em;
}

.aira-btn:disabled {
    background: #e5e7eb;
    color: #888;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.icon-eye-unselected {
    display: block;
}

.icon-eye-selected {
    display: none;
}

.service-btn.selected .icon-eye-unselected {
    display: none;
}

.service-btn.selected .icon-eye-selected {
    display: block;
}

.icon-ear-unselected {
    display: block;
}

.icon-ear-selected {
    display: none;
}

.service-btn.selected .icon-ear-unselected {
    display: none;
}

.service-btn.selected .icon-ear-selected {
    display: block;
}

#download-app {
    display: block;
}