/* Fulfilly landing page. Built from the tokens; no framework. */
/* Fulfilly design tokens, v1.
   Single source for colour, type, shape and motion. Import this file first.
   Fonts: Bricolage Grotesque (display) and Geist / Geist Mono (text, data), all SIL OFL.
   For the web app use next/font or Google Fonts; the @font-face rules below point at the
   local files so the brand templates render without a network. */

/* Display type always uses optical size 40, the cut of the wordmark. This file has that
   axis pinned (weight stays variable), so headlines match the logo at every size. With the
   stock variable font set  font-variation-settings: "opsz" 40  on display text instead. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-Fulfilly.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* --- brand */
  --f-orange: #ff4f00; /* Fulfilly Orange: accent, primary action, the mark */
  --f-ink: #1b1613; /* text, dark surfaces */
  --f-paper: #fbf8f3; /* page background */
  --f-white: #ffffff; /* cards, inputs */

  /* --- orange scale */
  --f-orange-50: #fff3eb;
  --f-orange-100: #ffe4d4; /* Peach */
  --f-orange-200: #ffc9ab;
  --f-orange-300: #ffa477;
  --f-orange-500: #ff4f00;
  --f-orange-600: #ea4800; /* hover on orange surfaces, 4.6:1 with ink text */
  --f-orange-700: #c73c00; /* orange text and links on light, 5.2:1 on white */
  --f-orange-800: #9c2f00;

  /* --- warm neutrals */
  --f-sand: #f3eee6; /* quiet surface, table header, hover */
  --f-line: #e6ded3; /* hairlines, card borders */
  --f-line-strong: #d6ccbe; /* input borders */
  --f-stone-400: #a3998e; /* icons, placeholders (not for text) */
  --f-stone: #6f655b; /* secondary text, 5.4:1 on paper */
  --f-ink-2: #4a423b; /* body text on tinted surfaces */

  /* --- soft support colours (surfaces for tags, illustrations, feature cards) */
  --f-butter: #ffeebf;
  --f-mint: #d7f0e2;
  --f-sky: #dae8ff;
  --f-lavender: #e8e1ff;

  /* --- semantic: text colour on its tint passes 4.5:1 */
  --f-success: #0b7a54;
  --f-success-bg: #ddf3e8;
  --f-warning: #8f5600;
  --f-warning-bg: #ffeebf;
  --f-danger: #c81e3a;
  --f-danger-bg: #fce4e8;
  --f-info: #1d5fd6;
  --f-info-bg: #dae8ff;
  --f-ai: #5b3fd9;
  --f-ai-bg: #e8e1ff;

  /* --- data colours for charts: blue/red stays apart for colour-blind readers, green/red
     would not. "open" is a neutral, not a third hue. Orange is never a data colour. */
  --f-chart-done: #1d5fd6;
  --f-chart-done-2: #7ca6ee;
  --f-chart-track: #dae8ff;
  --f-chart-failed: #c81e3a;
  --f-chart-open: #a3998e;
  --f-chart-grid: #e6ded3;
  --f-chart-axis: #d6ccbe;

  /* --- type */
  --f-font-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --f-text-display-xl: 800 76px/0.98 var(--f-font-display);
  --f-text-display-l: 800 56px/1.02 var(--f-font-display);
  --f-text-h1: 700 40px/1.08 var(--f-font-display);
  --f-text-h2: 700 28px/1.15 var(--f-font-display);
  --f-text-h3: 600 20px/1.3 var(--f-font-text);
  --f-text-body-l: 400 18px/1.55 var(--f-font-text);
  --f-text-body: 400 16px/1.5 var(--f-font-text);
  --f-text-small: 400 14px/1.45 var(--f-font-text);
  --f-text-caption: 500 12px/1.35 var(--f-font-text);
  --f-text-mono: 400 13px/1.45 var(--f-font-mono);
  --f-tracking-display: -0.025em;

  /* --- shape */
  --f-radius-xs: 6px; /* chips, tags */
  --f-radius-s: 10px; /* buttons, inputs */
  --f-radius-m: 14px; /* cards */
  --f-radius-l: 20px; /* panels, images */
  --f-radius-pill: 999px;
  --f-slash-angle: 63deg; /* the angle of the mark */
  --f-slash-skew: -27deg; /* skewX() that produces it */

  /* --- space (4 px base) */
  --f-space-1: 4px;
  --f-space-2: 8px;
  --f-space-3: 12px;
  --f-space-4: 16px;
  --f-space-5: 24px;
  --f-space-6: 32px;
  --f-space-7: 48px;
  --f-space-8: 64px;
  --f-space-9: 96px;

  /* --- elevation: warm, low, never grey-blue */
  --f-shadow-1: 0 1px 2px rgba(27, 22, 19, 0.06);
  --f-shadow-2: 0 2px 4px rgba(27, 22, 19, 0.04), 0 10px 24px rgba(27, 22, 19, 0.07);
  --f-shadow-3: 0 4px 8px rgba(27, 22, 19, 0.05), 0 24px 56px rgba(27, 22, 19, 0.12);
  --f-focus: 0 0 0 3px rgba(255, 79, 0, 0.28);

  /* --- motion */
  --f-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --f-duration: 160ms;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--f-paper); color: var(--f-ink); font: var(--f-text-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.l { width: 22px; height: 22px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 243, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--f-line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 40px; }
.nav img { height: 28px; }
.nav .links { display: flex; gap: 28px; font-weight: 500; color: var(--f-ink-2); }
.nav .cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 15px/1 var(--f-font-text); white-space: nowrap; transition: background var(--f-duration) var(--f-ease), transform var(--f-duration) var(--f-ease); }
.btn.primary { background: var(--f-orange); color: var(--f-ink); }
.btn.primary:hover { background: var(--f-orange-600); }
.btn.dark { background: var(--f-ink); color: var(--f-white); }
.btn.ghost { background: var(--f-white); border-color: var(--f-line-strong); }
.btn.text { padding: 0 8px; color: var(--f-ink-2); }
.btn.lg { height: 54px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn:focus-visible { outline: none; box-shadow: var(--f-focus); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; }
.hero .copy { max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--f-white); border: 1px solid var(--f-line); font: 500 14px/1 var(--f-font-text); color: var(--f-ink-2); }
.eyebrow b { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--f-orange); color: var(--f-ink); font-weight: 600; font-size: 12px; }
.hero h1 { margin-top: 26px; font: 800 86px/0.98 var(--f-font-display); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--f-orange); }
.hero .lead { margin: 26px auto 0; max-width: 680px; font: var(--f-text-body-l); font-size: 20px; color: var(--f-ink-2); }
.hero .actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; }
.hero .note { margin-top: 18px; display: flex; gap: 22px; justify-content: center; color: var(--f-stone); font-size: 14px; font-weight: 500; }
.hero .note span { display: inline-flex; align-items: center; gap: 7px; }
.hero .note .i { color: var(--f-success); width: 16px; height: 16px; stroke-width: 2.25; }
.stage { position: relative; margin-top: 64px; padding-bottom: 0; }
.stage .slab { position: absolute; left: 50%; bottom: 0; width: 1500px; height: 78%; transform: translateX(-50%); background: var(--f-orange); clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); }
.stage .slab::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 46px, transparent 46px 108px); }
.browser { position: relative; width: 1080px; margin: 0 auto; border-radius: 16px 16px 0 0; background: var(--f-white); border: 1px solid var(--f-line-strong); border-bottom: 0; box-shadow: var(--f-shadow-3); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--f-sand); border-bottom: 1px solid var(--f-line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--f-line-strong); }
.browser .bar span { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 60px; border-radius: 7px; background: var(--f-white); font: 500 12px/1 var(--f-font-text); color: var(--f-stone); }
.browser .bar .i { width: 12px; height: 12px; }
.browser img { width: 100%; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--f-white); border: 1px solid var(--f-line); box-shadow: var(--f-shadow-3); font-weight: 600; font-size: 14px; white-space: nowrap; }
.float small { display: block; font-weight: 500; font-size: 12px; color: var(--f-stone); margin-top: 1px; }
.float .ft { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float.a { left: calc(50% - 660px); top: 150px; }
.float.b { right: calc(50% - 668px); top: 300px; }

/* ---------- sections ---------- */
section { padding: 112px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--f-font-text); color: var(--f-orange-700); }
.kicker::before { content: ""; width: 9px; height: 16px; background: var(--f-orange); transform: skewX(var(--f-slash-skew)); }
h2 { margin-top: 16px; font: 800 54px/1.02 var(--f-font-display); letter-spacing: -0.03em; }
.sub { margin-top: 18px; font: var(--f-text-body-l); color: var(--f-ink-2); max-width: 560px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.channels { background: var(--f-white); border-top: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line); }
.channels .grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.channels .pic { border-radius: var(--f-radius-l); overflow: hidden; aspect-ratio: 5 / 4; }
.channels .pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.chlist { margin-top: 34px; display: grid; gap: 4px; }
.ch { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--f-line); }
.ch:last-child { border-bottom: 1px solid var(--f-line); }
.ch .ct { width: 44px; height: 44px; border-radius: 12px; background: var(--f-orange-100); color: var(--f-orange-800); display: grid; place-items: center; }
.ch b { font-weight: 600; font-size: 17px; }
.ch span { display: block; color: var(--f-stone); font-size: 15px; }

