/* FTO Studio — public logged-out landing page.
 *
 * Self-contained: this page loads no other stylesheet, so the brand
 * @font-face rules are declared here rather than pulled from style.css.
 * Colour tokens mirror static/css/fto_studio.css so the marketing page
 * and the product look like the same thing.
 */

@font-face {
  font-family: 'BWGradualMedium';
  src: url('/static/fonts/BW Gradual/BwGradual-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterRegular';
  src: url('/static/fonts/Inter/Inter-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterMedium';
  src: url('/static/fonts/Inter/Inter-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ftl-bg: #F4F4EF;
  --ftl-bg-alt: #FBFBFB;
  --ftl-bg-deep: #EDEDE3;
  --ftl-text: #1D1D1D;
  --ftl-muted: #63635c;
  --ftl-border: #D7D7C7;
  --ftl-accent: #F76233;
  --ftl-accent-hover: #D74D12;
  --ftl-accent-ink: #FFFFFF;
  --ftl-error: #b3261e;
  --ftl-ok: #1f6b45;
  --ftl-radius: 8px;
  --ftl-font: 'InterRegular', -apple-system, system-ui, sans-serif;
  --ftl-font-med: 'InterMedium', 'InterRegular', -apple-system, system-ui, sans-serif;
  --ftl-display: 'BWGradualMedium', 'BW Gradual', system-ui, sans-serif;
  --ftl-shadow: 0 1px 2px rgba(29, 29, 29, 0.05);
  --ftl-shadow-lg: 0 18px 48px rgba(29, 29, 29, 0.12);
  --ftl-max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ftl-bg: #1A1B21;
    --ftl-bg-alt: #202129;
    --ftl-bg-deep: #17181d;
    --ftl-text: #ebe9e2;
    --ftl-muted: #a6a69e;
    --ftl-border: #34353d;
    --ftl-accent: #F76233;
    --ftl-accent-hover: #FF7C52;
    --ftl-error: #f0857c;
    --ftl-ok: #6cc79a;
    --ftl-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --ftl-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 {
  font-family: var(--ftl-display);
  font-weight: normal;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ── Top bar ─────────────────────────────────────────────── */

.ftl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  max-width: var(--ftl-max);
  margin: 0 auto;
}

.ftl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ftl-logo { height: 22px; width: auto; display: block; }
.ftl-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .ftl-logo-light { display: none; }
  .ftl-logo-dark { display: block; }
}

.ftl-brand-sep {
  width: 1px;
  height: 18px;
  background: var(--ftl-border);
}

.ftl-brand-product {
  font-family: var(--ftl-font-med);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ftl-muted);
}

.ftl-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.ftl-topnav a {
  text-decoration: none;
  color: var(--ftl-muted);
}
.ftl-topnav a:hover { color: var(--ftl-text); }

.ftl-topnav-cta {
  font-family: var(--ftl-font-med);
  color: var(--ftl-accent) !important;
}
.ftl-topnav-cta:hover { color: var(--ftl-accent-hover) !important; }

@media (max-width: 560px) {
  .ftl-topbar { padding: 16px 20px; }
  .ftl-topnav a:not(.ftl-topnav-cta) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */

.ftl-hero {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 56px 28px 40px;
}

.ftl-eyebrow {
  font-family: var(--ftl-font-med);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ftl-accent);
  margin: 0 0 18px;
}

.ftl-hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 15ch;
  margin-bottom: 22px;
}

.ftl-lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ftl-muted);
  max-width: 60ch;
  margin-bottom: 30px;
}

.ftl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.ftl-hero-note {
  font-size: 14px;
  color: var(--ftl-muted);
}
.ftl-hero-note a { color: var(--ftl-accent); text-decoration: none; }
.ftl-hero-note a:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────── */

.ftl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--ftl-radius);
  border: 1px solid transparent;
  font-family: var(--ftl-font-med);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ftl-btn-primary {
  background: var(--ftl-accent);
  color: var(--ftl-accent-ink);
}
.ftl-btn-primary:hover { background: var(--ftl-accent-hover); }

.ftl-btn-ghost {
  background: transparent;
  border-color: var(--ftl-border);
  color: var(--ftl-text);
}
.ftl-btn-ghost:hover { border-color: var(--ftl-text); }

.ftl-btn:focus-visible,
.ftl-form input:focus-visible,
.ftl-form textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ftl-accent);
  outline-offset: 2px;
}

/* ── Screenshot ──────────────────────────────────────────── */

.ftl-shot-wrap {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 12px 28px 64px;
}

.ftl-shot { margin: 0; }

.ftl-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ftl-border);
  border-radius: 12px;
  box-shadow: var(--ftl-shadow-lg);
  background: var(--ftl-bg-alt);
}

.ftl-shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ftl-muted);
  max-width: 68ch;
}

/* ── Bands ───────────────────────────────────────────────── */

