/* Wayfile landing page. Dark only. The page is laid out as the product's own canvas: its dot grid, its shape
   kinds in their own colours, and the logo's two corner brackets as the one frame. Type is Inter, the product's face. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #0a1226;      /* the ground: deep navy, not black */
  --raise: #101b38;    /* a shape's fill */
  --rule: #24315c;     /* hairlines */
  --paper: #eaeefb;    /* text */
  --mute: #93a0c6;     /* secondary text, connectors */
  --blue: #3b82f6;     /* the brackets */
  --step: #6ea0ff;
  --end: #5fd39a;
  --dec: #e3b25a;
  --store: #a493ff;
  --role: #f0926a;
  --glow: #b9d2ff;     /* what an AI just changed */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
}
/* The canvas's dot grid (24 px, as in the product), fading out below the first screen. */
.sheet {
  background-image: radial-gradient(circle, rgba(147, 160, 198, 0.2) 1px, transparent 1.4px);
  background-size: 24px 24px;
  background-repeat: repeat;
  -webkit-mask-image: none;
  position: relative;
}
.sheet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, transparent 520px, var(--ink) 980px);
}
.sheet > * { position: relative; }
.wrap { width: min(1120px, 100% - 44px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; border-radius: 4px; }
.brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.mark { height: 28px; width: auto; display: block; }
.mark .br { fill: var(--blue); }
.mark .w { fill: var(--paper); }
.name { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--end); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding: 64px 0 88px; }
h1 { margin: 0 0 28px; font-size: clamp(40px, 6.1vw, 78px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; }
h1 span { display: block; }
.lead { margin: 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--mute); }

/* The drawing. Shapes take their kind's colour, as on the canvas. */
.board { margin: 0; }
.draw { display: block; width: 100%; height: auto; max-width: 440px; margin-inline: auto; overflow: visible; }
.draw text { fill: var(--paper); font-size: 13.5px; font-weight: 500; text-anchor: middle; letter-spacing: -0.005em; }
.draw .ans { fill: var(--mute); font-size: 12px; text-anchor: start; }
.draw .ans.mid { text-anchor: middle; }
.draw .tag { fill: var(--glow); font-size: 12px; font-weight: 600; }
.then { stroke: var(--mute); stroke-width: 1.4; }
.head { fill: var(--mute); }
.k-end, .k-step, .k-dec, .k-store, .k-role, .k-goal { fill: var(--raise); stroke-width: 1.5; }
.k-end { stroke: var(--end); }
.k-step { stroke: var(--step); }
.k-dec { stroke: var(--dec); }
.k-store { stroke: var(--store); }
.k-store.open { fill: none; }
.k-role { stroke: var(--role); }
.k-goal { stroke: var(--step); }
.k-step.glow { stroke: var(--glow); filter: drop-shadow(0 0 7px rgba(185, 210, 255, 0.55)); }

/* One moment on load: the person's flow appears in order, then the AI's step arrives and glows. */
@keyframes appear { from { opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateX(-10px); } }
@keyframes settle {
  0% { filter: drop-shadow(0 0 0 rgba(185, 210, 255, 0)); }
  35% { filter: drop-shadow(0 0 22px rgba(185, 210, 255, 0.95)); }
  100% { filter: drop-shadow(0 0 7px rgba(185, 210, 255, 0.55)); }
}
.d1, .d2, .d3, .d4, .d5 { animation: appear 0.45s ease-out both; }
.d2 { animation-delay: 0.18s; } .d3 { animation-delay: 0.36s; } .d4 { animation-delay: 0.54s; } .d5 { animation-delay: 0.72s; }
.ai { animation: arrive 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both; }
.ai .glow { animation: settle 2.2s ease-out 1.6s both; }
@media (prefers-reduced-motion: reduce) {
  .d1, .d2, .d3, .d4, .d5, .ai, .ai .glow { animation: none; }
}

h2 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }

/* The key: what each shape means, set like the key of a drawing. */
.key { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); column-gap: 56px; row-gap: 28px; padding: 72px 0; border-top: 1px solid var(--rule); }
.key-head p { margin: 0; color: var(--mute); max-width: 30em; }
.kinds { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.kinds > div { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.kinds dt { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.kinds dt svg { width: 44px; height: 28px; flex: none; }
.kinds dd { margin: 4px 0 0 56px; color: var(--mute); font-size: 15px; line-height: 1.45; }
.lines { grid-column: 2; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--mute); }
.lines li { display: inline-flex; align-items: center; gap: 10px; }
.lines svg { width: 40px; height: 8px; }
.lines line { stroke-width: 1.6; }
.c-then { stroke: var(--mute); }
.c-data { stroke: var(--store); stroke-dasharray: 6 4; }
.c-dep { stroke: var(--end); stroke-dasharray: 1.5 4; stroke-linecap: round; }
.c-own { stroke: var(--role); stroke-dasharray: 1.5 4; stroke-linecap: round; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 72px 0; border-top: 1px solid var(--rule); }
.pair p { margin: 0; color: var(--mute); max-width: 30em; }

/* The real canvas, held by the logo's two brackets. */
.shot { padding: 40px 0 72px; }
.framed { position: relative; margin: 0; padding: 18px; }
.framed::before, .framed::after { content: ""; position: absolute; width: clamp(56px, 9vw, 120px); height: clamp(48px, 7.4vw, 100px); border: 0 solid var(--blue); pointer-events: none; }
.framed::before { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; }
.framed::after { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; }
.framed img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.cap { margin: 18px 18px 0; font-size: 14px; color: var(--mute); }

.note { padding: 56px 0 24px; border-top: 1px solid var(--rule); }
.note p { margin: 0; color: var(--mute); max-width: 34em; }

.foot { margin-top: 48px; padding: 24px 0 44px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--mute); }
.foot p { margin: 0 0 4px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 36px 0 64px; }
  .key, .pair { grid-template-columns: 1fr; gap: 32px; padding: 52px 0; }
  .lines { grid-column: 1; }
  .framed { padding: 10px; }
  .framed::before { border-top-width: 3px; border-left-width: 3px; }
  .framed::after { border-bottom-width: 3px; border-right-width: 3px; }
  .cap { margin: 14px 10px 0; }
}
@media (max-width: 520px) {
  .kinds { grid-template-columns: 1fr; }
}
