/* Shared sub-page styles: rates.html and book.html */

/* ---------- page hero ---------- */
.page-hero {padding:64px 0 38px; text-align:center;}
.page-hero h1 {font-family:var(--display); font-weight:400; font-size:clamp(46px,7vw,76px); letter-spacing:4px; line-height:1.02; margin:14px 0;}
.page-hero p {max-width:660px; margin:14px auto; color:var(--ink-dim);}
.page-hero .fine-print {margin-top:-6px; font-size:14px; color:var(--ink-faint);}
.page-actions {display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:26px;}

/* ---------- AYSA discount ---------- */
.aysa-note {max-width:900px; margin:10px auto 48px; display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:center; padding:26px 30px; background:var(--panel); border:1px solid var(--line); border-left:4px solid var(--red-bright); border-radius:6px;}
.aysa-badge {display:flex; flex-direction:column; align-items:center; justify-content:center; width:112px; height:112px; border-radius:50%; border:1px solid rgba(201,74,63,.55); background:rgba(178,58,48,.13);}
.aysa-badge b {font-family:var(--display); font-weight:400; font-size:46px; line-height:.9; letter-spacing:1px; color:var(--ink);}
.aysa-badge span {margin-top:4px; font-family:var(--display); font-size:13px; letter-spacing:2.5px; color:var(--red-bright);}
.aysa-note h2 {font-family:var(--display); font-weight:400; font-size:28px; letter-spacing:2px; line-height:1.1;}
.aysa-note p {margin-top:7px; color:var(--ink-dim);}
.aysa-note strong {color:var(--ink);}

/* ---------- sticky category bar ---------- */
.rate-nav-bar {position:sticky; top:66px; z-index:40; background:rgba(11,11,12,.9); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.rate-nav {display:flex; gap:6px; justify-content:center; padding-top:9px; padding-bottom:9px; overflow-x:auto; scrollbar-width:none;}
.rate-nav::-webkit-scrollbar {display:none;}
.rate-nav a {flex:none; font-family:var(--display); font-size:16px; letter-spacing:2.5px; padding:8px 16px 6px; border:1px solid transparent; border-radius:4px; text-decoration:none; color:var(--ink-dim); transition:color .18s, border-color .18s, background .18s;}
.rate-nav a:hover {color:var(--ink); border-color:var(--line-strong);}
.rate-nav a[aria-current] {color:var(--ink); border-color:rgba(201,74,63,.6); background:rgba(178,58,48,.14);}
.rate-nav-bar + .rate-section {border-top:0;}

/* ---------- sections ---------- */
.rate-section {padding:64px 0 72px; scroll-margin-top:124px;}
.rate-section h2 {font-family:var(--display); font-weight:400; font-size:clamp(32px,4.4vw,44px); letter-spacing:3px; line-height:1.05;}
.rate-section h2::before {content:""; display:block; width:44px; height:3px; margin-bottom:18px; background:var(--red-bright);}
.rate-section h3 {font-family:var(--display); font-weight:400; font-size:26px; letter-spacing:2.5px; line-height:1.1; margin-top:48px;}
.rate-section .intro {color:var(--ink-dim); margin-top:12px; max-width:820px; font-size:17px;}
.rate-section .page-actions {justify-content:flex-start;}

/* ---------- tables ---------- */
.table-scroll {overflow-x:auto; margin-top:28px; background:var(--panel); border:1px solid var(--line); border-radius:6px;}
.table-scroll:focus-visible {outline:2px solid var(--red-bright); outline-offset:4px;}
table {width:100%; border-collapse:collapse; font-size:15.5px; text-align:left;}
th {padding:14px 20px 11px; background:var(--panel-2); border-bottom:1px solid var(--line-strong); font-family:var(--display); font-weight:400; font-size:15px; letter-spacing:2.5px; color:var(--ink-dim); white-space:nowrap;}
td {padding:15px 20px; border-bottom:1px solid var(--line); vertical-align:middle; color:var(--ink-dim);}
tbody tr:last-child td {border-bottom:0;}
tbody tr {transition:background .15s;}
tbody tr:hover {background:rgba(244,241,234,.035);}
td:first-child {color:var(--ink); font-weight:500; min-width:185px;}
.price {white-space:nowrap; font-family:var(--display); font-weight:400; font-size:24px; letter-spacing:1px; line-height:1; color:var(--ink);}
.t-prices th:first-child {width:46%;}
.t-member th:last-child {color:var(--red-bright); background:rgba(178,58,48,.14);}
.t-member td:last-child {background:rgba(178,58,48,.07);}
.t-party th:nth-child(2), .t-party td:nth-child(2) {white-space:nowrap;}
.t-party td:first-child {min-width:240px;}
.t-party td strong {color:var(--ink); font-weight:600;}

/* "Coming soon" items: badge next to the name, prices dimmed */
.soon {display:inline-block; position:relative; top:-1px; margin-left:6px; padding:3px 7px 1px; font-family:var(--display); font-weight:400; font-size:12.5px; letter-spacing:2px; line-height:1.3; color:var(--red-bright); border:1px solid rgba(201,74,63,.55); border-radius:3px; background:rgba(178,58,48,.1); white-space:nowrap; vertical-align:middle;}
tr.is-soon .price {color:var(--ink-faint);}
.t-party .soon, .stack td:first-child .soon {display:block; width:fit-content; top:0; margin:7px 0 0;}

/* ---------- notes ---------- */
.rate-note {color:var(--ink-dim); font-size:14.5px; margin-top:18px; max-width:880px;}
.rate-note strong {color:var(--ink);}
.rate-callout {margin-top:28px; max-width:none; padding:20px 24px; background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--red-bright); border-radius:6px; font-size:15px;}
.rate-callout strong {display:block; margin-bottom:4px; font-family:var(--display); font-weight:400; font-size:21px; letter-spacing:2px;}

