:root {
    --bg: #f7f7f2;
    --panel: #ffffff;
    --panel-soft: #f1f0f6;

    --fun-blue: #7c5cff;
    --fun-pink: #ff5a4f;
    --fun-orange: #c8ff32;

    --text: #17171c;
    --muted: #666570;
    --line: rgba(23, 23, 28, 0.14);

    --yellow: #c8ff32;
    --red: #ff5a4f;
    --red-dark: #d83b34;

    --success: #16875c;
    --danger: #c9342d;

    --radius: 26px;
    --shadow: 0 26px 70px rgba(27, 23, 55, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: #ffffff;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input,
select {
    font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
audio:focus-visible {
    outline: 3px solid rgba(124, 92, 255, 0.48);
    outline-offset: 3px;
}

.page-shell {
    width: 100%;
    min-height: 0;
    display: block;
    padding: 0;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

.voice-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.preview-kicker {
    margin: 0 0 5px;
    color: var(--fun-pink);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

.concept-title {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 7px 12px;
    border: 1px solid rgba(41, 35, 84, 0.18);
    border-radius: 999px;
    color: #292354;
    background: rgba(124, 92, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

/* =========================================================
   INTRO
   ========================================================= */

.intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    row-gap: 18px;
    margin: 0 0 30px;
    text-align: center;
}

.intro-line-one {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.25rem, 4vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-align: center;
    text-decoration-line: underline;
    text-decoration-color: rgba(200, 255, 50, 0.92);
    text-decoration-thickness: 7px;
    text-decoration-skip-ink: none;
    text-underline-offset: -3px;
}

.intro-burst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 13px;
    border: 2px solid #171717;
    border-radius: 999px;
    color: #171717;
    background: #ffffff;
    font-size: clamp(0.94rem, 2.7vw, 1.2rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-align: center;
    box-shadow: 4px 4px 0 #171717;
    transform: rotate(-1.5deg);
}

.intro-burst:nth-of-type(2) {
    color: #ffffff;
    background: #16b711;
    transform: rotate(-1.5deg);
}

.intro-burst:nth-of-type(3) {
    background: var(--yellow);
    transform: rotate(1.5deg);
}

.intro-burst:nth-of-type(4) {
    color: #ffffff;
    background: var(--fun-blue);
    transform: rotate(-2deg);
}

.intro-burst:nth-of-type(5) {
    color: #ffffff;
    background: var(--fun-pink);
    transform: rotate(1deg);
}

.intro-action {
    flex: 0 0 100%;
    width: 100%;
    margin: 10px 0 0;
    color: var(--text);
    font-size: clamp(1.12rem, 3.5vw, 1.65rem);
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-align: center;
    position: relative;
}

.intro-action::after {
    content: "";
    width: 132px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--yellow),
        var(--fun-blue),
        var(--fun-pink)
    );
    transform: rotate(-1deg);
}

/* =========================================================
   FORM
   ========================================================= */

#voiceDropForm {
    display: grid;
    gap: 20px;
}

.field-group {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.field-group label,
.field-group legend {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 780;
    line-height: 1.35;
}

.field-group label span,
.field-group small {
    color: var(--muted);
    font-weight: 500;
}

.field-helper {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.45;
}

/* Age selector */

.age-group {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.06),
            rgba(200, 255, 50, 0.055)
        );
}

.age-group legend {
    float: left;
    width: 100%;
    margin-bottom: 5px;
}

.age-group legend + * {
    clear: both;
}

.age-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 4px;
}

.age-option {
    min-width: 0;
    position: relative;
    cursor: pointer;
}

.age-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.age-option span {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 2px solid rgba(23, 23, 28, 0.15);
    border-radius: 13px;
    color: var(--text);
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.age-option:hover span {
    transform: translateY(-1px);
    border-color: rgba(124, 92, 255, 0.48);
}

.age-option input:checked + span {
    border-color: #171717;
    color: #171717;
    background: var(--yellow);
    box-shadow: 3px 3px 0 #171717;
}

.age-option input:focus-visible + span {
    outline: 3px solid rgba(124, 92, 255, 0.48);
    outline-offset: 3px;
}

/* Alias and prompt */

input[type="text"],
select {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text);
    background: var(--panel-soft);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

input[type="text"]::placeholder {
    color: #8b8994;
    opacity: 1;
}

input[type="text"]:hover,
input[type="text"]:focus,
select:hover,
select:focus {
    border-color: rgba(124, 92, 255, 0.48);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.08);
}

input[type="text"]:focus,
select:focus {
    outline: none;
}

#alias {
    padding-right: 48px;
}

#aliasHelp {
    padding-left: 2px;
}

/* =========================================================
   RECORDER
   ========================================================= */

