/* =========================================================
   Asztrológiai AI elemző – látványos landing
   ========================================================= */

:root {
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, "Segoe UI", Roboto, sans-serif;

  --as-bg: #ffffff;
  --as-bg-soft: #faf7f5;
  --as-ink: #2c2420;
  --as-muted: #5c4e47;
  --as-rose: #8f5555;
  --as-rose-deep: #6e3d3d;
  --as-gold: #c9958d;
  --as-cream: #fffaf6;
  --as-line: #eadfd8;
  --as-card: #faf6f3;
  --as-btn-text: #ffffff;
  --as-glow: rgba(232, 196, 188, 0.42);
}

html[data-theme="dark"] {
  --as-bg: #1a1614;
  --as-bg-soft: #221c1a;
  --as-ink: #faf6f2;
  --as-muted: #d4c6bc;
  --as-rose: #e0b0b0;
  --as-rose-deep: #f0d6ce;
  --as-gold: #d9b0a8;
  --as-cream: #2a2320;
  --as-line: #3a302c;
  --as-card: #241e1b;
  --as-btn-text: #1a1614;
  --as-glow: rgba(168, 110, 105, 0.28);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.page-astro {
  font-family: var(--font-body);
  color: var(--as-ink);
  background: var(--as-bg);
  line-height: 1.7;
  font-size: clamp(18px, 1.15vw + 14px, 20px);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  transition: background 0.45s ease, color 0.45s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--as-rose-deep);
}

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

.as-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.as-theme {
  position: fixed;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--as-line);
  background: color-mix(in srgb, var(--as-bg-soft) 88%, transparent);
  backdrop-filter: blur(10px);
  color: var(--as-rose);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(90, 50, 45, 0.1);
  transition: transform 0.25s ease, background 0.25s ease;
}

.as-theme:hover { transform: scale(1.08) rotate(-8deg); }
.as-theme__moon { display: none; }
html[data-theme="dark"] .as-theme__sun { display: none; }
html[data-theme="dark"] .as-theme__moon { display: inline; }

.as-main {
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.as-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--as-glow), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(201, 149, 141, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 8% 70%, rgba(232, 196, 188, 0.14), transparent 50%),
    var(--as-bg);
}

.as-bg__glow {
  position: absolute;
  left: 50%;
  top: 32%;
  width: min(92vw, 680px);
  height: min(92vw, 680px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--as-glow) 0%, transparent 68%);
  opacity: 0.7;
  animation: as-glow-pulse 5.5s ease-in-out infinite;
}

.as-bg__aurora {
  position: absolute;
  inset: -20% -10%;
  background:
    conic-gradient(from 120deg at 50% 40%, transparent 0deg, rgba(201, 149, 141, 0.08) 60deg, transparent 120deg, rgba(143, 85, 85, 0.06) 200deg, transparent 280deg);
  animation: as-aurora 28s linear infinite;
  opacity: 0.55;
}

html[data-theme="dark"] .as-bg__aurora { opacity: 0.35; }

@keyframes as-aurora {
  to { transform: rotate(360deg); }
}

@keyframes as-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.9; }
}

.as-bg__deco {
  position: absolute;
  opacity: 0.12;
  color: var(--as-rose);
  user-select: none;
}

html[data-theme="dark"] .as-bg__deco { opacity: 0.18; }

.as-bg__deco--lotus-a {
  width: min(260px, 42vw);
  top: 8%;
  left: -3%;
  transform: rotate(-10deg);
  animation: as-float-a 9s ease-in-out infinite;
}
.as-bg__deco--lotus-b {
  width: min(210px, 36vw);
  bottom: 10%;
  right: -3%;
  transform: rotate(14deg);
  animation: as-float-b 11s ease-in-out infinite;
}
.as-bg__deco--star-a { top: 16%; right: 14%; width: 32px; animation: as-twinkle 3.2s ease-in-out infinite; }
.as-bg__deco--star-b { top: 46%; left: 9%; width: 22px; animation: as-twinkle 4s ease-in-out infinite 0.7s; }
.as-bg__deco--star-c { bottom: 28%; left: 18%; width: 16px; animation: as-twinkle 3.6s ease-in-out infinite 1.2s; }
.as-bg__deco--moon {
  top: 22%;
  right: 7%;
  width: 72px;
  opacity: 0.14;
  animation: as-moon-drift 12s ease-in-out infinite;
}

@keyframes as-float-a {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-14px); }
}
@keyframes as-float-b {
  0%, 100% { transform: rotate(14deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(12px); }
}
@keyframes as-moon-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
@keyframes as-twinkle {
  0%, 100% { opacity: 0.14; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.45; transform: scale(1.25) rotate(12deg); }
}

.as-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.15rem, 2.5vw, 1.75rem);
}

