:root {
  color-scheme: light;
  --ink: #06152c;
  --navy: #00142f;
  --navy-2: #0c2d53;
  --gold: #e6ad3e;
  --gold-light: #f3c663;
  --cream: #fbf5e9;
  --paper: #fffdf7;
  --surface: #ffffff;
  --surface-2: #f1eadf;
  --text: #071529;
  --muted: #716d67;
  --line: #e2d6c2;
  --header: rgba(251, 245, 233, .9);
  --shadow: 0 28px 90px rgba(27, 21, 10, .14);
  --radius: 32px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --cream: #00142f;
  --paper: #061d3a;
  --surface: #0c2d53;
  --surface-2: #12375e;
  --text: #fffdf7;
  --muted: #a9b0bf;
  --line: #29496a;
  --header: rgba(0, 20, 47, .9);
  --shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { max-width: 100%; margin: 0; min-height: 100vh; overflow-x: clip; background: var(--cream); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { max-width: 100%; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: var(--header); backdrop-filter: blur(22px) saturate(140%); }
.nav { min-height: 74px; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; text-decoration: none; font-size: 1.12rem; font-weight: 850; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.language-switcher { display: flex; align-items: center; gap: .35rem; }
.language-switcher button { width: 44px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: 1.45rem; line-height: 1; cursor: pointer; opacity: .55; transition: opacity .2s ease, border-color .2s ease, background .2s ease; }
.language-switcher button:hover, .language-switcher button.active { border-color: var(--line); background: var(--surface); opacity: 1; }
.nav-menu { display: flex; align-items: center; gap: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--muted); font-size: .91rem; font-weight: 750; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.control { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }
.language { padding: 0 .65rem; }
.language select { border: 0; outline: 0; background: transparent; color: inherit; font-weight: 800; cursor: pointer; }
.theme-toggle { width: 42px; cursor: pointer; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); cursor: pointer; }

.hero { min-height: calc(100vh - 74px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; padding-block: clamp(4rem, 8vw, 7.5rem); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.15rem; color: var(--gold); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
h1 { margin-bottom: 1.35rem; font-size: clamp(3.8rem, 8.3vw, 7.3rem); line-height: .9; letter-spacing: -.07em; }
h1 em { color: var(--gold); font-style: normal; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.button.primary { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.button:hover { transform: translateY(-2px); border-color: var(--gold); }
.hero-facts { display: flex; gap: 0; margin-top: 3rem; }
.hero-facts > span { min-width: 120px; padding: .25rem 1.2rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.25; }
.hero-facts > span:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { display: block; margin-bottom: .25rem; color: var(--gold); font-size: 1.6rem; line-height: 1; }
.phone-frame { position: relative; padding: 8px; border-radius: 47px; background: linear-gradient(145deg, #355170, #050d18 55%, #254568); box-shadow: 0 34px 90px rgba(0,0,0,.4); }
.phone-frame img { width: 100%; border-radius: 40px; }
.hero-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 128%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 26%, transparent), transparent 65%); }
.hero-phone { width: min(342px, 78vw); transform: rotate(3deg); }
.hero-badge { position: absolute; left: -5%; bottom: 10%; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; padding: .9rem; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.hero-badge span { padding: .4rem .6rem; border-radius: 9px; background: var(--surface-2); color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .04em; }

.trial-band { padding-block: clamp(4rem, 8vw, 7rem); background: var(--gold); color: var(--ink); }
.trial-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.trial-band .eyebrow { color: var(--ink); }
.trial-band h2, .section-heading h2, .listen-copy h2, .privacy-panel h2, .story-copy h2, .final-cta h2 { margin-bottom: 1.25rem; font-size: clamp(2.6rem, 5.5vw, 5.1rem); line-height: .96; letter-spacing: -.055em; }
.trial-band p { max-width: 670px; font-size: 1.08rem; }
.trial-card { position: relative; overflow: hidden; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 30px; background: var(--ink); color: #fffdf7; box-shadow: 0 28px 65px rgba(6,21,44,.25); }
.trial-card h3 { margin-bottom: .7rem; color: var(--gold-light); font-size: 1.5rem; }
.trial-card h3::before { content: "7 "; }
.trial-card p { color: #c9d1dc; font-size: .98rem; }
.trial-card p:last-child { margin-bottom: 0; }
.trial-number { position: absolute; right: -.4rem; bottom: -3.5rem; color: rgba(230,173,62,.12); font-size: 17rem; font-weight: 900; line-height: 1; }
.trial-card > div { position: relative; z-index: 1; }

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-heading { max-width: 840px; margin-bottom: 3rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .75fr; gap: clamp(2rem, 7vw, 6rem); align-items: end; }
.split-heading > p { margin-bottom: 1.5rem; color: var(--muted); font-size: 1.08rem; }
.library-showcase { position: relative; padding: clamp(.5rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: 38px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.tablet-frame { overflow: hidden; border-radius: 25px; box-shadow: 0 20px 55px rgba(0,0,0,.32); }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.feature-row article { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.feature-row article > span { color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.feature-row h3 { margin: .65rem 0 .5rem; font-size: 1.15rem; }
.feature-row p { margin: 0; color: var(--muted); font-size: .92rem; }

.web-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .55fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: center; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); border-radius: 40px; background: var(--ink); color: #fffdf7; box-shadow: var(--shadow); }
.web-copy h2 { margin-bottom: 1.3rem; font-size: clamp(2.6rem, 5.3vw, 4.9rem); line-height: .96; letter-spacing: -.055em; }
.web-copy > div > p { color: #c7d0dc; }
.web-phone { width: min(310px, 74vw); margin-inline: auto; }
.direct-note { margin-top: 2rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(230,173,62,.55); border-radius: 18px; background: rgba(230,173,62,.09); }
.direct-note strong { color: var(--gold-light); }
.direct-note p { margin: .25rem 0 0; color: #c7d0dc; font-size: .92rem; }
.fine-print { max-width: 850px; margin: 1.2rem auto 0; color: var(--muted); font-size: .82rem; text-align: center; }

.listen-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 8rem); align-items: center; }
.screens-stack { position: relative; min-height: 670px; display: grid; place-items: center; }
.screens-stack::before { content: ""; position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 67%); }
.player-phone { width: min(340px, 75vw); transform: rotate(-2deg); }
.listen-copy h2 { margin-bottom: 2rem; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.feature-list strong { color: var(--gold); font-size: .92rem; letter-spacing: .03em; }
.feature-list span { color: var(--muted); }
.muted { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }

.ecosystem { background: var(--surface-2); }
.section-heading.center { max-width: 780px; margin-inline: auto; text-align: center; }
.center .eyebrow { justify-content: center; }
.center > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ecosystem-grid article { min-height: 225px; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.device-icon { color: var(--gold); font-size: 2.1rem; }
.ecosystem-grid h3 { margin: auto 0 .4rem; }
.ecosystem-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.service-card { min-height: 470px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); }
.service-card .eyebrow { margin-top: auto; }
.service-card h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.service-card > p:last-child { margin-bottom: 0; color: var(--muted); }
.service-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 20px; background: var(--gold); color: var(--ink); font-size: 2.2rem; font-weight: 900; }
.dropbox-card { background: var(--ink); color: #fffdf7; }
.dropbox-card > p:last-child { color: #c7d0dc; }

.privacy-panel { display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2rem, 6vw, 5rem); border-radius: 36px; background: var(--gold); color: var(--ink); }
.privacy-mark { width: 96px; height: 96px; border-radius: 26px; background: url("assets/kirshigo-logo-dark.png") center / cover no-repeat; box-shadow: 0 16px 38px rgba(6,21,44,.24); font-size: 0; }
.privacy-panel .eyebrow { color: var(--ink); }
.privacy-panel h2 { margin-bottom: 0; }
.privacy-copy p { font-size: 1.02rem; }
.privacy-copy a, .text-link { font-weight: 850; text-decoration: none; }
.privacy-copy a:hover, .text-link:hover { text-decoration: underline; }

.gallery-section { padding-top: clamp(4rem, 8vw, 7rem); }
.gallery-section .section-heading { margin-inline: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: #fffdf7; box-shadow: 0 18px 48px rgba(0,0,0,.18); cursor: zoom-in; }
.gallery-item-phone { aspect-ratio: 9 / 16; }
.gallery-item-tablet { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform .35s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,13,31,.82)); pointer-events: none; }
.gallery-item span { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; font-weight: 850; text-align: left; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(3.5rem, 7vw, 5rem); border: 0; background: rgba(0,10,25,.94); color: #fffdf7; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.lightbox::backdrop { background: rgba(0,10,25,.94); backdrop-filter: blur(12px); }
.lightbox figure { min-width: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: .8rem; justify-items: center; margin: auto; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 8rem); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.55); object-fit: contain; }
.lightbox figcaption { color: #d7dce4; font-size: .92rem; text-align: center; }
.lightbox button { border: 1px solid rgba(255,255,255,.2); background: rgba(12,45,83,.78); color: #fffdf7; cursor: pointer; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lightbox-nav { width: 48px; height: 58px; border-radius: 16px; font-size: 2.2rem; line-height: 1; }
.lightbox button:hover, .lightbox button:focus-visible { border-color: var(--gold); background: var(--navy-2); outline: none; }

.story-section { display: grid; place-items: center; text-align: center; }
.story-copy { max-width: 830px; }
.story-copy .eyebrow { justify-content: center; }
.story-copy p { color: var(--muted); font-size: 1.05rem; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--gold); }

.final-cta { padding-block: clamp(5rem, 11vw, 9rem); background: var(--ink); color: #fffdf7; text-align: center; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { font-size: clamp(3rem, 8vw, 7rem); }
.final-cta > .container > p:not(.eyebrow) { max-width: 680px; margin-inline: auto; color: #c7d0dc; font-size: 1.08rem; }
.final-cta .actions { justify-content: center; }
.final-cta .button:not(.primary) { border-color: #315171; background: #0c2d53; color: #fffdf7; }
.final-cta small { display: block; margin-top: 1.5rem; color: #8d99aa; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 1.2rem; color: var(--muted); font-size: .86rem; }
.footer-brand { margin-right: 0; color: var(--text); }
.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer-inner nav { display: flex; gap: 1rem; margin-left: auto; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--gold); }

/* Shared legal pages */
.legal-shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 0; }
.legal-intro { margin-bottom: 2.5rem; }
.legal-intro h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; }
.legal-intro p { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.legal-content { padding: clamp(1.4rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.legal-content section { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.legal-content section:first-of-type { padding-top: 0; }
.legal-content section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin-bottom: .7rem; font-size: 1.2rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content address { font-style: normal; }
.legal-content ul { padding-left: 1.2rem; }
.legal-updated { color: var(--gold) !important; font-weight: 800; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero > * { min-width: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-copy .actions { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-facts { justify-content: center; }
  .hero-visual { min-height: 610px; }
  .trial-grid, .split-heading, .web-panel, .listen-layout, .privacy-panel { grid-template-columns: 1fr; }
  .web-copy { text-align: center; }
  .web-copy .eyebrow { justify-content: center; }
  .direct-note { text-align: left; }
  .screens-stack { min-height: 620px; }
  .privacy-panel { text-align: center; }
  .privacy-mark { margin-inline: auto; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container, .legal-shell { width: min(calc(100% - 24px), 1180px); margin-inline: auto; }
  .trial-band, .ecosystem, .final-cta { width: 100%; max-width: 100%; margin-right: 0; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .hero { padding-top: 3.3rem; }
  .hero-copy .actions { display: grid; grid-template-columns: 1fr; width: min(100%, 310px); margin-inline: auto; }
  .hero-copy .button { width: 100%; }
  .hero-facts > span { min-width: 95px; padding-inline: .7rem; }
  .hero-visual { min-height: 520px; }
  .hero-phone { width: min(285px, 77vw); }
  .hero-badge { left: 0; bottom: 4%; }
  .trial-band h2, .section-heading h2, .listen-copy h2, .privacy-panel h2, .story-copy h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .feature-row, .ecosystem-grid, .services { grid-template-columns: 1fr; }
  .library-showcase { border-radius: 24px; }
  .tablet-frame { border-radius: 15px; }
  .web-panel { border-radius: 28px; }
  .screens-stack { min-height: 540px; }
  .player-phone { width: min(285px, 77vw); }
  .feature-list > div { grid-template-columns: 105px 1fr; gap: .8rem; }
  .service-card { min-height: 400px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .gallery-item { border-radius: 16px; }
  .gallery-item span { left: .7rem; right: .7rem; bottom: .65rem; font-size: .78rem; }
  .lightbox { padding: 4rem .5rem 1.25rem; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; align-content: center; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-nav { grid-row: 2; width: 100%; height: 44px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { margin-left: 0; flex-wrap: wrap; }
}

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