/* Lullops pricing page. Loads after lullops.css and uses its tokens. */

/* ---------- Head and calculator ---------- */

.price-hero { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); }
.price-top { display: grid; gap: 28px; }
.price-head { max-width: 780px; }
/* The readout sits beside the headline from 760px (landscape phones, tablets), as on desktop. */
@media (min-width: 760px) {
  .price-top { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 40px; align-items: end; }
}
@media (min-width: 960px) {
  .price-top { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px; }
}

/* The headline, priced per night. Follows the slider. A plain readout under a rule. */
.per-night { padding: 16px 0 0; border-top: 2px solid var(--text); }
.per-night-k { font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.per-night-v { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.per-night-num { font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.25rem); font-weight: 640; letter-spacing: -0.045em; line-height: 1; }
.per-night-per { color: var(--text-3); font-weight: 500; }
.per-night-note { margin-top: 10px; font-size: 0.875rem; color: var(--text-2); }
@media (max-width: 959px) {
  .per-night { max-width: 420px; }
}
.price-title { font-size: clamp(2.625rem, 1.6rem + 4.2vw, 5.25rem); font-weight: 640; letter-spacing: -0.05em; line-height: 0.96; }

.calc {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 48px;
  margin-top: clamp(40px, 5vw, 64px); padding: 18px 24px 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
html:not(.js) .calc { display: none; }
html:not(.js) .plans { margin-top: clamp(48px, 6vw, 72px); }
.calc-billing .seg-label { gap: 6px; height: 42px; display: flex; }
.seg-note { font-size: 0.8125rem; font-weight: 500; color: var(--text-3); }
.seg-note::before { content: "("; }
.seg-note::after { content: ")"; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-label { font-weight: 600; }
.calc-out { font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-hint { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: var(--text-3); }
.calc-hint span:first-child, .calc-hint span:last-child { font-family: var(--mono); }
.calc-hint a { color: var(--text-2); }

.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 4px 0 2px; background: transparent; cursor: pointer; }
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(to right, var(--accent) var(--fill, 22%), var(--line-2) var(--fill, 22%));
}
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 4px 12px -2px var(--shadow-c);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
  box-shadow: 0 4px 12px -2px var(--shadow-c);
}
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus) 40%, transparent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus) 40%, transparent); }

/* Phones and touch screens: a finger-size slider (44px to grab, a 28px thumb) and no label under 12px. */
@media (max-width: 719px), (pointer: coarse) {
  .range { height: 44px; margin: -3px 0 -5px; }
  .range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -11px; }
  .range::-moz-range-thumb { width: 24px; height: 24px; }
  .per-night-k { font-size: 0.75rem; }
  .calc-billing .seg-label { height: 44px; }
}

/* Below 960 the switch and the slider stack, so the slider keeps a usable length. */
@media (max-width: 959px) {
  .calc { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 20px 14px 16px; }
  .calc-billing { justify-self: start; }
}
@media (max-width: 759px) {
  .calc { padding: 16px; }
  .calc-billing .seg-label { flex-direction: column; justify-content: center; gap: 0; height: 48px; line-height: 1.2; }
  .seg-note { font-size: 0.75rem; }
  .calc-billing { width: 100%; justify-self: stretch; }
  .calc-hint span:nth-child(2) { text-align: center; }
}

/* ---------- Plans ---------- */

