:root {
  color-scheme: light;
  --page: #f6f6ef;
  --paper: #fffefa;
  --green-black: #142920;
  --forest: #163a2b;
  --forest-deep: #1b3229;
  --text: #18291f;
  --muted: #46574b;
  --line: #d9ded0;
  --lime: #d4ef9f;
  --wash: #ecf0e3;
  --mint: #e4edd8;
  --radius: 1.2rem;
  --bottom-menu-space: calc(4rem + env(safe-area-inset-bottom, 0px));
  --font: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; color: var(--text); font: 1rem/1.75 var(--font); }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #31794b; outline-offset: 4px; }
.phrase-copy { word-break: keep-all; overflow-wrap: anywhere; }

.shell { width: min(100% - 5rem, 74rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .65rem; left: .65rem; padding: .65rem 1rem; color: var(--forest); background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.topbar { border-bottom: 1px solid var(--line); }
.topbar__inner { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: .9rem; }
.brand, .footer__brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand__word, .footer__brand { font-size: 1.48rem; font-weight: 850; letter-spacing: -.045em; line-height: 1.15; }
.brand__section, .footer__brand span { border-left: 1px solid #b7c0b2; padding-left: .85rem; font-size: .81rem; font-weight: 700; letter-spacing: .01em; line-height: 1.4; white-space: nowrap; }
.topnav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.75rem; }
.topnav a, .footer nav a { font-size: .86rem; font-weight: 700; text-decoration: none; }
.topnav a:hover, .footer nav a:hover { text-decoration: underline; }
.topnav a span { margin-left: .2rem; color: #3c6b4c; }

.landing { padding-block: 2.35rem 5.35rem; }
.hero { display: grid; grid-template-columns: 1.13fr 1fr; min-height: 29rem; padding: .65rem; overflow: hidden; border-radius: calc(var(--radius) + .55rem); background: var(--forest-deep); color: #fffefa; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 4vw, 3.9rem); padding-right: clamp(1rem, 3vw, 2rem); }
.eyebrow { color: #3c5844; font-size: .82rem; font-weight: 750; letter-spacing: .045em; }
.eyebrow--light { color: var(--lime); }
.hero h1 { margin-top: 1.05rem; font-size: clamp(2.25rem, 3.5vw, 3.25rem); line-height: 1.26; letter-spacing: -.043em; }
.hero h1 span { display: block; }
.hero__lead { max-width: 32rem; margin-top: 1.25rem; color: #e0e8da; font-size: .99rem; line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.15rem; margin-top: 1.8rem; }
.hero__actions .inline-link { color: #fffefa; }
.hero__actions .inline-link:hover { color: var(--lime); }
.hero__image { min-width: 0; position: relative; overflow: hidden; border-radius: calc(var(--radius) + .2rem); background: #58614c; }
.hero__image img { height: 100%; width: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--lime); }

.button, .inline-link { display: inline-flex; font-weight: 750; align-items: center; justify-content: center; gap: .7rem; max-width: 100%; }
.button { padding: .68rem 1.07rem; min-height: 2.85rem; border: 1px solid transparent; border-radius: .62rem; text-align: center; text-decoration: none; line-height: 1.55; font-size: .9rem; }
.button span, .inline-link span { flex: none; }
.button--bright { background: var(--lime); color: var(--green-black); }
.button--bright:hover { background: #e2f6b7; }
.button--dark { background: var(--forest); color: #fffefa; }
.button--dark:hover { background: #224936; }
.inline-link { font-size: .88rem; min-height: 2.65rem; text-align: left; text-decoration-thickness: 1px; }
.inline-link:hover { color: #285d3c; text-decoration-thickness: 2px; }

.catalog { margin-top: 4.1rem; scroll-margin-top: 1rem; }
.catalog__heading { display: flex; align-items: baseline; gap: .85rem; }
.catalog__heading h2, .content-section h2, .example h2, .bridge h2 { font-size: clamp(1.45rem, 2.6vw, 2.17rem); line-height: 1.45; letter-spacing: -.03em; }
.catalog__heading p { color: var(--muted); font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.12rem; }
.filter { border: 1px solid #c2cdbe; border-radius: 100px; color: var(--forest); background: transparent; min-height: 2.65rem; padding: .3rem .9rem; cursor: pointer; font-size: .85rem; font-weight: 700; }
.filter:hover { background: var(--wash); }
.filter[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fffefa; }
.catalog-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding: 0; margin-top: 1.3rem; }
.tool-card { min-height: 11.25rem; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: .75rem; padding: 1.05rem 1.2rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.tool-card:is(:hover, :focus-within) { border-color: #67826a; background: #fafcf4; box-shadow: 0 .25rem 1rem #183a2220; }
.tool-card__detail { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto 1fr; align-items: center; gap: .55rem .75rem; text-decoration: none; }
.tool-card__detail img { grid-area: 1 / 1; width: 3.35rem; height: 3.35rem; object-fit: contain; }
.tool-card__detail:hover h3 { text-decoration: underline; }
.tool-card__copy { grid-area: 2 / 1 / 3 / -1; }
.tool-card__detail .tool-card__arrow { grid-area: 1 / 2; }
.state { background: #eef0e9; color: #495647; white-space: nowrap; border-radius: 99px; padding: .16rem .57rem; font-size: .74rem; font-weight: 700; }
.state--ready { background: #e5f1d6; color: #30563c; }
.tool-card__copy h3 { font-size: clamp(1rem, 1.35vw, 1.22rem); letter-spacing: -.012em; }
.tool-card__copy p { color: var(--muted); font-size: .8rem; line-height: 1.62; margin-top: .34rem; }
.tool-card__bottom { border-top: 1px solid #e6e9df; padding-top: .55rem; color: #495d4c; font-size: .76rem; font-weight: 700; }
.tool-card__arrow, .related-card__arrow { color: #2c6340; font-size: 1.23rem; line-height: 1; }

.bridge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, max-content); gap: 1.4rem 2.6rem; align-items: center; margin-top: 2.6rem; padding: clamp(1.4rem, 3.8vw, 2.65rem); border-radius: var(--radius); background: var(--mint); }
.bridge--catalog { margin-top: 3.85rem; }
.bridge__brand { color: #32563e; font-size: .82rem; font-weight: 780; letter-spacing: .025em; }
.bridge h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); margin-top: .35rem; }
.bridge p:not(.bridge__brand) { max-width: 43rem; color: #415245; font-size: .95rem; margin-top: .6rem; }
.bridge__actions { display: grid; justify-items: start; gap: .35rem; }

.tool { padding-block: 1.65rem 4.3rem; }
.crumb { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.15rem; font-size: .8rem; color: var(--muted); }
.crumb a { flex: none; font-weight: 700; }
.crumb [aria-current="page"] { min-width: 0; overflow-wrap: anywhere; }
.tool-hero { display: grid; grid-template-columns: minmax(10rem,.28fr) minmax(0,1fr); gap: clamp(1.5rem, 4vw, 3.1rem); align-items: center; min-height: 23rem; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid #d5ded0; border-radius: calc(var(--radius) + .3rem); background: #eaf0e3; }
.tool-hero__icon { height: 100%; min-height: 13rem; display: grid; place-items: center; background: radial-gradient(ellipse at 60% 30%, #d7e5d0 0%, #d8e3d5 53%, #cbdacb 100%); border: 1px solid #c6d6c5; border-radius: var(--radius); }
.tool-hero__icon img { width: clamp(6.5rem, 11vw, 9.45rem); height: auto; filter: drop-shadow(0 .7rem 1rem #102f2a37); }
.tool-hero__name { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem .7rem; color: #36533f; font-size: .87rem; font-weight: 750; }
.tool-hero__name > span:first-child { min-width: 0; }
.tool-hero__name .state { background: #f6f8f1; border: 1px solid #d4ded0; }
.tool-hero__name .state--ready { background: #e5f1d6; border-color: #c1dcb7; }
.tool-hero h1 { margin-top: .55rem; max-width: 55rem; font-size: clamp(2rem, 3.42vw, 3.08rem); line-height: 1.29; letter-spacing: -.045em; }
.tool-hero__summary { max-width: 42rem; margin-top: .9rem; color: #395045; line-height: 1.86; }
.tool-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.4rem; }
.tool-content { width: min(100%, 64.5rem); margin-inline: auto; }
.content-section, .example { margin-top: 2.85rem; }
.tool-screen { margin: .9rem 0 0; }
.tool-screen a { display: block; color: var(--forest); font-size: .86rem; font-weight: 700; }
.tool-screen img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: .75rem; margin-bottom: .55rem; }
.tool-screen a:hover span { text-decoration: underline; }
.feature-list { padding: 0; margin-top: .9rem; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.feature-list li { border: 1px solid var(--line); border-radius: .82rem; padding: 1.15rem; background: var(--paper); }
.feature-list h3, .flow h3 { font-size: 1rem; letter-spacing: -.015em; }
.feature-list p { color: var(--muted); margin-top: .47rem; font-size: .9rem; }
.example { border: 1px solid #dbe1d5; border-radius: var(--radius); padding: clamp(1.18rem, 3vw, 2.25rem); background: #eef2e7; }
.example h2 { margin-top: .25rem; font-size: clamp(1.32rem, 2.4vw, 1.9rem); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .7rem; margin-top: 1.05rem; align-items: center; }
.flow__side { height: 100%; word-break: normal; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: .75rem; padding: .95rem 1rem; background: var(--paper); }
.flow__side ul { margin-top: .35rem; padding-left: 1.14rem; color: var(--muted); font-size: .88rem; }
.flow__side li::marker { color: #52765a; }
.flow__arrow { display: grid; place-items: center; width: 2.05rem; height: 2.05rem; border-radius: 50%; background: #dae8d3; color: #31563b; }
.download { scroll-margin-top: 1rem; }
.download__box { border: 1px solid var(--line); border-radius: .88rem; padding: 1.15rem; margin-top: .9rem; background: var(--paper); }
.download__box > p { color: var(--muted); font-size: .89rem; margin-block: .47rem; }
.download__box .download__os { margin-top: 0; color: var(--text); font-weight: 750; }
.download__os span { background: var(--wash); color: var(--forest); padding: .15rem .44rem; border-radius: .22rem; margin-left: .35rem; font-size: .76rem; white-space: nowrap; }
.download__action { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.download__file { min-width: 0; overflow-wrap: anywhere; }
.download__file strong { font-size: .94rem; }
.download__file p { color: var(--muted); font-size: .82rem; }
.download__resources { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; margin-top: .75rem; }
.download__resources .inline-link { font-size: .85rem; }
.source-notices ol, .source-notices ul { padding-inline-start: 1.45em; }
.source-notices li + li { margin-top: .5rem; }
.source-notices code { overflow-wrap: anywhere; }
.source-notices h1 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
.source-notices__product { font-size: .88rem; font-weight: 750; text-decoration-thickness: 1px; }
.source-notices__product:hover { color: #285d3c; text-decoration-thickness: 2px; }
.checksum { margin-top: .65rem; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.checksum summary { cursor: pointer; }
.checksum code { display: block; margin-top: .3rem; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin-block: .95rem .7rem; }
.related-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .75rem; align-items: center; height: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); text-decoration: none; }
.related-card:hover { border-color: #67826a; background: #fbfdf4; }
.related-card img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.related-card strong, .related-card small { display: block; line-height: 1.5; }
.related-card strong { font-size: .92rem; }
.related-card small { color: var(--muted); margin-top: .17rem; font-size: .76rem; }

.footer { background: var(--green-black); color: #f6f8ef; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.2rem; }
.footer__brand span { border-color: #587061; }
.footer p { font-size: .8rem; color: #bdcdbf; margin-top: .55rem; }

.bottom-menu-ready { scroll-padding-bottom: var(--bottom-menu-space); }
.bottom-menu-ready .footer { padding-bottom: var(--bottom-menu-space); }
.bottom-menu {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 4;
  padding-block: .5rem calc(.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #66816c;
  background: var(--forest-deep);
  color: var(--paper);
  box-shadow: 0 -.25rem 1.25rem #14292028;
}
.bottom-menu__inner, .bottom-menu__actions { display: flex; align-items: center; gap: 1rem; }
.bottom-menu__inner { justify-content: space-between; }
.bottom-menu__name { color: #d9e7d6; font-size: .83rem; line-height: 1.35; }
.bottom-menu__name strong { margin-left: .5rem; color: var(--paper); font-size: 1.13rem; }
.bottom-menu__examples { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.bottom-menu__examples:hover { color: var(--lime); }
.bottom-menu .button { padding-block: .42rem; min-height: 2.75rem; white-space: nowrap; }
.bottom-menu :focus-visible { outline-color: #fffefa; outline-offset: 2px; }

@media (max-width: 66rem) {
  .shell { width: min(100% - 3rem, 74rem); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { grid-template-rows: auto auto; min-height: 0; }
  .tool-card__detail { grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: auto; }
  .tool-card__copy { grid-area: 1 / 2; }
  .tool-card__detail .tool-card__arrow { grid-area: 1 / 3; }
  .hero { min-height: 25rem; }
  .hero__text { padding-left: clamp(1.5rem, 3.2vw, 2.2rem); }
  .hero h1 { font-size: clamp(2rem, 3.7vw, 3rem); }
}

@media (max-width: 51rem) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1.12fr .88fr; min-height: 22rem; }
  .hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
  .tool-hero { min-height: 20rem; }
  .bridge { grid-template-columns: 1fr; }
}

@media (max-width: 39rem) {
  .shell { width: calc(100% - 2rem); }
  .topbar__inner { min-height: 3.8rem; }
  .brand, .footer__brand { gap: .52rem; }
  .brand__section, .footer__brand span { padding-left: .52rem; font-size: .74rem; }
  .topnav { justify-content: end; gap: .45rem; }
  .topnav a { font-size: .75rem; }
  .topnav a:first-child { display: none; }
  .landing { padding-block: 1.15rem 3rem; }
  .hero { display: flex; flex-direction: column; min-height: auto; border-radius: 1.15rem; padding: .48rem; }
  .hero__text { padding: 1.45rem 1rem 1.5rem; }
  .hero h1 { font-size: clamp(1.68rem, 7.5vw, 2.45rem); margin-top: .65rem; }
  .hero__lead { font-size: .9rem; line-height: 1.78; margin-top: .8rem; }
  .hero__actions { margin-top: 1.05rem; }
  .hero__image { aspect-ratio: 1.95; border-radius: .79rem; }
  .hero__image img { object-position: 50% 55%; }
  .catalog { margin-top: 2.8rem; }
  .catalog-grid, .feature-list, .related ul { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .tool-card { gap: .65rem; padding: .85rem .9rem .65rem; border-radius: .83rem; }
  .tool-card__detail img { width: 2.85rem; height: 2.85rem; }
  .tool-card__copy h3 { font-size: 1.04rem; }
  .tool-card__copy p { font-size: .78rem; }
  .tool-card__bottom { padding-top: .42rem; }
  .bridge--catalog { margin-top: 2.45rem; }
  .tool { padding-block: 1.15rem 2.85rem; }
  .crumb { margin-bottom: .75rem; }
  .tool-hero { display: block; min-height: auto; padding: 1.18rem; border-radius: 1rem; }
  .tool-hero__icon { float: left; width: 3.25rem; height: 3.25rem; min-height: 0; border-radius: .63rem; margin: .05rem .62rem .4rem 0; }
  .tool-hero__icon img { width: 2.6rem; height: 2.6rem; }
  .tool-hero__name { min-height: 3.6rem; }
  .tool-hero h1 { clear: both; font-size: clamp(1.65rem, 7.1vw, 2.25rem); text-wrap: balance; }
  .tool-hero__summary { font-size: .9rem; }
  .tool-hero__actions { margin-top: 1rem; }
  .content-section, .example { margin-top: 2.15rem; }
  .feature-list li { padding: .9rem; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; width: 1.7rem; height: 1.7rem; }
  .footer__inner { padding-block: 1.65rem; }
  .footer nav { gap: .35rem 1rem; }
  .bottom-menu__name { display: none; }
  .bottom-menu__actions { justify-content: space-between; gap: .55rem; width: 100%; }
  .bottom-menu .button { padding-inline: .7rem; }
}

@media (max-width: 18rem) {
  .bottom-menu__examples { display: none; }
  .bottom-menu__actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card { transition: none; }
}
