:root {
  --ink: #15130f;
  --coal: #211d18;
  --copper: #b76d3d;
  --amber: #d7a956;
  --moss: #5f7a55;
  --jade: #8eb39a;
  --paper: #f3eee4;
  --muted: #bfb3a3;
  --line: rgba(243, 238, 228, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(21, 19, 15, 0.55), rgba(21, 19, 15, 0.96) 620px),
    radial-gradient(circle at 24% 10%, rgba(215, 169, 86, 0.16), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(142, 179, 154, 0.18), transparent 28%),
    var(--ink);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(21, 19, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-inner,
.section,
.footer-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.brand-name {
  line-height: 1;
  white-space: nowrap;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.links a,
.ghost-button,
.solid-button,
.small-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.links a {
  padding: 0 11px;
  color: var(--muted);
}

.links a:hover,
.links a.active {
  color: var(--paper);
  background: rgba(243, 238, 228, 0.08);
}

.solid-button,
.ghost-button,
.small-button {
  border: 1px solid rgba(215, 169, 86, 0.34);
  cursor: pointer;
}

.solid-button {
  padding: 0 18px;
  color: #16120d;
  background: linear-gradient(135deg, #edc772, var(--copper));
  font-weight: 700;
}

.ghost-button {
  padding: 0 18px;
  color: var(--paper);
  background: rgba(243, 238, 228, 0.05);
}

.small-button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--paper);
  background: rgba(95, 122, 85, 0.28);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 19, 15, 0.94) 0%, rgba(21, 19, 15, 0.68) 48%, rgba(21, 19, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(21, 19, 15, 0.04), var(--ink)),
    url("assets/inner-alchemy-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--jade);
}

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

h1 {
  max-width: 900px;
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 760px;
  margin: 28px 0 0;
  color: #e3d8ca;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.section {
  padding: 84px 0;
}

.section.compact {
  padding: 54px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.section-head p,
.lead,
.muted {
  color: var(--muted);
}

.section-head p,
.lead {
  font-size: 19px;
}

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

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

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

.card,
.panel,
.product,
.cabinet-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 238, 228, 0.055);
  box-shadow: var(--shadow);
}

.card,
.product,
.cabinet-panel {
  padding: 24px;
}

.card h3,
.product h3,
.cabinet-panel h3 {
  font-size: 28px;
  line-height: 1.05;
}

.card p,
.product p,
.cabinet-panel p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card p,
.panel p,
.product p,
.cabinet-panel p,
.card li,
.panel li,
.product li,
.cabinet-panel li {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.card .lead,
.panel .lead,
.product .lead,
.cabinet-panel .lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(215, 169, 86, 0.5);
  color: var(--amber);
  font-weight: 700;
}

.band {
  background: linear-gradient(135deg, rgba(95, 122, 85, 0.24), rgba(183, 109, 61, 0.2));
  border-block: 1px solid var(--line);
}

.section.band {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
  padding-left: max(18px, calc((100% - 1160px) / 2));
  padding-right: max(18px, calc((100% - 1160px) / 2));
}

.page-title {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 104px max(18px, calc((100% - 1160px) / 2)) 72px;
  overflow: hidden;
  background:
    var(--page-side-shade, linear-gradient(90deg, rgba(21, 19, 15, 0.94) 0%, rgba(21, 19, 15, 0.78) 48%, rgba(21, 19, 15, 0.28) 100%)),
    var(--page-bottom-shade, linear-gradient(180deg, rgba(21, 19, 15, 0.22), var(--ink))),
    var(--page-image, url("assets/inner-alchemy-hero.png")) var(--page-position, center) / var(--page-size, cover) no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-title .lead {
  max-width: 780px;
}

.page-title h1,
.page-title .lead,
.page-title .eyebrow,
.page-title .action-row {
  position: relative;
  z-index: 1;
}

.page-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 46%, rgba(215, 169, 86, 0.16), transparent 30%);
  pointer-events: none;
}

.method-title {
  min-height: 560px;
}

.product {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.product .price {
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  color: var(--amber);
}

.product ul,
.plain-list {
  padding-left: 18px;
  color: #dfd4c5;
}

.product li,
.plain-list li {
  margin: 9px 0;
}

.product .action-row {
  margin-top: auto;
}

.wide-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.section-head + .wide-split,
.section-head + .grid {
  margin-top: 28px;
}

.wide-split + .grid,
.grid + .wide-split {
  margin-top: 44px;
}

.panel {
  padding: 30px;
}

.about-stack {
  display: grid;
  gap: 18px;
}

.founder-panel {
  overflow: hidden;
  padding: 0;
}

.founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
}

.founder-copy {
  padding: 30px;
}

