:root {
  color-scheme: light;
  --bg: #f6f7f1;
  --surface: #fff;
  --tinted: #ecefe6;
  --text: #14231c;
  --muted: #495952;
  --accent: #205a40;
  --on-accent: #fff;
  --active: #e4efe7;
  --border: #ced8ce;
  --shadow: rgba(18, 39, 27, .15);
  --support: #163c2b;
  --support-ink: #f4f9f1;
  --support-muted: #cfdfd2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131c17;
  --surface: #1b2920;
  --tinted: #19261e;
  --text: #edf4eb;
  --muted: #bdcbbf;
  --accent: #a3d7af;
  --on-accent: #142a1c;
  --active: #2d4636;
  --border: #3d5144;
  --shadow: rgba(0, 0, 0, .3);
  --support: #214d37;
  --support-ink: #f4f9f1;
  --support-muted: #d8e9da;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #131c17;
    --surface: #1b2920;
    --tinted: #19261e;
    --text: #edf4eb;
    --muted: #bdcbbf;
    --accent: #a3d7af;
    --on-accent: #142a1c;
    --active: #2d4636;
    --border: #3d5144;
    --shadow: rgba(0, 0, 0, .3);
    --support: #214d37;
    --support-muted: #d8e9da;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1216px, calc(100% - 2 * clamp(20px, 5vw, 76px))); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 16px; background: var(--surface); }

.header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; font-size: 1.1rem; font-weight: 750; }
.brand img { border: 1px solid var(--border); border-radius: 11px; }
.brand small { margin-inline-start: 4px; font-size: .79rem; font-weight: 650; color: var(--muted); }
nav, .preferences { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 36px); }
nav a { font-size: .93rem; font-weight: 620; color: var(--muted); padding: 10px 0; }
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.preferences { gap: 8px; }
.select { position: relative; }
.select::after { content: ""; width: 6px; height: 6px; position: absolute; top: 45%; right: 12px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.select select { appearance: none; display: block; border: 1px solid var(--border); border-radius: 9px; min-height: 42px; padding: 6px 28px 6px 11px; font-size: .875rem; font-weight: 620; cursor: pointer; color: var(--text); background: var(--bg); }
.select select:hover { background: var(--tinted); }

.hero { display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr); align-items: center; gap: clamp(32px, 6vw, 90px); padding-block: clamp(64px, 9vw, 132px) clamp(56px, 7.5vw, 108px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--accent); font-weight: 720; }
.line { width: 23px; height: 2px; background: currentColor; }
h1 { margin-block: 22px 21px; font-size: clamp(3.2rem, 5.5vw, 5.3rem); letter-spacing: -.067em; line-height: 1.03; font-weight: 790; }
h1 span { display: block; }
h1 span + span { color: var(--accent); }
:lang(en) h1 { font-size: clamp(3.1rem, 5.15vw, 5rem); }
:lang(ja) h1 { font-size: clamp(2.8rem, 4.2vw, 4.35rem); }
.lede { max-width: 37ch; font-size: clamp(1.03rem, 1.45vw, 1.19rem); color: var(--muted); line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; font-size: .95rem; font-weight: 710; }
.button:hover { text-decoration: underline; text-underline-offset: 4px; }
.primary { background: var(--accent); color: var(--on-accent); }
.secondary { border-color: var(--border); }
.secondary:hover { background: var(--tinted); }
.system-note { margin-top: 19px; color: var(--muted); font-size: .875rem; }

