:root {
  color-scheme:light;
  --bg:#f5f7fc;
  --surface:#fff;
  --tint:#edf3ff;
  --ink:#14233f;
  --muted:#52647f;
  --line:#d8e2f0;
  --blue:#1456bb;
  --button:#122443;
  --button-text:#fff;
  --danger:#a02640;
  --radius:22px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.55;
  overflow-wrap:anywhere;
}

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

a:hover {
  color:var(--blue);
}

button,input,select,textarea {
  font:inherit;
  color:inherit;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.65;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--blue);
  outline-offset:3px;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  line-height:1.08;
  letter-spacing:-.042em;
}

small {
  color:var(--muted);
}

.wrap {
  width:min(1200px,calc(100% - 64px));
  margin-inline:auto;
}

.site-header {
  padding-top:env(safe-area-inset-top);
}

.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:78px;
}

.wordmark {
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:18px;
  font-weight:750;
  white-space:nowrap;
}

.wordmark span {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--tint);
  color:var(--blue);
}

.topbar nav,.site-footer nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  color:var(--muted);
}

.pill,.primary,.secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid transparent;
  border-radius:999px;
  padding:10px 17px;
  min-height:44px;
  font-weight:650;
  text-align:center;
}

.pill,.primary {
  background:var(--button);
  color:var(--button-text);
}

.pill:hover,.primary:hover {
  color:var(--button-text);
  filter:brightness(1.2);
}

.secondary {
  background:var(--surface);
  border-color:var(--line);
}

.secondary:hover {
  border-color:var(--blue);
  color:var(--blue);
}

.stack {
  display:grid;
  gap:16px;
}

.actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:470px;
  border:1px solid #dbe7f6;
  border-radius:42px;
  background:radial-gradient(ellipse at 82% 80%,#a4bcfc 0%,transparent 52%),linear-gradient(135deg,#fff 28%,#e4efff 69%,#c8d7fb);
}

.hero-copy {
  position:relative;
  z-index:1;
  padding:72px 60px 100px;
  max-width:680px;
}

.hero h1 {
  font-size:clamp(44px,7vw,88px);
  font-weight:550;
  line-height:.94;
  letter-spacing:-.085em;
  max-width:660px;
  color:#132647;
}

.hero p {
  color:#405877;
  max-width:330px;
  margin:22px 0 27px;
}

.hero .pill {
  background:#14243e;
  color:#fff;
}

