/* ==========================================================================
   itinerary.id — pricing page styles
   Shared tokens/components live in ../globals.css.
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  position: relative;
  height: clamp(18rem, 45vh, 28rem);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 40%);
}

.hero h1 {
  position: absolute;
  z-index: 1;
  inset-inline: var(--gutter);
  top: clamp(2rem, 8vh, 4.5rem);
  text-align: center;
  color: var(--on-media);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ---- Plans ---- */
.pricing {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.pricing-cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.pricing-card.recommended {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-raised));
  border: 2px solid var(--primary);
}

.badge {
  position: absolute;
  top: 0;
  left: 1.75rem;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
}

.pricing-card .card-desc {
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 3.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.price .price-note {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.pricing-card .btn {
  width: 100%;
  margin-block: 0.75rem;
}

.features-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--primary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}

.features sup {
  color: var(--secondary-text);
  font-weight: 700;
}

.pricing-footnote {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-footnote sup {
  color: var(--secondary-text);
  font-weight: 700;
}

/* ---- Pay as you go ---- */
.pay-as-you-go {
  background: var(--tertiary);
  padding-block: clamp(3rem, 8vh, 5rem);
}

.pay-as-you-go .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.pay-as-you-go h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  text-align: center;
}

.pay-as-you-go h2 span {
  font-weight: 700;
  color: var(--secondary);
}

.pay-as-you-go .items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.pay-as-you-go .item {
  background: linear-gradient(-122deg, #f8ebbb 0%, #ffffff 100%);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  color: #22282a;
}

.pay-as-you-go .item h3 {
  font-weight: 500;
  font-size: 1.5rem;
  color: #22282a;
}

.pay-as-you-go .item .item-price {
  font-weight: 700;
  font-size: 2rem;
  color: #6b5500;
}

.pay-as-you-go .item p {
  color: #4a4f52;
  line-height: 1.4;
}

.btn-gold {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #2b2205;
  min-width: 14rem;
}

.btn-gold:hover {
  background: #f0d675;
  border-color: #f0d675;
}

/* ---- FAQ ---- */
.faq {
  padding-block: clamp(3rem, 8vh, 5rem);
}

.faq h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.faq-list {
  max-width: 46rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  background-color: var(--primary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') center / contain no-repeat;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list summary:hover {
  color: var(--primary);
}

.faq-list details p {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
}
