:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 252, 247, 0.82);
  --text: #1f1a14;
  --muted: #6d6256;
  --line: rgba(56, 39, 24, 0.12);
  --accent: #c95d2a;
  --accent-dark: #9c4217;
  --accent-soft: #ffe1d4;
  --green: #0d7a4f;
  --shadow: 0 24px 60px rgba(97, 57, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201, 93, 42, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(19, 100, 177, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, #f2eadb 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0 4px;
}

.brand-lockup,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-lockup strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  padding: 32px 0 24px;
}

.hero-copy,
.hero-panel,
.section-block,
.modal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  border-radius: 32px;
}

.hero-copy h1,
.section-heading h2,
.modal-content h3,
.product-card h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-copy p,
.product-description,
.step-card p,
.lookup-card p,
.modal-subtitle,
.service-note p,
.muted-tip {
  color: var(--muted);
  line-height: 1.6;
}

.hero-panel {
  border-radius: 32px;
  padding: 24px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 248, 236, 0.95)),
    var(--surface);
}

.metric-card,
.product-card,
.step-card,
.lookup-card,
.done-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 20px;
}

.metric-card strong,
.price-line strong,
.lookup-card strong,
.done-card p {
  display: block;
}

.eyebrow,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--accent);
  color: white;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
}

.full-width {
  width: 100%;
}

.section-block {
  margin-top: 28px;
  padding: 28px;
  border-radius: 32px;
}

.trust-strip,
.notice-band,
.feature-grid,
.faq-list,
.site-footer {
  display: grid;
  gap: 14px;
}

.trust-strip {
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip span,
.notice-card,
.feature-card,
.faq-item,
.site-footer > div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  padding: 16px 18px;
}

.trust-strip span {
  text-align: center;
  font-size: 0.92rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.notice-band {
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-card strong,
.feature-card strong,
.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

.notice-card p,
.feature-card p,
.site-footer p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.narrow-block {
  max-width: 860px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

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

.product-card {
  padding: 24px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.product-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.meta-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid rgba(201, 93, 42, 0.12);
}

.meta-row span {
  font-size: 0.82rem;
  color: var(--muted);
}

.meta-row strong {
  font-size: 0.95rem;
  line-height: 1.5;
}

.stock-row.low-stock {
  background: rgba(255, 243, 230, 0.95);
  border-color: rgba(201, 93, 42, 0.3);
}

.stock-row.sold-out {
  background: rgba(255, 238, 238, 0.95);
  border-color: rgba(180, 35, 24, 0.22);
}

.soldout-actions {
  display: grid;
  gap: 10px;
}

.soldout-note,
.stock-warning {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stock-warning {
  margin-top: 10px;
  font-weight: 700;
}

.product-head,
.price-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-head p,
.price-line span {
  margin: 6px 0 0;
  color: var(--muted);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #15273a;
  color: #eef6ff;
  font-size: 0.82rem;
}

.price-line {
  margin-top: 22px;
}

.price-line strong {
  font-size: 1.8rem;
}

.story-panel {
  background:
    linear-gradient(160deg, rgba(255, 239, 228, 0.74), rgba(238, 246, 255, 0.74)),
    var(--surface);
}

.usecase-panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.86), rgba(246, 239, 226, 0.96)),
    var(--surface);
}

.feature-panel {
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.85), rgba(251, 244, 236, 0.94)),
    var(--surface);
}

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

.feature-card {
  min-height: 160px;
}

.promise-panel {
  background:
    linear-gradient(180deg, rgba(255, 246, 234, 0.78), rgba(255, 255, 255, 0.86)),
    var(--surface);
}

.testpay-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.84), rgba(247, 243, 235, 0.94)),
    var(--surface);
}

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

.testpay-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 20px;
}

.testpay-card strong {
  display: block;
  margin-bottom: 8px;
}

.testpay-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.testpay-image {
  width: min(260px, 100%);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
}

.faq-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 237, 228, 0.94)),
    var(--surface);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
}

.step-card strong {
  font-size: 2rem;
  color: var(--accent);
}

.lookup-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 242, 232, 0.9)),
    var(--surface);
}

.lookup-form,
.purchase-form {
  display: grid;
  gap: 14px;
}

.lookup-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.purchase-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31, 26, 20, 0.14);
  background: white;
  min-height: 50px;
  padding: 0 16px;
  color: var(--text);
}

.lookup-results {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.lookup-card,
.order-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.lookup-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.feedback {
  color: var(--green);
}

.feedback.error {
  color: #b42318;
}

.muted-tip {
  margin: 4px 0 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.42);
  z-index: 30;
}

.modal-backdrop.show {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  border-radius: 32px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(247, 240, 229, 0.98)),
    white;
}

.modal-content {
  display: grid;
  gap: 16px;
}

.modal-content h3 {
  margin: 0;
  font-size: 1.7rem;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(31, 26, 20, 0.06);
  color: var(--text);
  font-size: 1.5rem;
}

.pay-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(201, 93, 42, 0.08);
}

.radio-chip input {
  width: auto;
  min-height: auto;
}

.service-note,
.qr-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.service-note.strong {
  background: rgba(255, 237, 224, 0.6);
}

.service-note.order-brief {
  margin-top: -2px;
}

.compact-note {
  margin-top: 18px;
}

.qr-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.qr-image {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: white;
}

.qr-instructions {
  display: grid;
  gap: 8px;
}

.done-card p {
  margin: 0 0 8px;
}

.site-footer {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .hero,
  .product-grid,
  .step-grid,
  .testpay-grid,
  .qr-panel,
  .lookup-card,
  .order-hero,
  .notice-band,
  .trust-strip,
  .feature-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lookup-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .section-block,
  .modal-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }
}
