/* ============ Design Tokens ============ */
:root {
  --c-bg-primary: #B8C5D1;
  --c-bg-card: #F5F4EE;
  --c-bg-page: #FAFAFA;
  --c-ink: #1A1A1A;
  --c-ink-soft: #666666;
  --c-ink-mute: #999999;
  --c-line: #E5E5E5;
  --c-dark: #1A1A1A;
  --c-accent: #1A1A1A;

  --f-serif-tc: 'Noto Serif TC', Georgia, serif;
  --f-sans-tc: 'Noto Sans TC', -apple-system, system-ui, sans-serif;
  --f-sans-en: 'Inter', -apple-system, system-ui, sans-serif;
  --f-pixel: 'Press Start 2P', monospace;
  --f-mono: 'VT323', 'Courier New', monospace;
}

/* ============ Base ============ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--f-sans-tc), var(--f-sans-en);
  color: var(--c-ink);
  background: var(--c-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bg-page { background: var(--c-bg-page); }
.bg-primary { background: var(--c-bg-primary); }
.bg-card { background: var(--c-bg-card); }
.bg-dark { background: var(--c-dark); }

.text-ink { color: var(--c-ink); }
.text-soft { color: var(--c-ink-soft); }
.text-mute { color: var(--c-ink-mute); }
.text-light { color: rgba(255,255,255,0.85); }

/* ============ Typography utilities ============ */
.font-serif-tc { font-family: var(--f-serif-tc); }
.font-sans-tc { font-family: var(--f-sans-tc); }
.font-en { font-family: var(--f-sans-en); }
.font-pixel { font-family: var(--f-pixel); letter-spacing: 0.05em; }
.font-mono { font-family: var(--f-mono); }

/* ============ Section wrapper ============ */
.section {
  position: relative;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Internal snap points: for long sections that need multiple "pages" */
.snap-block {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 16px;
}

/* Section inner content wrapper: full-width so flex centering layout still respects max-width */
.section > .reveal,
.section > .max-w-5xl,
.section > .max-w-6xl {
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    padding: clamp(48px, 8vh, 68px) clamp(16px, 4vw, 20px);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 44px 16px;
  }
}

/* On touch devices, soften snap to proximity so it doesn't fight momentum scrolling */
@media (hover: none) and (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
  .section, .snap-block { scroll-snap-stop: normal; }
}

.section-tag {
  font-family: var(--f-pixel);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--c-ink-mute);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

/* Section header: pairs section-tag + section-num on one line */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head .section-tag {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .section-head {
    gap: 8px;
    margin-bottom: 16px;
  }
}

.section-num {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-ink);
  padding: 9px 14px;
  background: rgba(255,255,255,0.78);
  border: 1.5px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(26,26,26,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.section-num {
  cursor: pointer;
  text-decoration: none;
}

.section-num:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(26,26,26,0.22);
  background: var(--c-bg-card);
}

.section-num:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(26,26,26,0.18);
}

/* Hero is centered — section-num floats top-left, away from logo */
#hero .section-num {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 5;
}

@media (max-width: 640px) {
  #hero .section-num {
    top: 18px;
    left: 16px;
    font-size: 10px;
    padding: 7px 10px;
    letter-spacing: 0.15em;
  }
  .section-num {
    font-size: 10px;
    padding: 7px 10px;
    letter-spacing: 0.15em;
  }
}

/* ============ Location tags · feature chips ============ */
.loc-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .loc-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.loc-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  background: white;
  border: 1.5px solid var(--c-ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--c-bg-primary);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              background 0.22s ease;
  overflow: hidden;
}

.loc-tag:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}

.loc-tag::before {
  content: attr(data-en);
  display: block;
  font-family: var(--f-pixel);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--c-ink-mute);
  line-height: 1;
}

.loc-tag-mark {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-bg-primary);
  transition: color 0.22s ease, transform 0.22s ease;
}

.loc-tag-label {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  line-height: 1.1;
}

.loc-tag:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--c-bg-primary);
  background: var(--c-bg-card);
}