.orbit {
  position:absolute;
  width:min(64%,640px);
  aspect-ratio:1;
  right:-3%;
  top:-12%;
  border-radius:50%;
  transform:rotate(-25deg) scaleY(.65);
  background:radial-gradient(ellipse at 44% 41%,#fff2 0 23%,transparent 24% 32%,#fff5 33% 34%,transparent 35%),repeating-radial-gradient(ellipse at center,transparent 0 25px,#587fd333 26px 27px,transparent 28px 39px);
  box-shadow:0 0 150px #e1eaff inset;
}

.orbit::after {
  content:"";
  position:absolute;
  inset:20%;
  border-radius:50%;
  background:linear-gradient(117deg,#fff9,#9eb7ff42 45%,#577fd185);
  filter:blur(6px);
}

.dock {
  position:absolute;
  z-index:2;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  white-space:nowrap;
  align-items:center;
  background:#ffffffdc;
  color:#14243e;
  backdrop-filter:blur(18px);
  padding:6px 8px;
  border:1px solid #fff;
  border-radius:999px;
  box-shadow:0 12px 40px #244c8124;
}

.dock a {
  padding:7px 14px;
  min-height:36px;
  border-radius:999px;
}

.dock a:hover {
  background:#edf3ff;
}

.marquee {
  margin:20px 0 0;
  overflow:hidden;
  mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
}

.track,.run {
  display:flex;
  width:max-content;
}

.track {
  animation:move 28s linear infinite;
}

.marquee:hover .track,.marquee:focus-within .track {
  animation-play-state:paused;
}

.run {
  gap:10px;
  padding-right:10px;
}

.logo {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:155px;
  min-height:56px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  font-weight:650;
}

@keyframes move {
  to {
    transform:translateX(-50%);
  }
}

.brand-icon,.service-icon {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:30px;
  height:30px;
  border-radius:10px;
  background:var(--tint);
  color:var(--blue);
  font-weight:750;
}

.section {
  padding:44px 0 12px;
}

.section h1 {
  font-size:clamp(41px,7vw,68px);
  margin-bottom:10px;
}

.section h2 {
  font-size:clamp(28px,4vw,41px);
  margin-bottom:16px;
}

.lead,.muted {
  color:var(--muted);
}

.filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin:22px 0;
}

.filters form {
  flex:1;
  min-width:min(225px,100%);
  display:flex;
  gap:6px;
}

.is-active,.filters [aria-current=page] {
  background:var(--tint);
  border-color:var(--blue);
  color:var(--blue);
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.card,.panel,.empty {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}

.card {
  display:grid;
  align-content:start;
  gap:8px;
  min-width:0;
}

.card:hover {
  border-color:var(--blue);
  color:var(--ink);
}

.card h3 {
  font-size:20px;
}

.card .service-icon {
  width:40px;
  height:40px;
  font-size:20px;
}

.card .price {
  font-weight:700;
}

.split {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.narrow {
  max-width:620px;
}

.panel h2 {
  font-size:26px;
  margin-bottom:8px;
}

.label {
  display:grid;
  gap:5px;
  font-weight:650;
}

.label small {
  font-weight:400;
}

.field {
  width:100%;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:11px;
  padding:10px 12px;
  min-height:44px;
}

.field::placeholder {
  color:var(--muted);
}

textarea.field {
  min-height:100px;
  resize:vertical;
}

.summary {
  border-block:1px solid var(--line);
  padding-block:12px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
}

.summary strong {
  font-size:22px;
}

.message {
  color:var(--danger);
}

.message:empty {
  display:none;
}

.records {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:9px;
}

.record {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.tag {
  padding:4px 8px;
  border-radius:999px;
  background:var(--tint);
  color:var(--blue);
  font-size:13px;
}

.meta {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  gap:7px 16px;
  margin:0;
}

.meta dd {
  margin:0;
}

.meta dt {
  color:var(--muted);
}

.site-footer {
  display:flex;
  gap:15px;
  justify-content:space-between;
  align-items:center;
  margin-top:62px;
  padding-top:18px;
  padding-bottom:max(25px,env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
}

.site-footer nav a,.topbar nav a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

.faq summary {
  cursor:pointer;
  font-weight:720;
  padding:6px 0;
}

.faq p {
  color:var(--muted);
  margin-top:6px;
}

.tg {
  --bg:var(--tg-theme-secondary-bg-color,#f5f7fc);
  --surface:var(--tg-theme-bg-color,#fff);
  --ink:var(--tg-theme-text-color,#14233f);
  --muted:var(--tg-theme-hint-color,#52647f);
  --blue:var(--tg-theme-link-color,#1456bb);
  --button:var(--tg-theme-button-color,#122443);
  --button-text:var(--tg-theme-button-text-color,#fff);
  --line:color-mix(in srgb,var(--ink) 18%,var(--surface));
  --tint:color-mix(in srgb,var(--blue) 10%,var(--surface));
}

.tg body {
  padding:var(--tg-content-safe-area-inset-top,0) var(--tg-safe-area-inset-right,0) var(--tg-content-safe-area-inset-bottom,0) var(--tg-safe-area-inset-left,0);
}

.tg .site-header a,.tg .site-footer a {
  white-space:nowrap;
}

@media(max-width:768px) {
  .wrap {
    width:calc(100% - 32px);
  }
  .hero {
    min-height:430px;
    border-radius:29px;
  }
  .hero-copy {
    padding:44px 28px 105px;
  }
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .site-footer {
    align-items:flex-start;
  }
  .section {
    padding-top:34px;
  }
}

@media(max-width:520px) {
  .topbar {
    gap:8px;
    min-height:65px;
  }
  .topbar nav {
    gap:8px;
  }
  .topbar nav a {
    font-size:13px;
  }
  .topbar nav a[href="/support"] {
    display:none;
  }
  .topbar .pill {
    font-size:12px;
    padding-inline:10px;
  }
  .wrap {
    width:calc(100% - 24px);
  }
  .hero {
    min-height:394px;
  }
  .hero-copy {
    padding:33px 20px 83px;
  }
  .hero p {
    margin:16px 0;
  }
  .orbit {
    width:113%;
    right:-30%;
    top:16%;
    opacity:.75;
  }
  .grid,.split {
    grid-template-columns:minmax(0,1fr);
  }
  .site-footer {
    display:grid;
  }
  .section {
    padding-top:26px;
  }
  .panel,.card {
    padding:16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .track {
    animation:none;
  }
  .marquee {
    mask-image:none;
    overflow-x:auto;
  }
  .run[aria-hidden] {
    display:none;
  }
}

[hidden] {
  display:none!important;
}

.marquee-strip {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  margin-top:20px;
}

.marquee-strip .marquee {
  margin:0;
}

.marquee-toggle {
  padding:0;
  width:44px;
}

.marquee.paused .track {
  animation-play-state:paused;
}

@media(prefers-reduced-motion:reduce) {
  .marquee-strip {
    grid-template-columns:1fr;
  }
  .marquee-toggle {
    display:none;
  }
}

.record form {
  width:min(100%,390px);
  grid-template-columns:1fr;
}

.card .muted {
  font-size:14px;
}

.hero h1 {
  letter-spacing:-.05em;
  font-size:clamp(42px,6.5vw,84px);
}

.run-copy {
  display:flex;
  gap:10px;
}

.topbar nav {
  min-width:0;
}

.topbar nav a {
  max-width:100%;
}

@media(max-width:520px) {
  .hero h1 {
    font-size:clamp(35px,11.2vw,52px);
  }
}

@media(prefers-reduced-motion:reduce) {
  .run-copy {
    display:none;
  }
}

#admin-filter {
  align-items:end;
  margin:0;
}

#admin-filter .label:first-child {
  flex:1;
  min-width:min(100%,220px);
}

#app[aria-busy="true"] {
  min-height:calc(100svh - 80px);
}

#client-filter .field {
  flex:1;
  min-width:min(100%,220px);
}

.tg[data-theme="dark"] {
  color-scheme: dark;
}
