:root {
  --teal: #0f5b52;
  --teal-dark: #0a423c;
  --saffron: #e8820c;
  --ink: #1f2a2e;
  --muted: #5c6b70;
  --bg: #faf6ef;
  --card: #ffffff;
  --line: #e5ddd0;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 640px; }

a { color: var(--teal); }

/* header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-size: 1.3rem; font-weight: 700; color: var(--teal-dark); }
.site-nav a { margin-left: 18px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--saffron); }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; background: linear-gradient(180deg, #fdf9f1 0%, var(--bg) 100%); }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--saffron); font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 16px; color: var(--teal-dark); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--teal); font-weight: 600; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  font-size: 1rem;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: rgba(15, 91, 82, 0.08); }

/* sections */
.section { padding: 56px 0; }
.section-alt { background: #f3ede1; }
.section h2, .section h1 { color: var(--teal-dark); }
.section h1 { font-size: 2rem; }
.section h2 { font-size: 1.6rem; margin-bottom: 24px; }

/* cards */
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; color: var(--teal-dark); }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}
.muted-card { margin-top: 28px; background: #f8f4ea; }

/* form */
.ask-form label { display: block; font-weight: 600; margin: 18px 0 6px; }
.ask-form textarea, .ask-form input[type="text"], .ask-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
.ask-form textarea:focus, .ask-form input:focus, .ask-form select:focus {
  outline: 2px solid var(--teal); outline-offset: 1px;
}
.req { color: #c0392b; }
.opt { color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 6px; }
.ask-form button[type="submit"] { margin-top: 22px; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ticket */
.ticket-result {
  margin-top: 28px; background: #eef7f2; border: 1px solid #bfe3d2;
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.ticket-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem;
  font-weight: 700; letter-spacing: 0.08em; color: var(--teal-dark);
  background: #fff; border: 1px dashed var(--teal); border-radius: 10px;
  display: inline-block; padding: 10px 22px; margin: 8px 0 12px;
}

/* archive */
.archive-note { color: var(--muted); max-width: 640px; }
.qa-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 22px 0;
}
.qa-card h2 { font-size: 1.25rem; margin: 6px 0 10px; color: var(--ink); }
.qa-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--saffron); border: 1px solid var(--saffron);
  border-radius: 999px; padding: 2px 10px;
}
.qa-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0; }
.archive-cta { text-align: center; margin: 40px 0 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.92rem;
}
.footer-inner nav a { margin-left: 16px; text-decoration: none; }

@media (max-width: 760px) {
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .site-nav a { margin-left: 12px; font-size: 0.95rem; }
}

.error-result { background: #fbf0ec; border-color: #ecc9b8; }
.preview-strip {
  background: var(--saffron); color: #fff; text-align: center;
  font-weight: 600; font-size: 0.9rem; padding: 8px 16px;
}