.loc-tag:hover .loc-tag-mark {
  color: var(--c-ink);
  transform: rotate(45deg);
}

.loc-tag:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--c-bg-primary);
}

/* ============ Location tag info panel (inline, expanded under tags) ============ */
.loc-info[hidden] {
  display: none;
}

.loc-info {
  position: relative;
  margin-top: 28px;
  padding: 26px 30px 24px;
  background: white;
  border: 1.5px solid var(--c-ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--c-bg-primary);
  opacity: 0;
  transform: translateY(-6px);
}

.loc-info.is-anim {
  animation: locInfoSlide 320ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes locInfoSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.loc-info-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--c-ink);
  border-radius: 2px;
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.loc-info-close:hover {
  background: var(--c-ink);
  color: var(--c-bg-card);
  transform: rotate(90deg);
}

.loc-info-close:focus-visible {
  outline: 2px solid var(--c-bg-primary);
  outline-offset: 2px;
}

.loc-info-code {
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--c-ink-mute);
  margin-bottom: 8px;
}

.loc-info-title {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--c-ink);
  margin: 0 0 12px 0;
  line-height: 1.3;
  padding-right: 36px;
}

.loc-info-text {
  font-family: var(--f-sans-tc);
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  margin: 0;
}

@media (max-width: 640px) {
  .loc-info {
    margin-top: 20px;
    padding: 22px 20px 20px;
  }
  .loc-info-title { font-size: 18px; padding-right: 32px; }
  .loc-info-text { font-size: 13px; line-height: 1.75; }
  .loc-info-close { width: 26px; height: 26px; font-size: 13px; top: 8px; right: 10px; }
}

/* Active state on the selected tag — visually links to the open info panel */
.loc-tag.is-active {
  background: var(--c-ink);
  color: var(--c-bg-card);
}

.loc-tag.is-active::before {
  color: rgba(245,244,238,0.55);
}

.loc-tag.is-active .loc-tag-mark {
  color: rgba(245,244,238,0.7);
}

.loc-tag.is-active .loc-tag-label {
  color: var(--c-bg-card);
}

/* ============ Unit spec tags · feature chips with primary variant ============ */
.unit-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.unit-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  background: white;
  border: 1.5px solid var(--c-ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--c-bg-primary);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              background 0.22s ease;
  overflow: hidden;
}

.unit-tag::before {
  content: attr(data-en);
  display: block;
  font-family: var(--f-pixel);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--c-ink-mute);
  line-height: 1;
}

.unit-tag-mark {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-bg-primary);
  transition: color 0.22s ease, transform 0.22s ease;
}

.unit-tag-label {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  line-height: 1.1;
}

/* Primary variant: filled black, used for headline stat (room count) */
.unit-tag.is-primary {
  background: var(--c-ink);
  border-color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-bg-primary);
}

.unit-tag.is-primary::before {
  color: rgba(245,244,238,0.55);
}

.unit-tag.is-primary .unit-tag-mark {
  color: rgba(245,244,238,0.45);
}

.unit-tag.is-primary .unit-tag-label {
  color: var(--c-bg-card);
}

.unit-tag:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--c-bg-primary);
}

.unit-tag:hover .unit-tag-mark {
  transform: rotate(45deg);
}

.unit-tag:not(.is-primary):hover {
  background: var(--c-bg-card);
}

.unit-tag:not(.is-primary):hover .unit-tag-mark {
  color: var(--c-ink);
}

.unit-tag.is-primary:hover .unit-tag-mark {
  color: var(--c-bg-card);
}

.unit-tag:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--c-bg-primary);
}

/* CTA variant: clickable, wiggles periodically to draw attention */
.unit-tag.is-cta {
  cursor: pointer;
  text-decoration: none;
  background: var(--c-bg-primary);
  border-color: var(--c-ink);
  animation: ctaWiggle 4.5s ease-in-out infinite;
  transform-origin: center center;
}

.unit-tag.is-cta::before {
  color: var(--c-ink);
}

