:root {
  --bg: #f6efe5;
  --bg-deep: #ead6bf;
  --surface: rgba(255, 249, 241, 0.84);
  --surface-strong: rgba(255, 252, 247, 0.96);
  --ink: #1d1815;
  --muted: #6e6258;
  --line: rgba(53, 34, 17, 0.12);
  --accent: #9f6f39;
  --accent-dark: #7f5224;
  --accent-soft: rgba(159, 111, 57, 0.12);
  --shadow: 0 26px 70px rgba(49, 32, 13, 0.12);
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 26rem),
    linear-gradient(140deg, #fbf7f1 0%, var(--bg) 52%, #f2e3d0 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

html:not(.portal-unlocked) body {
  overflow: hidden;
}

.background-grid,
.background-orb {
  position: fixed;
  pointer-events: none;
  inset: 0;
}

.background-grid {
  background-image:
    linear-gradient(rgba(97, 70, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 70, 42, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 82%);
}

.background-orb {
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.42;
  animation: drift 14s ease-in-out infinite;
}

.orb-one {
  top: -11rem;
  right: -9rem;
  background: radial-gradient(circle, rgba(244, 205, 157, 0.92), transparent 65%);
}

.orb-two {
  inset: auto auto -12rem -8rem;
  background: radial-gradient(circle, rgba(218, 179, 137, 0.74), transparent 62%);
  animation-delay: -6s;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

html:not(.portal-unlocked) .page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1rem;
}

html.portal-unlocked .lock-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-panel {
  width: min(100%, 34rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(74, 51, 27, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(249, 238, 225, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lock-copy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.lock-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.lock-feedback {
  margin: 0;
}

.topbar,
.hero,
.checkout-layout,
.info-grid {
  animation: rise 0.85s ease both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #b88449, #6c431d);
  color: #fffaf4;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 32px rgba(122, 77, 30, 0.28);
}

.eyebrow,
.section-tag,
.panel-kicker,
.summary-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

h2 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.96;
  max-width: 12ch;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h4 {
  font-size: 1.35rem;
}

p,
li,
small,
span,
em,
strong,
a,
button,
input {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.support-link,
.secondary-link {
  color: var(--ink);
  text-decoration: none;
}

.support-link {
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.support-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.4rem;
}

.hero-copy,
.hero-highlight,
.panel,
.info-card {
  border: 1px solid rgba(74, 51, 27, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(249, 238, 225, 0.78)),
    var(--surface);
}

.hero-text {
  max-width: 56ch;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.75;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-points article {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(125, 88, 42, 0.1);
}

.hero-points strong,
.highlight-row strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.hero-points span,
.highlight-row span,
.highlight-note,
.panel-header p,
.selection-header p,
.summary-panel p,
.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-highlight {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(53, 33, 11, 0.94), rgba(122, 79, 31, 0.9));
  color: #fff8f0;
}

.hero-highlight .panel-kicker,
.hero-highlight .highlight-row span,
.hero-highlight .highlight-note {
  color: rgba(255, 243, 228, 0.78);
}

.highlight-row {
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 252, 246, 0.08);
  border: 1px solid rgba(255, 250, 242, 0.12);
}

.highlight-row strong {
  font-size: 1.05rem;
  color: #fffdf9;
}

.highlight-note {
  margin: 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 240, 223, 0.16);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.panel {
  border-radius: var(--radius);
  background: var(--surface);
}

.form-panel {
  padding: 1.6rem;
}

.summary-panel {
  position: sticky;
  top: 1.25rem;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(247, 239, 229, 0.92)),
    var(--surface-strong);
}

.panel-header p {
  margin: 0.5rem 0 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.selection-header h4 {
  font-size: 0.98rem;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(73, 48, 22, 0.14);
  border-radius: 1rem;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus {
  outline: none;
  border-color: rgba(159, 111, 57, 0.75);
  box-shadow: 0 0 0 4px rgba(159, 111, 57, 0.14);
  transform: translateY(-1px);
}

.selection-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.4rem;
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid rgba(88, 61, 32, 0.08);
}

.selection-header p {
  margin: 0.2rem 0 0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.percentage-chip {
  border: 1px solid rgba(91, 62, 32, 0.12);
  background: rgba(255, 250, 245, 0.95);
  color: var(--ink);
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.percentage-chip:hover,
.method-card:hover .method-copy,
.primary-button:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.percentage-chip.is-active {
  color: #fffaf2;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 30px rgba(127, 82, 36, 0.24);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.method-card {
  display: block;
  cursor: pointer;
}

.method-copy {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(80, 54, 25, 0.1);
  background: rgba(255, 250, 244, 0.92);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.method-copy strong {
  font-size: 1rem;
}

.method-copy small,
.method-copy em {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

.method-card input:checked + .method-copy {
  border-color: rgba(159, 111, 57, 0.42);
  background: linear-gradient(155deg, rgba(255, 244, 229, 0.96), rgba(250, 236, 217, 0.94));
  box-shadow: 0 14px 28px rgba(126, 84, 40, 0.16);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.4rem;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.primary-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 1.4rem;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff9f1;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(127, 82, 36, 0.22);
}

.form-feedback {
  min-height: 1.6rem;
  margin: 0.85rem 0 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
}

.summary-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.summary-item,
.summary-card {
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(80, 54, 25, 0.08);
  background: rgba(255, 252, 246, 0.9);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.summary-item strong {
  font-size: 1.02rem;
}

.total-row {
  background: linear-gradient(135deg, rgba(255, 244, 229, 0.98), rgba(248, 233, 213, 0.98));
}

.summary-card {
  margin-top: 1rem;
}

.subtle-card {
  background: rgba(249, 241, 230, 0.82);
}

.summary-card p {
  margin: 0.45rem 0 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: 1.6rem;
  background: rgba(255, 251, 246, 0.8);
}

.info-card ol,
.info-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.secondary-link {
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(73, 48, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5rem, 1rem, 0) scale(1.05);
  }
}

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

@media (max-width: 1024px) {
  .hero,
  .checkout-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .hero-points,
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
  }

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

  .field-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    max-width: 10ch;
  }

  .form-panel,
  .summary-panel,
  .hero-copy,
  .hero-highlight,
  .info-card {
    padding: 1.2rem;
  }

  .chip-group {
    gap: 0.55rem;
  }

  .percentage-chip {
    flex: 1 1 30%;
  }
}