/* ---------- membership plans ---------- */
.plans {margin-top:32px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px;}
.plan {display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:28px 24px 22px; transition:border-color .2s, transform .2s;}
.plan:hover {border-color:var(--line-strong); transform:translateY(-3px);}
.plan.feature {background:var(--panel-2); border-color:rgba(201,74,63,.55);}
.rate-section .plan h3 {margin-top:0; font-size:25px;}
.plan .for {margin-top:3px; font-family:var(--display); font-size:14px; letter-spacing:2.5px; color:var(--ink-faint);}
.plan-price {display:flex; align-items:baseline; gap:7px; margin-top:18px; padding-bottom:16px; border-bottom:1px solid var(--line);}
.plan-price b {font-family:var(--display); font-weight:400; font-size:56px; line-height:.9; letter-spacing:1px; color:var(--ink);}
.plan-price span {font-size:14px; color:var(--ink-faint);}
.plan-cost {margin-top:18px; padding-bottom:16px; border-bottom:1px solid var(--line);}
.plan-cost .plan-price {margin-top:0; padding-bottom:0; border-bottom:0;}
.plan-annual {margin-top:12px; font-size:14px; line-height:1.5; color:var(--ink-dim);}
.plan-annual b {font-family:var(--display); font-weight:400; font-size:22px; letter-spacing:1px; color:var(--ink);}
.plan-annual .annual-line {display:block; margin-top:2px; color:var(--ink-faint);}
.plan-annual .save {display:inline-block; position:relative; top:-2px; margin-left:4px; padding:3px 7px 1px; font-family:var(--display); font-size:12.5px; letter-spacing:2px; line-height:1.3; color:var(--red-bright); border:1px solid rgba(201,74,63,.55); border-radius:3px; background:rgba(178,58,48,.1); white-space:nowrap;}
.plan ul {list-style:none; margin-top:6px;}
.plan li {position:relative; padding:9px 0 9px 22px; border-top:1px solid var(--line); color:var(--ink-dim); font-size:15px; line-height:1.5;}
.plan li:first-child {border-top:0;}
.plan li::before {content:""; position:absolute; left:1px; top:15px; width:10px; height:10px; background:var(--ink-faint); clip-path:polygon(0 0,100% 0,100% 60%,50% 100%,0 60%);}
.plan.feature li::before, .plan.founder li::before {background:var(--red-bright);}

.founding-band {margin-top:18px; display:grid; grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr)); gap:16px; padding:16px; border:1px solid rgba(201,74,63,.45); border-radius:8px; background:linear-gradient(135deg, rgba(178,58,48,.14), rgba(178,58,48,.02) 65%);}
.founding-copy {align-self:center; padding:14px 10px 14px 12px;}
.founding-copy .tag {color:var(--red-bright); border-color:rgba(201,74,63,.5); margin-bottom:14px;}
.rate-section .founding-copy h3 {margin-top:0; font-size:30px; letter-spacing:3px;}
.founding-copy p {margin-top:10px; color:var(--ink-dim); font-size:15px;}
.plan.founder {background:var(--panel-2); border-color:rgba(201,74,63,.4);}