/* A price list: one ruled row per plan. What differs, the month, the night, the button. */
.plans-head, .plan { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.7fr) 188px; column-gap: 32px; }
.plans-head {
  margin-top: clamp(40px, 5vw, 56px); padding: 0 20px 10px; border-bottom: 2px solid var(--text);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--text-3);
}
.plan { position: relative; align-items: center; padding: 26px 20px; border-bottom: 1px solid var(--line); }
.plan .btn { width: 100%; }
.plan-pick { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.plan-name { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.025em; }
.plan-for { margin-top: 4px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; max-width: 46ch; }
.plan-replay { margin-top: 8px; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-num { font-size: clamp(2rem, 1.7rem + 1vw, 2.625rem); font-weight: 640; letter-spacing: -0.045em; line-height: 1; }
.plan-pick .price-num { color: var(--accent); }
.price-per { font-size: 1rem; color: var(--text-3); font-weight: 500; }
.price-note { margin-top: 6px; font-size: 0.8125rem; color: var(--text-3); }
.price-cap { display: none; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.price-cap strong { display: block; margin-bottom: 2px; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.plan-night { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; }
.plan-night-num { font-size: 1.125rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.plan.is-capped .price, .plan.is-capped .price-note { display: none; }
.plan.is-capped .plan-night { visibility: hidden; }
.plan.is-capped .price-cap { display: block; }
.price-num.is-ticking { animation: tick 360ms var(--ease); }
@keyframes tick { from { transform: translateY(5px); } }
.plans-note { margin-top: 20px; font-size: var(--fs-xs); color: var(--text-3); }
.plans-note a { color: var(--text-2); padding-block: 14px; }

@media (max-width: 1199px) {
  .plans-head, .plan { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr) 160px; column-gap: 24px; }
}
/* Tablets: the name and line on top, then the numbers and the button in a row. */
@media (max-width: 959px) {
  .plans-head { display: none; }
  .plans { margin-top: clamp(32px, 5vw, 48px); border-top: 2px solid var(--text); }
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) 180px; row-gap: 16px; align-items: end; }
  .plan-top { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .plan { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 16px; column-gap: 16px; }
  .plan .btn { grid-column: 1 / -1; }
  .plan-night { text-align: right; }
}

/* ---------- Compare ---------- */

.compare { padding-top: 0; }
.cmp-wrap { position: relative; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.cmp thead th {
  position: sticky; top: var(--header-h); z-index: 2; height: 60px; padding: 0 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
  font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.015em; text-align: center;
}
.cmp thead th.cmp-pick { color: var(--accent); }
.cmp-feature-h { width: 40%; }
.cmp tbody th[scope="row"] { padding: 15px 16px 15px 0; text-align: left; font-weight: 500; }
.cmp td { padding: 15px 12px; text-align: center; color: var(--text-2); font-size: 0.875rem; }
.cmp tbody tr:not(.cmp-group) > * { border-bottom: 1px solid var(--line); }
.cmp td svg { width: 20px; height: 20px; margin-inline: auto; color: var(--green); }
.cmp-no { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: var(--text-3); opacity: 0.6; vertical-align: middle; }
.cmp { --pick: light-dark(#fbf4e1, #10143a); }
.cmp .cmp-pick { background: var(--pick); }
.cmp thead .cmp-pick { background: var(--pick); border-radius: 12px 12px 0 0; }
.cmp-group th {
  padding: 40px 0 12px; text-align: left; border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.cmp tbody:first-of-type .cmp-group th { padding-top: 28px; }

@media (max-width: 699px) {
  .cmp, .cmp thead, .cmp tbody, .cmp caption { display: block; }
  .cmp tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmp thead { position: sticky; top: calc(var(--header-h) - 4px); z-index: 2; }
  .cmp thead th { position: static; height: 48px; display: grid; place-items: center; font-size: 0.9375rem; }
  .cmp thead th.cmp-feature-h { display: none; }
  .cmp tbody tr:not(.cmp-group) > * { border-bottom: 0; }
  .cmp tbody tr:not(.cmp-group) { border-bottom: 1px solid var(--line); }
  .cmp tbody th[scope="row"] { grid-column: 1 / -1; padding: 14px 0 2px; font-size: 0.9375rem; }
  .cmp td { padding: 6px 4px 14px; display: grid; place-items: center; }
  .cmp-group th { grid-column: 1 / -1; padding-top: 32px; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .faq-head { position: sticky; top: 108px; align-self: start; }
}
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
  border-radius: 6px; transition: color var(--t-fast) var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq-list summary:hover { color: var(--accent); } }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.75px; border-radius: 2px;
  background: currentColor; transition: transform var(--t-mid) var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 48px 24px 0; max-width: 62ch; color: var(--text-2); }
.faq-list details[open] p { animation: faq-in 320ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
