/* ===== Packages page (/packages) ===== */
/* Uses theme tokens from styles.css. Effects are CSS only (transform/opacity) to stay cheap. */

.pk-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 40px 0;
}

/* Hero */
.pk-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 64px 0 40px;
}

.pk-hero::after {
  /* Soft accent glow - a single gradient, no image. Stays inside the page (no sideways scroll) */
  content: '';
  position: absolute;
  z-index: -1;
  right: 0;
  top: -40px;
  width: min(520px, 100%);
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}

.pk-hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.pk-hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}

.pk-lead {
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}

.pk-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.pk-facts li {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pk-facts strong {
  font-family: var(--font-num);
  font-size: 26px;
  line-height: 1.2;
}

.pk-facts span {
  font-size: 13px;
  color: var(--muted);
}

/* Sticky service tabs */
.pk-tabs {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 8px 0 24px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pk-tabs::-webkit-scrollbar {
  display: none;
}

.pk-tabs a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.pk-tabs a:hover {
  color: var(--text);
}

.pk-tabs a b {
  font-family: var(--font-num);
  font-size: 12px;
  opacity: 0.7;
}

.pk-tabs a.is-active {
  color: var(--on-accent);
}

/* Without the sliding pill (no JS) the active tab paints its own background */
.pk-tabs:not(.has-pill) a.is-active {
  background: var(--accent);
}

/* Sliding pill behind the active tab (position/width set by packages.js) */
.pk-tab-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}

.pk-tab-pill.is-on {
  opacity: 1;
}

/* Sections */
.pk-section {
  padding: 48px 0 24px;
  scroll-margin-top: 72px;
}

.pk-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}

/* Big outlined section number */
.pk-index {
  grid-row: span 2;
  font-family: var(--font-num);
  min-width: 0.7em;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  transition: -webkit-text-stroke-color 0.3s, color 0.3s, opacity 0.3s;
}

/* Current section: filled number. Other sections fade back (only once scroll-spy runs) */
.pk-section.is-current .pk-index {
  color: var(--accent-soft);
}

.pk-spy .pk-section:not(.is-current) .pk-index {
  -webkit-text-stroke-color: var(--line);
}

.pk-spy .pk-section:not(.is-current) .pk-section-head h2 {
  opacity: 0.75;
  transition: opacity 0.3s;
}

/* Floating rail (wide screens) - built by packages.js from the tabs */
.pk-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pk-rail.is-on {
  opacity: 1;
  pointer-events: auto;
}

.pk-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.pk-rail-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-num);
  font-size: 12px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

/* Booking / FAQ have no number: a small dot instead */
.pk-rail-num:empty::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pk-rail-name {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s;
}

.pk-rail a:hover .pk-rail-name,
.pk-rail a.is-active .pk-rail-name {
  max-width: 220px;
  opacity: 1;
}

.pk-rail a.is-active {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.pk-rail a.is-active .pk-rail-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: scale(1.08);
}

.pk-rail a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Only where there is room beside the 1180px content */
@media (min-width: 1500px) {
  .pk-rail {
    display: flex;
  }
}

/* Booking / FAQ: no number */
.pk-section-head-plain {
  grid-template-columns: 1fr;
}

.pk-section-head.pk-section-head-plain p {
  grid-column: 1;
}

.pk-section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
}

.pk-section-head p {
  grid-column: 2;
  color: var(--muted);
}

.pk-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.pk-grid-wedding,
.pk-grid-booth {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.pk-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pk-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.pk-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pk-card-feature {
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 60%),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.pk-card-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
}

.pk-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 17px;
  margin-bottom: 12px;
}

.pk-card-title:not(:first-child) {
  margin-top: 22px;
}

.pk-subhead {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.pk-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
}

.pk-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
}

.pk-price-num {
  font-family: var(--font-num);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pk-price-unit {
  font-size: 16px;
  color: var(--muted);
}

.pk-muted,
.pk-fineprint {
  color: var(--muted);
  font-size: 14px;
}

.pk-fineprint {
  margin-top: 12px;
  font-size: 13px;
}

/* Check list */
.pk-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}

.pk-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.pk-checks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Key/value rows */
.pk-rows {
  display: flex;
  flex-direction: column;
}

