:root {
  font-family: Inter, "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  color: #173f35;
  background: #faf8f1;
  font-synthesis: none;
  font-size: 17px;
  line-height: 1.65;
  --green: #173f35;
  --muted: #58675f;
  --line: #d8ddcf;
  --paper: #fffef9;
  --accent: #e4bd72;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b75e28;
  outline-offset: 4px;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
h3 {
  font-size: 1.1rem;
}
button,
.language select {
  min-height: 48px;
}
button {
  border-radius: 10px;
}
.site-header,
main,
footer {
  max-width: 1240px;
  margin: auto;
  padding-left: 48px;
  padding-right: 48px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 27px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.brand-light {
  font-weight: 400;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}
.sandbox-badge {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  background: #ecefe2;
  border-radius: 5px;
  padding: 6px 9px;
}
.language select {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.85rem;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 54px 0 36px;
}
.eyebrow,
.small-label {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow {
  margin-bottom: 18px;
}
h1 {
  white-space: pre-line;
  font-family: Georgia, "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.28;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}
.lede {
  white-space: pre-line;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}
.intro-note {
  display: flex;
  gap: 25px;
  align-items: center;
  transform: rotate(-4deg);
  margin-right: 30px;
}
.intro-note p {
  white-space: pre-line;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 0;
}
.soundwave {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 90px;
}
.soundwave i {
  width: 7px;
  height: 25px;
  border-radius: 10px;
  background: var(--accent);
}
.soundwave i:nth-child(2),
.soundwave i:nth-child(4) {
  height: 50px;
}
.soundwave i:nth-child(3) {
  height: 80px;
}
.steps {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 20px 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.steps li {
  color: var(--muted);
}
.steps b {
  font-size: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
}
.steps li.active {
  color: var(--green);
  font-weight: 700;
}
.steps li.active b {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 35px;
  align-items: start;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.small-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}
.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 26px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  background: #f0efe5;
  color: var(--green);
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 14px 16px 16px;
}
.product:hover {
  border-color: #91a28c;
  background: #e9eddf;
}
.product img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  margin-bottom: 8px;
}
.product strong {
  font-size: 0.95rem;
}
.product .price {
  font-size: 0.8rem;
  color: var(--muted);
}
.product .add {
  position: absolute;
  right: 12px;
  bottom: 17px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1.15rem;
}
.conversation {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
}
.assistant-label {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #66834d;
  border-radius: 50%;
}
.reply {
  font-size: 1.3rem;
  line-height: 1.65;
  letter-spacing: -0.025em;
  margin-top: 15px;
  margin-bottom: 20px;
  min-height: 70px;
  white-space: pre-line;
}
.transcript {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  overflow-wrap: anywhere;
}
.voice-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mic-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  font-weight: 650;
}
.mic-button svg {
  width: 22px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.mic-button[aria-pressed="true"] {
  background: #9b422c;
}
.quiet-button {
  background: transparent;
  color: var(--green);
  padding: 8px 10px;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.help {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0;
}
.help:empty {
  display: none;
}
form {
  margin-top: 24px;
}
form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #a3b1a0;
  background: #fff;
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 0.9rem;
  color: var(--green);
}
.send-button {
  padding: 10px 18px;
  background: #e8ecd9;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}
.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.7rem;
  color: var(--muted);
}
.examples button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  min-height: 36px;
  font-size: 0.7rem;
  color: var(--muted);
}
.enhancements {
  padding: 17px 0;
  font-size: 0.8rem;
}
.enhancements p {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  min-height: 40px;
  align-content: center;
}
details[open] > summary {
  margin-bottom: 8px;
}
.secondary-button {
  border: 1px solid var(--line);
  background: #f0f2e6;
  color: var(--green);
  padding: 8px 15px;
  font-size: 0.82rem;
}
.cart-panel {
  background: #edf0e2;
  border: 1px solid #dce2cf;
  border-radius: 16px;
  padding: 25px;
  position: sticky;
  top: 20px;
}
.cart-count {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dce5ce;
  font-size: 0.8rem;
  font-weight: 700;
}
.fulfillment {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 13px 0 22px;
}
.cart-items {
  min-height: 115px;
  border-bottom: 1px solid #ced6c1;
}
.empty-cart {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 12px;
  max-width: 230px;
}
.cart-item {
  margin-bottom: 20px;
}
.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  font-size: 0.82rem;
}
.cart-item-actions button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid #bac7af;
  border-radius: 7px;
  background: #f8faf0;
  color: var(--green);
  font-size: 1.2rem;
}
.cart-item-actions .remove {
  margin-left: auto;
  background: transparent;
  border: 0;
  width: auto;
  font-size: 0.7rem;
  text-decoration: underline;
}
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.total-row > span {
  font-size: 0.9rem;
}
.total-row strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.confirm-copy {
  font-size: 0.85rem;
  margin: 25px 0 12px;
}
.primary-button {
  background: var(--green);
  color: white;
  display: block;
  width: 100%;
  padding: 14px 12px;
  font-weight: 650;
  font-size: 0.9rem;
}
.full {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.sandbox-note {
  display: flex;
  gap: 12px;
  border-top: 1px solid #ced6c1;
  padding-top: 20px;
  margin-top: 20px;
}
.sandbox-note span {
  font-size: 1.5rem;
  line-height: 1;
}
.sandbox-note p {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}
#payment {
  margin-top: 25px;
}
#payment h3 {
  margin-bottom: 8px;
}
#paypal-buttons {
  margin: 15px 0;
}
.payment-status {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.receipt {
  padding-top: 24px;
}
.receipt-check {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.receipt h3 {
  margin-bottom: 12px;
}
.receipt p {
  font-size: 0.85rem;
}
.receipt dl {
  font-size: 0.7rem;
}
.receipt dt {
  color: var(--muted);
}
.receipt dd {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  font-family: monospace;
}
.agent-details {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 16px 0;
  font-size: 0.8rem;
}
.agent-details p {
  color: var(--muted);
}
.tool-log {
  font-family: monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
  padding-left: 25px;
}
.tool-log li {
  padding: 4px;
}
footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  padding-bottom: 30px;
  font-size: 0.7rem;
  color: var(--muted);
}
footer div {
  display: flex;
  gap: 20px;
}
footer p {
  flex-basis: 100%;
  font-size: 0.65rem;
  max-width: 850px;
  margin: 0;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  top: 10px;
  left: 20px;
  background: #fff;
  padding: 10px;
  z-index: 20;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .site-header,
  main,
  footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
  }
  .small-label {
    display: none;
  }
  .intro-note {
    margin-right: 0;
  }
  .cart-panel {
    padding: 20px;
  }
  .conversation {
    padding: 20px;
  }
  .product {
    padding: 10px;
  }
  .product .add {
    right: 8px;
    bottom: 14px;
  }
}
@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    padding-top: 18px;
    gap: 10px;
  }
  .brand {
    font-size: 1.1rem;
    gap: 7px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .header-tools {
    gap: 8px;
  }
  .sandbox-badge {
    font-size: 0.5rem;
    max-width: 96px;
    line-height: 1.4;
    padding: 5px 7px;
  }
  .language select {
    padding: 0 5px;
    font-size: 0.75rem;
  }
  .intro {
    padding: 34px 0 28px;
  }
  .intro-note {
    display: none;
  }
  h1 {
    font-size: 2.5rem;
  }
  .steps {
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.7rem;
    padding: 15px 0;
  }
  .steps b {
    width: 24px;
    height: 24px;
    margin-right: 3px;
    font-size: 0.6rem;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: static;
  }
  .menu {
    gap: 8px;
  }
  .product img {
    height: 75px;
  }
  .product strong {
    font-size: 0.8rem;
  }
  .product .price {
    font-size: 0.75rem;
  }
  .product .add {
    width: 22px;
    height: 22px;
    bottom: 12px;
    right: 6px;
  }
  .reply {
    font-size: 1.15rem;
  }
  .quiet-button {
    font-size: 0.75rem;
  }
  .input-row input {
    font-size: 0.8rem;
  }
  .send-button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  footer {
    margin-top: 20px;
  }
  .cart-items {
    min-height: 70px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
  .mic-button[aria-pressed="true"] .status-dot {
    animation: pulse 1s infinite;
  }
  @keyframes pulse {
    50% {
      opacity: 0.4;
    }
  }
}