.unit-tag.is-cta .unit-tag-mark {
  color: var(--c-ink);
}

.unit-tag-arrow {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--f-mono);
  font-weight: 400;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.unit-tag.is-cta:hover {
  animation: none;
  background: var(--c-ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--c-bg-primary);
}

.unit-tag.is-cta:hover::before {
  color: rgba(245,244,238,0.55);
}

.unit-tag.is-cta:hover .unit-tag-mark {
  color: rgba(245,244,238,0.7);
  transform: rotate(45deg);
}

.unit-tag.is-cta:hover .unit-tag-label {
  color: var(--c-bg-card);
}

.unit-tag.is-cta:hover .unit-tag-arrow {
  transform: translateX(5px);
}

.unit-tag.is-cta:active {
  animation: none;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--c-bg-primary);
}

@keyframes ctaWiggle {
  0%, 78%, 100% { transform: translate(0, 0) rotate(0); }
  82% { transform: translate(-2px, -1px) rotate(-1.2deg); }
  86% { transform: translate(2px, -1px) rotate(1.2deg); }
  90% { transform: translate(-2px, -1px) rotate(-1.2deg); }
  94% { transform: translate(2px, -1px) rotate(1.2deg); }
  98% { transform: translate(0, 0) rotate(0); }
}

/* ============ Plan card · tabs fused to floor-plan image ============ */
.plan-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: white;
  border: 1.5px solid var(--c-ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--c-bg-primary);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.plan-card:hover {
  box-shadow: 5px 5px 0 var(--c-bg-primary);
}

.plan-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--c-ink);
}

.plan-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  background: var(--c-bg-card);
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--c-ink);
  transition: background 0.25s ease, color 0.25s ease;
}

.plan-tab + .plan-tab {
  border-left: 1.5px solid var(--c-ink);
}

.plan-tab-code {
  font-family: var(--f-pixel);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--c-ink-mute);
  line-height: 1;
}

.plan-tab-label {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: inherit;
}

.plan-tab-status {
  display: block;
  margin-top: 2px;
  font-family: var(--f-pixel);
  font-size: 7px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  line-height: 1.2;
}

.plan-tab-status::before {
  content: '→  點 此 切 換';
}

.plan-tab.is-active .plan-tab-status::before {
  content: '●  目 前 檢 視';
}

/* Active tab: merges with image (white bg) + top accent stripe */
.plan-tab.is-active {
  background: white;
  cursor: default;
}

.plan-tab.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-ink);
}

/* Inactive tab: subtle background pulse to invite click */
.plan-tab:not(.is-active) {
  animation: planTabPulse 2.6s ease-in-out infinite;
}

@keyframes planTabPulse {
  0%, 100% { background: var(--c-bg-card); }
  50%      { background: #E8E2D2; }
}

.plan-tab:not(.is-active):hover {
  animation: none;
  background: #efece0;
  color: var(--c-ink);
}

.plan-tab:not(.is-active):hover .plan-tab-status {
  opacity: 1;
}

.plan-tab:not(.is-active):active {
  background: #e2dcc8;
}

@media (max-width: 480px) {
  .plan-tab {
    padding: 12px 14px;
  }
  .plan-tab-label {
    font-size: 14px;
  }
}

/* ============ Plan image stage · crossfade ============ */
.plan-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: white;
  overflow: hidden;
}

.plan-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.plan-img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ============ Reserve · dual view system (CTA stack ↔ form overlay) ============ */
.reserve-views {
  display: grid;
  margin-top: 32px;
}

.reserve-cta-view,
.reserve-form-view {
  grid-area: 1 / 1;
  transition: opacity 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
              visibility 0s linear 380ms;
}

/* Default: CTA visible, form hidden */
.reserve-form-view {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  visibility: hidden;
}

/* When form mode active: swap */
.reserve-views.is-form-mode .reserve-cta-view {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  visibility: hidden;
}

