:root {
  color-scheme: light;
  --logo-light-display: block;
  --logo-dark-display: none;
  --bg: #fff;
  --soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --brand: #00685f;
  --accent: #00685f;
  --mint: #c5dfd9;
  --line: #d7d7dc;
  --header-glass: rgb(255 255 255 / 94%);
  --stage: #c5dfd9;
  --stage-text: #153c35;
  --stage-muted: #2c5149;
  --night: #111113;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --logo-light-display: none;
  --logo-dark-display: block;
  --bg: #111113;
  --soft: #1c1c1f;
  --text: #f5f5f7;
  --muted: #b5b5bb;
  --accent: #a8dfd2;
  --line: #404047;
  --header-glass: rgb(17 17 19 / 94%);
  --stage: #1e3a34;
  --stage-text: #f1fbf8;
  --stage-muted: #c5dfd9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --logo-light-display: none;
    --logo-dark-display: block;
    --bg: #111113;
    --soft: #1c1c1f;
    --text: #f5f5f7;
    --muted: #b5b5bb;
    --accent: #a8dfd2;
    --line: #404047;
    --header-glass: rgb(17 17 19 / 94%);
    --stage: #1e3a34;
    --stage-text: #f1fbf8;
    --stage-muted: #c5dfd9;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1rem / 1.75 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  overflow-wrap: anywhere;
}
main { flex: 1; min-width: 0; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { font: inherit; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip { position: fixed; inset: .4rem auto auto .5rem; z-index: 5; padding: .55rem 1rem; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }

/* The header remains in the layout, including when scripts are unavailable. */
.site-header { position: sticky; top: 0; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { background: var(--header-glass); backdrop-filter: blur(12px); }
.header-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; width: min(100%, 13rem); min-height: 44px; }
.brand img { width: 100%; height: auto; }
.site-header .brand { width: min(100%, 11.7rem); }
.brand-light { display: var(--logo-light-display); }
.brand-dark { display: var(--logo-dark-display); }
.header-actions { display: flex; gap: .25rem; margin-left: auto; }
#site-nav { display: flex; flex-wrap: wrap; gap: 0 1.35rem; align-items: center; }
#site-nav a, .footer-layout nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
#site-nav a { color: var(--text); text-decoration: none; }
#site-nav a:hover, #site-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.menu, .theme { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: .3rem .5rem; border: 0; border-radius: .45rem; background: transparent; color: var(--text); font-size: .875rem; cursor: pointer; }
.theme-icon { width: 1.05rem; height: 1.05rem; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu:hover, .theme:hover { background: var(--soft); }

h1, h2, h3, p { margin: 0 0 .8rem; }
h1, h2, h3 { line-height: 1.27; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.65rem, 4.1vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.hero, .page-intro { text-align: center; }
.hero { padding-block: clamp(4.4rem, 10vw, 9rem); }
.hero h1 { font-size: clamp(2.45rem, 7.65vw, 6.35rem); margin-bottom: 1.25rem; }
.intro-copy { max-width: 41rem; margin-inline: auto; margin-bottom: 1.35rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.page-intro { background: var(--soft); padding-block: clamp(3.5rem, 9vw, 7rem); }
.page-intro h1 { max-width: 61rem; margin-inline: auto; }
.page-intro:has(.eyebrow) h1 { font-size: clamp(2rem, 5vw, 4rem); }
.mobile-break { display: none; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.75rem); font-weight: 720; }
.eyebrow, .badge { color: var(--accent); font-size: .875rem; font-weight: 720; }
.badge { display: inline-block; margin-bottom: .6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.15rem; }
.button, .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 680; }
.button { padding: .52rem 1.2rem; border-radius: 2rem; background: var(--brand); color: white; text-decoration: none; }
.button:hover { background: #004d45; }
.button.secondary { background: var(--soft); color: var(--accent); }
.text-link { text-decoration-thickness: 1px; }
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section + .section:not(.policy-band, .philosophy) { border-top: 1px solid var(--line); }
.philosophy { background: var(--soft); text-align: center; }
.philosophy h2 { max-width: 54rem; margin-inline: auto; }
.policy-band { --accent: #bce7dc; background: var(--night); color: #f5f5f7; }
.policy-band p:not(.eyebrow) { color: #c7c7ce; }
.policy-layout, .home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.policy-layout > div + div, .home-links > div + div { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 3rem); }

.product-showcase { background: var(--stage); color: var(--stage-text); padding-block: clamp(3rem, 7vw, 6rem); }
.product-showcase .eyebrow, .product-showcase .text-link { color: var(--stage-text); }
.product-showcase :focus-visible { outline-color: var(--stage-text); }
.showcase-layout { display: grid; align-items: center; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); }
.showcase-layout h2 { font-size: clamp(2.5rem, 7.4vw, 6.5rem); line-height: 1.05; }
.showcase-layout .lead + p { max-width: 30rem; }
.mockup {
  width: min(100%, 24rem);
  margin: 0 auto;
  text-align: center;
}
.mockup img { display: block; width: 100%; height: auto; }
.mockup figcaption { margin-top: .85rem; font-size: .875rem; color: var(--muted); }
.product-showcase .mockup figcaption { color: var(--stage-muted); }

.feature-overview > .wrap { text-align: center; padding-block: clamp(3rem, 7vw, 6rem) 2.5rem; }
.feature { padding-block: clamp(2.75rem, 7vw, 6rem); }
.feature:nth-of-type(odd) { background: var(--soft); }
.feature:last-of-type { background: var(--stage); color: var(--stage-text); }
.feature:last-of-type .eyebrow { color: var(--stage-text); }
.feature:last-of-type .mockup figcaption { color: var(--stage-muted); }
.feature-layout {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 6vw, 5rem);
}
.feature-copy h3 { font-size: clamp(1.8rem, 4.3vw, 3.5rem); }
.feature-copy p:last-child { max-width: 30rem; }
@media (width > 48rem) {
  .feature:nth-of-type(even) .mockup { grid-area: 1 / 1; }
}

.product, .tiles article, .faq details { background: var(--soft); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.8rem); }
.product { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); margin-top: 1rem; }
.app-icon { display: block; width: clamp(5rem, 9vw, 8rem); height: auto; }
.showcase-layout .app-icon, .page-intro .app-icon { margin-bottom: 1rem; }
.page-intro .app-icon { margin-inline: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.tiles p, .faq p { color: var(--text); margin-bottom: 0; }
.updates { list-style: none; padding: 0; }
.updates li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .85rem; border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
.updates .badge { margin: 0; }
.faq { display: grid; gap: .65rem; }
.faq details { padding-block: .4rem; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: .65rem; }
.faq p { padding-bottom: .65rem; }
.document { max-width: 52rem; padding-block: clamp(1.75rem, 5vw, 4rem); }
.document-notice, .document-index {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: .8rem;
  background: var(--soft);
}
.document-index { margin-top: 1rem; }
.document-index ul { margin: 0; padding-inline-start: 1.25rem; columns: 2; column-gap: 2.5rem; }
.document-index li { break-inside: avoid; }
.document-index a { display: inline-block; padding-block: .25rem; }
.document > section { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.document > section:last-child { border-bottom: 0; }
.document h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.document > section > :last-child { margin-bottom: 0; }
.document li + li { margin-top: .25rem; }
.disclosure-list { margin: 0; }
.disclosure-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: .5rem 1.25rem;
  padding-block: .7rem;
  border-top: 1px solid var(--line);
}
.disclosure-list dt { font-weight: 720; }
.disclosure-list dd { margin: 0; }
.site-footer { background: var(--soft); padding-block: 1.8rem; }
.footer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: start; gap: .65rem 1.2rem; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer-layout nav a { color: var(--text); }
.footer-contact { grid-column: 1 / -1; margin: 0; }
.footer-contact a { display: inline-block; padding-block: .35rem; }
.footer-layout small { grid-column: 1 / -1; color: var(--text); border-top: 1px solid var(--line); padding-top: .7rem; }

@media (max-width: 50rem) {
  #site-nav { width: 100%; }
  .header-layout { gap: 0 .55rem; }
  #site-nav { padding-bottom: .4rem; }
  .desktop-break { display: none; }
  .footer-layout { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  .showcase-layout, .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .showcase-layout { text-align: center; }
  .showcase-layout .lead + p, .showcase-layout .app-icon { margin-inline: auto; }
  .actions { justify-content: center; }
}
@media (max-width: 38rem) {
  .header-layout { width: calc(100% - 1rem); gap: 0 .25rem; }
  .site-header .brand { width: min(100%, 9.9rem); }
  .document-index ul { columns: 1; }
  .disclosure-list > div { grid-template-columns: minmax(0, 1fr); }
  .mobile-break { display: initial; }
  .showcase-break { display: none; }
  .policy-layout, .home-links { grid-template-columns: minmax(0, 1fr); }
  .policy-layout > div + div, .home-links > div + div { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  #site-nav { flex-direction: column; align-items: stretch; gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .is-revealed { animation: reveal-in .55s ease-out both; }
  @keyframes reveal-in {
    from { opacity: .65; transform: translateY(.6rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
