/* CK Applied Systems: inner pages on the v4 dark system (loads after home-v4.css). */

.page { position: relative; overflow-x: hidden; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.page::before { content: ""; position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; z-index: 0; background:
    radial-gradient(760px 520px at 78% 18%, rgba(92, 225, 255, .14), transparent 65%),
    radial-gradient(640px 500px at 92% 46%, rgba(143, 125, 255, .16), transparent 65%),
    radial-gradient(700px 500px at 0% 0%, rgba(143, 125, 255, .07), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
.page::after { content: ""; position: absolute; inset: 0 0 auto; height: 1000px; pointer-events: none; z-index: 0; opacity: .6;
  background-image: radial-gradient(rgba(238, 243, 247, .1) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 55% at 72% 22%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 72% 22%, #000 0%, transparent 70%); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 30px, 0); } }
.page .top, .page .footer { position: relative; z-index: 2; }
.page .top { position: absolute; }
.page-main { position: relative; z-index: 1; padding: 140px 0 clamp(80px, 10vw, 120px); }
.page h1 { font-size: clamp(44px, 5.8vw, 84px); letter-spacing: -.045em; line-height: .96; }
.page h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Booking page */
.book { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.book-intro { position: sticky; top: 40px; }
.book-steps { display: grid; gap: 22px; margin-top: 44px; }
.book-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.book-steps .step-n { margin: 0; font-size: 36px; }
.book-steps h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 4px; }
.book-steps p { color: var(--muted); font-size: 15.5px; }
.book-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(75, 227, 160, .25); background: rgba(75, 227, 160, .06); color: var(--text); font-size: 15px; }
.book-note svg { width: 16px; height: 16px; color: var(--mint); }

.book-panel { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); background: linear-gradient(180deg, #111821, #0c1117); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 80px -40px rgba(92, 225, 255, .3); }
.panel-head h2 { font-size: 26px; letter-spacing: -.03em; }
.panel-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.form { display: grid; gap: 18px; margin-top: 28px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 7, 10, .6); color: var(--text); font: 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238d99a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field select option { background: #0e131a; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(238, 243, 247, .25); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(92, 225, 255, .15); background: rgba(5, 7, 10, .85); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 120, 120, .35); background: rgba(255, 120, 120, .08); color: #ffb4b4; font-size: 15px; }
.form-submit { justify-content: center; width: 100%; padding: 16px 24px; font-size: 16px; border: 0; cursor: pointer; }
.form-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.form-foot { color: var(--muted); font-size: 14px; text-align: center; }
.form-foot a { color: var(--text); }

.book-success { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.book-success[hidden] { display: none; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(75, 227, 160, .12); color: var(--mint); }
.success-mark svg { width: 24px; height: 24px; }
.book-success h2 { font-size: 32px; letter-spacing: -.035em; }
.book-success p { color: var(--muted); }

@media (max-width: 1020px) {
  .book { grid-template-columns: 1fr; }
  .book-intro { position: static; }
}
@media (max-width: 760px) {
  .page-main { padding-top: 110px; }
  .field-pair { grid-template-columns: 1fr; }
}

/* Top bar call to action on inner pages */
.top-links { align-items: center; }
.top-links .top-cta { padding: 9px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; }
.top-links .top-cta:hover { color: var(--bg); background: #fff; }
@media (max-width: 760px) { .top-links { display: flex; } .top-links a:not(.top-cta) { display: none; } }

/* Company, Privacy, Terms */
.company-main { position: relative; z-index: 1; padding: 140px 0 clamp(70px, 9vw, 110px); }
.company-shell { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.company-index { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.company-hero { padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.company-hero h1 { max-width: 18ch; }
.company-lede { max-width: 60ch; margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); }
.company-lede strong { color: var(--text); font-weight: 600; }
.company-record, .representative, .registry { padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.record-layout, .representative-layout, .registry-layout { display: grid; grid-template-columns: minmax(220px, .8fr) 1.6fr; gap: 18px clamp(32px, 6vw, 96px); align-items: start; }
.record-body { display: grid; gap: 18px; }
.company-record h2, .representative h2, .registry h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.035em; }
.company-record header p:not(.company-index) { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.company-record p, .representative p, .registry p { color: var(--muted); }
.company-record p strong, .representative p strong, .registry p strong { color: var(--text); font-weight: 600; }
.company-record ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; color: var(--muted); }
.company-record a, .registry a, .representative a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.company-record a:hover, .registry a:hover, .representative a:hover { text-decoration-color: var(--cyan); }
.record-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.record-list > div { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.record-list dt { font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.record-list dd { margin: 0; color: var(--text); }
.representative-copy p { font-size: 18px; }
.representative-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.registry-link { display: inline-block; margin-top: 16px; }

@media (max-width: 860px) {
  .record-layout, .representative-layout, .registry-layout { grid-template-columns: 1fr; }
  .record-list > div { grid-template-columns: 1fr; gap: 4px; }
  .company-main { padding-top: 110px; }
}

/* Billing */
.billing { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.billing-note { max-width: 56ch; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.billing-steps { display: grid; gap: 14px; }
.billing-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.billing-steps .step-n { margin: 0; font-size: 38px; }
.billing-steps h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.billing-steps p { color: var(--muted); font-size: 15.5px; }
.billing-steps a { color: var(--text); }
@media (max-width: 1020px) { .billing { grid-template-columns: 1fr; } }


/* Glow panels: animated gradient edge, like the homepage feed */
.book-panel, .billing-steps li {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #111821, #0b1016) padding-box,
    conic-gradient(from var(--ang), rgba(92, 225, 255, .55), rgba(143, 125, 255, .35), rgba(238, 243, 247, .08) 30%, rgba(238, 243, 247, .08) 70%, rgba(92, 225, 255, .55)) border-box;
  animation: spinEdge 8s linear infinite;
}
.billing-steps li { animation-duration: 12s; }
.billing-steps li:nth-child(2) { animation-delay: -4s; }
.billing-steps li:nth-child(3) { animation-delay: -8s; }
@keyframes spinEdge { to { --ang: 360deg; } }
.book-panel { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95), 0 0 120px -40px rgba(92, 225, 255, .35); }

/* Steps joined by a gradient rail */
.book-steps { position: relative; }
.book-steps::before { content: ""; position: absolute; left: 12px; top: 44px; bottom: 30px; width: 1px; background: linear-gradient(var(--cyan), var(--violet) 70%, transparent); opacity: .5; }
.book-steps .step-n { position: relative; background: var(--grad); -webkit-background-clip: text; background-clip: text; }

/* Spotlight that follows the pointer on cards */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--px, 50%) var(--py, 50%), rgba(92, 225, 255, .1), transparent 55%); opacity: 0; transition: opacity .35s; }
.spot:hover::after { opacity: 1; }

/* Legal and company records sit on soft cards */
.record-list { border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; background: rgba(14, 19, 26, .6); }
.record-list > div:last-child { border-bottom: 0; }
.company-hero { position: relative; }

/* Entrance */
.js .page-main .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .page-main .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .page-main .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .page::before, .book-panel, .billing-steps li { animation: none; }
  .js .page-main .rise, .js .page-main .reveal { opacity: 1; transform: none; animation: none; }
}

/* Panels that both rise in and carry the spinning edge */
.js .page-main .book-panel.rise { animation: rise .9s var(--ease) forwards, spinEdge 8s linear infinite; animation-delay: var(--d, 0s), 0s; }
.js .page-main .billing-steps li.rise { animation: rise .9s var(--ease) forwards, spinEdge 12s linear infinite; animation-delay: var(--d, 0s), var(--e, 0s); }
.billing-steps li:nth-child(2) { --e: -4s; }
.billing-steps li:nth-child(3) { --e: -8s; }
.book-panel, .billing-steps li {
  background:
    linear-gradient(180deg, #111821, #0b1016) padding-box,
    conic-gradient(from var(--ang), rgba(92, 225, 255, .9), rgba(143, 125, 255, .6) 12%, rgba(238, 243, 247, .1) 28%, rgba(238, 243, 247, .1) 72%, rgba(143, 125, 255, .6) 88%, rgba(92, 225, 255, .9)) border-box;
}
@media (prefers-reduced-motion: reduce) { .js .page-main .book-panel.rise, .js .page-main .billing-steps li.rise { animation: none; opacity: 1; transform: none; } }