.reserve-views.is-form-mode .reserve-form-view {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

/* Vertical CTA stack */
.reserve-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.reserve-cta-card {
  display: grid;
  grid-template-columns: 96px 1fr 36px;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease,
              border-color 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}

.reserve-cta-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.32);
  transform: translateX(6px);
}

.reserve-cta-card.is-line {
  background: rgba(6,199,85,0.12);
  border-color: rgba(6,199,85,0.4);
}

.reserve-cta-card.is-line:hover {
  background: rgba(6,199,85,0.2);
  box-shadow: 0 6px 22px rgba(6,199,85,0.22);
}

.cta-code {
  font-family: var(--f-pixel);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  line-height: 1;
}

.cta-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-label {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: white;
  line-height: 1.1;
}

.reserve-cta-card:not(.is-line) .cta-label {
  font-family: var(--f-sans-en);
  letter-spacing: 0.04em;
}

.reserve-cta-card.is-line .cta-label,
#form-toggle .cta-label {
  font-family: var(--f-serif-tc);
}

.cta-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.2;
}

.cta-arrow {
  font-family: var(--f-mono);
  font-size: 22px;
  color: rgba(255,255,255,0.55);
  text-align: right;
  transition: transform 0.25s ease, color 0.25s ease;
}

.reserve-cta-card:hover .cta-arrow {
  transform: translateX(6px);
  color: white;
}

/* Back button on form view */
.form-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  color: rgba(255,255,255,0.9);
  font-family: var(--f-pixel);
  font-size: 10px;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  margin-bottom: 8px;
}

.form-back-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
  transform: translateX(-4px);
}

.form-back-arrow {
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 1;
}

/* Tablet (≤ 768px): tighter horizontal cards */
@media (max-width: 768px) {
  .reserve-cta-card {
    grid-template-columns: 80px 1fr 30px;
    gap: 18px;
    padding: 18px 22px;
  }
  .cta-label { font-size: 20px; }
}

/* Tablet portrait & landscape phones (≤ 640px) */
@media (max-width: 640px) {
  .reserve-cta-card {
    grid-template-columns: 64px 1fr 24px;
    gap: 14px;
    padding: 16px 18px;
  }
  .cta-code { font-size: 9px; letter-spacing: 0.18em; }
  .cta-label { font-size: 18px; }
  .cta-desc { font-size: 11px; }
  .cta-arrow { font-size: 18px; }
  .reserve-cta-stack { gap: 10px; margin-top: 28px; }
}

/* Narrow phones (≤ 480px): completely restack — vertical with arrow on right */
@media (max-width: 480px) {
  .reserve-cta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 48px 14px 16px;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .cta-code {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .cta-body {
    width: 100%;
    gap: 3px;
  }
  .cta-label {
    font-size: 17px;
    letter-spacing: 0.04em;
  }
  .cta-desc {
    font-size: 11px;
  }
  .cta-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 22px;
    width: auto;
    text-align: right;
  }
  .reserve-cta-card:hover {
    transform: translateX(0);
  }
  .reserve-cta-card:hover .cta-arrow {
    transform: translateY(-50%) translateX(4px);
  }
}

/* Extra-small phones (≤ 360px): hide desc text to keep label readable */
@media (max-width: 360px) {
  .cta-desc { display: none; }
  .cta-label { font-size: 16px; }
  .reserve-cta-card { padding: 12px 44px 12px 14px; gap: 4px; }
}

/* Form view back button on mobile */
@media (max-width: 480px) {
  .form-back-btn {
    font-size: 9px;
    padding: 8px 12px 9px;
    letter-spacing: 0.18em;
    gap: 8px;
  }
  .form-back-arrow { font-size: 14px; }
}

/* ============ Footer reachable as scroll terminus ============ */
footer {
  scroll-snap-align: end;
}

/* ============ Form focus accessibility ============ */
#reserve-form input:focus,
#reserve-form select:focus,
#reserve-form textarea:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ============ Form success notice ============ */
.form-notice {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-left: 3px solid #f5f4ee;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  line-height: 1.6;
}

.form-notice.is-visible {
  display: block;
}

