:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  font-size: 18px;
  color: #17211a;
  background: #f4f7f3;
  --green-900: #173b25;
  --green-800: #155b2c;
  --green-700: #315b3b;
  --green-100: #e9f2eb;
  --cream: #fffdf4;
  --amber-100: #fff0c6;
  --amber-700: #784900;
  --line: #b8c8bb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 94% 4%, #dcebdd 0 9rem, transparent 9.1rem),
    radial-gradient(circle at 3% 97%, #fff0c6 0 8rem, transparent 8.1rem),
    #f4f7f3;
}

a {
  color: #155b2c;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0d4721;
}

a:focus-visible {
  outline: 4px solid #ffbf00;
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--green-900);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 0.92rem;
  font-weight: 750;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 84px);
  min-height: 590px;
  padding-block: 68px 84px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 2px solid #a26400;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.84rem;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  color: var(--green-900);
  font-size: clamp(2.65rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  color: var(--green-900);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.2;
}

h3 {
  color: var(--green-900);
  font-size: 1.16rem;
}

p,
li {
  line-height: 1.7;
}

.lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: #405347;
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 2px solid var(--green-900);
  border-radius: 10px;
  background: #fff;
  color: var(--green-900);
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--green-800);
  color: #fff;
}

.button.primary:hover {
  background: #0d4721;
  color: #fff;
}

.status-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #52675a;
  font-size: 0.88rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 0.55em;
  border-radius: 50%;
  background: #da8b00;
  box-shadow: 0 0 0 4px #fff0c6;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.hero-visual::before {
  position: absolute;
  width: min(380px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e1eee3;
  content: "";
}

.logo-card {
  position: relative;
  width: min(330px, 78vw);
  padding: 24px;
  border: 2px solid var(--green-900);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 0 #c8d8cb;
  transform: rotate(2deg);
}

.logo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-card p {
  margin: 17px 0 0;
  color: var(--green-700);
  font-weight: 800;
  text-align: center;
}

.content-section {
  padding-block: 78px;
  border-top: 2px solid #d7e1d8;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 34px;
  color: #52675a;
}

.section-heading {
  max-width: 850px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--green-800);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.usage-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  border: 2px solid var(--green-700);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 0 #c6d5c9;
}

.beta-card {
  border-color: #936000;
  box-shadow: 0 6px 0 #ead29a;
}

.path-label {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 900;
}

.beta-card .path-label {
  background: var(--amber-100);
  color: var(--amber-700);
}

.usage-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.usage-summary {
  color: #405347;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 28px;
  padding: 0;
  color: #405347;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--green-800);
  content: "✓";
  font-weight: 950;
}

.beta-card .check-list li::before {
  color: #936000;
}

code {
  overflow-wrap: anywhere;
  color: #294932;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: auto;
}

.quota-details {
  margin: -6px 0 26px;
  padding: 14px 16px;
  border: 1px solid #d6ba77;
  border-radius: 12px;
  background: #fffaf0;
}

.quota-details summary {
  color: var(--amber-700);
  cursor: pointer;
  font-weight: 850;
}

.quota-details summary:focus-visible {
  outline: 4px solid #ffbf00;
  outline-offset: 4px;
  border-radius: 4px;
}

.quota-details p {
  margin: 10px 0 0;
  color: #5b4a2b;
  font-size: 0.88rem;
}

.availability-note {
  margin: -10px 0 24px;
  color: #685a43;
  font-size: 0.82rem;
}

.card-actions .button {
  min-height: 46px;
}

.text-link {
  font-weight: 800;
}

.privacy-clarifier {
  margin-top: 24px;
  padding: 22px 24px;
  border-left: 7px solid var(--green-800);
  border-radius: 0 14px 14px 0;
  background: var(--green-100);
}

.privacy-clarifier h3 {
  margin-bottom: 6px;
}

.privacy-clarifier p {
  margin-bottom: 0;
}

.audio-samples-section {
  scroll-margin-top: 24px;
}

.audio-disclosure {
  display: grid;
  gap: 5px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border-left: 7px solid #936000;
  border-radius: 0 14px 14px 0;
  background: #fff8e8;
  color: #5b4a2b;
}

.audio-disclosure strong {
  color: var(--amber-700);
}

.audio-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.audio-sample-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 2px solid var(--green-700);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 #c6d5c9;
}

.audio-category {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 900;
}

.audio-sample-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.audio-description {
  margin-bottom: 16px;
  color: #52675a;
  font-size: 0.84rem;
}