.as-logo {
  display: block;
  margin: 0.35rem auto 0.15rem;
  opacity: 0;
  transform: translateY(22px) scale(0.88);
}

.as-logo img {
  width: min(200px, 48vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 16px 36px rgba(138, 81, 81, 0.2));
}

.as-logo.is-in {
  animation: as-logo-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes as-logo-in {
  0% { opacity: 0; transform: translateY(22px) scale(0.88); }
  60% { opacity: 1; transform: translateY(-4px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes as-fade-up {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.as-intro {
  opacity: 0;
  transform: translateY(18px);
}

.as-intro.is-in {
  animation: as-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.as-intro__eyebrow {
  display: inline-block;
  font-size: clamp(0.78rem, 0.9vw + 0.55rem, 0.92rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--as-rose);
  font-weight: 600;
  margin-bottom: 0.65rem;
  position: relative;
  padding-bottom: 0.55rem;
}

.as-intro__eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--as-gold), transparent);
}

.as-intro h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  max-width: 18ch;
  margin: 0 auto;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.as-intro__sub {
  margin-top: 1.15rem;
  font-size: clamp(1.12rem, 1.2vw + 0.85rem, 1.35rem);
  line-height: 1.65;
  color: var(--as-muted);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.as-ornaments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  color: var(--as-rose);
  opacity: 0;
  transform: translateY(10px);
}

.as-ornaments.is-in {
  animation: as-fade-up 0.9s ease 0.28s forwards;
}

.as-ornaments img {
  width: 48px;
  height: 48px;
  opacity: 0.75;
  filter: drop-shadow(0 6px 14px rgba(143, 85, 85, 0.18));
}

.as-ornaments img:nth-child(1) { animation: as-orb-bob 4.5s ease-in-out infinite; }
.as-ornaments img:nth-child(2) { animation: as-orb-bob 5.2s ease-in-out infinite 0.4s; width: 44px; }
.as-ornaments img:nth-child(3) { animation: as-orb-bob 4.8s ease-in-out infinite 0.8s; width: 38px; }

@keyframes as-orb-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.as-status {
  min-height: 1.5em;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-style: italic;
  font-weight: 600;
  color: var(--as-rose-deep);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.as-status.is-in { opacity: 1; }
.as-status.is-pulse { animation: as-status-pulse 1.5s ease-in-out infinite; }

@keyframes as-status-pulse {
  0%, 100% { opacity: 0.5; letter-spacing: 0; }
  50% { opacity: 1; letter-spacing: 0.02em; }
}

.as-form-card {
  width: 100%;
  max-width: 100%;
  padding: clamp(1.75rem, 3vw, 2.35rem) clamp(1.1rem, 3vw, 2.1rem) 1.75rem;
  border-radius: 28px;
  background: color-mix(in srgb, var(--as-card) 92%, transparent);
  border: 1px solid var(--as-line);
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  box-shadow:
    0 24px 60px rgba(90, 50, 45, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.as-form-card.is-in {
  animation: as-fade-up 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.as-form {
  width: 100%;
  max-width: 100%;
}

.as-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.15rem;
  width: 100%;
  max-width: 100%;
}

.as-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
}

.as-field--full { grid-column: 1 / -1; }

.as-field label {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.18rem);
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--as-ink);
}

.as-opt {
  font-weight: 400;
  font-size: 0.92rem;
  opacity: 0.7;
  color: var(--as-muted);
}

.as-field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  font: inherit;
  font-size: clamp(1.05rem, 0.5vw + 0.9rem, 1.18rem);
  line-height: 1.35;
  color: var(--as-ink);
  background: var(--as-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.as-field input[type="date"],
.as-field input[type="time"] {
  min-height: 3.25rem;
  display: block;
}

.as-field input::placeholder {
  color: var(--as-muted);
  opacity: 0.7;
}

.as-field input:focus {
  outline: none;
  border-color: var(--as-gold);
  box-shadow: 0 0 0 4px rgba(201, 149, 141, 0.22);
  transform: translateY(-1px);
}

.as-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--as-muted);
  cursor: pointer;
}

.as-consent input {
  margin-top: 0.3rem;
  accent-color: var(--as-rose-deep);
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
}

.as-consent a {
  color: var(--as-rose-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.as-submit {
  display: flex;
  width: 100%;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: clamp(1.12rem, 0.5vw + 1rem, 1.28rem);
  letter-spacing: 0.02em;
  color: var(--as-btn-text);
  background: linear-gradient(135deg, #e0b4ac 0%, #c48787 48%, #a66a6a 100%);
  background-size: 160% 160%;
  box-shadow: 0 14px 34px rgba(138, 81, 81, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  animation: as-btn-sheen 6s ease infinite;
}

html[data-theme="dark"] .as-submit { color: #1a1614; }

@keyframes as-btn-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.as-submit:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(138, 81, 81, 0.34);
}

.as-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.as-form__hint {
  margin-top: 1.1rem;
  font-size: 1rem;
  color: var(--as-muted);
  text-align: center;
  opacity: 0.9;
  line-height: 1.5;
}

.as-form__error {
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(168, 70, 70, 0.1);
  color: #8a3535;
  font-size: 0.98rem;
  text-align: center;
}

html[data-theme="dark"] .as-form__error {
  background: rgba(224, 150, 150, 0.12);
  color: #f0c4c4;
}

/* —— Ritual —— */
.as-ritual {
  position: relative;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  display: grid;
  place-items: center;
  margin: 1rem 0 6.5rem;
}

.as-ritual__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 149, 141, 0.28);
}

.as-ritual__ring--a {
  inset: 8%;
  animation: as-ring-pulse 2.8s ease-in-out infinite;
}
.as-ritual__ring--b {
  inset: 0;
  border-style: dashed;
  animation: as-orbit 14s linear infinite;
}
.as-ritual__ring--c {
  inset: 18%;
  border-color: rgba(143, 85, 85, 0.18);
  animation: as-orbit-rev 10s linear infinite;
}

.as-ritual__sun {
  position: relative;
  z-index: 2;
  width: clamp(72px, 18vw, 96px);
  height: auto;
  color: var(--as-rose);
  filter: drop-shadow(0 0 24px rgba(201, 149, 141, 0.55));
  animation: as-sun-breathe 3.2s ease-in-out infinite;
}

.as-ritual__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: as-orbit 7s linear infinite;
}

.as-ritual__orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--as-gold);
  top: 50%;
  left: 50%;
  margin: -5px;
  box-shadow: 0 0 12px rgba(201, 149, 141, 0.7);
}

.as-ritual__orbit span:nth-child(1) { transform: rotate(0deg) translateX(110px); }
.as-ritual__orbit span:nth-child(2) { transform: rotate(72deg) translateX(110px); width: 7px; height: 7px; }
.as-ritual__orbit span:nth-child(3) { transform: rotate(144deg) translateX(110px); }
.as-ritual__orbit span:nth-child(4) { transform: rotate(216deg) translateX(110px); width: 8px; height: 8px; }
.as-ritual__orbit span:nth-child(5) { transform: rotate(288deg) translateX(110px); width: 6px; height: 6px; }

.as-ritual__label {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--as-rose);
  opacity: 0.85;
}

