* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  color: #210d13;
  background: #faede6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-image: 
    radial-gradient(ellipse at 50% 0%, #fff7f2 0%, #faebe4 45%, #f4dcd3 100%),
    linear-gradient(135deg, #f7e0d7, #faede7 50%, #f1d5cc);
  min-height: 100vh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a85161;
  outline-offset: 4px;
}
svg {
  display: block;
  width: 28px;
  height: 28px;
}
.page {
  max-width: 1450px;
  margin: 20px auto;
  padding: 0 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  background: #f9e4dc url("assets/silk-background.webp") center top / cover no-repeat;
  box-shadow: 0 16px 50px rgba(175, 110, 100, 0.1);
}
header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #945821;
  text-decoration: none;
  font: 700 32px Georgia, serif;
  letter-spacing: 5px;
}
.brand img {
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(160, 90, 70, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.hero {
  position: relative;
  min-height: 525px;
  display: flex;
  align-items: flex-start;
}
.hero-art {
  position: absolute;
  right: -104px;
  top: -72px;
  width: 58%;
  height: 700px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 78%, transparent 100%);
}
.hero-art-inner {
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to right, transparent 0%, transparent 3%, rgba(0, 0, 0, 0.4) 10%, #000 22%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 3%, rgba(0, 0, 0, 0.4) 10%, #000 22%, #000 100%);
}
.hero-art-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% top;
}
@media (min-width: 961px) {
  h1 br:first-of-type {
    display: none;
  }
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 48%;
  padding: 18px 0 24px 10px;
}
h1 {
  font: 700 clamp(44px, 4.4vw, 68px) / 1.04 Georgia, serif;
  letter-spacing: -2px;
  margin: 0 0 10px;
  color: #210d13;
}
h1 span {
  color: #bf5364;
}
.ornament {
  display: flex;
  align-items: center;
  color: #d19a58;
  font-size: 28px;
  height: 28px;
  margin-bottom: 6px;
}
.ornament i {
  height: 1px;
  width: 140px;
  background: linear-gradient(90deg, #d19a58, transparent);
  margin-left: 6px;
}
.intro {
  max-width: 480px;
  font-size: 20px;
  line-height: 1.45;
  color: #554a52;
  margin: 12px 0 24px;
}
.intro strong {
  display: block;
  margin-bottom: 2px;
  color: #9e4151;
  font-family: Georgia, serif;
}
.actions {
  display: grid;
  gap: 12px;
  max-width: 540px;
}
.offer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 2px;
  padding: 0 2px;
  color: #a33f52;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.offer svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #b5485b;
}
.cta {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.cta svg {
  width: 26px;
  height: 26px;
}
.cta > span {
  font-size: 26px;
}
.telegram {
  background: linear-gradient(135deg, #f3cf9f 0%, #e2b378 50%, #d49c5e 100%);
  border: 1px solid #ffe9ca;
  color: #382010;
  box-shadow: 0 8px 24px rgba(200, 140, 80, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.max {
  background: linear-gradient(135deg, rgba(255, 240, 240, 0.95) 0%, rgba(246, 220, 220, 0.9) 100%);
  border: 1px solid rgba(235, 185, 185, 0.7);
  color: #421c24;
  box-shadow: 0 6px 20px rgba(180, 90, 100, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.max > span {
  color: #b44e60;
}
.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 10px 28px rgba(180, 110, 80, 0.32);
}
.trust {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  color: #6a525c;
  font-size: 14px;
  font-weight: 500;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.trust li + li {
  border-left: 1px solid rgba(220, 175, 175, 0.6);
  padding-left: 14px;
}
.trust svg {
  width: 22px;
  height: 22px;
  color: #ba4e60;
}
.sections {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}
.bottom-actions {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  max-width: 540px;
  margin: 20px auto 0;
}
.bottom-actions[hidden] {
  display: none;
}
.panel {
  background: rgba(255, 252, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(170, 100, 90, 0.08);
}
.panel h2 {
  font: 700 clamp(28px, 2.8vw, 38px) / 1.15 Georgia, serif;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  letter-spacing: -0.8px;
  color: #210d13;
}
.star {
  color: #d19a58;
  font-size: 26px;
  font-weight: normal;
}
.questions {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.questions li {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid rgba(248, 222, 218, 0.9);
  background: rgba(253, 242, 239, 0.8);
  border-radius: 22px;
  padding: 8px 18px 8px 10px;
  min-height: 58px;
  color: #2d151e;
  font-size: 17px;
  font-weight: 500;
  cursor: default;
  user-select: none;
}
.questions .icon {
  background: #fcdfdc;
  color: #b5485b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.questions .icon svg {
  width: 24px;
  height: 24px;
}
@media (min-width: 961px) {
  .questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .questions li {
    min-height: 68px;
    gap: 10px;
    padding: 8px 10px;
    font-size: 15px;
  }
  .questions .icon {
    width: 38px;
    height: 38px;
  }
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  border: 1px solid rgba(246, 222, 218, 0.85);
  background: linear-gradient(180deg, rgba(255, 250, 248, 0.85) 0%, rgba(252, 241, 237, 0.75) 100%);
  border-radius: 20px;
  padding: 16px 12px;
  min-width: 0;
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b5485b;
  height: 42px;
}
.step-top svg {
  width: 26px;
  height: 26px;
}
.number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fbdeda;
  color: #b5485b;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
}
.steps h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 14px 0 8px;
  color: #210d13;
}
.steps p {
  font-size: 14px;
  line-height: 1.4;
  color: #63575e;
  margin: 0;
}
dialog {
  border: 1px solid #edc7c1;
  border-radius: 24px;
  background: #fff9f5;
  color: #301720;
  padding: 32px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 80px rgba(68, 36, 48, 0.25);
}
dialog::backdrop {
  background: rgba(50, 29, 37, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
dialog h2 {
  font: 700 28px Georgia, serif;
  margin-top: 0;
}
dialog p {
  line-height: 1.6;
  color: #605965;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #a34d5c;
  cursor: pointer;
}
.dialog-ok {
  border: 0;
  background: #edc78f;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.selected {
  outline: 2px solid #c97a84;
}

/* Tablet & Responsive */
@media (max-width: 960px) {
  .sections {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bottom-actions {
    gap: 10px;
  }
}
@media (min-width: 601px) and (max-width: 960px) {
  .bottom-actions {
    max-width: 320px;
  }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .hero-copy {
    width: 50%;
    padding-left: 0;
  }
  h1 {
    font-size: 50px;
  }
  .hero-art {
    width: 62%;
    right: calc(96px - 17.3vw);
    height: 610px;
    top: -58px;
  }
  .hero-art-inner img {
    object-position: 25% top;
  }
}
@media (max-width: 960px) and (min-width: 601px) {
  .page {
    margin: 12px;
    padding: 0 20px 24px;
  }
  .hero {
    min-height: 480px;
  }
  .hero-copy {
    width: 49%;
    max-width: 350px;
    padding-left: 0;
  }
  h1 {
    font-size: 40px;
    letter-spacing: -1.2px;
  }
  .intro {
    font-size: 15px;
    line-height: 1.4;
    max-width: 300px;
    margin: 10px 0 20px;
  }
  .actions {
    max-width: 320px;
    gap: 10px;
  }
  .offer {
    font-size: 14px;
  }
  .offer svg {
    width: 19px;
    height: 19px;
  }
  .cta {
    font-size: 14px;
    min-height: 54px;
    padding: 10px 16px;
    gap: 8px;
    white-space: nowrap;
  }
  .cta > span {
    font-size: 20px;
  }
  .trust {
    font-size: 12px;
    gap: 8px;
  }
  .trust li + li {
    padding-left: 8px;
  }
  .hero-art {
    width: 62%;
    right: calc(128px - 18vw);
    height: clamp(505px, 67vw, 575px);
    top: -55px;
  }
  .hero-art-inner {
    mask-image: linear-gradient(to right, transparent 0%, transparent 2%, rgba(0, 0, 0, 0.3) 6%, #000 16%, #000 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 2%, rgba(0, 0, 0, 0.3) 6%, #000 16%, #000 100%);
  }
  .hero-art-inner img {
    object-position: 10% top;
  }
}
@media (max-width: 710px) and (min-width: 601px) {
  .hero-art-inner {
    mask-image: linear-gradient(to right, transparent 0%, transparent 2%, rgba(0, 0, 0, 0.3) 6%, #000 16%, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 2%, rgba(0, 0, 0, 0.3) 6%, #000 16%, #000 78%, transparent 100%);
  }
}

/* MOBILE REFINEMENT MATCHING EXACT REFERENCE */
@media (max-width: 600px) {
  body {
    background: #faede6 url("assets/silk-background.webp") center top / auto 100% no-repeat;
  }
  .page {
    max-width: 440px;
    margin: 8px auto;
    padding: 0 14px 20px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 250, 246, 0.2);
    box-shadow: 0 12px 40px rgba(175, 105, 95, 0.12);
  }
  header {
    height: 76px;
  }
  .brand {
    font-size: 24px;
    letter-spacing: 3.5px;
    gap: 10px;
  }
  .brand img {
    width: 50px;
    height: 50px;
  }
  .hero {
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding-top: 6px;
  }
  
  /* Seamless full-bleed artwork across entire card: 100% width, zero edge cuts, Pythia on right, silk on left */
  .hero-art {
    position: absolute;
    top: -56px;
    left: clamp(-60px, calc(68vw - 279px), 22px);
    right: 0;
    width: 100%;
    height: 606px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 70%, transparent 100%);
    opacity: 0.98;
  }
  .hero-art::before {
    display: none;
  }
  .hero-art-inner {
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 28%, rgba(0, 0, 0, 0.85) 52%, #000 66%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 28%, rgba(0, 0, 0, 0.85) 52%, #000 66%);
  }
  .hero-art-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 2% top;
  }
  
  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
  }
  h1 {
    font-size: clamp(34px, 9.2vw, 42px);
    max-width: 50%;
    line-height: 1.05;
    letter-spacing: -1.4px;
    text-shadow: 0 1px 12px rgba(255, 250, 246, 0.98), 0 0 20px #ffffff;
  }
  h1 br {
    display: inline;
  }
  .ornament {
    margin: 4px 0 8px;
    font-size: 24px;
  }
  .ornament i {
    width: 90px;
  }
  .intro {
    font-size: 13px;
    line-height: 1.4;
    width: 48%;
    max-width: 172px;
    color: #2e1720;
    font-weight: 500;
    margin: 6px 0 0;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.98), 0 0 14px rgba(255, 250, 246, 0.95);
  }
  
  /* Buttons placed cleanly below the tarot cards and Pythia's hands with breathing room */
  .actions {
    position: relative;
    margin-top: 155px;
    gap: 10px;
  }
  .offer {
    order: 3;
    font-size: 14px;
  }
  .offer svg {
    width: 19px;
    height: 19px;
  }
  .cta {
    font-size: 15px;
    min-height: 54px;
    padding: 10px 22px;
    letter-spacing: 0.6px;
  }
  .cta svg {
    width: 22px;
    height: 22px;
  }
  .cta > span {
    font-size: 20px;
  }
  
  .trust {
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin: 16px 0 24px;
  }
  .trust li {
    gap: 5px;
  }
  .trust li + li {
    padding-left: 10px;
    border-left: 1px solid rgba(220, 175, 175, 0.6);
  }
  .trust svg {
    width: 18px;
    height: 18px;
  }
  
  .sections {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 6px;
  }
  .panel {
    padding: 20px 15px;
    border-radius: 26px;
    background: rgba(255, 252, 250, 0.88);
  }
  .panel h2 {
    font-size: 28px;
    margin-bottom: 16px;
    letter-spacing: -0.6px;
  }
  .questions li {
    font-size: 15px;
    min-height: 52px;
    padding: 6px 14px 6px 8px;
    border-radius: 18px;
    gap: 12px;
  }
  .questions .icon {
    width: 38px;
    height: 38px;
  }
  .questions .icon svg {
    width: 20px;
    height: 20px;
  }
  /* 3 Steps in mobile matching reference */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .steps li {
    padding: 12px 8px;
    border-radius: 16px;
  }
  .step-top {
    height: 34px;
  }
  .step-top svg {
    width: 20px;
    height: 20px;
  }
  .number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .steps h3 {
    font-size: 13px;
    line-height: 1.25;
    margin: 10px 0 5px;
  }
  .steps p {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .hero-art {
    width: 136%;
  }
  .offer {
    font-size: 13px;
  }
  .cta {
    font-size: 13px;
    padding: 8px 12px;
    gap: 6px;
    white-space: nowrap;
  }
  .cta svg {
    width: 20px;
    height: 20px;
  }
  .intro {
    font-size: 14px;
    width: 58%;
  }
  .trust {
    font-size: 10.5px;
    gap: 6px;
  }
  .trust li + li {
    padding-left: 6px;
  }
  .panel h2 {
    font-size: 23px;
    gap: 4px;
  }
  .questions li {
    font-size: 14px;
    gap: 8px;
  }
  .questions .icon {
    width: 34px;
    height: 34px;
  }
  .steps h3 {
    font-size: 12px;
  }
  .steps p {
    font-size: 10px;
  }
}

/* Landscape Phone */
@media (max-height: 520px) and (orientation: landscape) {
  .page {
    margin: 8px auto;
    padding: 0 18px 16px;
  }
  header {
    height: 56px;
  }
  .brand {
    font-size: 22px;
    letter-spacing: 3px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .hero {
    min-height: 0;
    padding: 4px 0;
  }
  .hero-art {
    height: 380px;
    top: -40px;
    right: -24px;
    left: auto;
    width: 50%;
    opacity: 0.88;
    mask-image: radial-gradient(ellipse 90% 85% at 65% 45%, #000 50%, transparent 95%), linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at 65% 45%, #000 50%, transparent 95%), linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero-art-inner img {
    object-position: 42% top;
  }
  .hero-copy {
    padding: 0;
    width: 56%;
  }
  h1 {
    font-size: 32px;
    margin-bottom: 4px;
  }
  h1 br {
    display: none;
  }
  .intro {
    font-size: 14px;
    margin: 4px 0 10px;
    line-height: 1.3;
    max-width: 440px;
  }
  .actions {
    gap: 8px;
    max-width: 440px;
  }
  .cta {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 14px;
  }
  .cta svg {
    width: 20px;
    height: 20px;
  }
  .cta > span {
    font-size: 20px;
  }
  .trust {
    margin: 8px 0 0;
    font-size: 12px;
    gap: 12px;
  }
  .trust svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 600px) and (max-height: 520px) and (orientation: landscape) {
  .hero-art {
    right: -10px;
  }
  .hero-art-inner img {
    object-position: 36% top;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta:hover,
  .menu-button:hover {
    transform: none;
  }
}