.features .cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard { background: var(--f-white); border: 1px solid var(--f-line); border-radius: var(--f-radius-l); overflow: hidden; display: flex; flex-direction: column; }
.fcard .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.fcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.fcard .txt { padding: 26px 28px 30px; }
.fcard h3 { font: 700 26px/1.12 var(--f-font-display); letter-spacing: -0.02em; }
.fcard p { margin-top: 10px; color: var(--f-ink-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--f-font-text); margin-bottom: 14px; }
.tag.o { background: var(--f-orange-100); color: var(--f-orange-800); }
.tag.v { background: var(--f-ai-bg); color: var(--f-ai); }
.tag.g { background: var(--f-success-bg); color: var(--f-success); }
.tag .i { width: 14px; height: 14px; stroke-width: 2; }

.integrations .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.integrations .pic { border-radius: var(--f-radius-l); overflow: hidden; }
.big { font: 800 150px/0.85 var(--f-font-display); letter-spacing: -0.05em; color: var(--f-orange); }
.integrations h2 { margin-top: 6px; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--f-white); border: 1px solid var(--f-line); font-weight: 500; }
.chips .i { color: var(--f-stone); }
.integrations .btn { margin-top: 30px; }

.how { background: var(--f-ink); color: var(--f-white); position: relative; overflow: hidden; }
.how .kicker { color: var(--f-orange-300); }
.how .sub { color: #cfc6bb; }
.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step .shot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); aspect-ratio: 16 / 11; background: var(--f-paper); }
.step .shot { position: relative; }
.step .shot img { position: absolute; left: 0; top: 0; width: 165%; max-width: none; transform: translate(var(--x, -18%), var(--y, -7%)); }
.step .n { margin-top: 22px; display: inline-grid; place-items: center; width: 34px; height: 30px; background: var(--f-orange); color: var(--f-ink); font: 800 16px/1 var(--f-font-display); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.step h3 { margin-top: 14px; font: 700 26px/1.12 var(--f-font-display); letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: #cfc6bb; }

.cta { padding: 0; }
.cta .band { position: relative; margin: 112px auto; padding: 72px 72px; border-radius: 28px; background: var(--f-orange); overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta .band::after { content: ""; position: absolute; right: -120px; top: -40px; bottom: -40px; width: 520px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 54px, transparent 54px 122px); transform: skewX(var(--f-slash-skew)); }
.cta h2 { margin: 0; color: var(--f-white); max-width: 620px; position: relative; z-index: 1; }
.cta p { margin-top: 16px; color: var(--f-ink); font-size: 19px; font-weight: 500; max-width: 520px; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }

footer { border-top: 1px solid var(--f-line); padding: 56px 0 40px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
footer img { height: 28px; }
footer p { margin-top: 16px; color: var(--f-stone); max-width: 300px; font-size: 15px; }
footer h4 { margin: 0 0 14px; font: 600 14px/1 var(--f-font-text); }
footer a { display: block; color: var(--f-stone); padding: 5px 0; font-size: 15px; }
footer .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--f-line); display: flex; justify-content: space-between; color: var(--f-stone); font-size: 14px; }

@media (max-width: 1100px) {
  .hero h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  .nav .links { display: none; }
  .browser { width: calc(100% - 32px); }
  .float { display: none; }
  .channels .grid, .integrations .grid, .features .cards, .steps, footer .cols { grid-template-columns: 1fr; gap: 32px; }
  .cta .band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .big { font-size: 96px; }
  section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 46px; }
  .hero .lead { font-size: 17px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { justify-content: center; }
  .hero .note { flex-direction: column; align-items: center; gap: 8px; }
  .nav .wrap { gap: 16px; }
  .nav .cta .btn.text { display: none; }
  h2 { font-size: 34px; }
  .big { font-size: 84px; }
  .cta .band { margin: 72px auto; }
  footer .legal { flex-direction: column; gap: 8px; }
}
