/* ── Ringntra marketing site — custom styles on top of Tailwind CDN ── */

/* Anchored sections clear the fixed nav */
section[id] {
  scroll-margin-top: 5rem;
}

/* Brand text selection */
::selection {
  background: rgba(113, 2, 136, 0.15);
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgb(113 2 136);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

/* Nav scroll state (toggled by JS) */
#nav {
  background: transparent;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgb(241 245 249);
  box-shadow: 0 1px 20px -10px rgba(15, 23, 42, 0.25);
}

/* Hero ambient glow */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(113, 2, 136, 0.14), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(196, 3, 236, 0.10), transparent 60%);
}

/* CTA glow */
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

/* AI section subtle grid */
.ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}

/* ── Feature cards ── */
.feature-card {
  background: #fff;
  border: 1px solid rgb(241 245 249);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(113, 2, 136, 0.2);
  border-color: rgb(242 185 254);
}
.feature-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: rgb(15 23 42);
  margin-top: 1.1rem;
}
.feature-card p {
  color: rgb(100 116 139);
  font-size: 0.925rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.feature-icon {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.85rem;
}
.feature-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

/* ── How-it-works steps ── */
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(113, 2, 136, 0.2);
  border-color: rgb(242 185 254);
}
.step-num {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(150deg, rgb(113 2 136), rgb(61 1 73));
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 10px 22px -10px rgba(113, 2, 136, 0.55);
}

/* ── Pricing ── */
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.2);
}
.pricing-card--featured {
  background: linear-gradient(165deg, #540165, #26012d);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 30px 60px -25px rgba(113, 2, 136, 0.45);
}
.pricing-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgb(71 85 105);
}
.pricing-list--light { color: rgba(255, 255, 255, 0.9); }
.pricing-list li {
  position: relative;
  padding-left: 1.6rem;
}
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  height: 1rem;
  width: 1rem;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23710288' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.pricing-list--light li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.pricing-btn-outline,
.pricing-btn-solid {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.2s ease;
}
.pricing-btn-outline {
  border: 1px solid rgb(226 232 240);
  color: rgb(51 65 85);
}
.pricing-btn-outline:hover {
  border-color: rgb(218 54 252);
  color: rgb(113 2 136);
}
.pricing-btn-solid {
  background: #fff;
  color: rgb(113 2 136);
}
.pricing-btn-solid:hover { background: rgb(252 240 255); }

/* ── FAQ accordion ── */
.faq {
  background: #fff;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.85rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: rgb(15 23 42);
  text-align: left;
  cursor: pointer;
}
.faq-ico {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgb(113 2 136);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq.open .faq-ico { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 1.25rem 1.2rem;
  color: rgb(100 116 139);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* ── Modal form inputs ── */
.modal-input {
  padding: 0.65rem 0.875rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: rgb(15 23 42);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.modal-input::placeholder { color: rgb(148 163 184); }
.modal-input:focus {
  border-color: rgb(113 2 136);
  box-shadow: 0 0 0 3px rgba(113, 2, 136, 0.12);
}
.modal-input.error { border-color: rgb(239 68 68); }

/* Custom caret for selects (replaces the default OS arrow) */
select.modal-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Modal open — lock body scroll */
body.modal-open { overflow: hidden; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