.as-wait {
  position: absolute;
  top: calc(100% + 2.85rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 78vw);
  text-align: center;
  z-index: 3;
}

.as-wait__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(201, 149, 141, 0.22);
  overflow: hidden;
}

.as-wait__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9958d, #8f5555);
  transition: width 0.35s ease;
}

.as-wait__eta,
.as-wait__tick {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--as-muted);
}

.as-wait__tick {
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

html[data-theme="dark"] .as-wait__track {
  background: rgba(224, 176, 176, 0.18);
}

html[data-theme="dark"] .as-wait__fill {
  background: linear-gradient(90deg, #e0b0b0, #c9958d);
}

@keyframes as-orbit { to { transform: rotate(360deg); } }
@keyframes as-orbit-rev { to { transform: rotate(-360deg); } }
@keyframes as-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes as-sun-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(8deg); }
}

/* —— Chat / reading —— */
.as-chat {
  width: 100%;
  max-width: 820px;
  text-align: left;
  opacity: 0;
  transform: translateY(18px);
}

.as-chat.is-in {
  animation: as-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.as-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.as-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--as-line);
  background: var(--as-cream);
  font-size: clamp(0.92rem, 0.4vw + 0.8rem, 1.05rem);
  color: var(--as-rose-deep);
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  animation: as-chip-in 0.55s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.12s);
  box-shadow: 0 6px 16px rgba(90, 50, 45, 0.06);
}

@keyframes as-chip-in {
  to { opacity: 1; transform: translateY(0); }
}

.as-chip__icon {
  font-size: 0.95em;
  opacity: 0.85;
}

.as-chip__k {
  opacity: 0.7;
  font-weight: 400;
  font-size: 0.92em;
}