/* ============ Map iframe fallback ============ */
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

/* ============ Image polish ============ */
img {
  display: block;
}

article img,
.spec-img,
.reveal img {
  transition: transform 500ms ease, filter 500ms ease;
}

article:hover img {
  transform: scale(1.02);
}

article {
  overflow: hidden;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

article:hover {
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  transform: translateY(-2px);
}

/* ============ Subtle link / button states ============ */
a, button {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============ Chip refinement ============ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--c-line);
  background: white;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: var(--c-ink);
  background: var(--c-bg-card);
}

/* ============ Selection color ============ */
::selection {
  background: var(--c-ink);
  color: var(--c-bg-card);
}

/* ============ Section divider top accent ============ */
section + section::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-ink);
  position: absolute;
  top: 0;
  left: 32px;
  opacity: 0.15;
}

@media (max-width: 768px) {
  section + section::before {
    left: 20px;
  }
}

/* ============ Headings rhythm ============ */
h1, h2, h3, h4 {
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 0;
}

/* ============ Form input hover ============ */
#reserve-form input:hover,
#reserve-form select:hover,
#reserve-form textarea:hover {
  background: rgba(255,255,255,0.09) !important;
}

#reserve-form input::placeholder,
#reserve-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

#reserve-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ============ Reserve CTA cards hover ============ */
#reserve a.block {
  position: relative;
  overflow: hidden;
}

#reserve a.block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s ease;
  pointer-events: none;
}

#reserve a.block:hover::after {
  background: rgba(255,255,255,0.04);
}

/* ============ Scroll-in animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Print friendly ============ */
@media print {
  .section-num,
  .reveal { opacity: 1; transform: none; }
  #reserve a,
  button { display: none; }
}

/* ====================================================================== */
/* ============ Rich polish layer ====================================== */
/* ====================================================================== */

/* ----- Subtle film grain on light sections (procedural SVG) ----- */
.section:not(#reserve)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.section > * { position: relative; z-index: 1; }

/* ----- Hero: gradient bg + soft vignette + drifting badge ----- */
#hero {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.35) 0%, transparent 55%),
    linear-gradient(180deg, #c4d1dc 0%, #B8C5D1 50%, #aab8c5 100%) !important;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(245,244,238,0.20), transparent 45%);
  pointer-events: none;
}

#hero img[alt*="SUITE"] {
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(26,26,26,0.18));
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 10px 24px rgba(26,26,26,0.16));
  }
  50% {
    transform: translateY(-16px);
    filter: drop-shadow(0 22px 38px rgba(26,26,26,0.22));
  }
}

/* Hero CTA: 3D press button */
#hero a.font-pixel {
  position: relative;
  border: 2px solid var(--c-ink);
}

#hero a.font-pixel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(26,26,26,0.22) !important;
}

#hero a.font-pixel:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(26,26,26,0) !important;
}

/* ----- Hero pixel social / contact buttons row ----- */
.hero-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--c-bg-card);
  border: 2px solid var(--c-ink);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.18);
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--c-ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-social-icon {
  width: 14px;
  height: 14px;
  shape-rendering: crispEdges;
  flex-shrink: 0;
}

.hero-social-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.22);
}

.hero-social-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.18);
}

/* Brand-color hover states */
.hero-social-btn.is-fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
  box-shadow: 5px 5px 0 rgba(24,119,242,0.35);
}

.hero-social-btn.is-line:hover {
  background: #06C755;
  border-color: #06C755;
  color: #ffffff;
  box-shadow: 5px 5px 0 rgba(6,199,85,0.35);
}

.hero-social-btn.is-tel:hover {
  background: #1A1A1A;
  border-color: #1A1A1A;
  color: #ffffff;
  box-shadow: 5px 5px 0 rgba(26,26,26,0.4);
}

/* On dark hover (TEL), flip the pixel icon's dark parts to cream so they stay visible */
.hero-social-btn.is-tel:hover .hero-social-icon rect {
  fill: #F5F4EE;
}

