@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;700;800&family=Zen+Maru+Gothic:wght@400;700;900&display=swap');

@font-face {
    font-family: 'UniSansHeavyCAPS';
    src: url('assets/UniSansHeavyCAPS.ttf.woff') format('woff');
    font-display: swap;
}

:root {
    --green-900: #244d24;
    --green-700: #4f812e;
    --green-600: #689f38;
    --green-400: #8bc34a;
    --green-100: #dcedc8;
    --cream: #fafde0;
    --cream-deep: #eee8c7;
    --ink: #253226;
    --panel: #343a34;
    --panel-dark: #151816;
    --brass: #e0b653;
    --paper: #f3e5bd;
    --danger: #a74032;
    --line: 3px solid var(--green-600);
    --radius-lg: 30px;
    --radius-md: 18px;
    --shadow: 7px 8px 0 rgba(36, 77, 36, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--green-600);
    background-color: var(--green-100);
    background-image:
        radial-gradient(var(--green-600) 1px, transparent 1px),
        radial-gradient(var(--green-600) 1px, transparent 1px);
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    font-family: 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--green-600);
    font-weight: 800;
}

html.lang-ja [data-lang='en'],
html.lang-en [data-lang='ja'] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

:focus-visible {
    outline: 4px solid #f5c94d;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 200;
    padding: 10px 16px;
    color: #fff;
    background: var(--green-900);
    border-radius: 10px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: relative;
    top: 0;
    z-index: 100;
    width: calc(100% - 40px);
    min-height: 70px;
    margin: 12px auto 0;
    padding: 8px 10px 8px 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: var(--line);
    border-radius: 999px;
    background: rgba(250, 253, 224, 0.94);
    box-shadow: 4px 5px 0 rgba(27, 94, 32, 0.16);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.brand strong {
    color: var(--green-600);
    font: 400 1.55rem/1 'UniSansHeavyCAPS', sans-serif;
    letter-spacing: 0.035em;
}

.brand small {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
}

.main-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav {
    justify-self: center;
}

.nav-actions {
    grid-column: 3;
    grid-row: 1;
}

.main-nav a,
.account-link {
    padding: 9px 17px;
    border-radius: 999px;
    color: var(--green-600);
    font-family: 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.2;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
    color: var(--cream);
    background: var(--green-600);
}

.account-link {
    color: var(--cream);
    background: var(--green-900);
}

.lang-switch {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 2px solid var(--green-600);
    border-radius: 999px;
    background: var(--green-100);
}

.lang-switch button {
    min-width: 46px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    color: var(--green-600);
    background: transparent;
    cursor: pointer;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.lang-switch button.is-active,
html.lang-ja .lang-switch [data-set-lang='ja'],
html.lang-en .lang-switch [data-set-lang='en'] {
    color: #fff;
    background: var(--green-600);
}

.page-shell {
    width: calc(100% - 40px);
    margin: 28px 20px 0;
}

.section-card {
    position: relative;
    margin: 40px 0;
    padding-block: 60px;
    padding-inline: max(60px, calc((100% - 1500px) / 2));
    overflow: visible;
    border: 4px solid var(--cream);
    border-radius: var(--radius-lg);
    background: var(--cream);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 5px 5px 0 rgba(27, 94, 32, 0.1);
}

.section-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 4px var(--cream);
    transform: translateX(-50%);
}

.product-directory {
    display: block;
    padding-block: 26px;
}

.directory-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.directory-links a {
    padding: 10px 16px;
    border: 3px solid var(--green-600);
    border-radius: 999px;
    color: var(--green-600);
    background: var(--cream);
    box-shadow: 3px 4px 0 rgba(104, 159, 56, 0.2);
    font-family: 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.directory-links a:hover,
.directory-links a:focus-visible {
    transform: translateY(-2px);
    color: var(--cream);
    background: var(--green-600);
    box-shadow: 4px 6px 0 rgba(104, 159, 56, 0.16);
}

.directory-links a.directory-page {
    color: #fff;
    background: var(--green-600);
    box-shadow: 3px 4px 0 rgba(36, 77, 36, 0.18);
}

.directory-links a.directory-page:hover,
.directory-links a.directory-page:focus-visible {
    color: #fff;
    background: var(--green-700);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border: 2px solid currentColor;
    border-radius: 999px;
    color: var(--green-700);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero {
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: clamp(34px, 6vw, 90px);
    background: var(--cream);
}

.hero::after {
    content: none;
}

.hero-copy,
.device-wrap {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin: 0;
    color: var(--green-600);
    font: 400 clamp(3rem, 5.2vw, 4.8rem)/0.95 'UniSansHeavyCAPS', sans-serif;
    letter-spacing: -0.03em;
}

.hero-lead {
    max-width: 610px;
    margin: 26px auto 16px;
    color: var(--green-600);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.7;
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto;
    color: var(--green-600);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.9;
}

.hero-howto {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--green-600);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.9;
}

.hero-howto strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.7;
}

.hero-howto span {
    display: block;
    margin-top: 6px;
}

.hero-purchase {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 52px);
    width: 100%;
    margin-top: 6px;
    padding: 20px clamp(20px, 3vw, 34px);
    border: 3px solid var(--green-600);
    border-radius: 24px;
    background: #f3f8d7;
    box-shadow: 6px 7px 0 rgba(36, 77, 36, 0.15);
    text-align: center;
}

