:root {
  --navy: #10243e;
  --navy-2: #18365d;
  --ink: #1d2733;
  --muted: #5f6b78;
  --paper: #f8f4ec;
  --paper-2: #fffdf8;
  --gold: #c5a253;
  --gold-dark: #94742f;
  --line: #ddd3bf;
  --green: #176b4a;
  --red: #9d2c2c;
  --shadow: 0 18px 50px rgba(16, 36, 62, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--navy-2); }
a:hover { color: var(--gold-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 244, 236, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { background: #eee4cf; }

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button.button:hover { background: var(--navy-2); color: #fff; }

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.button.secondary:hover { background: #eee4cf; color: var(--navy); }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(197, 162, 83, 0.28), transparent 30%),
    linear-gradient(135deg, #0d1f36 0%, #18365d 58%, #24476f 100%);
  color: #fff;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 84px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em { color: #ecd28c; font-style: normal; }

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e7edf5;
  font-size: 1.14rem;
}

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

.hero .button { border-color: #fff; }
.hero .button.secondary { color: #fff; border-color: rgba(255,255,255,0.65); }
.hero .button.secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.hero-points div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
}

.hero-points strong { display: block; font-size: 1.05rem; }
.hero-points span { color: #cfdae7; font-size: 0.88rem; }

.specimen-wrap { position: relative; }

.specimen {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #cdbd8f;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.specimen::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.specimen-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.specimen-head img { width: 86px; height: 86px; object-fit: contain; }
.specimen-head p { margin: 0; color: var(--gold-dark); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.specimen-head h2 { margin: 2px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.1; }

.specimen dl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin: 22px 0;
}

.specimen dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.specimen dd { margin: 2px 0 0; font-weight: 700; }

.specimen-note {
  position: relative;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #f4ecd9;
  font-size: 0.92rem;
}

.sample-stamp {
  position: absolute;
  top: 44%;
  left: 50%;
  z-index: 2;
  padding: 4px 18px;
  border: 4px solid rgba(157, 44, 44, 0.68);
  border-radius: 6px;
  color: rgba(157, 44, 44, 0.72);
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}

.sample-caption { margin-top: 14px; color: #e7edf5; font-size: 0.9rem; text-align: center; }

.section { padding: 76px 0; }
.section.alt { background: #fffaf0; }
.section.navy { background: var(--navy); color: #fff; }
.section.navy .section-lede { color: #d5deea; }
.section.navy .card { background: #fff; }

.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-heading h2,
.page-hero h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section.navy .section-heading h2 { color: #fff; }
.section-lede { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 8px 28px rgba(16, 36, 62, 0.05);
}

.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 10px; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }

.step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
}

.track-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eee4cf;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  display: block;
  margin: 12px 0 4px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.notice {
  padding: 18px 20px;
  border: 1px solid #d8c68f;
  border-radius: 14px;
  background: #fff4d6;
}

.notice strong { color: var(--navy); }

.terms-list { columns: 2; column-gap: 42px; }
.terms-list div { break-inside: avoid; margin-bottom: 22px; }
.terms-list h3 { margin: 0 0 7px; color: var(--navy); }
.terms-list p { margin: 0; color: var(--muted); }

.sample-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.sample-frame {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sample-frame iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

summary {
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.page-hero {
  padding: 62px 0 48px;
  background: linear-gradient(135deg, #f8f4ec, #eee4cf);
  border-bottom: 1px solid var(--line);
}

.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.06rem; }

.form-shell {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

fieldset {
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

legend {
  padding: 0 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; color: var(--navy); font-size: 0.92rem; font-weight: 720; }
label small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #bfc7cf;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] { width: auto; margin: 0 8px 0 0; padding: 0; }
input[type="file"] { padding: 9px; }

textarea { min-height: 104px; resize: vertical; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.choice span { color: var(--muted); font-weight: 550; }
.choice strong { display: block; color: var(--navy); }

.check-list { display: grid; gap: 12px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-weight: 550; }
.check-item input { margin-top: 5px; }
.check-item strong { color: var(--navy); }

.hidden { display: none !important; }

.result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 14px;
}
.result.success { border: 1px solid #9bc7ae; background: #eaf6ef; }
.result.error { border: 1px solid #dfa3a3; background: #fff0f0; }
.result h2, .result h3 { margin-top: 0; color: var(--navy); }

.verify-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.certificate-result dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.certificate-result dt { color: var(--muted); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.certificate-result dd { margin: 3px 0 0; font-weight: 750; }

.status-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dff3e8;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer {
  padding: 42px 0;
  background: var(--navy);
  color: #d5deea;
}

.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #fff; }

@media (max-width: 900px) {
  .hero-inner,
  .sample-layout { grid-template-columns: 1fr; }
  .grid.three,
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-points { grid-template-columns: 1fr; }
  .terms-list { columns: 1; }
}

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .choice-grid,
  .choice-grid.two,
  .certificate-result dl,
  .specimen dl { grid-template-columns: 1fr; }
  .form-shell, fieldset { padding: 18px; }
  .hero-inner { padding: 52px 0 60px; }
  .sample-frame iframe { height: 480px; }
  .footer-inner { flex-direction: column; }
}