.as-chip__v {
  font-family: var(--font-head);
  font-size: 1.15em;
  font-weight: 600;
}

.as-chip--place .as-chip__v {
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 500;
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-bubble {
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.35rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 28px 28px 28px 10px;
  background: color-mix(in srgb, var(--as-card) 94%, transparent);
  border: 1px solid var(--as-line);
  box-shadow:
    0 22px 55px rgba(90, 50, 45, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.as-bubble__meta {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--as-rose);
  font-weight: 600;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.as-bubble__meta::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--as-gold);
}

.as-bubble__text {
  font-size: clamp(1.15rem, 1.1vw + 0.85rem, 1.38rem);
  line-height: 1.85;
  color: var(--as-ink);
}

.as-bubble__text.is-typing {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.2vw + 0.9rem, 1.45rem);
  line-height: 1.75;
  white-space: pre-wrap;
}

.as-bubble__text.is-typing::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  animation: as-caret 0.9s step-end infinite;
  color: var(--as-rose);
}

@keyframes as-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Sections */
.as-sec {
  margin: 0 0 1.75rem;
  padding-bottom: 1.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--as-line) 80%, transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.as-sec:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
}

.as-sec.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.as-sec__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.55rem, 2vw + 0.85rem, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
  color: var(--as-rose-deep);
}

.as-sec__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--as-gold), var(--as-rose));
  box-shadow: 0 0 12px rgba(201, 149, 141, 0.55);
  flex-shrink: 0;
}

.as-sec__body {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Bridge + huberrita.hu */
.as-bridge {
  margin-top: 1.75rem;
  padding: 1.45rem 1.35rem 1.35rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(232, 196, 188, 0.22), rgba(250, 246, 243, 0.5));
  border: 1px solid var(--as-line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html[data-theme="dark"] .as-bridge {
  background: linear-gradient(145deg, rgba(168, 110, 105, 0.16), rgba(36, 30, 27, 0.6));
}

.as-bridge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.as-bridge__text {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1vw + 0.95rem, 1.4rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--as-ink);
  margin-bottom: 1rem;
}

.as-bridge__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.35rem);
  color: var(--as-rose-deep);
  letter-spacing: 0.02em;
  transition: gap 0.25s ease, transform 0.25s ease;
}

.as-bridge__link:hover {
  gap: 0.85rem;
  transform: translateX(2px);
}

.as-bridge__brand {
  border-bottom: 1.5px solid color-mix(in srgb, var(--as-rose) 55%, transparent);
  padding-bottom: 1px;
}

.as-bridge__arrow {
  font-size: 1.1em;
  opacity: 0.85;
}

.as-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
}

.as-actions.is-in {
  animation: as-fade-up 0.7s ease 0.1s forwards;
}

.as-report,
.as-cta,
.as-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.as-report {
  border: 1px solid var(--as-line);
  background: var(--as-bg);
  color: var(--as-ink);
  text-decoration: none;
}

.as-cta {
  border: none;
  background: linear-gradient(135deg, #e0b4ac 0%, #c48787 48%, #a66a6a 100%);
  color: var(--as-btn-text);
  box-shadow: 0 10px 28px rgba(138, 81, 81, 0.24);
}

html[data-theme="dark"] .as-cta { color: #1a1614; }

.as-report:hover,
.as-cta:hover,
.as-reset:hover {
  transform: translateY(-3px);
}

.as-reset {
  margin-top: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--as-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1rem;
}

.as-share {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--as-line);
  background: color-mix(in srgb, var(--as-cream) 88%, transparent);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
}

.as-share.is-in {
  animation: as-fade-up 0.7s ease 0.15s forwards;
}

.as-share__label {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.2vw + 0.9rem, 1.45rem);
  font-weight: 600;
  color: var(--as-rose-deep);
  margin-bottom: 0.9rem;
}

.as-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.as-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--as-line);
  background: var(--as-bg);
  color: var(--as-ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 560;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.as-share__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90, 50, 45, 0.1);
}

.as-share__btn--fb {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.as-share__btn--wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.as-share__btn--native {
  background: linear-gradient(135deg, #e0b4ac 0%, #c48787 100%);
  border-color: transparent;
  color: var(--as-btn-text);
}

html[data-theme="dark"] .as-share__btn--native {
  color: #1a1614;
}

.as-share__toast {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--as-rose);
  font-weight: 500;
}

.as-foot {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--as-muted);
}

/* SEO szöveg – összecsukva (details), a HTML-ben indexelhető marad */
.as-more {
  width: 100%;
  max-width: 40rem;
  margin: 1.75rem auto 0;
  padding: 0;
  text-align: center;
}

