/* Court6 site styles.
   Most layout lives inline on each element (that is how the approved mockups were built).
   This file holds the basics, form controls, the phone menu and the phone-size overrides. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
.site-header { position: sticky; top: 0; z-index: 40; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #ffffff; color: #0a0e14; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; }
main { flex: 1 0 auto; }
a { color: #0b7469; }
a:hover { color: #08564e; }
:focus-visible { outline: 3px solid #3fd8c6; outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #3fd8c6; color: #0a0e14; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }

/* form controls */
.f { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b9c4c8; border-radius: 10px; font: 16px Inter, system-ui, sans-serif; color: #0a0e14; background: #fff; }
.f:focus { outline: 3px solid #3fd8c6; outline-offset: 1px; border-color: #0f8f82; }
textarea.f { min-height: 120px; resize: vertical; }
.f[aria-invalid="true"] { border-color: #b42318; }
input[type=range] { width: 100%; accent-color: #0f8f82; height: 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: #b42318; font-size: 15px; font-weight: 600; }
.form-copied { margin: 0; color: #0b7469; font-size: 15px; font-weight: 600; }
button[type=submit][disabled] { opacity: 0.6; cursor: wait; }

/* chips (multi or single choice) */
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #b9c4c8; background: #ffffff; color: #0a0e14; font: 500 15px Inter, sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: #0a0e14; background: #0a0e14; color: #ffffff; font-weight: 600; }
.seg { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #0a0e14; font: 500 15px Inter, sans-serif; cursor: pointer; }
.seg[aria-pressed="true"] { background: #0a0e14; color: #ffffff; font-weight: 600; }

details summary { list-style-position: outside; }
details[open] summary { color: #0b7469; }

/* phone menu */
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #3a4a5a; background: transparent; color: #ffffff; font: 600 15px Inter, sans-serif; cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .site-header nav { row-gap: 8px !important; }
  .site-header .nav-links { display: none !important; flex-basis: 100% !important; flex-direction: column; gap: 0 !important; padding: 8px 0; border-top: 1px solid #1d2733; }
  .site-header .nav-links a { padding: 12px 0 !important; border-bottom: 0 !important; }
  .site-header .nav-actions { flex-basis: 100%; justify-content: space-between; display: none !important; }
  .site-header.open .nav-links, .site-header.open .nav-actions { display: flex !important; }
  .site-header.open { max-height: 100vh; overflow-y: auto; }
}

/* phone and small-tablet overrides for the inline layout */
@media (max-width: 860px) {
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
  h1 { font-size: 44px !important; }
  h2[style*="font-size: 40px"] { font-size: 32px !important; }
  h3[style*="font-size: 30px"], h2[style*="font-size: 30px"] { font-size: 26px !important; }
  section > div[style*="padding: 72px 24px"], section > div[style*="padding: 80px 24px"], section > div[style*="padding: 64px 24px"] { padding-top: 48px !important; padding-bottom: 48px !important; }
  section > div[style*="padding: 72px 24px 64px"] { padding-top: 40px !important; }
  [style*="padding: 36px"], [style*="padding: 32px"] { padding: 22px !important; }
  /* hero phones shrink so two fit side by side */
  section img[style*="width: 260px"], section img[style*="width: 270px"] { width: 50vw !important; }
  section img[style*="width: 230px"], section img[style*="width: 210px"], section img[style*="width: 200px"] { width: 42vw !important; }
  .site-header img { height: 28px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Pricing page: yearly / monthly toggle */
.bill-btn{min-height:44px;padding:0 18px;border-radius:999px;border:0;background:transparent;color:#0a0e14;font:600 15px Inter,system-ui,sans-serif;cursor:pointer}
.bill-btn[aria-pressed="true"]{background:#0a0e14;color:#fff}
.bill-btn:focus-visible{outline:3px solid #3fd8c6;outline-offset:2px}
