/*
  Shared stylesheet for the ChronoPort, InfoPort and TicketPort websites.
  Edit this file in websites/shared/, then run websites/sync-shared.ps1 to copy it
  into each site folder. Each site sets its accent colours in a <style> block in index.html.
*/

:root {
  --ink: #12124f; /* logo navy */
  --ink-2: #2b2b6b;
  --text: #1f2340;
  --muted: #5b6080;
  --line: #e3e5ef;
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-ink: #0e0e3d;

  /* overridden per site */
  --accent: #4f7cff;
  --accent-strong: #2747b8;
  --accent-soft: #e8eeff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 18, 79, 0.06), 0 8px 24px rgba(18, 18, 79, 0.08);
  --shadow-lg: 0 2px 4px rgba(18, 18, 79, 0.06), 0 24px 60px rgba(18, 18, 79, 0.16);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Commissioner', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 750;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .container {
    padding: 0 28px;
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 0.98rem/1 var(--font);
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 18, 79, 0.25);
}
.btn-primary:hover {
  background: var(--ink-2);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}
.brand {
  flex: none;
}
.brand img {
  height: 40px;
  width: auto;
}
@media (max-width: 1160px) {
  .brand img {
    height: 32px;
  }
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.nav-links a {
  display: block;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  background: var(--bg-2);
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang button {
  font: 600 0.8rem/1 var(--font);
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
}
.menu-btn svg {
  margin: auto;
}

@media (max-width: 1160px) {
  .nav {
    gap: 12px;
  }
  .menu-btn {
    display: grid;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-actions .btn {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
  }
  .nav-links .mobile-cta {
    display: block;
    margin-top: 8px;
  }
}
.nav-links .mobile-cta {
  display: none;
}
.nav-links .mobile-cta a {
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 380px at 0% 100%, #eef0fb, transparent 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%);
  color: var(--ink);
}
.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg {
  color: var(--accent-strong);
  flex: none;
}

/* ---------- mock UI window (hero visuals) ---------- */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.82rem;
  min-width: 0;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dbe6;
}
.mock-bar span {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.mock-body {
  padding: 16px;
}
.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--muted);
  white-space: nowrap;
}
.chip.accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.chip.ink {
  background: var(--ink);
  color: #fff;
}
.chip.ok {
  background: #dcf5e6;
  color: #17683b;
}
.chip.warn {
  background: #fff1d6;
  color: #8a5300;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink-2);
  flex: none;
}
.avatar.a2 {
  background: var(--accent-strong);
}
.avatar.a3 {
  background: #6b7280;
}

/* ---------- real app screenshots in a browser frame ---------- */
.shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dbe6;
  flex: none;
}
.shot-bar span {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  max-width: 340px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-2);
}
/* a hero with a real screenshot: text on top, the app full width underneath */
.hero-grid:has(.hero-shot) {
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero-grid:has(.hero-shot) > :first-child {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-grid:has(.hero-shot) .lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-grid:has(.hero-shot) .hero-cta,
.hero-grid:has(.hero-shot) .hero-points {
  justify-content: center;
}
.hero-grid:has(.hero-shot) .eyebrow {
  justify-content: center;
}
.hero-shot {
  position: relative;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.hero-shot::before {
  /* soft accent glow behind the window */
  content: '';
  position: absolute;
  inset: 8% -4% -6%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  z-index: -1;
}
.shot-caption {
  margin: 12px 4px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  list-style: none;
  margin: 0;
  padding: 22px 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
}
.trust svg {
  color: var(--ink);
  flex: none;
}

/* ---------- sections ---------- */
section {
  padding: 88px 0;
}
@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}
.section-alt {
  background: var(--bg-2);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}
.section-head .eyebrow {
  justify-content: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: transparent;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.icon svg {
  width: 24px;
  height: 24px;
}

/* split rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split {
  margin-top: 96px;
}
.split.reverse > :first-child {
  order: 2;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .split + .split {
    margin-top: 64px;
  }
}
.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checks li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312124f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}

/* audiences */
.aud {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.aud .icon {
  margin: 0;
  flex: none;
}
.aud h3 {
  margin-bottom: 4px;
}
.aud p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* steps */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 700 1rem var(--font-head);
  margin-bottom: 16px;
}
.step p {
  color: var(--muted);
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.plan.featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
}
.plan .badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.3rem;
}
.plan .desc {
  color: var(--muted);
  font-size: 0.94rem;
  min-height: 3em;
}
.price {
  font: 800 2.6rem/1 var(--font-head);
  color: var(--ink);
  margin: 14px 0 4px;
}
.price small {
  font: 500 0.9rem var(--font);
  color: var(--muted);
}
.plan .checks {
  margin: 22px 0 28px;
  font-size: 0.95rem;
}
.plan .btn {
  margin-top: auto;
}
.fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  color: var(--muted);
  padding-bottom: 20px;
  margin: 0;
}

/* ---------- suite band ---------- */
.suite {
  background: var(--bg-ink);
  color: #c9cbe6;
}
.suite h2,
.suite h3 {
  color: #fff;
}
.suite .section-head p {
  color: #c9cbe6;
}
.suite .eyebrow {
  color: var(--accent);
}
.suite-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .suite-cards {
    grid-template-columns: 1fr;
  }
}
.suite-card {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9cbe6;
  transition: background 0.2s, border-color 0.2s;
}
a.suite-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
.suite-card.current {
  border-color: var(--accent);
}
.suite-card img {
  height: 22px;
  width: auto;
  margin-bottom: 14px;
}
.suite-card p {
  margin: 0;
  font-size: 0.95rem;
}
.suite-card .more {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list .icon {
  margin: 0;
  width: 40px;
  height: 40px;
  flex: none;
}
.contact-list .icon svg {
  width: 20px;
  height: 20px;
}
.contact-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
}
.contact-list span,
.contact-list a {
  font-size: 1rem;
}
form.contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  form.contact {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd3e3;
  border-radius: var(--radius-sm);
  background: #fff;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent-strong);
  font-weight: 600;
}
form.contact .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-ink);
  color: #a9acd0;
  padding: 56px 0 28px;
  font-size: 0.93rem;
}
.site-footer a {
  color: #dfe0f3;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
.foot-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.foot-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
}
.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card {
    transition: none;
  }
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}