.recorder-panel {
    margin-top: 6px;
    padding: 20px 20px 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(124, 92, 255, 0.60),
            transparent 32%
        ),
        radial-gradient(
            circle at 12% 90%,
            rgba(255, 90, 79, 0.32),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #17171c 0%,
            #292354 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 18px 42px rgba(41, 35, 84, 0.18);
    position: relative;
    overflow: hidden;
}

.recorder-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.status-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.timer {
    min-width: 50px;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    text-align: right;
}

#waveform {
    width: 100%;
    height: 92px;
    display: block;
    margin: 10px 0 0;
}

.record-button {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    margin: -4px auto 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #111111;
    background: var(--yellow);
    box-shadow:
        0 18px 44px rgba(124, 92, 255, 0.24),
        0 0 0 8px rgba(255, 255, 255, 0.56);
    position: relative;
    z-index: 3;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.record-button:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow:
        0 24px 58px rgba(124, 92, 255, 0.30),
        0 0 0 9px rgba(255, 255, 255, 0.68);
}

.record-button:active {
    transform: scale(0.98);
}

.record-button .mic-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-top: -12px;
}

.record-button svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.record-limit {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

#recordButtonText {
    position: absolute;
    bottom: 27px;
    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.record-ring {
    position: absolute;
    inset: -9px;
    border: 2px solid rgba(17, 17, 17, 0.18);
    border-radius: inherit;
}

.record-button.is-recording {
    color: #ffffff;
    background: var(--red);
    box-shadow: 0 20px 55px rgba(255, 90, 79, 0.30);
}

.record-button.is-recording .record-ring {
    border-color: rgba(255, 90, 79, 0.55);
    animation: recording-pulse 1.15s ease-out infinite;
}

.record-button.is-recording .mic-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: currentColor;
}

.record-button.is-recording .mic-icon svg {
    display: none;
}

@keyframes recording-pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.14);
        opacity: 0;
    }
}

/* =========================================================
   AUDIO PREVIEW
   ========================================================= */

.preview-panel {
    margin-top: 0;
    padding: 18px;
    border: 1px solid rgba(124, 92, 255, 0.24);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.08),
            rgba(200, 255, 50, 0.055)
        );
}

.preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.preview-heading h2 {
    margin-bottom: 0;
}