.as-more__fold {
  border: 0;
  margin: 0;
  padding: 0;
}

.as-more__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--as-muted);
  opacity: 0.8;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  user-select: none;
}

.as-more__summary::-webkit-details-marker {
  display: none;
}

.as-more__summary::marker {
  content: "";
  display: none;
}

.as-more__summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.2s ease;
}

.as-more__fold[open] > .as-more__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.as-more__summary:hover,
.as-more__fold[open] > .as-more__summary {
  color: var(--as-rose);
  opacity: 1;
  background: rgba(201, 149, 141, 0.1);
}

.as-more__inner {
  padding-top: 1.25rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--as-line);
  text-align: left;
}

.as-seo {
  text-align: left;
  color: var(--as-muted);
}

.as-seo h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  color: var(--as-ink);
  margin: 1.6rem 0 0.65rem;
  line-height: 1.25;
}

.as-seo h2:first-child {
  margin-top: 0;
}

.as-seo h3.as-more__q {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--as-ink);
  margin: 0 0 0.25rem;
  line-height: 1.4;
}

.as-seo p,
.as-seo li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

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

.as-seo a {
  color: var(--as-rose-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.as-seo a:hover {
  color: var(--as-ink);
}

.as-more__faq-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.as-more__faq-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--as-line);
}

.as-more__faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.as-more__a {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--as-muted);
  margin: 0;
}

.as-foot a {
  color: var(--as-rose-deep);
}

.as-foot a:hover {
  text-decoration: underline;
}

/* Várakozás közben a SEO blokk ne legyen kattintható; eredmény után igen */
body.is-waiting .as-more {
  opacity: 0.42;
  pointer-events: none;
}

body.is-reading .as-intro,
body.is-reading .as-ornaments,
body.is-reading .as-logo {
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

@media (min-width: 900px) {
  body.page-astro {
    font-size: 20px;
  }

  .as-wrap {
    max-width: 820px;
  }

  .as-chat {
    max-width: 880px;
  }

  .as-bubble__text {
    font-size: 1.4rem;
    line-height: 1.88;
  }

  .as-sec__title {
    font-size: 2.15rem;
  }

  .as-intro h1 {
    font-size: 3.35rem;
    max-width: 18ch;
  }

  .as-logo img {
    width: 220px;
  }
}

@media (max-width: 560px) {
  .as-wrap {
    max-width: 100%;
    padding: 0;
  }

  .as-form__grid {
    grid-template-columns: 1fr;
  }

  .as-field label {
    font-size: 1rem;
    line-height: 1.4;
  }

  .as-opt {
    display: inline;
    font-size: 0.85rem;
  }

  .as-field input {
    font-size: 16px; /* iOS zoom elkerülés */
    padding: 0.95rem 0.9rem;
  }

  .as-form-card {
    padding: 1.35rem 1rem 1.35rem;
    border-radius: 22px;
  }

  .as-intro h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    max-width: 16ch;
  }

  .as-actions {
    flex-direction: column;
  }

  .as-report,
  .as-cta {
    width: 100%;
  }

  .as-ritual__orbit span:nth-child(1),
  .as-ritual__orbit span:nth-child(2),
  .as-ritual__orbit span:nth-child(3),
  .as-ritual__orbit span:nth-child(4),
  .as-ritual__orbit span:nth-child(5) {
    transform: rotate(calc(var(--a, 0) * 1deg)) translateX(min(38vw, 105px));
  }

  .as-ritual__orbit span:nth-child(1) { --a: 0; }
  .as-ritual__orbit span:nth-child(2) { --a: 72; }
  .as-ritual__orbit span:nth-child(3) { --a: 144; }
  .as-ritual__orbit span:nth-child(4) { --a: 216; }
  .as-ritual__orbit span:nth-child(5) { --a: 288; }
}

@media (prefers-reduced-motion: reduce) {
  .as-logo,
  .as-intro,
  .as-ornaments,
  .as-form-card,
  .as-chat,
  .as-actions,
  .as-share,
  .as-bg__glow,
  .as-bg__aurora,
  .as-ritual__orbit,
  .as-ritual__ring--a,
  .as-ritual__ring--b,
  .as-ritual__ring--c,
  .as-ritual__sun,
  .as-bg__deco,
  .as-ornaments img,
  .as-chip,
  .as-submit {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .as-sec,
  .as-bridge {
    opacity: 1 !important;
    transform: none !important;
  }

  .as-bubble__text.is-typing::after {
    animation: none;
  }
}
