:root {
  color-scheme: light;
  --paper: #f5f1ea;
  --paper-deep: #e9e1d5;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --ink: #282119;
  --ink-soft: #766b5d;
  --gold: #aa8751;
  --gold-deep: #77582f;
  --champagne: #dfc79f;
  --line: rgba(80, 64, 43, 0.14);
  --line-strong: rgba(119, 88, 47, 0.28);
  --dark: #29231c;
  --shadow: 0 20px 58px rgba(53, 41, 27, 0.1);
  --shadow-soft: 0 10px 34px rgba(53, 41, 27, 0.065);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 2%, rgba(194, 159, 104, 0.19), transparent 23rem),
    radial-gradient(circle at 96% 29%, rgba(255, 255, 255, 0.75), transparent 26rem),
    linear-gradient(155deg, #f9f6f1 0%, var(--paper) 48%, var(--paper-deep) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(116deg, transparent 0 49.6%, rgba(128, 105, 72, 0.04) 50%, transparent 50.4%),
    linear-gradient(26deg, transparent 0 49.6%, rgba(255, 255, 255, 0.3) 50%, transparent 50.4%);
  background-size: 180px 180px, 240px 240px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.home-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.home-hero {
  margin-bottom: 30px;
  padding: 38px clamp(25px, 7vw, 54px) 34px;
  border-radius: 32px;
  text-align: center;
}

.home-hero::before,
.detail-hero::before {
  position: absolute;
  border: 1px solid rgba(170, 135, 81, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-hero::before {
  width: 250px;
  height: 250px;
  top: -180px;
  right: -90px;
}

.detail-hero::before {
  width: 280px;
  height: 280px;
  top: -195px;
  right: -105px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 12px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
.display-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.home-hero h1 {
  font-size: clamp(2.75rem, 10vw, 4.7rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #675c4f;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.meta-chip svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

a.meta-chip,
.text-link {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a.meta-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 4px 14px;
}

.section-heading::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.protocol-list,
.access-list {
  display: grid;
  gap: 13px;
}

.protocol-card,
.access-card {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: rise 480ms both;
}

.protocol-card {
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  gap: 17px;
  min-height: 106px;
  padding: 17px 18px;
  border-radius: 24px;
}

.protocol-card:nth-child(2) { animation-delay: 45ms; }
.protocol-card:nth-child(3) { animation-delay: 90ms; }
.protocol-card:nth-child(4) { animation-delay: 135ms; }

.protocol-card:hover,
.access-card:hover {
  z-index: 1;
  border-color: rgba(170, 135, 81, 0.34);
  box-shadow: 0 17px 44px rgba(53, 41, 27, 0.12);
  transform: translateY(-2px);
}

.protocol-number {
  align-self: stretch;
  display: grid;
  min-height: 70px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.card-copy {
  min-width: 0;
}

.card-copy h2,
.card-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.23rem, 4.5vw, 1.52rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.card-copy p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.round-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.52);
  transition: transform 180ms ease;
}

.round-arrow svg {
  width: 16px;
  height: 16px;
}

.protocol-card:hover .round-arrow,
.access-card:hover .round-arrow {
  transform: translateX(2px);
}

.personalization-teaser {
  position: relative;
  margin: 27px 0;
  padding: 26px clamp(22px, 5vw, 34px);
  overflow: hidden;
  border: 1px solid #30291f;
  border-radius: 26px;
  color: #fffaf1;
  background:
    radial-gradient(circle at 86% 12%, rgba(225, 196, 145, 0.2), transparent 40%),
    var(--dark);
  box-shadow: 0 17px 43px rgba(41, 35, 28, 0.2);
}

.personalization-teaser .section-kicker {
  color: #ddc390;
}

.personalization-teaser h2 {
  max-width: 520px;
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.personalization-teaser p {
  max-width: 540px;
  margin: 13px 0 0;
  color: #d9cfc0;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #f1d8a8;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  color: #fff6e5;
  transform: translateX(2px);
}

.access-card {
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  gap: 15px;
  min-height: 84px;
  padding: 13px 15px;
  border-radius: 21px;
}

.access-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(170, 135, 81, 0.19);
  border-radius: 14px;
  color: var(--gold-deep);
  background: rgba(250, 247, 241, 0.88);
}

.access-icon svg {
  width: 21px;
  height: 21px;
}

.access-card .card-copy h3 {
  font-size: 1.13rem;
}

.access-card .card-copy p {
  margin-top: 3px;
  font-size: 0.81rem;
}

.access-card.primary {
  border-color: #30291f;
  color: #fffaf1;
  background: var(--dark);
}

.access-card.primary .card-copy p {
  color: #d6cbbb;
}

.access-card.primary .access-icon {
  color: #f0d5a3;
  border-color: rgba(239, 211, 160, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.access-card.primary .round-arrow {
  color: #29231c;
  border-color: #ead09d;
  background: #ead09d;
}

.logo-icon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #f1eadd 100%);
}

.logo-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -44%);
}

.quiet-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 22px;
  padding: 0 10px;
}

.quiet-links a {
  color: #6f6457;
  font-size: 0.79rem;
  font-weight: 650;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 29px 12px 0;
  color: #83786b;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

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

.back-link,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #62584c;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.brand-link {
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.97rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.back-link:hover,
.brand-link:hover {
  color: var(--ink);
}

.detail-hero {
  padding: 37px clamp(24px, 7vw, 54px) 35px;
  border-radius: 31px;
}

.protocol-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.protocol-code::before {
  width: 26px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.detail-hero h1 {
  max-width: 600px;
  font-size: clamp(2.7rem, 10vw, 4.85rem);
  line-height: 0.98;
}

.detail-lead {
  max-width: 600px;
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.7vw, 1.08rem);
  line-height: 1.68;
}

.detail-body {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.content-card,
.result-card,
.notice-card,
.technical-note,
.personalization-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.content-card,
.personalization-card {
  padding: 27px clamp(22px, 5vw, 34px);
}

.content-card h2,
.result-card h2,
.personalization-card h2,
.technical-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.included-list {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 27px;
  color: #4b4339;
  font-size: 0.96rem;
}

.included-list li::before {
  position: absolute;
  top: 0.18em;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(170, 135, 81, 0.35);
  border-radius: 50%;
  color: var(--gold-deep);
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.result-card {
  padding: 25px clamp(22px, 5vw, 34px);
  color: #fffaf1;
  border-color: #30291f;
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 193, 139, 0.2), transparent 43%),
    var(--dark);
}

.result-label {
  margin: 0 0 7px;
  color: #ddc390;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.result-card h2 {
  color: #fffaf1;
}

.result-card p:last-child {
  margin: 12px 0 0;
  color: #d8cdbd;
}

.notice-card,
.technical-note {
  padding: 22px clamp(21px, 5vw, 30px);
}

.notice-card {
  border-color: rgba(170, 135, 81, 0.25);
  background: rgba(239, 223, 194, 0.43);
}

.notice-card strong,
.technical-note strong {
  color: var(--gold-deep);
}

.notice-card p,
.technical-note p {
  margin: 0;
  color: #5f5548;
  font-size: 0.93rem;
}

.technical-note h2 {
  margin-bottom: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.mini-card {
  min-height: 100%;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mini-card h2 {
  margin: 0;
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.mini-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.quote-card {
  margin: 0;
  padding: 30px clamp(23px, 6vw, 38px);
  border-left: 3px solid var(--champagne);
  border-radius: 0 25px 25px 0;
  color: #fffaf1;
  background: var(--dark);
  box-shadow: 0 17px 43px rgba(41, 35, 28, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.cta-panel {
  margin-top: 17px;
  padding: 29px clamp(22px, 5vw, 36px);
  border: 1px solid rgba(170, 135, 81, 0.24);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.cta-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 11px auto 0;
  max-width: 500px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 21px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  color: #fffaf1;
  background: var(--dark);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  background: #1f1a15;
  box-shadow: 0 10px 24px rgba(41, 35, 28, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--gold-deep);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
}

.button.secondary:hover {
  background: #fff;
  box-shadow: none;
}

.button svg {
  width: 18px;
  height: 18px;
}

.subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.subnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: #5e5448;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
}

.subnav a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.legacy-link {
  margin: 16px 0 0;
  color: #776c5f;
  font-size: 0.78rem;
  text-align: center;
}

.legacy-link a {
  text-underline-offset: 4px;
}

.protocol-card:focus-visible,
.access-card:focus-visible,
.meta-chip:focus-visible,
.button:focus-visible,
.back-link:focus-visible,
.brand-link:focus-visible,
.text-link:focus-visible,
.subnav a:focus-visible,
.quiet-links a:focus-visible {
  outline: 3px solid rgba(170, 135, 81, 0.45);
  outline-offset: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 560px);
    padding-top: 15px;
  }

  .home-hero {
    margin-bottom: 26px;
    padding: 34px 20px 29px;
    border-radius: 27px;
  }

  .home-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero-copy {
    font-size: 0.94rem;
  }

  .brand-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .meta-chip {
    justify-content: center;
  }

  .protocol-card {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 12px;
    min-height: 99px;
    padding: 13px 12px;
    border-radius: 21px;
  }

  .protocol-number {
    min-height: 66px;
    font-size: 1.05rem;
  }

  .card-copy h2,
  .card-copy h3 {
    font-size: 1.14rem;
  }

  .card-copy p {
    font-size: 0.8rem;
  }

  .round-arrow {
    width: 34px;
    height: 34px;
  }

  .personalization-teaser {
    padding: 24px 21px;
    border-radius: 23px;
  }

  .access-card {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 12px;
  }

  .access-icon {
    width: 42px;
    height: 42px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .brand-link {
    max-width: 145px;
    text-align: right;
  }

  .detail-hero {
    padding: 32px 22px 30px;
    border-radius: 27px;
  }

  .detail-hero h1 {
    font-size: clamp(2.55rem, 13.5vw, 3.75rem);
  }

  .detail-body {
    gap: 12px;
    margin-top: 14px;
  }

  .content-card,
  .result-card,
  .personalization-card {
    border-radius: 22px;
  }

  .detail-grid,
  .subnav {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