@media (max-width: 480px) {
  .hero-social-row {
    gap: 6px;
    margin-top: 16px;
  }
  .hero-social-btn {
    padding: 7px 10px;
    font-size: 8px;
    gap: 6px;
    letter-spacing: 0.12em;
  }
  .hero-social-icon {
    width: 12px;
    height: 12px;
  }
}

/* Hero scroll cue bounce */
#hero > div.font-pixel:last-child {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 0.85; }
}

/* ----- Section number on dark Reserve section ----- */
#reserve .section-num {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 3px 3px 0 rgba(255,255,255,0.1);
}

#reserve .section-num:hover {
  box-shadow: 4px 4px 0 rgba(255,255,255,0.15);
}

/* ----- Section dividers: refined accent ----- */
section + section::before {
  width: 56px;
  height: 1px;
  top: -1px;
  opacity: 0.6;
}

/* ----- Headings: refined leading + first-line accent ----- */
h2.font-serif-tc::first-line {
  letter-spacing: 0.04em;
}

/* ----- Chips: refined ----- */
.section span.rounded-full {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.section span.rounded-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ----- Unit spec list: animated bullet ----- */
.section ul li.flex {
  transition: transform 0.2s ease, color 0.2s ease;
}

.section ul li.flex:hover {
  transform: translateX(4px);
}

.section ul li.flex:hover .text-mute {
  color: var(--c-ink);
}

/* ----- Architecture: feature card hover lift ----- */
#architecture .grid > div {
  padding: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#architecture .grid > div:hover {
  background: white;
  border-color: var(--c-line);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26,26,26,0.08);
}

/* ----- Structure: Alfa Safe image card lift ----- */
#structure img {
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

#structure > div > div:first-child:hover img {
  transform: scale(1.04);
}

/* Structure feature cards: subtle accent */
#structure .grid.grid-cols-2 > div {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#structure .grid.grid-cols-2 > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,26,26,0.08);
}

/* Mobile: smaller Alfa feature card text so it fits 2-col grid on narrow phones */
@media (max-width: 480px) {
  #structure .grid.grid-cols-2 { gap: 8px; }
  #structure .grid.grid-cols-2 > div { padding: 14px 12px !important; }
  #structure .grid.grid-cols-2 .font-serif-tc { font-size: 15px !important; letter-spacing: 0.02em; }
  #structure .grid.grid-cols-2 p { font-size: 11px !important; line-height: 1.5 !important; }
}

/* ----- Specs: rich card hover + image zoom (already in article) ----- */
#specs article img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

#specs article {
  cursor: default;
}

/* Specs section is content-heavy: allow it to grow past one viewport */
#specs {
  min-height: auto;
  justify-content: flex-start;
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(72px, 10vh, 120px);
}

/* Brand showcase strip beneath section subtitle */
.specs-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.specs-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--f-serif-tc);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.specs-brand:hover {
  border-color: var(--c-ink);
  background: var(--c-bg-card);
  transform: translateY(-1px);
}

.specs-brand-origin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 4px;
  background: var(--c-ink);
  color: var(--c-bg-card);
  font-family: var(--f-pixel);
  font-size: 7px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

/* Sub-section heading: counter + text, clear hierarchy below h2 */
.specs-subhead {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.specs-subhead-counter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-ink);
  border-radius: 2px;
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--c-bg-primary);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.specs-subhead-counter:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--c-bg-primary);
  background: white;
}

.specs-subhead-counter:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--c-bg-primary);
}

.specs-subhead-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specs-subhead-cap {
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--c-ink-mute);
  line-height: 1;
}

.specs-subhead-title {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0;
}

/* Tighten inter-block spacing on mobile in Specs */
@media (max-width: 640px) {
  #specs .my-20 { margin-top: 48px; margin-bottom: 48px; }
  #specs .mt-16 { margin-top: 36px; }
  #specs article .p-5 { padding: 16px; }
  .specs-subhead { gap: 12px; margin-bottom: 24px; }
  .specs-subhead-counter { font-size: 10px; padding: 8px 10px; }
  .specs-subhead-title { font-size: 18px; }
  .specs-brands { gap: 6px; margin-top: 18px; }
  .specs-brand { font-size: 12px; padding: 5px 10px 5px 6px; }
}