.hero-purchase-copy p {
    margin: 0;
}

.hero-purchase-copy strong,
.hero-purchase-copy span {
    display: block;
}

.hero-purchase-copy strong {
    color: var(--green-900);
    font-size: 1rem;
    font-weight: 900;
}

.hero-purchase-copy span {
    margin-top: 2px;
    color: var(--green-600);
    font-size: 0.84rem;
    line-height: 1.5;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 3px solid var(--green-600);
    border-radius: 999px;
    color: var(--green-600);
    background: var(--cream);
    box-shadow: 3px 4px 0 rgba(36, 77, 36, 0.16);
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 7px 0 rgba(36, 77, 36, 0.16);
}

.button-primary {
    color: #fff;
    background: var(--green-700);
}

.button-dark {
    border-color: var(--panel-dark);
    color: var(--paper);
    background: var(--panel-dark);
}

.button-quiet {
    border-color: rgba(79, 129, 46, 0.42);
    box-shadow: none;
}

.button[aria-disabled='true'],
button:disabled {
    cursor: not-allowed;
    filter: saturate(0.25);
    opacity: 0.66;
}

.device-wrap {
    padding: 10px;
}

.product-shot {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 24px 28px rgba(36, 77, 36, 0.2)) drop-shadow(0 8px 10px rgba(21, 24, 22, 0.16));
    transform: translateY(-2px);
}

.product-ui-crop {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #171a18;
}

.product-ui-crop img {
    display: block;
    width: 100%;
    height: auto;
}

.product-shot .product-ui-crop {
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.device {
    position: relative;
    padding: 24px;
    border: 6px solid #202620;
    border-radius: 26px;
    color: var(--paper);
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 4px),
        linear-gradient(145deg, #3b423b, #2c322d);
    box-shadow: 18px 22px 0 rgba(36, 77, 36, 0.24);
    transform: rotate(1.2deg);
}

.device::before,
.device::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #131713;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.12);
}

.device::before { left: 13px; top: 13px; }
.device::after { right: 13px; bottom: 13px; }

.device-display {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid #0e110f;
    border-radius: 7px;
    color: #f6d269;
    background: #111412;
    font: 700 0.78rem/1.2 'Courier New', monospace;
    letter-spacing: 0.08em;
}

.device-meter {
    height: 20px;
    margin: 22px 4px 8px;
    padding: 4px;
    border: 2px solid #111412;
    border-radius: 5px;
    background: #171a18;
}

