/* FixAI site: one stylesheet for every page. White background, square corners, blue only in the hero letters. */
:root {
  --ink: #14212b;
  --muted: #5b6b78;
  --line: #d9e0e5;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --blue-a: #0d9488;
  --blue-b: #0ea5e9;
  --grad: linear-gradient(90deg, var(--blue-a), var(--blue-b));
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p + p { margin-top: 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
section.alt { background: var(--wash); }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 700px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 44px; }
.grad-text { background: linear-gradient(90deg, #0d9488, #0a9db8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ings { background: linear-gradient(90deg, #0a9db8, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.links { display: flex; gap: 26px; align-items: center; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.logo-mark { height: 34px; width: auto; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); padding: 9px; line-height: 0; color: var(--ink); cursor: pointer; }
.menu-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.menu-btn path { transition: transform .25s, opacity .2s; transform-box: fill-box; transform-origin: center; }
.menu-btn.open .l1 { transform: translateY(6px) rotate(45deg); }
.menu-btn.open .l2 { opacity: 0; }
.menu-btn.open .l3 { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .links.open { display: flex; }
  .links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-right { gap: 14px; }
}

/* buttons: square, thin gradient line (primary) or thin gray line (secondary) */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--wash); }
.btn-primary { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.btn-primary:hover { background: linear-gradient(var(--wash), var(--wash)) padding-box, var(--grad) border-box; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.center .btns { justify-content: center; }

/* hero */
.hero { padding: 80px 0 40px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; }
.hero.sub { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero.sub h1 { font-size: clamp(34px, 5vw, 52px); }
.ings { display: inline-block; overflow: hidden; vertical-align: bottom; max-width: 0; opacity: 0; animation: grow 1.1s cubic-bezier(.2,.7,.2,1) 1s forwards; }
@keyframes grow { to { max-width: 2.4em; opacity: 1; } }

/* skyline */
.skyline-wrap { position: relative; margin-top: 56px; }
.skyline { width: 100%; height: auto; overflow: visible; }
.skyline .ground { stroke: var(--ink); stroke-width: 1.5; }
.skyline .b { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(40px) scaleY(.2); opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; outline: none; }
.skyline .b:nth-of-type(1) { animation-delay: .1s; } .skyline .b:nth-of-type(2) { animation-delay: .25s; }
.skyline .b:nth-of-type(3) { animation-delay: .4s; } .skyline .b:nth-of-type(4) { animation-delay: .55s; }
.skyline .b:nth-of-type(5) { animation-delay: .7s; } .skyline .b:nth-of-type(6) { animation-delay: .85s; }
.skyline .b:nth-of-type(7) { animation-delay: 1s; }
@keyframes rise { to { transform: none; opacity: 1; } }
.skyline .b path, .skyline .b rect, .skyline .b line, .skyline .b polyline { fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: stroke .2s, fill .2s; }
.skyline .b .dot { fill: var(--ink); stroke: none; }
.skyline .b.fact:hover path, .skyline .b.fact:hover rect, .skyline .b.fact:focus path, .skyline .b.fact:focus rect, .skyline .b.on path, .skyline .b.on rect { fill: var(--wash); stroke: url(#bg); }
.skyline .pulse { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .55; animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.tip { position: absolute; z-index: 5; width: min(300px, 86vw); background: #fff; border: 1px solid var(--line); padding: 14px 16px; box-shadow: 0 10px 28px rgba(20,33,43,.12); pointer-events: none; font-size: 15px; line-height: 1.5; }
.tip[hidden] { display: none; }
.tip::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--grad); }
.tip .src { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hint { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.sources { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 500; font-size: 13px; text-align: center; list-style: none; }
.sources ul { list-style: none; margin-top: 8px; display: grid; gap: 4px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .ings { animation: none; max-width: 2.4em; opacity: 1; }
  .skyline .b { animation: none; transform: none; opacity: 1; }
  .skyline .pulse { animation: none; opacity: 0; }
}

/* word diagram: floating words, no boxes */
.diagram-wrap { max-width: 780px; margin: 0 auto; touch-action: pan-y; }
.diagram { width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.diagram .edge { fill: none; stroke: #8797a3; stroke-width: 1.3; }
.diagram .node { cursor: grab; outline: none; }
.diagram .node:active { cursor: grabbing; }
.diagram .node text { font-family: 'Fraunces', Georgia, serif; font-weight: 600; fill: var(--ink); text-anchor: middle; pointer-events: none; transition: fill .2s; }
.diagram .node .hit { fill: transparent; stroke: none; }
.diagram .node:hover text { fill: #3a4d5b; }
.diagram .node.sel text { fill: url(#bg2); }
.diagram .node:focus-visible .hit { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.diagram-caption { margin: 18px auto 0; max-width: 640px; text-align: center; font-size: 16px; color: var(--muted); min-height: 52px; }
.diagram-caption b { font-weight: 700; color: var(--ink); }

/* grids and cards: square, thin lines */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); padding: 30px; }
section:not(.alt) .card { background: #fff; }
.card p { color: var(--muted); }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .2s, background .2s; }
a.card:hover { background: var(--wash); border-color: #aeb9c1; }
.card .go { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--ink); font-size: 15px; }
.num { width: 34px; height: 34px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; font-size: 15px; }
.list { list-style: none; display: grid; gap: 12px; }
.list li { padding-left: 24px; position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border: 1px solid var(--ink); }
.list strong { color: var(--ink); }
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--wash); border: 1px solid var(--line); padding: 30px; }
section.alt .panel { background: #fff; }
.tag { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.note { font-size: 14px; color: var(--muted); border-left: 2px solid #aeb9c1; padding-left: 14px; margin-top: 22px; }

/* team + partners */
.team { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 880px; margin: 0 auto; }
.person { text-align: center; }
.person img { width: 168px; height: 168px; object-fit: cover; margin: 0 auto 18px; border: 1px solid var(--line); }
.person .role { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.person p { color: var(--muted); font-size: 15px; }
.logos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.logo { background: #fff; border: 1px solid var(--line); padding: 20px; text-align: center; }
.logo img { height: 56px; width: auto; max-width: 100%; margin: 0 auto 12px; object-fit: contain; }
.logo b { display: block; font-size: 15px; }
.logo span { font-size: 13px; color: var(--muted); }

/* faq, video, form */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { margin-top: 10px; color: var(--muted); }
.shot { border: 1px solid var(--line); }
.formbox { background: #fff; border: 1px solid var(--line); padding: 18px; }
.formbox iframe { width: 100%; min-height: 760px; border: 0; }

/* cta + footer */
.cta { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cta p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 18px; }
footer { background: #fff; color: var(--muted); padding: 56px 0 36px; font-size: 15px; }
footer .cols { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer a { color: var(--muted); text-decoration: none; display: block; margin: 6px 0; }
footer a:hover { color: var(--ink); }
footer h4 { color: var(--ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
footer .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