.duration-badge {
    padding: 7px 10px;
    border-radius: 999px;
    color: #5f43e8;
    background: rgba(124, 92, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

audio {
    width: 100%;
    min-height: 42px;
}

.text-button {
    margin-top: 10px;
    padding: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================================
   CONSENT
   ========================================================= */

.consent-box {
    margin-top: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(41, 35, 84, 0.035);
}

.consent-box input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-box label {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
    cursor: pointer;
}

.consent-box label::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid rgba(17, 17, 17, 0.34);
    border-radius: 6px;
    background: #ffffff;
}

.consent-box label:has(input:checked)::before {
    content: "✓";
    display: grid;
    place-items: center;
    border-color: var(--yellow);
    color: #111111;
    background: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.submit-button {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
    padding: 0 19px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 15px;
    color: #111111;
    background: var(--yellow);
    font-weight: 900;
    transition: 0.2s ease;
}

.submit-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.submit-button.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.form-message {
    min-height: 24px;
    margin-top: -7px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.form-message.success {
    margin-top: -4px;
    padding: 13px 15px;
    border: 1px solid rgba(200, 255, 50, 0.55);
    border-radius: 13px;
    color: #292354;
    background: rgba(200, 255, 50, 0.18);
    font-size: 0.95rem;
}

.form-message.error {
    color: var(--danger);
}

/* =========================================================
   FOOTER
   ========================================================= */

.card-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #7b7b80;
    font-size: 0.7rem;
    line-height: 1.45;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   TABLET AND MOBILE
   ========================================================= */

@media (max-width: 650px) {
    .page-shell {
        width: 100%;
        min-height: 0;
        display: block;
        padding: 0;
        border-radius: 20px;
        background: #ffffff;
        overflow: hidden;
    }

    .voice-card {
        width: 100%;
        min-height: 0;
        margin: 0 auto;
        padding: 18px 14px 24px;
        border-radius: 20px;
        box-shadow: none;
    }

    .concept-title {
        margin: 0 auto 12px;
        padding: 5px 10px;
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .intro {
        column-gap: 7px;
        row-gap: 10px;
        margin: 0 0 18px;
    }

    .intro-line-one {
        font-size: clamp(1.15rem, 5.5vw, 1.4rem);
        line-height: 1.05;
        text-decoration-thickness: 5px;
    }

    .intro-burst {
        min-height: 32px;
        padding: 5px 9px;
        font-size: clamp(0.76rem, 3.8vw, 0.94rem);
        box-shadow: 3px 3px 0 #171717;
    }

    .intro-action {
        margin-top: 3px;
        font-size: clamp(1rem, 4.8vw, 1.2rem);
        line-height: 1.05;
    }

    .intro-action::after {
        width: 100px;
        height: 4px;
        margin-top: 7px;
    }

    #voiceDropForm {
        gap: 16px;
    }

    .field-group {
        gap: 6px;
    }

    .field-group label,
    .field-group legend {
        font-size: 0.78rem;
    }

    .field-helper {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .age-group {
        padding: 13px;
        border-radius: 14px;
    }

    .age-options {
        gap: 6px;
    }

    .age-option span {
        min-height: 40px;
        padding: 7px 5px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    .age-option input:checked + span {
        box-shadow: 2px 2px 0 #171717;
    }

    input[type="text"],
    select {
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.92rem;
    }

    .recorder-panel {
        margin-top: 0;
        padding: 15px 14px 24px;
    }

    .status-label,
    .timer {
        font-size: 0.76rem;
    }

    #waveform {
        height: 64px;
        margin-top: 5px;
    }

    .record-button {
        width: 116px;
        height: 116px;
        margin-top: -3px;
    }

    .record-button .mic-icon {
        width: 31px;
        height: 31px;
    }

    #recordButtonText {
        bottom: 21px;
        font-size: 0.72rem;
    }

    .record-limit {
        margin-top: 22px;
        font-size: 0.66rem;
    }

    .consent-box {
        padding: 13px;
    }

    .consent-box label {
        grid-template-columns: 20px 1fr;
        gap: 9px;
        font-size: 0.72rem;
        line-height: 1.5;
    }

    .consent-box label::before {
        width: 18px;
        height: 18px;
    }

    .submit-button {
        min-height: 52px;
        padding: 0 16px;
    }

    .card-footer {
        flex-direction: column;
        gap: 7px;
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   DESKTOP — COMPACT RECORDER LAYOUT
   ========================================================= */

@media screen and (min-width: 651px) {
     .page-shell {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        background: transparent;
    }

    .voice-card {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding: 24px 34px 28px;
    }

    .concept-title {
        margin-bottom: 12px;
        padding: 6px 11px;
    }

    .intro {
        column-gap: 9px;
        row-gap: 11px;
        margin-bottom: 20px;
    }

    .intro-line-one {
        font-size: clamp(1.2rem, 2.2vw, 1.55rem);
        line-height: 1.05;
        text-decoration-thickness: 6px;
    }

    .intro-burst {
        min-height: 36px;
        padding: 6px 11px;
        font-size: clamp(0.88rem, 1.5vw, 1.05rem);
        box-shadow: 3px 3px 0 #171717;
    }

    .intro-action {
        margin-top: 4px;
        font-size: clamp(1.05rem, 2vw, 1.4rem);
        line-height: 1.05;
    }

    .intro-action::after {
        width: 112px;
        height: 4px;
        margin-top: 7px;
    }

    #voiceDropForm {
        gap: 14px;
    }

    .field-group {
        gap: 6px;
    }

    .field-helper {
        line-height: 1.35;
    }

    input[type="text"],
    select {
        min-height: 44px;
    }

    .age-group {
        padding: 13px;
    }

    .age-options {
        gap: 7px;
    }

    .age-option span {
        min-height: 40px;
        padding: 7px 9px;
    }

    .recorder-panel {
        margin-top: 0;
        padding: 16px 18px 25px;
    }

    #waveform {
        height: 68px;
        margin-top: 5px;
    }

    .record-button {
        width: 118px;
        height: 118px;
        margin-top: -2px;
    }

    .record-button .mic-icon {
        width: 32px;
        height: 32px;
        margin-top: -10px;
    }

    #recordButtonText {
        bottom: 21px;
        font-size: 0.74rem;
    }

    .record-limit {
        margin-top: 21px;
        font-size: 0.68rem;
    }

    .preview-panel {
        padding: 14px;
    }

    .preview-heading {
        margin-bottom: 10px;
    }

    .consent-box {
        padding: 12px 14px;
    }

    .submit-button {
        min-height: 50px;
    }

    .form-message {
        min-height: 18px;
    }

    .card-footer {
        margin-top: 17px;
        padding-top: 14px;
    }
}

/* =========================================================
   RECORDER INTRO — THREE GROUPS WITH 5PX SPACING
   ========================================================= */

/* .intro {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	row-gap: 5px !important;
	column-gap: 0 !important;
}

.intro-line-one,
.intro-action {
	flex: none !important;
	width: 100% !important;
	margin: 0 !important;
	text-align: center !important;
}

.intro-bursts {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.intro-bursts .intro-burst {
	margin: 0 !important;
}

@media screen and (max-width: 650px) {

	.intro-bursts {
		gap: 9px !important;
	}
} */