.device-meter span {
    display: block;
    width: 76%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #70a245 0 70%, #d9b54f 70% 91%, #b94b3e 91%);
}

.fader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.fader {
    display: grid;
    justify-items: center;
    gap: 10px;
    font: 700 0.68rem/1.2 'Courier New', monospace;
    letter-spacing: 0.04em;
}

.fader-track {
    position: relative;
    width: 14px;
    height: 190px;
    border-radius: 8px;
    background: #141715;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.fader-track::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 54px;
    height: 176px;
    background: repeating-linear-gradient(to bottom, transparent 0 16px, rgba(243, 229, 189, 0.36) 16px 18px);
    pointer-events: none;
}

.fader-track::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: var(--value);
    width: 55px;
    height: 27px;
    border: 2px solid #151815;
    border-radius: 6px;
    background: linear-gradient(#d7c79f, #8c826c);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
    transform: translate(-50%, 50%);
}

.device-foot {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    color: rgba(243, 229, 189, 0.64);
    font: 700 0.6rem/1 'Courier New', monospace;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat {
    padding: 18px;
    border: var(--line);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--cream);
}

.stat strong {
    display: block;
    color: var(--green-700);
    font: 400 1.8rem/1 'UniSansHeavyCAPS', sans-serif;
}

.stat span {
    font-size: 0.78rem;
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 32px;
    text-align: center;
}

#audio-demo .section-heading {
    max-width: 1080px;
}

.section-heading h2 {
    margin: 0 0 8px;
    color: var(--green-600);
    font: 800 clamp(2.15rem, 4.2vw, 3.25rem)/1.2 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    letter-spacing: -0.025em;
}

.content-page h1 {
    margin: 0 0 8px;
    color: var(--green-600);
    font: 800 clamp(2.4rem, 6vw, 4.5rem)/1.12 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 0;
    color: var(--green-600);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 240px;
    padding: 26px;
    border: var(--line);
    border-radius: var(--radius-md);
    background: #f6f8d8;
}

.feature-number {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green-600);
    font: 400 1rem/1 'UniSansHeavyCAPS', sans-serif;
}

.feature-card h3 {
    margin: 20px 0 8px;
    color: var(--green-900);
    font-size: 1.25rem;
}

.feature-card p {
    margin: 0;
    color: var(--green-600);
    font-weight: 700;
}

.video-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.76fr) minmax(440px, 1.24fr);
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    background: var(--cream);
}

.video-copy h2 {
    margin: 0 0 12px;
    color: var(--green-600);
    font: 800 clamp(2.4rem, 4.8vw, 4.25rem)/1.12 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
}

.video-copy p {
    color: var(--green-600);
    font-weight: 700;
}

#videos .youtube-card {
    text-align: center;
}

.video-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.video-points span {
    padding: 5px 10px;
    border: 2px solid var(--green-600);
    border-radius: 999px;
    color: var(--green-900);
    background: var(--cream);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.video-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 4px solid var(--green-700);
    border-radius: 22px;
    background: #171a18;
    box-shadow: 10px 12px 0 rgba(36, 77, 36, 0.18);
}

.video-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

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

.youtube-card h3 {
    margin: 0 0 12px;
    color: var(--green-900);
    font-size: 1.25rem;
}

.video-poster {
    position: absolute;
    inset: -42% 0 auto;
    width: 100%;
    opacity: 0.58;
    filter: saturate(0.78) contrast(1.08);
}

.video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 20, 16, 0.78), rgba(15, 20, 16, 0.28));
}

.video-status {
    position: absolute;
    left: clamp(18px, 4vw, 40px);
    bottom: clamp(18px, 4vw, 34px);
    z-index: 1;
    display: grid;
    gap: 4px;
    color: #fff7d6;
}

.video-status strong {
    font: 400 clamp(1.45rem, 3vw, 2.4rem)/1 'UniSansHeavyCAPS', sans-serif;
    letter-spacing: 0.04em;
}