/* Yaffle inline card hover */
#specs > div > div:first-of-type > div:last-child {
  transition: background 0.25s ease, border-color 0.25s ease;
}

#specs > div > div:first-of-type > div:last-child:hover {
  background: #efece0;
  border-color: var(--c-ink);
}

/* Tall-content sections: don't force-center, allow flow from top + grow past one viewport */
#reserve,
#unit-a,
#unit-b,
#structure {
  justify-content: flex-start;
  padding-top: clamp(64px, 10vh, 110px);
  padding-bottom: clamp(64px, 10vh, 110px);
}

/* On mobile, unit sections may exceed one viewport because plan card + specs stack vertically */
@media (max-width: 768px) {
  #unit-a, #unit-b, #structure { min-height: auto; }
}

/* ----- Reserve dark section: glass effect on CTAs ----- */
#reserve a.block {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 4px;
}

/* LINE CTA: glow on hover */
#reserve a[href*="line.me"]:hover {
  box-shadow: 0 8px 24px rgba(6,199,85,0.25);
}

/* Form: animated focus indicator */
#reserve-form input,
#reserve-form select,
#reserve-form textarea {
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

#reserve-form input:focus,
#reserve-form select:focus,
#reserve-form textarea:focus {
  border-color: rgba(255,255,255,0.5) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* Submit button: 3D depth */
#reserve-form button[type="submit"] {
  border: 2px solid var(--c-bg-card);
  position: relative;
}

#reserve-form button[type="submit"]:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(245,244,238,0.2) !important;
}

#reserve-form button[type="submit"]:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent !important;
}

/* ============ Footer · 不動產經紀業法定揭露 ============ */
.footer-legal {
  position: relative;
  padding: 48px clamp(20px, 4vw, 32px) 36px;
  background: #F0F0F0;
  color: var(--c-ink-soft);
  border-top: 1.5px solid var(--c-ink);
}

.footer-legal::before {
  content: '◆';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-ink);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 14px;
}

/* Listing identity row */
.footer-listing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--c-line);
}

.footer-listing-tag {
  flex-shrink: 0;
  padding: 7px 12px;
  background: var(--c-ink);
  color: var(--c-bg-card);
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.2em;
  border-radius: 2px;
}

.footer-listing-name {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-ink);
  line-height: 1.3;
}

.footer-listing-meta {
  font-family: var(--f-sans-tc);
  font-size: 12px;
  color: var(--c-ink-mute);
  margin-top: 2px;
}

/* Broker / Agent dual disclosure grid */
.footer-broker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-block {
  padding: 16px 18px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: 3px;
}

.footer-label {
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--c-ink-mute);
  margin-bottom: 10px;
}

.footer-value {
  font-family: var(--f-serif-tc);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

.footer-value-sub {
  font-family: var(--f-sans-tc);
  font-size: 12px;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

.footer-link {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  text-decoration-thickness: 2px;
}

/* Legal notices list */
.footer-notices {
  list-style: none;
  padding: 16px 18px;
  margin: 0 0 24px 0;
  background: rgba(255,255,255,0.5);
  border: 1px dashed var(--c-ink-mute);
  border-radius: 3px;
}

.footer-notices li {
  font-family: var(--f-sans-tc);
  font-size: 11px;
  color: var(--c-ink-soft);
  line-height: 1.7;
  padding: 3px 0;
}

.footer-notices li strong {
  color: var(--c-ink);
  font-weight: 700;
}

/* Bottom credits */
.footer-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--c-ink-mute);
}

