/* Sonic Remedy — personal discovery (Stage 2).
   Scoped to .discovery; reuses the site's variables (--bg, --paper, --muted, --line),
   its two typefaces (Cormorant Garamond, Inter) and the Formula 01 gold already used by the
   header's SOOZHEE arrow (#c9a55c / #e0c98a). Nothing outside this section is restyled. */

.discovery {
  --gold: #c9a55c;
  --gold-soft: #e0c98a;
  --gold-rgb: 201, 165, 92;
  --soft-text: #c9c3ba;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto clamp(96px, 11vw, 150px);
  scroll-margin-top: 24px;
}

.discovery[hidden] { display: none; }

.discovery-panel {
  position: relative;
  padding: clamp(34px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(32px, 4.5vw, 50px);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--gold-rgb), .055), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.discovery-view { text-align: center; }
.discovery-view[hidden] { display: none; }

.discovery-eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .3em;
}

.discovery-heading {
  margin: 0;
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.05rem, 4.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .015em;
  outline: none;
}

.discovery-sub {
  max-width: 30em;
  margin: 14px auto 0;
  color: var(--soft-text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: .02em;
}

.discovery-form {
  margin-top: clamp(26px, 3.5vw, 34px);
  text-align: left;
}

.discovery-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.discovery textarea {
  display: block;
  width: 100%;
  min-height: 7.4em;
  padding: 18px 20px;
  border: 1px solid rgba(243, 238, 230, .24);
  border-radius: 16px;
  outline: none;
  background: rgba(0, 0, 0, .28);
  color: var(--paper);
  font: 300 1rem/1.55 "Inter", sans-serif;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.discovery textarea::-webkit-input-placeholder { color: rgba(243, 238, 230, .45); opacity: 1; }
.discovery textarea::placeholder { color: rgba(243, 238, 230, .45); opacity: 1; }

.discovery textarea:hover { border-color: rgba(243, 238, 230, .36); }

.discovery textarea:focus-visible,
.discovery textarea:focus {
  border-color: rgba(var(--gold-rgb), .7);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .14);
}

.discovery-hint {
  min-height: 1.4em;
  margin: 10px 2px 6px;
  color: var(--soft-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  text-align: center;
}

.discovery-hint:empty { min-height: 0; margin: 8px 0 0; }

.discovery-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding: 0 24px;
  border: 1px solid rgba(var(--gold-rgb), .55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .07));
  color: var(--paper);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .24em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.discovery-submit span { color: var(--gold-soft); letter-spacing: 0; transition: transform 180ms ease; }

@media (hover: hover) {
  .discovery-submit:not([aria-disabled="true"]):hover {
    border-color: rgba(var(--gold-rgb), .9);
    box-shadow: 0 0 22px rgba(var(--gold-rgb), .18);
  }
  .discovery-submit:not([aria-disabled="true"]):hover span { transform: translateX(3px); }
}

.discovery-submit[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .04);
  color: rgba(243, 238, 230, .4);
  cursor: default;
}

.discovery-submit[aria-disabled="true"] span { color: rgba(243, 238, 230, .4); }

/* results */
.discovery-results { animation: discovery-in 420ms ease both; }

@keyframes discovery-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.discovery-note {
  margin: 12px 0 0;
  color: var(--soft-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
}

.discovery-note[hidden] { display: none; }

.remedy-primary-slot { margin-top: clamp(24px, 3.4vw, 32px); }

.remedy-primary {
  display: grid;
  grid-template-columns: minmax(118px, 40%) 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(var(--gold-rgb), .5);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.remedy-primary-art,
.remedy-card-art {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #111113;
}

.remedy-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remedy-primary-body { min-width: 0; }

.remedy-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
}

.remedy-title {
  margin: 0;
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.remedy-formula {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
}

.remedy-why {
  margin: 12px 0 0;
  color: var(--soft-text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.4;
}

.remedy-listen {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
}

.remedy-listen span { display: inline-block; margin-left: .35em; letter-spacing: 0; transition: transform 180ms ease; }

.remedy-also { margin-top: clamp(28px, 4vw, 38px); text-align: left; }
.remedy-also[hidden] { display: none; }

.remedy-also-label {
  margin: 0 0 14px 2px;
  color: var(--soft-text);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
}

.remedy-also-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.remedy-card {
  display: grid;
  grid-template-columns: clamp(76px, 18vw, 96px) 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  padding: 12px clamp(14px, 2vw, 20px) 12px 12px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.remedy-card-art { border-radius: 10px; }

.remedy-card-body { min-width: 0; }

.remedy-card-title {
  margin: 0;
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.remedy-card .remedy-formula { margin-top: 4px; font-size: .74rem; }

.remedy-card-why {
  margin: 6px 0 0;
  color: var(--soft-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.35;
}

.remedy-arrow {
  align-self: center;
  color: var(--gold);
  font-size: 1rem;
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .remedy-primary:hover { border-color: rgba(var(--gold-rgb), .85); background: rgba(255, 255, 255, .04); box-shadow: 0 0 26px rgba(var(--gold-rgb), .1); }
  .remedy-primary:hover .remedy-listen span,
  .remedy-card:hover .remedy-arrow { transform: translate(2px, -2px); }
  .remedy-card:hover { border-color: rgba(var(--gold-rgb), .35); background: rgba(255, 255, 255, .05); }
}

.remedy-primary:focus-visible,
.remedy-card:focus-visible,
.discovery-submit:focus-visible,
.discovery-reset:focus-visible {
  outline: 1px solid var(--gold-soft);
  outline-offset: 4px;
}

.discovery-heading:focus-visible { outline: 1px solid rgba(var(--gold-rgb), .6); outline-offset: 6px; border-radius: 4px; }

.discovery-reset {
  margin: clamp(26px, 3.6vw, 34px) auto 0;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(243, 238, 230, .2);
  background: transparent;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.discovery-reset:hover { color: var(--paper); border-color: rgba(243, 238, 230, .55); }

@media (max-width: 680px) {
  .discovery { width: calc(100% - 32px); margin-bottom: 76px; }
  .discovery-panel { border-radius: 22px; }
  .discovery-eyebrow { font-size: .66rem; letter-spacing: .26em; }
  .discovery textarea { padding: 16px 18px; font-size: 1rem; }
  .remedy-primary { grid-template-columns: 42% 1fr; gap: 16px; padding: 14px; }
  .remedy-label { margin-bottom: 8px; font-size: .66rem; letter-spacing: .16em; }
  .remedy-why { margin-top: 8px; font-size: 1rem; }
  .remedy-listen { margin-top: 10px; }
  .remedy-card { grid-template-columns: 76px 1fr auto; gap: 14px; }
  .remedy-card-why { font-size: .96rem; }
}

@media (max-width: 340px) {
  .discovery-panel { padding-left: 16px; padding-right: 16px; }
  .remedy-primary { grid-template-columns: 1fr; }
  .remedy-primary-art { width: 64%; margin: 0 auto; }
  .remedy-card { grid-template-columns: 64px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-results { animation: none; }
}