.pk-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}

.pk-rows > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.pk-rows dt {
  color: var(--muted);
  flex-shrink: 0;
}

.pk-rows dd {
  text-align: right;
  font-weight: 600;
}

.pk-rows-stack > div {
  flex-direction: column;
  gap: 2px;
}

.pk-rows-stack dt {
  color: var(--text);
  font-weight: 600;
}

.pk-rows-stack dd {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
}

/* Wedding time slots */
.pk-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pk-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.2s, border-color 0.2s;
}

.pk-slot:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.pk-slot strong {
  font-size: 16px;
  color: var(--text);
}

.pk-slot-icon {
  color: var(--accent-text);
  margin-bottom: 6px;
}

/* Photobooth picker */
.pk-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pk-segment,
.pk-hours {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  width: max-content;
  max-width: 100%;
}

.pk-segment button,
.pk-hours button {
  min-height: 40px;
  padding: 6px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.pk-segment button[aria-checked="true"],
.pk-hours button[aria-checked="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .pk-segment button[aria-checked="true"],
:root[data-theme="dark"] .pk-hours button[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.pk-picker-name {
  font-weight: 600;
  min-height: 1.6em;
}

.pk-picker-note {
  margin-top: -6px;
  color: var(--muted);
  font-size: 14px;
}

.pk-price-num.is-bump {
  animation: pk-bump 0.35s ease;
}

@keyframes pk-bump {
  40% { transform: translateY(-3px); color: var(--accent-text); }
}

.pk-card-extra {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  font-size: 14px;
  animation: pk-pop 0.3s ease;
}

@keyframes pk-pop {
  from { opacity: 0; transform: translateY(6px); }
}

/* Mini greeting card illustration */
.pk-mini-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  height: 64px;
  padding: 5px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  transform: rotate(-4deg);
}

.pk-mini-card i {
  height: 26px;
  border-radius: 3px;
  background: var(--accent-soft);
}

.pk-mini-card em {
  height: 3px;
  border-radius: 2px;
  background: #D5D8DE;
}

/* Price table */
.pk-table-wrap {
  overflow-x: auto;
}

.pk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.pk-table th,
.pk-table td {
  padding: 12px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.pk-table thead th {
  border-top: 0;
  font-size: 14px;
  vertical-align: bottom;
}

.pk-table thead small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.pk-table tbody th {
  font-weight: 500;
  color: var(--muted);
}

.pk-table td {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s;
}

.pk-table td.is-on {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 10px;
}

/* Frame design illustration (line style like the package icons):
   5 proposed strips, 3 picked with a check, then the package-2 card (same size as a strip) */
.pk-frame-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.pk-frame {
  display: block;
  transition: transform 0.4s ease;
}

.pk-frame svg {
  display: block;
  width: 32px;
  height: 72px;
  overflow: visible;
}

.pk-frame svg * {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.pk-frame.is-pick svg *,
.pk-frame.is-card svg * {
  stroke: var(--accent);
  opacity: 1;
}

.pk-frame.is-pick .body,
.pk-frame.is-card .body {
  fill: var(--accent-soft);
}

.pk-frame .badge {
  fill: var(--accent);
  stroke: none;
}

.pk-frame .tick {
  stroke: var(--on-accent);
  stroke-width: 1.8;
}

.pk-frame.is-card .body {
  stroke-dasharray: 3 3;
}

.pk-frame-plus {
  align-self: center;
  padding: 0 2px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
}

/* Picked frames lift a little when the card scrolls into view */
.pk-frames.is-in .pk-frame.is-pick {
  transform: translateY(-6px);
}

.pk-frames.is-in .pk-frame.is-pick:nth-child(3) { transition-delay: 0.12s; }
.pk-frames.is-in .pk-frame.is-pick:nth-child(5) { transition-delay: 0.24s; }

.pk-frame-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.pk-frames p + p {
  margin-top: 8px;
}

/* Graduation plans */
.pk-plan {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Booking steps */
.pk-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  counter-reset: none;
}

.pk-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}

.pk-steps li span {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-num);
  font-size: 18px;
}

.pk-steps li:not(:last-child)::after {
  /* connector arrow between steps */
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid var(--muted);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}

/* CTA */
.pk-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 40px 0 16px;
  padding: 36px 40px;
  border-radius: 28px;
  background: var(--text);
  color: var(--bg);
}

.pk-cta h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.pk-cta p {
  opacity: 0.75;
}

.pk-cta .btn-primary {
  background: var(--cam-accent);
  color: #16171B;
}

.pk-cta .btn-primary:hover {
  filter: brightness(1.05);
}

.page-packages .app-footer {
  margin-top: 24px;
  padding: 20px 0;
}

/* Scroll reveal (only when JS runs; content is visible without it) */
@media (prefers-reduced-motion: no-preference) {
  html:has(.page-packages) {
    scroll-behavior: smooth;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .js .pk-grid > .reveal:nth-child(2),
  .js .pk-steps > .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .pk-grid > .reveal:nth-child(3),
  .js .pk-steps > .reveal:nth-child(3) { transition-delay: 0.16s; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-price-num.is-bump,
  .pk-card-extra {
    animation: none;
  }

  .pk-frame,
  .pk-slot,
  .pk-tab-pill,
  .pk-rail-name {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .pk-grid-wedding,
  .pk-grid-booth,
  .pk-grid-3 {
    grid-template-columns: 1fr;
  }

  .pk-steps {
    grid-template-columns: 1fr;
  }

  .pk-steps li:not(:last-child)::after {
    right: auto;
    left: 38px;
    top: auto;
    bottom: -12px;
    transform: rotate(135deg);
  }
}

@media (max-width: 640px) {
  .pk-wrap {
    padding: 20px 16px 0;
  }

  .pk-hero {
    padding: 40px 0 24px;
  }

  .pk-section-head {
    column-gap: 14px;
  }

  .pk-index {
    font-size: 48px;
    -webkit-text-stroke-width: 1.5px;
  }

  .pk-lead {
    font-size: 16px;
  }

  .pk-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .pk-facts li {
    min-width: 0;
    padding: 12px;
  }

  .pk-facts strong {
    font-size: 20px;
  }

  .pk-facts span {
    font-size: 12px;
  }

  .pk-grid-2 {
    grid-template-columns: 1fr;
  }

  .pk-card {
    padding: 20px;
  }

  .pk-slots {
    grid-template-columns: 1fr;
  }

  .pk-rows > div {
    flex-direction: column;
    gap: 2px;
  }

  .pk-rows dd {
    text-align: left;
  }

  .pk-cta {
    padding: 28px 22px;
  }

  .pk-cta .btn {
    width: 100%;
  }
}

/* FAQ */
.pk-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-faq details {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pk-faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.pk-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.pk-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 0.2s ease;
}

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

.pk-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

.pk-faq details p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 15px;
}

.pk-faq details p b {
  color: var(--text);
}

/* ===== Date check (#plan): pick a day -> free / busy (no full-year calendar) ===== */
.pk-check {
  max-width: 560px;
  margin: 0 auto;
}

.pk-check h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.pk-check-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.pk-check-form .pk-field {
  flex: 1;
  min-width: 0;
}

.pk-check-form .btn {
  flex-shrink: 0;
  min-height: 46px;
}

/* iOS Safari gives date inputs their own width (wider than the box on phones): reset it */
.pk-check-form input[type="date"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

.pk-check-form input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

@media (max-width: 480px) {
  .pk-check-form {
    flex-direction: column;
    align-items: stretch;
  }

  .pk-check-form .btn {
    width: 100%;
  }
}

.pk-check-result {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2, var(--accent-soft));
  font-size: 15px;
}

.pk-check-result[hidden] {
  display: none;
}

.pk-check-result p {
  margin: 0;
}

.pk-check-result.is-free {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.pk-check-result.is-busy {
  background: var(--danger-soft);
  color: var(--danger);
}

.pk-check-result.is-loading,
.pk-check-result.is-info {
  color: var(--muted);
}

.pk-check-sub {
  font-size: 13px;
  opacity: 0.85;
}

.pk-check-result .btn {
  margin-top: 4px;
}

.pk-check .pk-fineprint {
  margin: 14px 0 0;
}

@media (max-width: 480px) {
  .pk-check-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Price calculator (#calc): form left, summary right (stacks on small screens) ===== */
.pk-calc {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}

.pk-calc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pk-calc-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pk-field[hidden] {
  display: none;
}

.pk-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pk-field input,
.pk-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.pk-field input:focus,
.pk-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pk-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.pk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pk-chips button {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.pk-chips button:hover {
  border-color: var(--accent);
}

.pk-chips button[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.pk-chips button:focus-visible,
.pk-calc-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pk-calc-result {
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 70%),
    var(--surface-2);
}

.pk-calc-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.pk-calc-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
}

.pk-calc-lines dt {
  color: var(--muted);
}

.pk-calc-lines dd {
  font-family: var(--font-num);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pk-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.pk-calc-total strong {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pk-calc-copy {
  width: 100%;
}

@media (max-width: 860px) {
  .pk-calc {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .pk-calc-side {
    position: static;
  }
}

/* ===== Package 2 extras: list + card board illustration =====
   Desktop: list and note on the left, board on the right.
   Phone: list, then the board (centred), then the note about returning the cards. */
.pk-p2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "body art" "note art";
  column-gap: 24px;
  row-gap: 4px;
  align-items: center;
}

.pk-p2-body { grid-area: body; }
.pk-p2-art { grid-area: art; }
.pk-p2-note { grid-area: note; margin-top: 0; }

.pk-p2-art:empty {
  display: none;
}

.pk-p2-art svg {
  --pk-sw: 0.6;
  display: block;
  width: 240px;
  height: 240px;
}

@media (max-width: 640px) {
  .pk-p2 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "body" "art" "note";
    row-gap: 12px;
  }

  .pk-p2-art {
    justify-self: center;
  }

  .pk-p2-art svg {
    --pk-sw: 0.7;
    width: 196px;
    height: 196px;
  }
}

/* ===== Package icons (line style, accent colour, follow light/dark) ===== */
.pk-ic {
  display: block;
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.pk-ic * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--pk-sw, 2);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pk-ic .dot {
  fill: currentColor;
  stroke: none;
}

.pk-ic[hidden] {
  display: none;
}

/* Icon in the top-right corner of a price card */
.pk-card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  pointer-events: none;
}

.pk-card-icon .pk-ic {
  --pk-sw: 1.1;
  width: 124px;
  height: 124px;
}

/* Keep text clear of the corner icon */
.pk-card-icon ~ .pk-card-kicker {
  padding-right: 136px;
}

/* Graduation / Pre-wedding header: two labelled icons */
.pk-head-icons {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pk-head-icons > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pk-head-icons .pk-ic {
  --pk-sw: 1.5;
  width: 84px;
  height: 84px;
}

@media (max-width: 640px) {
  .pk-card-icon .pk-ic {
    --pk-sw: 1.35;
    width: 96px;
    height: 96px;
  }

  .pk-card-icon ~ .pk-card-kicker {
    padding-right: 104px;
  }

  .pk-head-icons {
    grid-column: 1 / -1;
  }
}

/* ===== Icon motion: A = lines draw in once when first seen, then C = a short move every 5 s, and the icon floats.
   Only transform / fill / stroke-dashoffset on small SVGs; paused while the icon is off screen (packages.js). ===== */
.pk-ic g,
.pk-ic rect,
.pk-ic circle,
.pk-ic path {
  transform-box: fill-box;
  transform-origin: center;
}

.pk-ic .card { transform: rotate(6deg); }
.pk-ic .tassel,
.pk-ic .c { transform-origin: top center; }

/* A: draw in */
.pk-ic.is-draw * {
  stroke-dasharray: 1 1;
  animation: pk-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.pk-ic.is-draw .dot {
  stroke-dasharray: none;
  animation: pk-pop 0.5s 1s both;
}

@keyframes pk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pk-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* C: each icon's own move */
.pk-ic.is-loop {
  --pk-loop: 5s;
  /* the whole icon floats gently all the time */
  animation: pk-icon-float 4s ease-in-out infinite;
}

@keyframes pk-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.pk-ic.is-loop .sh { animation: pk-shot var(--pk-loop) ease infinite both; }
.pk-ic.is-loop .sh2 { animation-delay: 0.3s; }
.pk-ic.is-loop .sh3 { animation-delay: 0.6s; }
.pk-ic.is-loop .spark { animation: pk-twinkle var(--pk-loop) ease infinite; }
.pk-ic.is-loop .card { animation: pk-wobble var(--pk-loop) ease infinite; }
.pk-ic.is-loop .pen { animation: pk-write var(--pk-loop) ease-in-out infinite; }
.pk-ic.is-loop .heart { animation: pk-beat var(--pk-loop) ease infinite; }
.pk-ic .tilt { transform: rotate(25deg); }
.pk-ic.is-loop .sp2 { animation-delay: 0.4s; }
.pk-ic.is-loop .fl { animation: pk-bloom var(--pk-loop) ease infinite both; }
.pk-ic.is-loop .fl2 { animation-delay: 0.15s; }
.pk-ic.is-loop .fl3 { animation-delay: 0.3s; }
.pk-ic.is-loop .fl4 { animation-delay: 0.45s; }
.pk-ic.is-loop .cap { animation: pk-toss var(--pk-loop) cubic-bezier(0.3, 0, 0.3, 1) infinite; }
.pk-ic.is-loop .tassel { animation: pk-swing var(--pk-loop) ease-in-out infinite; }
.pk-ic.is-loop .r1 { animation: pk-clink-l var(--pk-loop) ease infinite; }
.pk-ic.is-loop .r2 { animation: pk-clink-r var(--pk-loop) ease infinite; }
.pk-ic.is-loop .stone { animation: pk-glint var(--pk-loop) ease infinite; }
.pk-ic.is-loop .c { animation: pk-sway var(--pk-loop) ease-in-out infinite; }
.pk-ic.is-loop .c:nth-of-type(2n) { animation-delay: 0.12s; }
.pk-ic.is-loop .c:nth-of-type(3n) { animation-delay: 0.24s; }

/* Off screen: freeze (no work for the browser) */
.pk-ic.is-paused,
.pk-ic.is-paused * { animation-play-state: paused; }

/* Each move takes ~2.4 s of the 5 s loop; the rest is still */
@keyframes pk-shot { 0%, 47.6%, 100% { fill: transparent; } 5.6%, 14% { fill: var(--accent-soft); } }
@keyframes pk-twinkle { 0%, 25.2%, 100% { transform: scale(1) rotate(0); } 11.2% { transform: scale(1.5) rotate(45deg); } 16.8% { transform: scale(0.8) rotate(60deg); } }
@keyframes pk-wobble { 0%, 42%, 100% { transform: rotate(6deg); } 11.2% { transform: rotate(1deg) translateY(-2px); } 22.4% { transform: rotate(9deg); } 33.6% { transform: rotate(5deg); } }
@keyframes pk-write { 0%, 33.6%, 100% { transform: translate(0, 0); } 8.4% { transform: translate(-3px, -2px); } 15.4% { transform: translate(0, -1px); } 22.4% { transform: translate(-3px, -3px); } 30.8% { transform: translate(0, 0); } }
@keyframes pk-beat { 0%, 25.2%, 100% { transform: scale(1); } 5.6% { transform: scale(1.25); } 11.2% { transform: scale(1); } 16.8% { transform: scale(1.2); } 22.4% { transform: scale(1); } }
@keyframes pk-bloom { 0%, 25.2%, 100% { transform: scale(1); } 7% { transform: scale(0.5); } 16.8% { transform: scale(1.35); } }
@keyframes pk-toss { 0%, 36.4%, 100% { transform: translateY(0) rotate(0); } 14% { transform: translateY(-9px) rotate(-10deg); } 25.2% { transform: translateY(0) rotate(3deg); } }
@keyframes pk-swing { 0%, 36.4%, 100% { transform: rotate(0); } 16.8% { transform: rotate(18deg); } 25.2% { transform: rotate(-12deg); } 33.6% { transform: rotate(6deg); } }
@keyframes pk-clink-l { 0%, 28%, 100% { transform: translateX(0); } 11.2% { transform: translateX(-4px); } 18.2% { transform: translateX(2px); } }
@keyframes pk-clink-r { 0%, 28%, 100% { transform: translateX(0); } 11.2% { transform: translateX(4px); } 18.2% { transform: translateX(-2px); } }
@keyframes pk-glint { 0%, 28%, 100% { transform: scale(1); } 18.2% { transform: scale(1.3) rotate(8deg); } }
@keyframes pk-sway { 0%, 39.2%, 100% { transform: rotate(0); } 11.2% { transform: rotate(9deg); } 22.4% { transform: rotate(-7deg); } 33.6% { transform: rotate(3deg); } }

/* The owner wants these to move even when the OS asks for less motion
   (overrides the page's global reduced-motion rule) */
@media (prefers-reduced-motion: reduce) {
  .pk-ic.is-draw * { animation-duration: 1.4s !important; }
  .pk-ic.is-draw .dot { animation-duration: 0.5s !important; }
  .pk-ic.is-loop { animation-duration: 4s !important; }
  .pk-ic.is-loop * { animation-duration: 5s !important; }
}

/* Frame illustration: 5 frames + a small fanned deck of 3 cards (one card design per picked frame).
   Everything floats up and down a little, each piece slightly out of step.
   Only the inner <svg> moves (transform), so the picked frames keep their lift; paused off screen (packages.js) */
.pk-frame-cards {
  display: flex;
  align-items: flex-end;
}

.pk-frame-cards .pk-frame-plus {
  align-self: center;
  margin-right: 6px;
}

/* Cards overlap like a fanned deck: each still readable */
.pk-frame-cards .is-card + .is-card {
  margin-left: -15px;
}

.pk-frame-cards .is-card svg { transform: rotate(var(--r, 0deg)); transform-origin: bottom center; }
.pk-frame-cards .is-card:nth-child(2) { --r: -9deg; }
.pk-frame-cards .is-card:nth-child(3) { --r: 0deg; position: relative; z-index: 1; }
.pk-frame-cards .is-card:nth-child(4) { --r: 9deg; position: relative; z-index: 2; }

.pk-frame-row.is-floating .pk-frame > svg {
  animation: pk-float 3.2s ease-in-out infinite;
}

/* Out of step: each piece starts at a different point of the loop */
.pk-frame-row.is-floating > .pk-frame:nth-child(2) > svg { animation-delay: -0.6s; }
.pk-frame-row.is-floating > .pk-frame:nth-child(3) > svg { animation-delay: -1.2s; }
.pk-frame-row.is-floating > .pk-frame:nth-child(4) > svg { animation-delay: -1.8s; }
.pk-frame-row.is-floating > .pk-frame:nth-child(5) > svg { animation-delay: -2.4s; }
.pk-frame-row.is-floating .is-card:nth-child(2) > svg { animation-delay: -0.4s; }
.pk-frame-row.is-floating .is-card:nth-child(3) > svg { animation-delay: -1.4s; }
.pk-frame-row.is-floating .is-card:nth-child(4) > svg { animation-delay: -2.4s; }

@keyframes pk-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-5px) rotate(var(--r, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .pk-frame-row.is-floating .pk-frame > svg { animation-duration: 3.2s !important; }
}

/* Card board: cards still swing, but the board itself stays put (no float) */
.pk-p2-art .pk-ic.is-loop {
  animation: none !important;
}

/* ===== Package 1 vs 2 card: comparison table | card board icon + real photo ===== */
.pk-p2 {
  grid-template-areas: "body visual" "note visual";
}

.pk-p2-visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pk-p2-visual .pk-p2-art {
  grid-area: auto;
}

.pk-p2-photo {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
}

.pk-p2-photo img {
  display: block;
  width: auto;
  height: 260px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}

.pk-p2-photo figcaption {
  color: var(--muted);
  font-size: 12px;
}

.pk-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pk-compare th,
.pk-compare td {
  padding: 9px 10px;
  border-top: 1px dashed var(--line);
  text-align: left;
  vertical-align: middle;
}

.pk-compare thead th {
  border-top: 0;
  font-size: 14px;
  white-space: nowrap;
}

.pk-compare thead th:not(:first-child),
.pk-compare td {
  width: 84px;
  text-align: center;
}

.pk-compare tbody th {
  font-weight: 400;
}

.pk-compare-price th,
.pk-compare-price td {
  border-top: 1px solid var(--line);
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pk-compare-price th {
  font-family: var(--font);
}

/* Same check badge as the lists on this page */
.pk-yes {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  vertical-align: middle;
}

.pk-yes::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pk-no {
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .pk-p2 {
    grid-template-areas: "body" "visual" "note";
  }

  .pk-p2-photo img {
    height: 210px;
  }

  .pk-compare {
    font-size: 14px;
  }

  .pk-compare thead th:not(:first-child),
  .pk-compare td {
    width: 64px;
    padding-inline: 4px;
  }
}

/* ===== Conditions: open on larger screens, tap to open on phones (packages.js sets "open") ===== */
.pk-more > summary {
  list-style: none;
  cursor: default;
  font-weight: 700;
}

.pk-more > summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 641px) {
  /* Always open here: the heading is just a heading */
  .pk-more > summary {
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .pk-more > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .pk-more > summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    color: var(--accent-text);
    transition: transform 0.2s ease;
  }

  .pk-more[open] > summary::after {
    transform: rotate(45deg);
  }

  .pk-more:not([open]) > summary {
    margin-bottom: 0;
  }

  .pk-more > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
  }
}

/* ===== Sticky chat button (phones only; hidden at the top and next to the page's own CTA) ===== */
.pk-sticky-chat {
  display: none;
}

@media (max-width: 640px) {
  .pk-sticky-chat:not([hidden]) {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
    animation: pk-chat-in 0.25s ease both;
  }

  .pk-sticky-chat:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
  }

  /* room so the button never covers the footer */
  .page-packages {
    padding-bottom: 80px;
  }
}

@keyframes pk-chat-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* ===== Card board: drawing -> arrow -> real photo as a polaroid on a clothespin =====
   The polaroid sways a little while on screen (transform only, paused off screen by packages.js). */
.pk-p2-visual {
  gap: 4px;
}

.pk-p2-arrow {
  flex-shrink: 0;
  width: 54px;
  height: 36px;
  margin-top: -40px;
  overflow: visible;
}

.pk-p2-arrow path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 5;
}

.pk-p2-photo {
  gap: 8px;
}

.pk-polaroid {
  position: relative;
  display: block;
  padding: 8px 8px 0;
  border: 0;
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(20, 24, 16, 0.18), 0 2px 4px rgba(20, 24, 16, 0.12);
  font: inherit;
  transform: rotate(4deg);
  transform-origin: 50% -6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pk-polaroid img {
  display: block;
  width: auto;
  height: 250px;
  max-width: none;
  border-radius: 2px;
  box-shadow: none;
}

.pk-polaroid-caption {
  display: block;
  padding: 6px 0 8px;
  color: #3F4A33;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Wooden clothespin holding the photo */
.pk-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  width: 12px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, #B98A52 0 45%, #A5773F 45% 55%, #B98A52 55%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.pk-p2-visual.is-live .pk-polaroid {
  animation: pk-polaroid-sway 6s ease-in-out infinite;
}

@keyframes pk-polaroid-sway {
  0%, 100% { transform: rotate(4deg); }
  50% { transform: rotate(-1.5deg); }
}

@media (max-width: 640px) {
  .pk-polaroid img {
    height: 200px;
  }

  .pk-p2-arrow {
    width: 40px;
    margin-top: -30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pk-p2-visual.is-live .pk-polaroid { animation-duration: 6s !important; }
}

/* ===== Split: comparison table card | card board card (drawing -> arrow -> photo) ===== */
.pk-p2-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
}

.pk-p2-row > .pk-card { margin: 0; }

.pk-p2 { display: block; }

.pk-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pk-board-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(90, 120, 50, 0.12));
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.pk-board .pk-p2-visual {
  flex: 1;
  gap: 0;
}

/* The board svg has empty space on its right, so pull the arrow into it */
.pk-board .pk-p2-arrow {
  margin-left: -40px;
  margin-right: 10px;
}

.pk-board .pk-p2-note { margin: 0; }

@media (max-width: 960px) {
  .pk-p2-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .pk-board .pk-p2-arrow {
    margin-left: -30px;
    margin-right: 6px;
  }
}