.footer-credits-sep {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-bg-primary);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .footer-legal {
    padding: 36px 16px 28px;
  }
  .footer-listing {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }
  .footer-listing-name { font-size: 16px; }
  .footer-listing-meta { font-size: 11px; }
  .footer-broker-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }
  .footer-block { padding: 14px 14px; }
  .footer-value { font-size: 14px; }
  .footer-value-sub { font-size: 11px; }
  .footer-notices {
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  .footer-notices li { font-size: 10px; line-height: 1.7; }
  .footer-credits { font-size: 8px; letter-spacing: 0.15em; gap: 6px; }
}

/* ----- Custom scrollbar (webkit) ----- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 10px;
  border: 2px solid var(--c-bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-ink-mute);
}

/* ----- Refined map iframe corners ----- */
#location iframe.map-frame {
  border-radius: 0;
}

/* ----- Location map: branded frame matching site design tokens ----- */
.location-map {
  position: relative;
  background: #d8e0e8;
  border: 1.5px solid var(--c-ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--c-bg-primary);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.location-map:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--c-bg-primary);
}

.location-map-label {
  position: absolute;
  top: -1.5px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--c-ink);
  color: var(--c-bg-card);
  font-family: var(--f-pixel);
  font-size: 9px;
  letter-spacing: 0.2em;
  border-radius: 0 0 3px 3px;
  pointer-events: none;
}

.location-map-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--c-bg-card);
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 13px;
  border: 1.5px solid var(--c-ink);
  border-radius: 2px;
  pointer-events: none;
}

/* ----- Image lazy-load fade-in ----- */
img[loading="lazy"] {
  animation: imgFade 600ms ease-out;
}

@keyframes imgFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ Responsive refinements ============ */
@media (max-width: 640px) {
  /* Hero: tighten logo + title spacing */
  #hero img[alt*="SUITE"] {
    max-width: 78vw !important;
  }
  #hero h1 {
    letter-spacing: 0.35em !important;
  }
  #hero p.font-mono {
    font-size: 15px !important;
    letter-spacing: 0.1em !important;
  }

  /* Section section-tag in flex header: more compact */
  .section-tag {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  /* Loc tags: reduce label font so Chinese fits well in 2-col grid */
  .loc-tag-label { font-size: 16px; }
  .loc-tag { padding: 12px 14px 12px 16px; }

  /* Unit tags: reduce label font on phones */
  .unit-tag-label { font-size: 16px; }
  .unit-tag { padding: 12px 14px 12px 16px; }
  .unit-tag-arrow { font-size: 14px; }

  /* Plan tab status text hidden on very small screens to save space */
  .plan-tab-status {
    display: none;
  }
  .plan-tab {
    gap: 4px;
    padding: 12px 12px;
  }
  .plan-tab-code {
    font-size: 7px;
  }
  .plan-tab-label {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  /* Specs subhead: tighter gap + smaller counter so it fits 320-360px phones */
  .specs-subhead { gap: 10px; margin-bottom: 22px; }
  .specs-subhead-counter {
    font-size: 9px;
    padding: 7px 9px;
    letter-spacing: 0.15em;
  }
  .specs-subhead-title { font-size: 17px; letter-spacing: 0.02em; }
  .specs-subhead-cap { font-size: 8px; letter-spacing: 0.22em; }

  /* Brand showcase strip: smaller pills */
  .specs-brand { font-size: 11px; padding: 5px 9px 5px 5px; }
  .specs-brand-origin { font-size: 6px; min-width: 18px; }

  /* Reserve form: thinner padding */
  #reserve-form {
    padding: 20px !important;
  }
  #reserve-form .grid { gap: 12px !important; }

}

@media (max-width: 420px) {
  /* Unit tags: 1 column on the tiniest phones */
  .unit-tags { grid-template-columns: 1fr; }
}

/* Touch-friendly form controls: explicit size + larger hit area on radio/checkbox */
#reserve-form input[type="radio"],
#reserve-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #fff;
}

#reserve-form fieldset label {
  min-height: 32px;
  padding: 2px 0;
}

/* ----- Reduced motion preference ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #hero img,
  #hero > div.font-pixel:last-child {
    animation: none !important;
  }
}
