:root {
  color-scheme: light;
  --main-background-color: #f5f5f7;
  --container-bg-color: #ffffff;
  --ink: #222222;
  --muted: #616168;
  --line: #d2d2d7;
  --link-color: #7086a1;
  --soft-black: #1d1d20;
  --soft-white: #f5f5f7;
  --paper: #fafafa;
  --clip-3: polygon(3px 0%, calc(100% - 3px) 0%, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0% calc(100% - 3px), 0% 3px);
  --clip-6: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
  --clip-8: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
  --clip-12: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
  --shadow: 0 22px 50px rgba(29, 29, 32, 0.12);
  --header-bg: rgba(245, 245, 247, 0.94);
  --nav-text: #3b3b3f;
  --surface-bg: #ffffff;
  --surface-border: var(--line);
  --surface-soft-border: rgba(34, 34, 34, 0.12);
  --screen-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 247, 0.96)), radial-gradient(circle at 50% 30%, rgba(240, 183, 211, 0.28), transparent 42%);
  --screen-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 247, 0.96)), radial-gradient(circle at 72% 22%, rgba(240, 183, 211, 0.34), transparent 42%), radial-gradient(circle at 28% 72%, rgba(158, 210, 198, 0.34), transparent 46%);
  --placeholder-line: rgba(34, 34, 34, 0.12);
  --hero-background: radial-gradient(circle at 82% 16%, rgba(255, 183, 213, 0.5), transparent 30%), radial-gradient(circle at 62% 72%, rgba(158, 210, 198, 0.34), transparent 35%), linear-gradient(135deg, #fbfbfc 0%, #eeeef1 54%, #f8f0ec 100%);
  --hero-fade: linear-gradient(to top, rgba(245, 245, 247, 0.78), rgba(245, 245, 247, 0));
  --hero-panel-border: rgba(34, 34, 34, 0.1);
  --hero-panel-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
  --hero-panel-opacity: 0.4;
  --hero-lead-color: #26262a;
  --button-secondary-bg: rgba(255, 255, 255, 0.78);
  --band-grid-line: rgba(34, 34, 34, 0.055);
  --journal-bg: repeating-linear-gradient(90deg, var(--band-grid-line) 0 1px, transparent 1px 96px), #eeeeef;
  --data-bg: repeating-linear-gradient(90deg, var(--band-grid-line) 0 1px, transparent 1px 96px), linear-gradient(180deg, #eeeeef 0%, #f4f4f6 100%);
  --pill-bg: #ffffff;
  --pill-color: #222222;
  --pill-border: #222222;
  --list-divider: #ececf0;
  --share-preview-tint: var(--floral);
  --share-preview-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 247, 0.92)), radial-gradient(circle at 32% 20%, var(--share-preview-tint), transparent 45%);
  --language-bg: radial-gradient(circle at 18% 18%, rgba(240, 183, 211, 0.34), transparent 32%), radial-gradient(circle at 82% 70%, rgba(158, 210, 198, 0.34), transparent 34%), #ffffff;
  --language-pill-bg: rgba(245, 245, 247, 0.86);
  --legal-hero-bg: rgba(255, 255, 255, 0.9);
  --legal-text: #3d3d42;
  --legal-pill-color: #343438;
  --legal-tabs-bg: rgba(255, 255, 255, 0.78);
  --legal-active-bg: #222226;
  --legal-active-color: #ffffff;
  --focus-ring: #222222;
  --floral: #f0b7d3;
  --soft-floral: #ffc8c8;
  --amber: #d09b6c;
  --wood: #8b5e3c;
  --fresh: #9ed2c6;
  --other: #dddddf;
  --green: #76af63;
  --citrus: #c2bc5b;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --main-background-color: #101014;
  --container-bg-color: #18181d;
  --ink: #f3eee8;
  --muted: #b9b1aa;
  --line: rgba(255, 255, 255, 0.13);
  --link-color: #9ed2c6;
  --soft-black: #f5f1eb;
  --soft-white: #141419;
  --paper: #18181d;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(13, 13, 16, 0.9);
  --nav-text: #eee8e1;
  --surface-bg: #18181d;
  --surface-border: rgba(255, 255, 255, 0.13);
  --surface-soft-border: rgba(255, 255, 255, 0.14);
  --screen-fill: linear-gradient(180deg, rgba(28, 28, 33, 0.94), rgba(18, 18, 22, 0.96)), radial-gradient(circle at 50% 30%, rgba(240, 183, 211, 0.18), transparent 42%);
  --screen-fallback-fill: linear-gradient(180deg, rgba(28, 28, 33, 0.94), rgba(18, 18, 22, 0.96)), radial-gradient(circle at 72% 22%, rgba(240, 183, 211, 0.2), transparent 42%), radial-gradient(circle at 28% 72%, rgba(158, 210, 198, 0.2), transparent 46%);
  --placeholder-line: rgba(255, 255, 255, 0.14);
  --hero-background: radial-gradient(circle at 82% 16%, rgba(240, 183, 211, 0.18), transparent 30%), radial-gradient(circle at 62% 72%, rgba(158, 210, 198, 0.16), transparent 35%), linear-gradient(135deg, #111115 0%, #18181e 54%, #221b1c 100%);
  --hero-fade: linear-gradient(to top, rgba(16, 16, 20, 0.88), rgba(16, 16, 20, 0));
  --hero-panel-border: rgba(255, 255, 255, 0.14);
  --hero-panel-fill: linear-gradient(135deg, rgba(25, 25, 30, 0.9), rgba(18, 18, 23, 0.68));
  --hero-panel-opacity: 0.82;
  --hero-lead-color: #eee8e1;
  --button-secondary-bg: rgba(255, 255, 255, 0.08);
  --band-grid-line: rgba(255, 255, 255, 0.055);
  --journal-bg: repeating-linear-gradient(90deg, var(--band-grid-line) 0 1px, transparent 1px 96px), #141418;
  --data-bg: repeating-linear-gradient(90deg, var(--band-grid-line) 0 1px, transparent 1px 96px), linear-gradient(180deg, #141418 0%, #101014 100%);
  --pill-bg: #202025;
  --pill-color: #f1ece7;
  --pill-border: rgba(255, 255, 255, 0.18);
  --list-divider: rgba(255, 255, 255, 0.1);
  --share-preview-fill: linear-gradient(180deg, rgba(28, 28, 33, 0.86), rgba(18, 18, 22, 0.92)), radial-gradient(circle at 32% 20%, var(--share-preview-tint), transparent 45%);
  --language-bg: radial-gradient(circle at 18% 18%, rgba(240, 183, 211, 0.14), transparent 32%), radial-gradient(circle at 82% 70%, rgba(158, 210, 198, 0.14), transparent 34%), #121216;
  --language-pill-bg: rgba(255, 255, 255, 0.06);
  --legal-hero-bg: rgba(24, 24, 29, 0.88);
  --legal-text: #e5ded8;
  --legal-pill-color: #ede8e2;
  --legal-tabs-bg: rgba(28, 28, 34, 0.82);
  --legal-active-bg: #f3eee8;
  --legal-active-color: #111115;
  --focus-ring: #f3eee8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --main-background-color: #101014;
    --container-bg-color: #18181d;
    --ink: #f3eee8;
    --muted: #b9b1aa;
    --line: rgba(255, 255, 255, 0.13);
    --link-color: #9ed2c6;
    --soft-black: #f5f1eb;
    --soft-white: #141419;
    --paper: #18181d;
    --shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
    --header-bg: rgba(13, 13, 16, 0.9);
    --nav-text: #eee8e1;
    --surface-bg: #18181d;
    --surface-border: rgba(255, 255, 255, 0.13);
    --surface-soft-border: rgba(255, 255, 255, 0.14);
    --screen-fill: linear-gradient(180deg, rgba(28, 28, 33, 0.94), rgba(18, 18, 22, 0.96)), radial-gradient(circle at 50% 30%, rgba(240, 183, 211, 0.18), transparent 42%);
    --screen-fallback-fill: linear-gradient(180deg, rgba(28, 28, 33, 0.94), rgba(18, 18, 22, 0.96)), radial-gradient(circle at 72% 22%, rgba(240, 183, 211, 0.2), transparent 42%), radial-gradient(circle at 28% 72%, rgba(158, 210, 198, 0.2), transparent 46%);
    --placeholder-line: rgba(255, 255, 255, 0.14);
    --hero-background: radial-gradient(circle at 82% 16%, rgba(240, 183, 211, 0.18), transparent 30%), radial-gradient(circle at 62% 72%, rgba(158, 210, 198, 0.16), transparent 35%), linear-gradient(135deg, #111115 0%, #18181e 54%, #221b1c 100%);
    --hero-fade: linear-gradient(to top, rgba(16, 16, 20, 0.88), rgba(16, 16, 20, 0));
    --hero-panel-border: rgba(255, 255, 255, 0.14);
    --hero-panel-fill: linear-gradient(135deg, rgba(25, 25, 30, 0.9), rgba(18, 18, 23, 0.68));
    --hero-panel-opacity: 0.82;
    --hero-lead-color: #eee8e1;
    --button-secondary-bg: rgba(255, 255, 255, 0.08);
    --band-grid-line: rgba(255, 255, 255, 0.055);
    --journal-bg: repeating-linear-gradient(90deg, var(--band-grid-line) 0 1px, transparent 1px 96px), #141418;
    --data-bg: repeating-linear-gradient(90deg, var(--band-grid-line) 0 1px, transparent 1px 96px), linear-gradient(180deg, #141418 0%, #101014 100%);
    --pill-bg: #202025;
    --pill-color: #f1ece7;
    --pill-border: rgba(255, 255, 255, 0.18);
    --list-divider: rgba(255, 255, 255, 0.1);
    --share-preview-fill: linear-gradient(180deg, rgba(28, 28, 33, 0.86), rgba(18, 18, 22, 0.92)), radial-gradient(circle at 32% 20%, var(--share-preview-tint), transparent 45%);
    --language-bg: radial-gradient(circle at 18% 18%, rgba(240, 183, 211, 0.14), transparent 32%), radial-gradient(circle at 82% 70%, rgba(158, 210, 198, 0.14), transparent 34%), #121216;
    --language-pill-bg: rgba(255, 255, 255, 0.06);
    --legal-hero-bg: rgba(24, 24, 29, 0.88);
    --legal-text: #e5ded8;
    --legal-pill-color: #ede8e2;
    --legal-tabs-bg: rgba(28, 28, 34, 0.82);
    --legal-active-bg: #f3eee8;
    --legal-active-color: #111115;
    --focus-ring: #f3eee8;
  }
}

html[data-theme="dark"] {
  --line: rgba(255, 255, 255, 0.18);
  --surface-bg: #282a31;
  --surface-border: rgba(255, 255, 255, 0.28);
  --surface-soft-border: rgba(255, 255, 255, 0.23);
  --paper: #202127;
  --journal-bg: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 96px), linear-gradient(180deg, #23242b 0%, #1c1d23 100%);
  --data-bg: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 96px), linear-gradient(180deg, #2a2d31 0%, #20242a 100%);
  --pill-bg: #32343b;
  --pill-border: rgba(255, 255, 255, 0.34);
  --list-divider: rgba(255, 255, 255, 0.2);
  --share-preview-fill: linear-gradient(180deg, rgba(47, 48, 55, 0.94), rgba(35, 36, 43, 0.96)), radial-gradient(circle at 32% 20%, var(--share-preview-tint), transparent 45%);
  --language-bg: linear-gradient(135deg, #262a2e 0%, #1e2027 52%, #232129 100%);
  --language-pill-bg: #30333a;
  --legal-hero-bg: rgba(33, 34, 40, 0.9);
  --legal-tabs-bg: rgba(37, 39, 46, 0.86);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --line: rgba(255, 255, 255, 0.18);
    --surface-bg: #282a31;
    --surface-border: rgba(255, 255, 255, 0.28);
    --surface-soft-border: rgba(255, 255, 255, 0.23);
    --paper: #202127;
    --journal-bg: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 96px), linear-gradient(180deg, #23242b 0%, #1c1d23 100%);
    --data-bg: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 96px), linear-gradient(180deg, #2a2d31 0%, #20242a 100%);
    --pill-bg: #32343b;
    --pill-border: rgba(255, 255, 255, 0.34);
    --list-divider: rgba(255, 255, 255, 0.2);
    --share-preview-fill: linear-gradient(180deg, rgba(47, 48, 55, 0.94), rgba(35, 36, 43, 0.96)), radial-gradient(circle at 32% 20%, var(--share-preview-tint), transparent 45%);
    --language-bg: linear-gradient(135deg, #262a2e 0%, #1e2027 52%, #232129 100%);
    --language-pill-bg: #30333a;
    --legal-hero-bg: rgba(33, 34, 40, 0.9);
    --legal-tabs-bg: rgba(37, 39, 46, 0.86);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  color: var(--ink);
  background: var(--main-background-color);
  font-family: "M PLUS 1p", "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}

section[id] {
  scroll-margin-top: 76px;
}

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

.clip-path-12 {
  clip-path: var(--clip-12);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.brand-wordmark {
  width: clamp(168px, 18vw, 214px);
  height: auto;
  filter: none;
}

.brand-wordmark-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  font-size: 13px;
  font-weight: 700;
  color: var(--nav-text);
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--link-color);
}

.header-controls {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--surface-bg);
  clip-path: var(--clip-6);
}

.theme-switcher button {
  min-width: 42px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 0;
  clip-path: var(--clip-3);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.theme-switcher button[data-theme-choice="light"] {
  background: #ffffff;
  color: #222222;
}

.theme-switcher button[data-theme-choice="dark"] {
  background: #111115;
  color: #f5f5f7;
}

.theme-switcher button:focus-visible,
.language-switcher select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-icon {
  font-size: 11px;
  line-height: 1;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.language-switcher::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.language-switcher select {
  width: 148px;
  padding: 7px 40px 7px 10px;
  color: var(--ink);
  background: var(--surface-bg);
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: var(--clip-6);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

body[dir="rtl"] .language-switcher::after {
  right: auto;
  left: 14px;
}

body[dir="rtl"] .language-switcher select {
  padding: 7px 10px 7px 40px;
}

.hero {
  position: relative;
  min-height: calc(92svh - 58px);
  margin-top: 58px;
  padding: clamp(52px, 6vw, 92px) clamp(18px, 5vw, 80px) clamp(74px, 8vw, 122px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(460px, 700px) minmax(290px, 380px);
  justify-content: center;
  gap: clamp(16px, 2.6vw, 36px);
  align-items: center;
  background: var(--hero-background);
}

.header-wave,
.hero-bottom-wave {
  position: absolute;
  height: clamp(74px, 12vw, 150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.header-wave {
  inset: 0 0 auto;
}

.hero-bottom-wave {
  inset: auto 0 0;
  z-index: 1;
  opacity: 0.72;
}

.header-wave svg,
.hero-bottom-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bottom-wave svg {
  transform: scaleX(-1);
  transform-origin: center;
}

.header-wave path,
.hero-bottom-wave path {
  transform-origin: center top;
}

.wave-fresh { fill: rgba(158, 210, 198, 0.66); }
.wave-floral { fill: rgba(240, 183, 211, 0.58); }
.wave-wood { fill: rgba(139, 94, 60, 0.34); }

html[data-theme="dark"] .wave-fresh { fill: rgba(86, 174, 154, 0.78); }
html[data-theme="dark"] .wave-floral { fill: rgba(210, 96, 146, 0.78); }
html[data-theme="dark"] .wave-wood { fill: rgba(126, 76, 42, 0.72); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wave-fresh { fill: rgba(86, 174, 154, 0.78); }
  :root:not([data-theme="light"]) .wave-floral { fill: rgba(210, 96, 146, 0.78); }
  :root:not([data-theme="light"]) .wave-wood { fill: rgba(126, 76, 42, 0.72); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: var(--hero-fade);
  z-index: 0;
  pointer-events: none;
}

.hero-scene {
  position: relative;
  z-index: 2;
  order: 2;
  min-height: clamp(520px, 70svh, 700px);
  opacity: 0.92;
  pointer-events: none;
}

.device {
  position: absolute;
  padding: 10px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.device-phone {
  width: min(315px, 31vw);
  min-width: 250px;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
}

.device-tablet {
  width: min(390px, 36vw);
  min-width: 310px;
  aspect-ratio: 3 / 4.35;
  border-radius: 36px;
}

.device-main {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(2deg);
}

.device-small {
  right: clamp(220px, 30vw, 520px);
  bottom: -110px;
  transform: rotate(-9deg);
}

.device-topbar {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 72px;
  height: 5px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: rgba(245, 245, 247, 0.22);
  z-index: 2;
}

.screen {
  height: 100%;
  padding: 26px 14px 16px;
  overflow: hidden;
  background: var(--soft-white);
  border-radius: 23px;
  color: var(--ink);
}

.device-phone .screen {
  border-radius: 24px;
  padding: 30px 16px 18px;
}

.device-tablet .screen {
  border-radius: 21px;
  padding: 24px;
}

.screen-title,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.showcase-screen {
  position: relative;
  padding: 0;
  background: var(--screen-fill);
}

.app-screen-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.app-screen-image.is-loaded {
  opacity: 1;
}

.screen-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 15%;
  background: var(--screen-fallback-fill);
}

.screen-fallback i,
.screen-fallback span {
  display: block;
  clip-path: var(--clip-6);
  background: var(--placeholder-line);
}

.screen-fallback i {
  width: 48%;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  clip-path: none;
  background: conic-gradient(var(--floral) 0 34%, var(--fresh) 34% 62%, var(--wood) 62% 84%, #dedee3 84% 100%);
}

.screen-fallback span {
  height: 12px;
}

.screen-fallback span:nth-child(3) {
  width: 76%;
}

.screen-fallback span:nth-child(4) {
  width: 54%;
}

.share-output-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(34, 34, 34, 0.58)),
    radial-gradient(circle at 50% 34%, #fff3f8 0 16%, #f0d7ca 17% 42%, #dfdfe5 43% 100%);
  border: 1px solid rgba(34, 34, 34, 0.14);
  clip-path: var(--clip-12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.share-output-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.78);
  clip-path: var(--clip-12);
}

.share-output-art {
  position: absolute;
  inset: 18% 16% auto;
  height: 42%;
  display: grid;
  place-items: center;
}

.share-output-art .bottle {
  width: min(86px, 30vw);
  height: min(112px, 34vw);
  background: linear-gradient(180deg, #fff, #ffe7f0);
  box-shadow: 0 24px 40px rgba(29, 29, 32, 0.13);
}

.share-output-art i {
  position: absolute;
  width: 68%;
  height: 1px;
  background: rgba(34, 34, 34, 0.18);
}

.share-output-art i:nth-child(2) {
  top: 12%;
  transform: rotate(-12deg);
}

.share-output-art i:nth-child(3) {
  bottom: 10%;
  transform: rotate(9deg);
}

.share-output-copy {
  position: relative;
  color: #ffffff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
}

.share-output-copy strong,
.share-output-copy span {
  display: block;
}

.share-output-copy strong {
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
}

.share-output-copy span {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.share-format-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.share-format-row span,
.mini-share-list span,
.floating-share-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid rgba(34, 34, 34, 0.1);
  clip-path: var(--clip-6);
  font-size: 12px;
  font-weight: 800;
}

.share-format-row img,
.floating-share-card img {
  width: 22px;
  height: 22px;
}

.mini-share-list {
  display: grid;
  gap: 7px;
}

.mini-share-list span {
  justify-content: space-between;
  min-height: 34px;
  padding-block: 6px;
}

.mini-share-list b {
  margin-inline-start: auto;
}

.share-orbit {
  position: absolute;
  inset: 0;
}

.floating-share-card {
  position: absolute;
  z-index: 2;
  min-width: 132px;
  box-shadow: 0 18px 38px rgba(29, 29, 32, 0.11);
}

.floating-share-card-square {
  left: clamp(0px, 4vw, 44px);
  top: 18%;
  transform: rotate(-8deg);
}

.floating-share-card-portrait {
  right: clamp(2px, 4vw, 42px);
  bottom: 22%;
  transform: rotate(7deg);
}

.screenshot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 21px;
}

.search-line {
  height: 32px;
  margin-bottom: 12px;
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-6);
}

.perfume-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--list-divider);
}

.perfume-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.perfume-row span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.perfume-row em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.bottle {
  width: 35px;
  height: 42px;
  border: 1px solid #222;
  clip-path: var(--clip-6);
  background: #ffffff;
}

.bottle.blush { border-color: #d987aa; background: #fff2f7; }
.bottle.green { border-color: var(--green); background: #eef8ec; }
.bottle.amber { border-color: var(--amber); background: #fff0e8; }

.color-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-top: 18px;
}

.color-meter i {
  height: 7px;
  display: block;
  clip-path: var(--clip-3);
}

.color-meter i:nth-child(1) { background: var(--wood); }
.color-meter i:nth-child(2) { background: var(--green); }
.color-meter i:nth-child(3) { background: var(--fresh); }
.color-meter i:nth-child(4) { background: var(--floral); }
.color-meter i:nth-child(5) { background: var(--amber); }
.color-meter i:nth-child(6) { background: var(--citrus); }

.data-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.data-screen .screen-title {
  grid-column: 1 / -1;
}

.donut,
.analytics-donut {
  align-self: center;
  justify-self: center;
  width: min(180px, 28vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--floral) 0 31%, var(--wood) 31% 55%, var(--fresh) 55% 73%, var(--amber) 73% 87%, var(--other) 87% 100%);
  position: relative;
}

.donut::after,
.analytics-donut::after {
  content: "";
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: var(--soft-white);
  border: 1px solid rgba(34, 34, 34, 0.08);
  z-index: 0;
}

.analytics-donut-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 2px;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
}

.analytics-donut-label strong {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
}

.analytics-donut-label em {
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 17px);
  font-style: normal;
  font-weight: 900;
}

.legend {
  align-self: center;
  display: grid;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.legend span,
.analytics-list > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-list em {
  font-style: normal;
}

.legend i,
.analytics-list i,
.mini-share-list i {
  width: 14px;
  height: 14px;
  display: inline-block;
  clip-path: var(--clip-3);
}

i.wood { background: var(--wood); }
i.floral { background: var(--floral); }
i.fresh { background: var(--fresh); }
i.amber { background: var(--amber); }
i.other { background: var(--other); }

.mini-bars {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-bars i {
  display: block;
  width: var(--w);
  height: 9px;
  background: #222;
  clip-path: var(--clip-3);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-grid span {
  aspect-ratio: 1;
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-3);
}

.calendar-grid .used {
  border-color: #222;
}

.calendar-grid .floral { background: var(--floral); }
.calendar-grid .green { background: var(--green); }
.calendar-grid .amber { background: var(--amber); }
.calendar-grid .blue { background: var(--fresh); }
.calendar-grid .wood { background: var(--wood); }
.calendar-grid .today { background: #222; }

.hero-copy {
  width: min(700px, 100%);
  margin: 0;
  padding: clamp(26px, 3vw, 42px);
  position: relative;
  z-index: 2;
  order: 1;
  justify-self: center;
  background: transparent;
  border: 1px solid var(--hero-panel-border);
  clip-path: var(--clip-12);
  box-shadow: 0 26px 58px rgba(29, 29, 32, 0.1);
  backdrop-filter: blur(14px);
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-panel-fill);
  opacity: var(--hero-panel-opacity);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 100%;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(46px, 4.7vw, 70px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 1;
}

.hero-lead {
  width: min(680px, 100%);
  margin: 0;
  color: var(--hero-lead-color);
  font-size: clamp(16px, 2.3vw, 22px);
  line-height: 1.75;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  clip-path: var(--clip-6);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: var(--soft-white);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: var(--button-secondary-bg);
}

.button:hover {
  transform: translateY(-1px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.stat {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 18px clamp(18px, 4vw, 44px);
  background: var(--surface-bg);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section-wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}

.section-heading {
  max-width: none;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 800;
}

.section-heading p,
.data-copy p,
.share-section p,
.download-inner p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.section-heading p,
.share-section > div:first-child p {
  max-width: 760px;
}

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

.feature-card {
  min-height: 0;
  padding: 18px;
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-12);
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  gap: 18px;
  align-items: start;
}

.feature-visual {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  padding: 8px;
  overflow: hidden;
  border-radius: 28px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(29, 29, 32, 0.12);
}

.feature-visual .app-screen-image,
.feature-visual .screen-fallback {
  inset: auto;
  left: 8px;
  top: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  overflow: hidden;
  border-radius: 20px;
}

.feature-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  color: #222222;
  background: var(--feature-color);
  border: 1px solid rgba(34, 34, 34, 0.16);
  clip-path: var(--clip-6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1;
}

.feature-card h3 {
  min-height: 0;
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.mini-device-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 9px;
  display: flex;
  gap: 5px;
}

.mini-device-bar::before,
.mini-device-bar::after {
  content: "";
  display: block;
  height: 100%;
  clip-path: var(--clip-3);
  background: rgba(34, 34, 34, 0.12);
}

.mini-device-bar::before { width: 34px; }
.mini-device-bar::after { flex: 1; }

.visual-detail-layout {
  position: absolute;
  inset: 34px 16px 14px;
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: 10px;
  align-items: center;
}

.visual-bottle {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 0.72;
  justify-self: center;
  clip-path: var(--clip-6);
  border: 1px solid rgba(34, 34, 34, 0.36);
  background:
    linear-gradient(180deg, #ffffff 0 34%, #fff0f7 35% 100%);
  box-shadow: 0 14px 24px rgba(29, 29, 32, 0.11);
}

.visual-lines,
.visual-meter-stack {
  display: grid;
  gap: 7px;
}

.visual-lines i,
.visual-meter-stack i {
  display: block;
  height: 8px;
  clip-path: var(--clip-3);
  background: rgba(34, 34, 34, 0.16);
}

.visual-lines i:nth-child(1) { width: 82%; }
.visual-lines i:nth-child(2) { width: 100%; }
.visual-lines i:nth-child(3) { width: 64%; }

.visual-chip-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.visual-chip-row span {
  height: 20px;
  clip-path: var(--clip-6);
}

.visual-chip-row .floral,
.visual-calendar-grid .floral,
.visual-meter-stack .floral { background: var(--floral); }

.visual-chip-row .fresh,
.visual-calendar-grid .fresh,
.visual-meter-stack .fresh { background: var(--fresh); }

.visual-chip-row .wood,
.visual-calendar-grid .wood,
.visual-meter-stack .wood { background: var(--wood); }

.visual-calendar-grid .amber { background: var(--amber); }

.visual-calendar-grid {
  position: absolute;
  inset: 36px 14px 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.visual-calendar-grid span {
  display: block;
  aspect-ratio: 1;
  clip-path: var(--clip-3);
  background: #ffffff;
  border: 1px solid rgba(34, 34, 34, 0.1);
}

.visual-calendar-grid .used {
  border-color: rgba(34, 34, 34, 0.28);
}

.visual-donut {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(106px, 54%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(var(--floral) 0 31%, var(--wood) 31% 55%, var(--fresh) 55% 73%, var(--amber) 73% 87%, #dedee3 87% 100%);
}

.visual-donut::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--soft-white);
}

.visual-meter-stack {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
}

.visual-meter-stack i:nth-child(1) { width: 88%; }
.visual-meter-stack i:nth-child(2) { width: 68%; }
.visual-meter-stack i:nth-child(3) { width: 52%; }

.visual-share-card {
  position: absolute;
  inset: 34px 22px 34px;
  display: grid;
  align-content: end;
  padding: 10px;
  overflow: hidden;
  clip-path: var(--clip-6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(34, 34, 34, 0.5)),
    radial-gradient(circle at 50% 38%, #fff4f8 0 18%, #efd6cc 19% 55%, #e2e4e7 56% 100%);
  border: 1px solid rgba(34, 34, 34, 0.14);
}

.visual-share-art {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 34px;
  height: 50px;
  transform: translateX(-50%);
  clip-path: var(--clip-6);
  background: #fff4f8;
  border: 1px solid rgba(34, 34, 34, 0.26);
}

.visual-share-card i {
  display: block;
  width: 72%;
  height: 5px;
  margin-top: 5px;
  clip-path: var(--clip-3);
  background: rgba(255, 255, 255, 0.84);
}

.visual-share-card i:last-child {
  width: 46%;
}

.visual-share-icons {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.visual-share-icons span {
  height: 12px;
  clip-path: var(--clip-3);
  background: rgba(34, 34, 34, 0.14);
}

.journal-band {
  padding: clamp(72px, 10vw, 125px) 0;
  background: var(--journal-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journal-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--surface-bg);
  border: 1px solid var(--surface-soft-border);
  clip-path: var(--clip-12);
}

.timeline-item b {
  display: grid;
  place-items: center;
  height: 58px;
  color: var(--soft-white);
  background: var(--ink);
  clip-path: var(--clip-6);
  font-size: 18px;
}

.timeline-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.data-band {
  background: var(--data-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.data-copy {
  max-width: 620px;
}

.pill-cloud,
.share-mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  color: var(--pill-color);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  clip-path: var(--clip-6);
  font-size: 12px;
  font-weight: 700;
}

.analytics-panel {
  padding: 24px;
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-12);
  box-shadow: var(--shadow);
}

.analytics-donut {
  width: min(280px, 52vw);
  margin: 18px auto 26px;
}

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

.analytics-list > span {
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--list-divider);
  font-size: 14px;
}

.analytics-list > span:last-child {
  border-bottom: 0;
}

.analytics-list b {
  margin-inline-start: auto;
}

.share-section {
  display: block;
  padding-top: clamp(72px, 9vw, 118px);
}

.share-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 32px;
}

.share-section > div:first-child {
  max-width: none;
}

.share-mode-card {
  min-height: 0;
  padding: 16px;
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-12);
  display: flex;
  flex-direction: column;
}

.share-mode-preview-button {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
  cursor: zoom-in;
}

.share-mode-preview-button:focus-visible {
  outline: 0;
}

.share-mode-preview-button:focus-visible .share-mode-preview {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.share-mode-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  overflow: hidden;
  clip-path: none;
  border-radius: 4px;
  background: var(--share-preview-fill);
  border: 0;
  box-shadow: none;
}

.share-mode-preview-button .share-mode-preview {
  margin-bottom: 0;
}

.share-mode-preview .app-screen-image {
  object-fit: contain;
}

.share-mode-2 .share-mode-preview {
  --share-preview-tint: var(--fresh);
}

.share-mode-3 .share-mode-preview {
  --share-preview-tint: var(--wood);
}

.share-mode-4 .share-mode-preview {
  --share-preview-tint: var(--amber);
}

.share-mode-preview .screen-fallback {
  padding: 18%;
}

.share-mode-preview .screen-fallback i {
  width: 58%;
}

.share-mode-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.share-mode-card p {
  font-size: 13px;
  line-height: 1.75;
}

body.has-lightbox {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 32px);
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: auto;
  max-height: 92svh;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.image-lightbox-header {
  display: none;
}

.image-lightbox-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.image-lightbox-close {
  display: none;
}

.image-lightbox-close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.image-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1180px, 96vw);
  max-height: 92svh;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 24px 50px rgba(29, 29, 32, 0.12));
}

.language-band {
  padding: clamp(68px, 9vw, 116px) 0;
  background: var(--language-bg);
  border-top: 1px solid var(--line);
}

.language-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.language-copy {
  max-width: 520px;
}

.language-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px;
  background: var(--language-pill-bg);
  border: 1px solid var(--surface-soft-border);
  clip-path: var(--clip-6);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.download-band {
  padding: clamp(58px, 8vw, 96px) 0;
  color: #f5f5f7;
  background: #222222;
}

.download-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(112px, 12vw, 154px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
}

.app-icon {
  width: 132px;
  height: 132px;
  background: transparent;
  clip-path: none;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.download-copy {
  min-width: 0;
  width: 100%;
}

.download-copy h2,
.download-copy p {
  max-width: none;
}

.download-copy h2 {
  color: #ffffff;
}

.download-copy p {
  color: #dedee3;
}

.download-inner .button {
  margin-top: 24px;
  color: #222;
  background: #ffffff;
  border-color: #ffffff;
}

.download-inner .download-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 14px 0 0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  clip-path: var(--clip-6);
  color: #f1f1f3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

html[data-theme="dark"] .download-band {
  background: linear-gradient(135deg, #2b282c 0%, #232329 48%, #2f2b2f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] #features,
html[data-theme="dark"] .share-section {
  position: relative;
  isolation: isolate;
}

html[data-theme="dark"] #features::before,
html[data-theme="dark"] .share-section::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
}

html[data-theme="dark"] #features::before {
  background: linear-gradient(180deg, #1b1c22 0%, #24252b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .share-section::before {
  background: linear-gradient(180deg, #27262c 0%, #202127 48%, #2a272d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .stat,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .analytics-panel,
html[data-theme="dark"] .share-mode-card {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .stat {
  background: #24262d;
}

html[data-theme="dark"] .stat:nth-child(2) {
  background: #2a2d31;
}

html[data-theme="dark"] .stat:nth-child(3) {
  background: #302c30;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .timeline-item {
  background: #292b32;
}

html[data-theme="dark"] .feature-card:nth-child(even),
html[data-theme="dark"] .share-mode-card:nth-child(even) {
  background: #30323a;
}

html[data-theme="dark"] .feature-card:nth-child(4n+1) {
  background: #2d2d36;
}

html[data-theme="dark"] .feature-card:nth-child(4n+2) {
  background: #2f3337;
}

html[data-theme="dark"] .feature-card:nth-child(4n+3) {
  background: #343035;
}

html[data-theme="dark"] .feature-card:nth-child(4n) {
  background: #2b2f37;
}

html[data-theme="dark"] .analytics-panel {
  background: #30343a;
}

html[data-theme="dark"] .share-mode-card {
  background: #2b2b32;
}

html[data-theme="dark"] .share-mode-card:nth-child(4n+1) {
  background: #312e34;
}

html[data-theme="dark"] .share-mode-card:nth-child(4n+2) {
  background: #2d3236;
}

html[data-theme="dark"] .share-mode-card:nth-child(4n+3) {
  background: #342f33;
}

html[data-theme="dark"] .share-mode-card:nth-child(4n) {
  background: #2d3037;
}

html[data-theme="dark"] .feature-visual {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .analytics-donut::after {
  background: #22242b;
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .language-list span {
  border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .download-band {
    background: linear-gradient(135deg, #2b282c 0%, #232329 48%, #2f2b2f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  :root:not([data-theme="light"]) #features,
  :root:not([data-theme="light"]) .share-section {
    position: relative;
    isolation: isolate;
  }

  :root:not([data-theme="light"]) #features::before,
  :root:not([data-theme="light"]) .share-section::before {
    content: "";
    position: absolute;
    inset: 0 50%;
    z-index: -1;
    width: 100vw;
    margin-left: -50vw;
    pointer-events: none;
  }

  :root:not([data-theme="light"]) #features::before {
    background: linear-gradient(180deg, #1b1c22 0%, #24252b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  :root:not([data-theme="light"]) .share-section::before {
    background: linear-gradient(180deg, #27262c 0%, #202127 48%, #2a272d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  :root:not([data-theme="light"]) .stat,
  :root:not([data-theme="light"]) .timeline-item,
  :root:not([data-theme="light"]) .feature-card,
  :root:not([data-theme="light"]) .analytics-panel,
  :root:not([data-theme="light"]) .share-mode-card {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  }

  :root:not([data-theme="light"]) .stat {
    background: #24262d;
  }

  :root:not([data-theme="light"]) .stat:nth-child(2) {
    background: #2a2d31;
  }

  :root:not([data-theme="light"]) .stat:nth-child(3) {
    background: #302c30;
  }

  :root:not([data-theme="light"]) .feature-card,
  :root:not([data-theme="light"]) .timeline-item {
    background: #292b32;
  }

  :root:not([data-theme="light"]) .feature-card:nth-child(even),
  :root:not([data-theme="light"]) .share-mode-card:nth-child(even) {
    background: #30323a;
  }

  :root:not([data-theme="light"]) .feature-card:nth-child(4n+1) {
    background: #2d2d36;
  }

  :root:not([data-theme="light"]) .feature-card:nth-child(4n+2) {
    background: #2f3337;
  }

  :root:not([data-theme="light"]) .feature-card:nth-child(4n+3) {
    background: #343035;
  }

  :root:not([data-theme="light"]) .feature-card:nth-child(4n) {
    background: #2b2f37;
  }

  :root:not([data-theme="light"]) .analytics-panel {
    background: #30343a;
  }

  :root:not([data-theme="light"]) .share-mode-card {
    background: #2b2b32;
  }

  :root:not([data-theme="light"]) .share-mode-card:nth-child(4n+1) {
    background: #312e34;
  }

  :root:not([data-theme="light"]) .share-mode-card:nth-child(4n+2) {
    background: #2d3236;
  }

  :root:not([data-theme="light"]) .share-mode-card:nth-child(4n+3) {
    background: #342f33;
  }

  :root:not([data-theme="light"]) .share-mode-card:nth-child(4n) {
    background: #2d3037;
  }

  :root:not([data-theme="light"]) .feature-visual {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.28);
  }

  :root:not([data-theme="light"]) .analytics-donut::after {
    background: #22242b;
    border-color: rgba(255, 255, 255, 0.22);
  }

  :root:not([data-theme="light"]) .language-list span {
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(18px, 4vw, 42px);
  color: #ffffff;
  background: #111111;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer p,
.site-footer a {
  color: #d7d7da;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(240, 183, 211, 0.24), transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(158, 210, 198, 0.22), transparent 32%),
    var(--main-background-color);
}

.legal-main {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(58px + clamp(44px, 7vw, 84px)) 0 clamp(64px, 8vw, 104px);
}

.legal-hero {
  padding: clamp(28px, 5vw, 48px);
  background: var(--legal-hero-bg);
  border: 1px solid var(--surface-soft-border);
  clip-path: var(--clip-12);
  box-shadow: 0 20px 44px rgba(29, 29, 32, 0.08);
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  background: var(--pill-bg);
  border: 1px solid var(--surface-soft-border);
  clip-path: var(--clip-6);
  color: var(--legal-pill-color);
  font-size: 12px;
  font-weight: 700;
}

.legal-meta span[hidden],
.legal-hero p[hidden] {
  display: none !important;
}

.legal-language-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px;
  background: var(--legal-tabs-bg);
  border: 1px solid var(--surface-soft-border);
  clip-path: var(--clip-8);
}

.legal-language-tabs span {
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legal-language-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  clip-path: var(--clip-6);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.legal-language-tabs button.active {
  background: var(--legal-active-bg);
  border-color: var(--legal-active-bg);
  color: var(--legal-active-color);
}

.legal-language-tabs button:focus-visible {
  outline: 2px solid rgba(120, 97, 62, 0.5);
  outline-offset: 2px;
}

.legal-pane[hidden] {
  display: none;
}

.legal-section {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-12);
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3vw, 38px);
}

.legal-section h3 {
  margin: 26px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.legal-section h3:first-child {
  margin-top: 0;
}

.legal-section p,
.legal-section li {
  color: var(--legal-text);
  font-size: 15px;
  line-height: 1.9;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 8px 0 16px;
  padding-left: 1.2em;
}

.legal-section a {
  color: var(--link-color);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-8);
}

.about-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.about-profile-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--surface-border);
  clip-path: var(--clip-8);
}

.about-profile-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.about-profile-item strong {
  color: var(--ink);
  font-size: 18px;
}

html[data-theme="dark"] .brand-wordmark-light {
  display: block;
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .brand-wordmark-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-wordmark-light {
    display: block;
    filter: brightness(0) invert(1);
  }

  :root:not([data-theme="light"]) .brand-wordmark-dark {
    display: none;
  }
}

[dir="rtl"] .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .device-main {
  right: auto;
  left: 50%;
}

[dir="rtl"] .device-phone {
  left: auto;
  right: auto;
}

[dir="rtl"] .device-small {
  right: auto;
  left: clamp(220px, 30vw, 520px);
}

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

  .nav-links {
    display: none;
  }

  .header-controls {
    justify-self: end;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: clamp(96px, 13vw, 132px);
    padding-bottom: clamp(108px, 14vw, 146px);
  }

  .header-wave,
  .hero-bottom-wave {
    height: clamp(108px, 17vw, 156px);
  }

  .header-wave svg,
  .hero-bottom-wave svg {
    width: max(100%, 1100px);
    max-width: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-bottom-wave svg {
    transform: translateX(-50%) scaleX(-1);
  }

  .hero-scene {
    min-height: 600px;
  }

  .device-phone {
    width: min(300px, 58vw);
  }

  .floating-share-card-square {
    left: max(0px, calc(50% - 240px));
  }

  .floating-share-card-portrait {
    right: max(0px, calc(50% - 250px));
  }

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

  .feature-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(130px, 0.44fr) 1fr;
    gap: 16px;
    align-items: start;
  }

  .feature-visual {
    max-width: none;
    min-height: 0;
    aspect-ratio: 9 / 19.5;
  }

  .feature-card h3 {
    min-height: auto;
  }

  .journal-inner,
  .data-section,
  .share-section,
  .language-inner {
    grid-template-columns: 1fr;
  }

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

  .about-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 58px;
    gap: 8px;
    padding: 0 12px;
  }

  .brand-wordmark {
    width: clamp(112px, 31vw, 142px);
  }

  .header-controls {
    gap: 5px;
  }

  .theme-switcher {
    gap: 2px;
    padding: 2px;
  }

  .theme-switcher button {
    min-width: 30px;
    min-height: 30px;
    padding: 0 7px;
  }

  .theme-text {
    display: none;
  }

  .language-switcher span {
    display: none;
  }

  .language-switcher select {
    width: 96px;
    padding: 7px 30px 7px 9px;
    font-size: 11px;
  }

  .language-switcher::after {
    right: 11px;
  }

  .hero {
    min-height: auto;
    margin-top: 58px;
    padding: clamp(108px, 30vw, 132px) 12px clamp(116px, 34vw, 146px);
    gap: 20px;
    justify-content: stretch;
    justify-items: center;
  }

  .header-wave,
  .hero-bottom-wave {
    height: clamp(118px, 34vw, 150px);
  }

  .header-wave svg,
  .hero-bottom-wave svg {
    width: max(100%, 960px);
  }

  .device-phone {
    min-width: 0;
    width: min(232px, 68vw);
    border-radius: 28px;
  }

  .device-phone .screen {
    border-radius: 18px;
    padding: 0;
  }

  .hero-scene {
    min-height: 500px;
    opacity: 0.96;
  }

  .hero-copy {
    width: min(calc(100vw - 28px), 372px);
    justify-self: start;
    margin-left: max(14px, calc((100vw - 372px) / 2));
    padding: 21px 18px 20px;
    box-shadow: 0 18px 42px rgba(25, 25, 28, 0.12);
  }

  [dir="rtl"] .hero-copy {
    justify-self: end;
    margin-right: max(14px, calc((100vw - 372px) / 2));
    margin-left: 0;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(24px, 8.2vw, 36px);
    line-height: 1.04;
    letter-spacing: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .showcase-screen {
    padding: 0;
  }

  .share-output-card {
    padding: 14px;
  }

  .share-output-copy strong {
    font-size: 20px;
  }

  .floating-share-card {
    min-width: 112px;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .floating-share-card-square {
    left: -4px;
    top: 8%;
  }

  .floating-share-card-portrait {
    right: -2px;
    bottom: 13%;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: auto;
    padding: 16px 18px;
  }

  .stat strong {
    margin-bottom: 6px;
    font-size: 21px;
  }

  .stat span {
    font-size: 12px;
    line-height: 1.7;
  }

  .section-wrap,
  .journal-inner,
  .download-inner,
  .language-inner {
    width: min(100% - 28px, 1160px);
  }

  .section-wrap {
    padding: 64px 0;
  }

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

  h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.22;
  }

  .section-heading p,
  .data-copy p,
  .share-section p,
  .download-inner p,
  .site-footer p {
    font-size: 14px;
    line-height: 1.85;
  }

  .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
    grid-template-columns: minmax(104px, 36%) 1fr;
    gap: 13px;
    padding: 14px;
  }

  .feature-visual {
    max-width: none;
    min-height: 0;
  }

  .feature-card h3 {
    font-size: 17px;
  }

  .feature-card p {
    font-size: 13px;
    line-height: 1.65;
  }

  .share-mode-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 46px 1fr;
  }

  .timeline-item b {
    height: 46px;
    font-size: 15px;
  }

  .download-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }

  .app-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
  }

  .download-copy h2 {
    font-size: clamp(22px, 6.7vw, 28px);
    line-height: 1.18;
  }

  .download-copy p {
    font-size: 13px;
    line-height: 1.8;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-main {
    width: min(100% - 28px, 980px);
  }

}

@media (prefers-reduced-motion: no-preference) {
  .device-main {
    animation: float-main 9s ease-in-out infinite;
  }

  .floating-share-card-square {
    animation: float-square-card 10s ease-in-out infinite;
  }

  .floating-share-card-portrait {
    animation: float-portrait-card 11s ease-in-out infinite;
  }

  .feature-card,
  .timeline-item,
  .analytics-panel {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .feature-card:hover,
  .timeline-item:hover,
  .analytics-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(29, 29, 32, 0.09);
  }
}

@keyframes float-main {
  0%, 100% { transform: translate(-50%, -50%) rotate(2deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(2deg) translateY(-12px); }
}

@keyframes float-square-card {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(10px); }
}

@keyframes float-portrait-card {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-10px); }
}
