/* tfviz site. Light, calm product design: white surfaces, a blue accent,
   soft blue-to-peach gradients and a black footer. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --page: #ffffff;
  --tint: #f6f7fb;
  --tint-blue: #edf2ff;
  --line: #e8eaf1;
  --line-strong: #d9dce6;
  --ink: #0c0d12;
  --text: #15161c;
  --muted: #646a7a;
  --blue: #2f6bff;
  --blue-deep: #1f55e0;
  --blue-text: #2456d9;
  --code-bg: #0f1117;
  --code-text: #e6e8ef;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-shot: 0 2px 6px rgba(16, 24, 40, 0.06), 0 24px 60px rgba(31, 45, 90, 0.16);
  --wash: radial-gradient(120% 90% at 0% 0%, #e7ebff 0%, rgba(231, 235, 255, 0) 55%),
    radial-gradient(90% 80% at 100% 10%, #e4f0ff 0%, rgba(228, 240, 255, 0) 60%),
    radial-gradient(110% 90% at 20% 100%, #ffd9cb 0%, rgba(255, 217, 203, 0) 60%),
    radial-gradient(80% 70% at 90% 100%, #ffe8de 0%, rgba(255, 232, 222, 0) 60%), #f7f8fd;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-text); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { text-wrap: balance; color: var(--ink); margin: 0 0 0.55em; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

code { white-space: nowrap; font-family: var(--font-mono); font-size: 0.86em; padding: 0.12em 0.4em; border-radius: 6px; background: var(--tint-blue); color: var(--ink); }
pre { overflow-x: auto; margin: 0 0 1.25rem; padding: 18px 20px; border-radius: 14px; background: var(--code-bg); color: var(--code-text); font-size: 13.5px; line-height: 1.6; }
pre code { white-space: inherit; padding: 0; background: none; color: inherit; font-size: inherit; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.centre { text-align: center; }
.centre .lede, .centre.narrow { margin-inline: auto; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* Buttons and labels */
.button {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.button--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.button--blue { border-color: var(--blue); background: var(--blue); color: #fff; }
.button--small { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 0.9rem; }
.button:hover { filter: brightness(0.96); }
.button--dark:hover, .button--blue:hover { filter: brightness(1.12); }

.pill {
  display: inline-flex; gap: 6px; align-items: center; margin-bottom: 18px; padding: 5px 12px 5px 8px;
  border: 1px solid #dbe4ff; border-radius: 999px; background: rgba(255, 255, 255, 0.75);
  color: var(--blue-text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em;
}
.pill svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.centre .actions, .centre-actions { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid transparent; backdrop-filter: saturate(180%) blur(14px); }
.site-header__inner { display: flex; gap: 12px 28px; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none; }
.brand__mark { color: var(--ink); }
.brand__lines { stroke: #fff; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--muted); font-size: 0.93rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-header__actions { display: flex; gap: 8px; }

/* Hero */
.hero { padding: 12px 0 0; }
.hero__panel { overflow: hidden; padding: 76px 24px 0; border-radius: var(--radius-lg); background: var(--wash); text-align: center; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.lede, .section-head p { text-wrap: pretty; }
.lede { max-width: 40rem; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.hero .lede { margin: 0 auto 28px; }
.hero__shot { max-width: 1080px; margin: 56px auto 0; }
.hero__shot img { border: 1px solid rgba(255, 255, 255, 0.9); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-shot); }
.works-with { padding: 40px 0 8px; text-align: center; }
.works-with__label { margin-bottom: 18px; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.works-with ul { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.works-with li { display: inline-flex; gap: 9px; align-items: center; color: #7b8090; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.logo-mark { width: 22px; height: 22px; flex: none; }
.works-with__aws { font-weight: 800; letter-spacing: -0.01em; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 44rem; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.page-head { padding: 40px 0 0; }
.page-head__panel { padding: 64px 24px 56px; border-radius: var(--radius-lg); background: var(--wash); text-align: center; }
.page-head__panel h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.page-head__panel .lede { margin: 0 auto; }

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

.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card--soft { background: linear-gradient(180deg, #f8faff 0%, #fff 70%); }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--tint-blue); color: var(--blue); }
.icon-tile svg { width: 22px; height: 22px; }

a.card { color: inherit; text-decoration: none; transition: border-color 150ms, transform 150ms; }
a.card:hover { border-color: #c9d6ff; }
.link-arrow { display: inline-block; margin-top: 16px; color: var(--blue-text); font-weight: 600; font-size: 0.93rem; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Feature rows */
.split { display: grid; gap: 40px 64px; align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--reverse > :first-child { order: 2; }
.feature + .feature { margin-top: 112px; }
.feature p { color: var(--muted); }
.stage { padding: 28px; border-radius: 22px; background: var(--wash); }
.stage img { border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 12px; box-shadow: var(--shadow-shot); }
.ticks { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ticks li { position: relative; margin-bottom: 10px; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%; background: var(--tint-blue); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(0.3em + 5px); width: 5px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }

/* Steps */
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps li { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 700; }
.steps pre { margin: auto 0 0; }

/* Long-form pages */
.prose h2 { margin-top: 2.6rem; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.note { color: var(--muted); font-size: 0.93rem; }
.callout { margin: 0 0 2rem; padding: 18px 20px; border: 1px solid #dbe4ff; border-radius: 14px; background: var(--tint-blue); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--spaced { margin-top: 28px; }
.callout ul { margin: 0; padding-left: 1.2rem; }
.page-head__panel .actions { margin-top: 28px; }
.faq + .note { margin-top: 28px; }
table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Security flow */
.flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: flow; }
.flow li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); counter-increment: flow; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; background: var(--tint-blue); color: var(--blue); font-weight: 700; font-size: 0.85rem; }
.flow strong { display: block; color: var(--ink); }
.flow span { color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 200ms, background-color 200ms; }
.faq details[open] { border-color: #dbe4ff; background: linear-gradient(180deg, #f7f9ff, #fff); }
.faq summary { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 22px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 240ms cubic-bezier(0.2, 0, 0, 1), margin-top 240ms cubic-bezier(0.2, 0, 0, 1); }
.faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
/* Opening fades the answer in everywhere. Browsers that can animate details
   content to auto height also ease it open and closed. */
.faq details[open] p { animation: faq-reveal 260ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } }
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 280ms cubic-bezier(0.2, 0, 0, 1), content-visibility 280ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Call to action */
.cta { padding: 72px 24px; border-radius: var(--radius-lg); background: var(--wash); text-align: center; }
.cta p { max-width: 36rem; margin: 0 auto 28px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 32px; padding: 64px 0 40px; background: var(--ink); color: #a7abb8; font-size: 0.92rem; }
.site-footer__inner { display: grid; gap: 32px 48px; grid-template-columns: 2fr repeat(3, 1fr); }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand__mark { color: #fff; }
.site-footer .brand__lines { stroke: var(--ink); }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 0.9rem; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #c9ccd6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid #23252e; color: #7d8190; font-size: 0.8rem; }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .grid--2 { grid-template-columns: 1fr; }
  .site-nav { order: 3; width: 100%; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
  .site-nav ul { flex-wrap: nowrap; }
  .site-header__inner { flex-wrap: wrap; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero__panel { padding-top: 52px; }
  .stage { padding: 14px; }
  .site-header__actions .button--ghost { display: none; }
  .works-with ul { gap: 12px 24px; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