.example { position: relative; isolation: isolate; padding-bottom: 35px; }
.photo { position: relative; overflow: hidden; border-radius: 16px; background: #34564c; }
.photo img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; }
.crop { position: absolute; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .78); }
.top-left { top: 17px; left: 17px; border-right: 0; border-bottom: 0; }
.top-right { top: 17px; right: 17px; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: 17px; left: 17px; border-right: 0; border-top: 0; }
.bottom-right { bottom: 17px; right: 17px; border-left: 0; border-top: 0; }
.inspector { position: relative; width: min(390px, calc(100% - 32px)); margin: -100px 20px 0 auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 16px; box-shadow: 0 18px 42px var(--shadow); }
.inspector-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 12px; font-size: .95rem; font-weight: 760; }
.sample { color: var(--muted); font-size: .8125rem; font-weight: 540; }
.tabs { display: flex; gap: 4px; margin-block: 12px 15px; padding: 3px; border-radius: 8px; background: var(--bg); }
.tabs button { flex: 1; padding: 6px 3px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: .875rem; font-weight: 660; }
.tabs button[aria-selected="true"] { background: var(--active); color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values div { padding: 0 8px; }
.values div:first-child { padding-left: 0; }
.values div + div { border-left: 1px solid var(--border); padding-left: 12px; }
dt { color: var(--muted); font-size: .78rem; }
dd { font: 650 clamp(.78rem, 1.55vw, 1rem)/1.5 ui-monospace, Menlo, monospace; white-space: nowrap; margin-top: 4px; }

.section-inner { padding-block: clamp(50px, 7.25vw, 100px); }
.features { border-block: 1px solid var(--border); background: var(--tinted); }
h2 { font-size: clamp(2rem, 4.15vw, 3.5rem); line-height: 1.13; letter-spacing: -.045em; margin-top: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4.5vw, 62px); margin-top: 38px; }
.feature-grid article { border-top: 1px solid var(--border); padding-top: 20px; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--active); color: var(--accent); font-size: 1.5rem; }
.code-icon { font: 700 .9rem ui-monospace, Menlo, monospace; }
h3 { font-size: 1.3rem; margin-block: 12px 6px; }
.feature-grid p, .privacy p:not(.eyebrow) { color: var(--muted); }
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 7vw, 100px); }
.privacy > div + div { padding-top: 3px; }
details { border-top: 1px solid var(--border); }
details:first-of-type { margin-top: 20px; }
details:last-child { border-bottom: 1px solid var(--border); }
summary { padding: 12px 0; cursor: pointer; font-weight: 660; }
details p { padding-bottom: 14px; }
.support { background: var(--support); color: var(--support-ink); }
.support-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 25px; padding-block: clamp(40px, 6.5vw, 76px); }
.support .eyebrow, .support p { color: var(--support-muted); }
.support h2 { margin-bottom: 10px; }
.support-button { background: #eff7ee; color: #173d2a; }
.support-button:focus-visible { outline-color: #eff7ee; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 90px; }
.footer p { color: var(--muted); font-size: .85rem; }

@media (max-width: 840px) {
  .header-inner { flex-wrap: wrap; gap: 4px 14px; padding-block: 11px; }
  .header nav { order: 3; flex-basis: 100%; gap: 24px; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; gap: 32px; }
  .hero h1 { max-width: 15ch; }
  .example { padding-bottom: 0; }
  .photo img { aspect-ratio: 1.65; }
}

@media (max-width: 610px) {
  .feature-grid, .privacy { grid-template-columns: 1fr; }
  .feature-grid { margin-top: 25px; }
  .inspector { margin-top: -55px; margin-right: auto; }
}

@media (max-width: 390px) {
  .header .brand small { display: none; }
  .select select { padding-left: 8px; padding-right: 24px; }
  .select::after { right: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.section-lede { margin-top: 16px; color: var(--muted); }
.scenario-list { margin-top: 30px; border-bottom: 1px solid var(--border); }
.scenario {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px clamp(24px, 5vw, 76px);
  align-items: start;
  padding-block: 25px;
  border-top: 1px solid var(--border);
}
.scenario-label { color: var(--accent); font-size: .875rem; font-weight: 720; }
.scenario h3 { margin-block: 4px 0; }
.scenario > p { color: var(--muted); }

.formats, .faq { background: var(--tinted); border-block: 1px solid var(--border); }
.formats-inner, .faq-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}
.format-list { border-bottom: 1px solid var(--border); }
.format-list > div { padding-block: 14px; border-top: 1px solid var(--border); }
.format-list dt { color: var(--text); font: 700 1rem/1.5 ui-monospace, Menlo, monospace; }
.format-list dd { margin-top: 4px; font: inherit; white-space: normal; color: var(--muted); }
.privacy > div + div > p + p { margin-top: 16px; }
.faq h2, .faq details:first-of-type { margin-top: 0; }
.faq details p { color: var(--muted); }
.support-inner > div { flex: 1 1 400px; }
.footer { flex-wrap: wrap; padding-block: 12px; }
.footer-nav { flex-wrap: wrap; }

@media (max-width: 710px) {
  .scenario, .formats-inner, .faq-inner { grid-template-columns: 1fr; }
  .scenario { padding-block: 18px; }
  .footer-nav { flex: 0 0 100%; order: 2; }
}

.support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.support-actions a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.support-actions a:focus-visible { outline-color: var(--support-ink); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.price-grid article {
  padding: clamp(12px, 2vw, 23px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.price-grid article:first-child { background: var(--tinted); }
.price-grid h3 { margin: 0; font-size: .98rem; }
.price-grid p:not(.price), .price-note { color: var(--muted); font-size: .9rem; }
.price { font-size: clamp(1.65rem, 3vw, 2.6rem); font-weight: 780; letter-spacing: -.05em; }
.price small { font-size: .875rem; font-weight: 650; letter-spacing: 0; }
.price-note { margin-top: 13px; }
.comparison { width: 100%; margin-top: 32px; border-collapse: collapse; table-layout: fixed; }
.comparison caption { text-align: start; font-size: 1.28rem; font-weight: 740; margin-bottom: 10px; }
.feature-column { width: 49%; }
.comparison th, .comparison td {
  padding: 11px clamp(5px, 1.5vw, 16px);
  vertical-align: top;
  text-align: start;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
  font-size: .92rem;
}
.comparison thead { background: var(--tinted); }
.comparison tbody th { font-weight: 620; }
.comparison tbody td { color: var(--muted); }
.text-link { display: inline-block; margin-top: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
nav [aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.get-help { max-width: 860px; }
.document-header { padding-bottom: 26px; }
.document-header h1 { margin-top: 0; font-size: clamp(2.55rem, 6vw, 4.8rem); }
.document-header .section-lede { font-size: 1.12rem; }
.document-action { margin-top: 18px; }
.document-sections > section { padding-block: 23px; border-top: 1px solid var(--border); }
.document-sections h2 { margin: 0 0 12px; font-size: clamp(1.26rem, 3vw, 1.65rem); }
.document-sections p, .document-sections li { color: var(--muted); }
.document-sections p + p, .document-sections ul + p { margin-top: 12px; }
.document-sections ul { margin-block: 0; padding-inline-start: 1.35em; }
.document-sections li + li { margin-top: 8px; }
.document-sections details:first-of-type { margin-top: 0; }
.document-sections details .text-link { margin-block: 0 14px; }

@media (max-width: 940px) {
  .header-inner { flex-wrap: wrap; gap: 4px 14px; padding-block: 11px; }
  .header nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 24px); }
}

@media (max-width: 620px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
