:root { color-scheme: light; font-family: system-ui, sans-serif; color: #163b32; background: #f4f7f3; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
main { width: min(640px, 85%); padding: 3rem 0; }
.eyebrow { font-size: 1.2rem; font-weight: 700; letter-spacing: .2em; }
h1 { font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1.1; margin: 1rem 0; }
p { line-height: 1.6; }
a { display: inline-block; margin-top: 1rem; padding: .8rem 1.2rem; border-radius: .5rem; background: #163b32; color: white; text-decoration: none; }
a:hover { background: #265c4e; }
a:focus-visible { outline: 3px solid #b47828; outline-offset: 4px; }
form label { display: block; margin-bottom: .4rem; font-weight: 600; }
form input, form select { box-sizing: border-box; width: 100%; padding: .7rem; font: inherit; border: 1px solid #9eafa7; border-radius: .4rem; }
.recording-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
button { box-sizing: border-box; width: 8rem; height: 8rem; flex-shrink: 0; padding: 1rem; border: none; border-radius: 50%; font: inherit; font-weight: 600; line-height: 1.3; text-align: center; background: #163b32; color: white; cursor: pointer; }
#stop { background: #b42318; }
#save { padding: 0; background: hsl(33, 71%, 48%); color: black; }
button:disabled { opacity: .5; cursor: not-allowed; }
#record:disabled { background: #d9ddda; color: #6b726e; opacity: 1; }
button:focus-visible { outline: 3px solid #b47828; outline-offset: 4px; }
audio { width: 100%; margin: 1rem 0; }

#phone-status.error { color: #b42318; font-weight: 600; }
#recording-status { text-align: center; }
.recording-thanks { display: block; margin-top: .5rem; font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 700; line-height: 1.2; }
#waveform-panel { margin: 1rem 0; padding: 1rem; background: #e5eee7; border: 1px solid #b8cdbd; border-radius: .75rem; }
.waveform-label { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; }
.waveform-label span { color: #b42318; margin-right: .4rem; }
#waveform { display: block; width: 100%; height: 120px; }
.instruction-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .75rem; margin: 1.5rem 0; }
.privacy-policy { overflow-wrap: anywhere; }
.privacy-policy p { margin: 1rem 0; }
.page-footer { margin-top: 2rem; text-align: center; }
.page-footer p { margin: 0; }
.page-footer a { margin-top: 0; padding: .5rem; background: transparent; color: inherit; text-decoration: underline; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.language-switch { margin-top: 0; padding: .6rem 1rem; }