.ritual {
  display: grid;
  gap: 12px;
}

.ritual-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.ritual-step:last-child {
  border-bottom: 0;
}

.ritual-step strong {
  color: var(--paper);
}

.footer {
  border-top: 1px solid var(--line);
  background: #100f0c;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-brand,
.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--paper);
}

.legal-page .panel {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 30px;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 19, 15, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cookie-banner h3 {
  margin: 0 0 6px;
  font-size: 25px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions,
.cookie-settings {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-settings {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cookie-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.cookie-check input {
  width: auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 22px;
  align-items: start;
}

.auth-layout-centered {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
  max-width: 620px;
  margin: 0 auto;
}

.auth-note {
  margin: 18px 0 0;
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--paper);
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(215, 169, 86, 0.55);
  cursor: pointer;
}

.auth-side {
  min-height: 100%;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkbox-field input {
  width: auto;
  margin-top: 5px;
}

.checkbox-field a {
  color: var(--paper);
  text-decoration-color: rgba(215, 169, 86, 0.55);
}

.message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(142, 179, 154, 0.42);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(142, 179, 154, 0.12);
}

.message.error {
  border-color: rgba(191, 96, 72, 0.52);
  background: rgba(191, 96, 72, 0.13);
}

.message.info {
  border-color: rgba(215, 169, 86, 0.48);
  background: rgba(215, 169, 86, 0.11);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(215, 169, 86, 0.12), transparent 38%),
    rgba(10, 9, 7, 0.78);
  backdrop-filter: blur(12px);
}

.modal.hidden {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
}

.modal-panel.cabinet-panel {
  padding: 20px 24px;
}

.modal-panel h3 {
  font-size: 25px;
  margin-bottom: 16px;
}

.modal-panel .field {
  margin-bottom: 12px;
}

.modal-panel input,
.modal-panel textarea,
.modal-panel select {
  padding: 10px 12px;
}

.modal-panel .message {
  padding: 11px 13px;
  margin-bottom: 12px;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 10px;
}

.modal-panel-small {
  width: min(520px, 100%);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(243, 238, 228, 0.06);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.account-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 19, 15, 0.5);
}

.account-bar div {
  display: grid;
  gap: 4px;
}

.account-bar strong {
  color: var(--paper);
  font-size: 22px;
}

.account-bar span:last-child {
  color: var(--muted);
}

.access-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(215, 169, 86, 0.45);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(215, 169, 86, 0.1);
  font-size: 14px;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: start;
}

.cabinet-layout > div,
.cabinet-panel {
  min-width: 0;
}

.cabinet-menu {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.cabinet-menu button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(243, 238, 228, 0.045);
  text-align: left;
  cursor: pointer;
}

.cabinet-menu button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cabinet-menu button.active,
.cabinet-menu button:hover {
  color: var(--paper);
  border-color: rgba(215, 169, 86, 0.42);
}

.cabinet-view {
  display: none;
}

.cabinet-view.active {
  display: block;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 238, 228, 0.1);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--amber));
}

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

.practice-item,
.purchase-item,
.journal-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 19, 15, 0.34);
}

.practice-item.done {
  border-color: rgba(142, 179, 154, 0.56);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(243, 238, 228, 0.04);
}

.day.done {
  color: #15130f;
  background: var(--jade);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label {
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--paper);
  background: rgba(243, 238, 228, 0.06);
  font: inherit;
}

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

.metric {
  display: grid;
  grid-template-columns: 130px 1fr 38px;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

input[type="range"] {
  padding: 0;
}

.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  background: rgba(215, 169, 86, 0.1);
  color: #eadfce;
  overflow-wrap: anywhere;
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .links {
    justify-content: flex-start;
  }

  .grid,
  .grid.two,
  .grid.four,
  .wide-split,
  .auth-layout,
  .auth-layout-centered,
  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .cabinet-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .footer-inner,
  .hero-content {
    width: min(1160px, calc(100% - 24px));
  }

  .section {
    width: min(1160px, calc(100% - 24px));
  }

  .section.band {
    width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-title {
    width: 100%;
    padding: 76px 12px 54px;
  }

  .method-title {
    min-height: 540px;
  }

  .hero {
    min-height: 760px;
  }

  .links a {
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
  }

  .links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .links a {
    justify-content: flex-start;
    white-space: normal;
  }

  h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .cabinet-menu {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .phone-row,
  .practice-item,
  .purchase-item,
  .journal-entry,
  .metric {
    grid-template-columns: 1fr;
  }

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

  .solid-button,
  .ghost-button,
  .small-button {
    width: 100%;
  }

  .cabinet-panel h3,
  .card h3,
  .product h3 {
    font-size: 25px;
  }

  .calendar {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .cookie-banner {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