/* ---------- expandable details ---------- */
.rate-section details {margin-top:28px; background:var(--panel); border:1px solid var(--line); border-radius:6px; transition:border-color .18s;}
.rate-section details:hover, .rate-section details[open] {border-color:var(--line-strong);}
.rate-section summary {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 22px 15px; list-style:none; cursor:pointer; font-family:var(--display); font-size:20px; letter-spacing:2px; color:var(--ink);}
.rate-section summary::-webkit-details-marker {display:none;}
.rate-section summary::after {content:"+"; flex:none; font-family:var(--body); font-size:26px; line-height:1; color:var(--red-bright); transition:transform .2s;}
.rate-section details[open] summary::after {transform:rotate(45deg);}
.rate-section summary:focus-visible {outline:2px solid var(--red-bright); outline-offset:2px; border-radius:6px;}
.rate-section details > :not(summary) {margin-left:22px; margin-right:22px;}
.rate-section details > :last-child {margin-bottom:22px;}
.rate-section details > .table-scroll {margin-top:4px;}
.rate-section details p {margin-top:12px; color:var(--ink-dim); font-size:14.5px;}

/* ---------- closing CTA ---------- */
.closing {text-align:center; padding:76px 24px; background:radial-gradient(ellipse 60% 90% at 50% 0%, rgba(178,58,48,.13), transparent 70%), var(--panel); border-top:1px solid var(--line);}
.closing h2 {font-family:var(--display); font-weight:400; font-size:clamp(34px,5vw,46px); letter-spacing:3px; line-height:1.05;}
.closing p {margin:14px auto 26px; color:var(--ink-dim); max-width:600px;}

/* ---------- booking page ---------- */
.booking-main {min-height:65vh; display:grid; align-items:center; padding:70px 0;}
.booking-main .page-hero {padding:0;}
.booking-mark {width:70px; height:70px; display:grid; place-items:center; margin:0 auto 28px; background:var(--panel); border:1px solid var(--line); border-radius:50%; font-size:28px; color:var(--red-bright);}
.booking-main .fine-print {margin-top:22px;}

/* ---------- misc ---------- */
.skip-link {position:fixed; left:16px; top:-100px; z-index:100; background:var(--ink); color:var(--bg); padding:10px 18px;}
.skip-link:focus {top:12px;}
.nav-links a[aria-current="page"] {color:var(--ink);}

/* ---------- responsive ---------- */
@media (max-width:1000px) {
  .plans {grid-template-columns:repeat(2,minmax(0,1fr));}
  .founding-band {grid-template-columns:repeat(2,minmax(0,1fr));}
  .founding-copy {grid-column:1 / -1; padding-bottom:4px;}
}

@media (max-width:760px) {
  .rate-nav {justify-content:flex-start; -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent); mask-image:linear-gradient(90deg,#000 82%,transparent);}
  .rate-nav a {font-size:15px; padding:7px 12px 5px;}
}

@media (max-width:640px) {
  /* Wide tables become stacked cards: each row is a card, column names come from data-label */
  .stack thead {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;}
  .stack, .stack tbody {display:block;}
  .stack tr {display:grid; padding:16px 18px 15px; border-bottom:1px solid var(--line);}
  .stack tbody tr:last-child {border-bottom:0;}
  .stack td {display:block; padding:0; border:0; min-width:0; background:none !important;}
  .stack td:first-child {grid-column:1 / -1; min-width:0; margin-bottom:10px; font-size:16px;}
  th {white-space:normal;}
  td:first-child {min-width:0;}
  .stack td[data-label]::before {content:attr(data-label); display:block; margin-bottom:5px; font-family:var(--display); font-weight:400; font-size:13.5px; letter-spacing:2px; color:var(--ink-dim);}
  .stack td:first-child::before {display:none;}
  .t-prices tr {grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:12px;}
  .t-member td:last-child::before {color:var(--red-bright);}
  .t-party tr {grid-template-columns:auto auto 1fr; column-gap:28px;}
  .t-party td:last-child {grid-column:1 / -1; margin-top:12px; font-size:14.5px;}}

@media (max-width:600px) {
  .page-hero {padding-top:44px;}
  .page-actions .btn {width:100%; text-align:center;}
  .kicker {gap:12px; font-size:14px; letter-spacing:3.5px;}
  .kicker::before, .kicker::after {width:24px; flex:none;}
  .aysa-note {grid-template-columns:1fr; gap:14px; padding:22px;}
  .aysa-badge {flex-direction:row; align-items:baseline; gap:10px; width:auto; height:auto; justify-self:start; padding:9px 16px 6px; border-radius:4px;}
  .aysa-badge b {font-size:32px;}
  .aysa-badge span {margin-top:0;}
  .rate-section {padding:44px 0 52px;}
  .rate-section h3 {margin-top:40px;}
  th, td {padding:12px 14px;}
  table {font-size:14.5px;}
  .plans, .founding-band {grid-template-columns:1fr;}
  .founding-band {padding:12px;}
  .closing {padding:60px 24px;}
}

@media (prefers-reduced-motion: reduce) {
  .plan, .plan:hover {transition:none; transform:none;}
}