.audio-sample-card audio {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 54px;
  margin-bottom: 12px;
  accent-color: var(--green-800);
}

.audio-sample-card audio:focus-visible,
.audio-transcript summary:focus-visible {
  outline: 4px solid #ffbf00;
  outline-offset: 4px;
  border-radius: 5px;
}

.audio-download {
  align-self: flex-start;
  margin-bottom: 18px;
  font-size: 0.84rem;
  font-weight: 800;
}

.audio-transcript {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.audio-transcript summary {
  color: var(--green-800);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.5;
}

.audio-transcript p {
  margin: 13px 0 0;
  color: #405347;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.audio-transcript strong {
  color: var(--green-900);
}

.audio-provenance {
  margin-top: 26px;
  padding: 22px 24px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  color: #405347;
  font-size: 0.86rem;
}

.audio-provenance p:last-child {
  margin-bottom: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.screenshot-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--green-700);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 0 #c6d5c9;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 2px solid var(--line);
}

.screenshot-card figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 20px 20px;
  color: #405347;
  line-height: 1.55;
}

.screenshot-card figcaption strong {
  color: var(--green-900);
  font-size: 1.05rem;
}

.screenshot-note {
  margin: 24px 0 0;
  color: #52675a;
}

.screenshot-note a {
  font-weight: 850;
}

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

.feature-card {
  padding: 24px;
  border: 2px solid var(--green-700);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 #c6d5c9;
}

.feature-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 900;
}

.feature-card p {
  margin-bottom: 0;
  color: #405347;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  min-width: 0;
  padding: 22px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.pipeline li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -25px;
  color: var(--green-800);
  content: "→";
  font-size: 1.4rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.pipeline-step {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.pipeline strong,
.pipeline span:last-child {
  display: block;
}

.pipeline strong {
  margin-bottom: 5px;
  color: var(--green-900);
}

.pipeline span:last-child {
  color: #52675a;
  font-size: 0.87rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.security-card {
  padding: 23px;
  border-radius: 15px;
  background: #fff;
}

.security-card h3 {
  margin-bottom: 7px;
}

.security-card p {
  margin-bottom: 0;
  color: #405347;
}

.docs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px 48px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 34px);
  border: 2px solid var(--green-900);
  border-radius: 18px;
  background: var(--cream);
}

.docs-panel h3 {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.docs-panel p {
  margin-bottom: 0;
  color: #405347;
}

.docs-links {
  display: grid;
  gap: 8px;
}

.docs-links a {
  font-weight: 850;
}

.steps {
  display: grid;
  gap: 16px;
  max-width: 850px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  counter-increment: step;
}

.steps li::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  content: counter(step);
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green-900);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-item summary {
  padding: 18px 52px 18px 20px;
  color: var(--green-900);
  cursor: pointer;
  font-weight: 850;
}

.faq-item summary:focus-visible {
  outline: 4px solid #ffbf00;
  outline-offset: 4px;
  border-radius: 12px;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: #405347;
}

.honesty-note {
  padding: clamp(24px, 5vw, 42px);
  border: 2px solid #9a4d00;
  border-radius: 18px;
  background: #fff8e8;
}

.honesty-note h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.honesty-note p:last-child {
  margin-bottom: 0;
}

.note-links {
  font-weight: 750;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 36px;
  border-top: 2px solid #d7e1d8;
  color: #52675a;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-copy {
    text-align: center;
  }

  h1,
  .lede {
    margin-inline: auto;
  }

  .actions,
  .status-line {
    justify-content: center;
  }

  .hero-visual {
    min-height: 390px;
  }

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

  .usage-grid,
  .audio-sample-grid,
  .screenshot-grid,
  .security-grid,
  .docs-panel {
    grid-template-columns: 1fr;
  }

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

  .pipeline li:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    font-size: 17px;
  }

  .site-header {
    display: block;
  }

  .site-nav {
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 18px;
  }

  .hero {
    padding-block: 36px 68px;
  }

  .actions {
    display: grid;
  }

  .actions .button,
  .card-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 330px;
  }

  .content-section {
    padding-block: 60px;
  }

  .usage-card {
    padding: 23px 20px;
  }

  .audio-sample-card {
    padding: 22px 19px;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pipeline li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -20px;
    content: "↓";
    transform: translateX(50%);
  }

  .pipeline li:nth-child(2)::after {
    display: block;
  }
}

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