/* ==========================================================================
   DHIYA PRODUCT — Product Growth Marketing
   Custom layer over the Tailwind CDN build. Refined minimal product studio:
   lavender-grey ground, deep plum, generous whitespace, rounded forms,
   Fraunces serif display.
   ========================================================================== */

:root {
  --ease: cubic-bezier(0.25, 1, 0.32, 1);
  --plum: #452C63;
}

* { border-color: #E2DCEA; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: #452C63; color: #F7F3EE; }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #452C63;
  color: #F7F3EE;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
}
.skip-link:focus { left: 18px; top: 18px; }

/* Eyebrow -------------------------------------------------------------------- */
.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
}
.eyebrow--cream { color: rgba(247, 243, 238, 0.75); }

.em-serif { font-style: italic; color: var(--plum); }

/* ==========================================================================
   Buttons — pill
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--plum { background: var(--plum); color: #F7F3EE; border-color: var(--plum); }
.btn--plum:hover { background: #35204D; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(69, 44, 99, 0.5); }

.btn--soft { background: #FBFAFC; color: var(--plum); border-color: #E2DCEA; }
.btn--soft:hover { background: #EAE5F1; transform: translateY(-2px); }

.btn--cream { background: #F7F3EE; color: var(--plum); border-color: #F7F3EE; }
.btn--cream:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.35); }

/* Quiet text link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #221E29);
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--plum); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Cards
   ========================================================================== */

.soft-card {
  border-radius: 1.5rem;
  border: 1px solid #E2DCEA;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.soft-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -24px rgba(34, 30, 41, 0.18);
}

.divider { height: 1px; background: #E2DCEA; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-item[data-state="open"] .faq-body { max-height: 24rem; }

.faq-plus {
  position: relative;
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--plum);
  transition: transform 0.4s var(--ease);
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}
.faq-plus::before { width: 15px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-plus::after { width: 1.5px; height: 15px; transform: translate(-50%, -50%); }
.faq-item[data-state="open"] .faq-plus { transform: rotate(135deg); }
.faq-item[data-state="open"] .faq-q { color: var(--plum); }

/* ==========================================================================
   Forms (plum panel)
   ========================================================================== */

.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 243, 238, 0.22);
  border-radius: 12px;
  color: #F7F3EE;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field::placeholder { color: rgba(247, 243, 238, 0.4); }
.field:focus { border-color: rgba(247, 243, 238, 0.6); background: rgba(255, 255, 255, 0.1); }
.field option { color: #221E29; }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(247, 243, 238, 0.7);
  border-bottom: 1.5px solid rgba(247, 243, 238, 0.7);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FBFAFC;
  color: #221E29;
  border: 1px solid #E2DCEA;
  border-radius: 14px;
  font-size: 13px;
  padding: 15px 20px;
  box-shadow: 0 20px 45px -20px rgba(34, 30, 41, 0.3);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast.is-shown { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn__arrow, .soft-card, .link-arrow svg, .faq-plus { transition: none; }
  .btn:hover, .soft-card:hover { transform: none; box-shadow: none; }
}