.ftl-band {
  background: var(--ftl-bg-alt);
  border-top: 1px solid var(--ftl-border);
  border-bottom: 1px solid var(--ftl-border);
  padding: 64px 0;
}

.ftl-band-alt { background: var(--ftl-bg-deep); }

.ftl-band-inner {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 0 28px;
}

.ftl-band h2,
.ftl-steps h2,
.ftl-scope h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 26px;
}

.ftl-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  color: var(--ftl-muted);
  font-size: 17px;
}
.ftl-two-col em { color: var(--ftl-text); font-style: italic; }

/* ── Steps ───────────────────────────────────────────────── */

.ftl-steps {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 72px 28px;
}

.ftl-section-lede {
  color: var(--ftl-muted);
  font-size: 17px;
  max-width: 60ch;
  margin-bottom: 40px;
}

.ftl-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.ftl-step-list > li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 20px;
  row-gap: 6px;
  padding: 26px 0;
  border-top: 1px solid var(--ftl-border);
}
.ftl-step-list > li:last-child { border-bottom: 1px solid var(--ftl-border); }

.ftl-step-num {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ftl-accent);
  color: var(--ftl-accent);
  font-family: var(--ftl-font-med);
  font-size: 14px;
  margin-top: 2px;
}

.ftl-step-list h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.ftl-step-list p {
  color: var(--ftl-muted);
  max-width: 68ch;
}

@media (max-width: 560px) {
  .ftl-step-list > li { grid-template-columns: 1fr; }
  .ftl-step-num { grid-row: auto; margin-bottom: 10px; }
}

/* ── Cards ───────────────────────────────────────────────── */

/* Two columns, so the four cards land as a clean 2x2 rather than
   wrapping 3 + 1 and orphaning the last one. */
.ftl-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 700px) {
  .ftl-cards { grid-template-columns: 1fr; }
}

.ftl-card {
  background: var(--ftl-bg-alt);
  border: 1px solid var(--ftl-border);
  border-radius: var(--ftl-radius);
  padding: 22px;
  box-shadow: var(--ftl-shadow);
}

.ftl-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.ftl-card p {
  font-size: 15px;
  color: var(--ftl-muted);
}

/* ── Scope ───────────────────────────────────────────────── */

.ftl-scope {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 72px 28px;
}

.ftl-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.ftl-scope h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--ftl-accent);
}

.ftl-scope ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ftl-muted);
}

.ftl-scope li { margin-bottom: 10px; }

/* ── Pilot form ──────────────────────────────────────────── */

.ftl-pilot {
  background: var(--ftl-bg-alt);
  border-top: 1px solid var(--ftl-border);
  padding: 72px 0;
}

.ftl-pilot-inner {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

.ftl-pilot-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 18px;
}

.ftl-pilot-copy p {
  color: var(--ftl-muted);
  max-width: 52ch;
}

.ftl-pilot-alt a { color: var(--ftl-accent); text-decoration: none; }
.ftl-pilot-alt a:hover { text-decoration: underline; }

.ftl-form {
  background: var(--ftl-bg);
  border: 1px solid var(--ftl-border);
  border-radius: 12px;
  padding: 26px;
  /* Containing block for the absolutely-positioned honeypot below —
     without it the honeypot resolves against the viewport. */
  position: relative;
}

.ftl-field { margin-bottom: 16px; }

.ftl-field label {
  display: block;
  font-family: var(--ftl-font-med);
  font-size: 13px;
  margin-bottom: 6px;
}

.ftl-form input[type="text"],
.ftl-form input[type="email"],
.ftl-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ftl-border);
  border-radius: var(--ftl-radius);
  background: var(--ftl-bg-alt);
  color: var(--ftl-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.ftl-form textarea { resize: vertical; min-height: 110px; }

.ftl-form input:focus,
.ftl-form textarea:focus { border-color: var(--ftl-accent); }

.ftl-form input.ftl-invalid,
.ftl-form textarea.ftl-invalid { border-color: var(--ftl-error); }

/* Honeypot — off-screen rather than display:none so bots that skip
   hidden fields still fill it. Never read by a real user. */
.ftl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ftl-submit {
  width: 100%;
  margin-top: 6px;
}
.ftl-submit:disabled { opacity: 0.55; cursor: wait; }

.ftl-form-msg {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 1px;
}
.ftl-form-msg.ftl-msg-error { color: var(--ftl-error); }
.ftl-form-msg.ftl-msg-ok { color: var(--ftl-ok); }

.ftl-form-fine {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ftl-muted);
}

/* ── Footer ──────────────────────────────────────────────── */

.ftl-footer {
  border-top: 1px solid var(--ftl-border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--ftl-muted);
}

.ftl-footer-inner {
  max-width: var(--ftl-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.ftl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.ftl-footer-links a { text-decoration: none; }
.ftl-footer-links a:hover { color: var(--ftl-text); text-decoration: underline; }