.video-status span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.audio-compare {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
    border: 3px solid var(--green-600);
    border-radius: 24px;
    background: #f6f8d8;
    box-shadow: 8px 10px 0 rgba(36, 77, 36, 0.14);
}

.audio-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--green-100);
}

.audio-toggle button {
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    color: var(--green-900);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.audio-toggle button.is-active {
    color: #fff;
    background: var(--green-600);
    box-shadow: 0 4px 0 rgba(36, 77, 36, 0.18);
}

.audio-now-playing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 12px;
    color: var(--green-700);
}

.audio-now-playing strong {
    color: var(--green-900);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.custom-audio-player {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 3px solid var(--green-600);
    border-radius: 16px;
    color: var(--green-600);
    background: var(--cream);
    box-shadow: 4px 5px 0 rgba(36, 77, 36, 0.14);
}

.custom-audio-player.is-disabled {
    background: #f6f8d8;
}

.audio-play-button {
    min-width: 82px;
    min-height: 44px;
    padding: 8px 14px;
    border: 3px solid var(--green-600);
    border-radius: 999px;
    color: #fff;
    background: var(--green-600);
    box-shadow: 2px 3px 0 rgba(36, 77, 36, 0.15);
    font-family: 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.audio-play-button:hover:not(:disabled),
.audio-play-button:focus-visible {
    transform: translateY(-2px);
    background: var(--green-700);
    box-shadow: 3px 5px 0 rgba(36, 77, 36, 0.15);
}

.audio-play-button:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 1px 1px 0 rgba(36, 77, 36, 0.15);
}

.audio-play-button:disabled {
    cursor: not-allowed;
}

.audio-transport {
    min-width: 0;
}

.audio-time-row {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--green-600);
    font-family: 'LINE Seed JP', 'Zen Maru Gothic', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.audio-time-row > :last-child {
    text-align: right;
}

.audio-track-label {
    overflow: hidden;
    color: var(--green-600);
    text-align: center;
    text-overflow: ellipsis;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.audio-progress {
    width: 100%;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.audio-progress {
    --audio-progress: 0%;
    background:
        linear-gradient(90deg, var(--green-600) 0 var(--audio-progress), transparent var(--audio-progress)),
        #dcedc8;
    background-position: center;
    background-size: 100% 8px;
    background-repeat: no-repeat;
    border-radius: 999px;
}

.audio-progress::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--green-600);
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 0 2px var(--green-100);
}

.audio-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid var(--green-600);
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 0 2px var(--green-100);
}

.audio-progress:disabled,
.audio-play-button:disabled {
    opacity: 0.58;
}

.audio-volume-meter {
    display: flex;
    width: 76px;
    height: 32px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px;
    padding: 2px 0;
}

.audio-volume-bar {
    width: 6px;
    height: var(--bar-height);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--green-100);
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease;
}

.audio-volume-bar:hover,
.audio-volume-bar:focus-visible {
    transform: translateY(-2px);
    background: var(--green-400);
}

.audio-volume-bar.is-active {
    background: var(--green-600);
}

.audio-compare audio {
    display: none;
}

.audio-status {
    margin: 14px 0 0;
    text-align: center;
    color: var(--green-600);
}

.compatibility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.compact-heading {
    margin-bottom: 24px;
}

.product-info-section {
    background: var(--cream);
}

#compatibility .section-heading {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.88fr;
    gap: 14px;
}

.environment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compat-card p {
    margin: 0;
    color: var(--green-600);
    font-weight: 700;
}

.compat-legal {
    margin: 20px 0 0;
    text-align: center;
}

.compat-legal a {
    display: inline-flex;
    padding-bottom: 1px;
    border-bottom: 1px solid currentColor;
    color: var(--green-600);
    font-size: 0.8rem;
    font-weight: 700;
}

.compat-legal a:hover,
.compat-legal a:focus-visible {
    color: var(--green-700);
}

.release-card {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: 3px solid var(--green-700);
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--green-700);
}

.release-card > span {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.release-card strong {
    margin: 5px 0 8px;
    font: 400 2rem/1 'UniSansHeavyCAPS', sans-serif;
}

.release-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 18px;
}

.compat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: var(--line);
    border-radius: var(--radius-md);
    background: #f6f8d8;
    text-align: center;
}

.compat-card h3 {
    margin: 0 0 12px;
    color: var(--green-900);
}

.license-card p {
    position: static;
    margin: 0;
}

.license-line {
    display: block;
}

.license-line + .license-line {
    margin-top: 0.65rem;
}

.compat-specs {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.compat-specs > div {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3px;
    padding-top: 10px;
    border-top: 1px solid rgba(104, 159, 56, 0.24);
}

.compat-specs > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.compat-specs dt {
    color: var(--green-700);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.compat-specs dd {
    margin: 0;
    color: var(--green-900);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
}

.compat-specs .compat-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.compat-formats span {
    padding: 3px 9px;
    border: 2px solid var(--green-600);
    border-radius: 999px;
    color: var(--green-600);
    background: var(--cream);
    font-size: 0.74rem;
}

.purchase-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    color: var(--green-900);
    white-space: nowrap;
}

.purchase-price strong {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 0.9;
}

.purchase-price del {
    color: var(--green-600);
    font-size: 1.25rem;
    font-weight: 900;
}

.purchase-price small {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.purchase-button {
    width: 100%;
    min-width: 230px;
}

.hero-purchase-checkout {
    display: grid;
    justify-items: stretch;
}

.hero-purchase .purchase-note,
.hero-purchase .purchase-sale-note,
.hero-purchase .purchase-test-note,
.hero-purchase .purchase-status {
    margin: 7px 0 0;
    color: var(--green-900);
    font-size: 0.76rem;
    line-height: 1.45;
}

.hero-purchase .purchase-test-note {
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--green-100);
}

.hero-purchase .purchase-sale-note {
    color: var(--danger);
    font-weight: 900;
}

.hero-purchase .purchase-status.is-error {
    color: #9b2c2c;
}

.purchase-status[hidden],
.purchase-sale-note[hidden],
.purchase-test-note[hidden] {
    display: none !important;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    overflow: hidden;
    border: var(--line);
    border-radius: 14px;
    background: #f6f8d8;
}

.faq-list summary {
    position: relative;
    padding: 16px 20px;
    cursor: pointer;
    color: var(--green-900);
    list-style: none;
    text-align: center;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 24px;
    width: 9px;
    height: 9px;
    border-right: 3px solid var(--green-600);
    border-bottom: 3px solid var(--green-600);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.faq-list details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--green-600);
    font-weight: 700;
    text-align: center;
}

#sns {
    position: relative;
    margin: 40px 20px;
    padding: 40px 0;
    border: 4px solid var(--cream);
    border-radius: 30px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    background: var(--cream);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 5px 5px 0 rgba(27, 94, 32, 0.1);
}

#sns::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 4px var(--cream);
    transform: translateX(-50%);
}

#sns .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.sns-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--green-600);
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sns-item:hover {
    color: var(--green-600);
    transform: translateY(-10px);
}

.sns-icon {
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
}

.sns-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0 rgba(27, 94, 32, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sns-item:hover .sns-icon img {
    transform: scale(1.1);
}

.site-footer {
    margin-top: 50px;
    color: var(--green-600);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.content-page {
    max-width: none;
}

.content-page .section-card {
    overflow: visible;
}

.content-page-intro {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.content-page-intro .eyebrow {
    margin-bottom: 16px;
}

.content-page article > section,
.content-page .manual-nav,
.content-page .account-shell {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.content-page h2 {
    margin: 42px 0 12px;
    color: var(--green-700);
    font-size: 1.65rem;
}

.content-page h3 {
    margin: 26px 0 8px;
    color: var(--green-900);
}

.content-page p,
.content-page li {
    color: #4e644e;
    font-weight: 700;
}

.content-page code {
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--paper);
    background: var(--panel-dark);
}

.manual-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 24px auto 36px;
}

.manual-nav a {
    padding: 11px 14px;
    border: 2px solid var(--green-600);
    border-radius: 12px;
    background: #f6f8d8;
}

.notice {
    padding: 16px 18px;
    border-left: 6px solid var(--brass);
    border-radius: 8px;
    background: #fff3c8;
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
    gap: 20px;
}

.auth-card,
.dashboard-preview {
    padding: 28px;
    border: var(--line);
    border-radius: var(--radius-md);
    background: #f6f8d8;
}

.auth-card h2,
.dashboard-preview h2 {
    margin-top: 0;
    color: var(--green-700);
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.auth-form input {
    min-height: 50px;
    padding: 10px 14px;
    border: 3px solid var(--green-600);
    border-radius: 12px;
    color: var(--ink);
    background: #fffef2;
}

.dashboard-product {
    padding: 18px;
    border: 2px solid var(--green-600);
    border-radius: 14px;
    background: var(--cream);
}

.dashboard-product header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.status-pill {
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--green-600);
    font-size: 0.7rem;
}

.skeleton-line {
    height: 12px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(104, 159, 56, 0.17);
}

.skeleton-line.short { width: 58%; }

.account-state[hidden],
.account-logout[hidden] { display: none !important; }

.account-intro { position: relative; }

.account-logout {
    position: absolute;
    top: 0;
    right: 0;
}

.account-state {
    max-width: 1000px;
    margin: 24px auto 0;
}

.account-state.auth-card {
    max-width: 900px;
    padding: 0;
    border: 0;
    background: transparent;
}

.account-state[data-account-signed-out] {
    text-align: center;
}

.account-state[data-account-signed-out] > p {
    max-width: 470px;
    margin-right: auto;
    margin-left: auto;
}

.account-state [data-clerk-sign-in] {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

/* Keep the page's large hero heading rule from leaking into Clerk's embedded UI. */
.account-state [data-clerk-sign-in] h1 {
    font-size: clamp(1.4rem, 2vw, 1.75rem) !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

.account-state [data-clerk-sign-in] label {
    display: block;
    text-align: center !important;
}

.account-spinner {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border: 4px solid rgba(104, 159, 56, 0.2);
    border-top-color: var(--green-600);
    border-radius: 50%;
    animation: account-spin 0.8s linear infinite;
}

@keyframes account-spin { to { transform: rotate(360deg); } }

.account-state[data-account-loading],
.account-error,
.account-empty { text-align: center; }

.account-error h2,
.account-empty h2 { margin-top: 0; }

.account-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    text-align: center;
}

.account-summary strong { display: block; margin-top: 4px; }

.account-products { display: grid; gap: 18px; }

.account-product-card {
    padding: 24px;
    border: var(--line);
    border-radius: var(--radius-md);
    background: #f6f8d8;
}

.account-product-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.account-product-card h2 { margin: 4px 0 0; }
.status-pill.is-inactive { background: #7b6d57; }

.account-license-details {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr);
    gap: 12px;
    margin: 22px 0 8px;
}

.account-license-details > div {
    padding: 14px;
    border: 2px solid rgba(104, 159, 56, 0.35);
    border-radius: 10px;
    background: var(--cream);
}

.account-license-details dt { color: #60745e; font-size: 0.78rem; font-weight: 900; }
.account-license-details dd { margin: 7px 0 0; font-weight: 900; }
.account-license-details code { word-break: break-all; }

.account-device-list { display: grid; gap: 8px; padding: 0; list-style: none; }

.account-device {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 2px solid rgba(104, 159, 56, 0.25);
    border-radius: 10px;
    background: var(--cream);
}

.account-device strong,
.account-device span { display: block; }
.account-device span { margin-top: 3px; color: #60745e; font-size: 0.78rem; }
.account-list-empty { padding: 12px 0; }
.account-downloads { display: flex; flex-wrap: wrap; gap: 8px; }

.download-coming {
    padding: 10px 12px;
    border: 2px dashed rgba(104, 159, 56, 0.45);
    border-radius: 10px;
    color: #60745e;
    font-weight: 900;
}

.account-empty {
    margin-top: 22px;
    padding: 28px;
    border: 2px dashed var(--green-600);
    border-radius: var(--radius-md);
    background: #f6f8d8;
}

@media (max-width: 680px) {
    .account-state.auth-card { padding: 0 8px; }
    .account-logout { position: static; margin-top: 14px; }
    .account-license-details { grid-template-columns: 1fr; }
    .account-device { align-items: stretch; flex-direction: column; }
    .account-device .button { width: 100%; }
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.legal-card {
    padding: 20px;
    border: var(--line);
    border-radius: 14px;
    background: #f6f8d8;
}

.legal-card h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .device-wrap {
        width: min(650px, 100%);
        margin: 0 auto;
    }

    .feature-grid,
    .video-section,
    .youtube-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-shell,
    .product-info-grid,
    .environment-grid {
        grid-template-columns: 1fr;
    }

    .hero-purchase {
        grid-template-columns: minmax(0, 1fr) auto minmax(230px, 0.8fr);
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .site-header {
        width: calc(100% - 10px);
        margin: 10px auto 0;
        padding: 10px;
        border-radius: 22px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 0;
        width: calc(100% - 10px);
        padding: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nav-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .brand small,
    .account-link {
        display: none;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .page-shell {
        width: calc(100% - 10px);
        margin-inline: 5px;
        margin-top: 12px;
    }

    .section-card {
        margin: 20px 0;
        padding: 30px;
        border-radius: 30px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 5px 5px 0 rgba(27, 94, 32, 0.1);
    }

    .directory-links {
        gap: 7px;
    }

    .directory-links a {
        padding: 8px 11px;
        font-size: 0.78rem;
    }

    .audio-compare {
        padding: 18px 14px;
        border-radius: 18px;
        box-shadow: 5px 6px 0 rgba(36, 77, 36, 0.13);
    }

    .custom-audio-player {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .audio-play-button {
        min-width: 76px;
        min-height: 42px;
    }

    .audio-volume-meter {
        grid-column: 1 / -1;
        width: 132px;
        margin: 0 auto;
    }

    .hero {
        min-height: 0;
    }

    .hero-purchase {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 4px;
        padding: 24px 18px 20px;
    }

    .hero-purchase-copy span {
        margin-top: 0;
    }

    .purchase-button {
        width: min(100%, 330px);
        min-width: 0;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .device-wrap {
        padding: 0;
    }

    .product-shot {
        padding: 0;
        border-radius: 12px;
        box-shadow: none;
        filter: drop-shadow(0 14px 18px rgba(36, 77, 36, 0.18)) drop-shadow(0 5px 8px rgba(21, 24, 22, 0.14));
        transform: none;
    }

    .product-ui-crop {
        border-radius: 12px;
    }

    .product-shot .product-ui-crop {
        border-radius: 0;
    }

    .video-stage {
        border-width: 3px;
        border-radius: 16px;
        box-shadow: 6px 7px 0 rgba(36, 77, 36, 0.16);
    }

    .device {
        padding: 16px 13px;
        border-width: 4px;
        transform: none;
        box-shadow: 8px 10px 0 rgba(36, 77, 36, 0.22);
    }

    .device-display {
        font-size: 0.62rem;
    }

    .fader-track {
        height: 142px;
    }

    .fader-track::before {
        height: 128px;
    }

    .fader-track::after {
        width: 43px;
    }

    .fader {
        font-size: 0.56rem;
    }

    .stat-strip,
    .compatibility,
    .manual-nav,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    #sns {
        margin: 20px 5px;
    }
}

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