/* The landing's own faces, served from static/fonts so a visit asks no other site for anything. */
@font-face{ font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap; src:url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face{ font-family:'Nunito'; font-style:normal; font-weight:200 1000; font-display:swap; src:url('../fonts/nunito-latin-wght-normal.woff2') format('woff2'); }
@font-face{ font-family:'Space Grotesk'; font-style:normal; font-weight:300 700; font-display:swap; src:url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); }
@font-face{ font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face{ font-family:'DM Serif Display'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); }

:root{
  color-scheme: light;
  --paper:#F5F6F7;
  --navy:#1E2C4A;
  --navy-hover:#33456B;
  --slate:#4E5A72;
  --amber:#E39A2D;
  --amber-hi:#F6C266;
  --amber-text:#C47F1A;
  --bp:#1A3A66;
  --line:#E0E5EC;
  --gutter:clamp(16px, 4vw, 48px);
}
*{ box-sizing:border-box; }
html,body{ margin:0; }
body{
  min-height:100svh;
  overflow-x:hidden;
  color:var(--navy);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  background:var(--paper);
}
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.bar{ max-width:1120px; margin:0 auto; padding:0 var(--gutter); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px; padding:0 22px; border-radius:10px;
  font:600 15px/1 'Inter',system-ui,sans-serif; white-space:nowrap; text-decoration:none;
}
.btn.primary{ background:var(--navy); color:#FFFFFF; border:2px solid var(--navy); }
.btn.primary:hover{ background:var(--navy-hover); border-color:var(--navy-hover); }
.btn.ghost{ background:transparent; color:var(--navy); border:2px solid #C3CBD8; }
.btn.ghost:hover{ border-color:var(--navy); }
.btn:focus-visible, .brand:focus-visible, .foot a:focus-visible, .invite a:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

/* ---------- header ---------- */
/* Above the page: the demo's magnifier and notes overhang their window and must pass under it. */
.top{ position:relative; z-index:10; padding:20px 0; }
.top[data-reveal-after]{
  position:fixed; inset:0 0 auto; padding:10px 0;
  background:rgba(245,246,247,.94); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  transform:translateY(-100%); visibility:hidden;
  transition:transform .25s ease, visibility 0s linear .25s;
}
.top[data-reveal-after].shown{ transform:none; visibility:visible; transition:transform .25s ease; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--navy); }
.brand img{ width:36px; height:36px; }
.name{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; letter-spacing:-.01em; }
.name b, .hero-name b{ font-weight:400; color:var(--amber-text); }
.account{ display:flex; align-items:center; gap:8px; margin-left:auto; }

/* ---------- footer ---------- */
.foot{ border-top:1px solid var(--line); padding:24px 0 36px; font-size:14px; color:var(--slate); }
.foot a{ color:var(--navy); }

/* ---------- invite-only page ---------- */
.invite{
  max-width:1120px; margin:0 auto; padding:clamp(32px, 8vw, 96px) var(--gutter);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.invite h1{ margin:0 0 12px; max-width:20em; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:clamp(1.5rem, 4vw, 2.1rem); line-height:1.15; text-wrap:balance; }
.invite p{ margin:0; max-width:34em; font-size:1.05rem; line-height:1.55; color:var(--slate); }
.invite a{ color:var(--navy); font-weight:600; text-decoration-color:var(--amber); text-decoration-thickness:2px; text-underline-offset:3px; }

/* ---------- landing ---------- */
main{ max-width:1120px; margin:0 auto; padding:0 var(--gutter); }
.hero{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px;
  padding:clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 112px);
}
.hero-mark{ width:clamp(104px, 11vw, 148px); height:auto; margin-bottom:8px; filter:drop-shadow(0 14px 22px rgba(30,44,74,.18)); }
.hero-name{ margin:0; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(48px, 6.4vw, 84px); line-height:1; letter-spacing:-.03em; }
.hero-tagline{ margin:0; max-width:22em; font-family:'Space Grotesk',sans-serif; font-weight:500; font-size:clamp(22px, 2.4vw, 30px); line-height:1.25; color:var(--navy-hover); text-wrap:balance; }
.hero-lede{ margin:8px 0 0; max-width:38em; font-size:18px; line-height:1.6; color:var(--slate); }
.hero-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:12px; }

.how{
  list-style:none; margin:0; padding:0 0 clamp(64px, 8vw, 104px);
  display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px;
}
.how li{
  display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  padding:24px; border-radius:14px; background:#FFFFFF; border:1px solid var(--line);
}
.how-icon{
  width:44px; height:44px; margin-bottom:8px; border-radius:50%;
  display:grid; place-items:center; background:var(--amber-hi);
}
.how-icon svg{ width:22px; height:22px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.how h3{ margin:0; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:20px; line-height:1.25; }
.how p{ margin:0; font-size:16px; line-height:1.55; color:var(--slate); }
.example{ display:flex; flex-direction:column; gap:16px; padding-bottom:clamp(64px, 8vw, 104px); }
.example-head{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-bottom:16px; text-align:center; }
.example-head h2{ margin:0; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:clamp(28px, 3vw, 38px); line-height:1.15; letter-spacing:-.02em; text-wrap:balance; }
.example-head p{ margin:0; max-width:38em; font-size:18px; line-height:1.6; color:var(--slate); }

/* ---------- demo: the bakery site and the lens ---------- */
/* The demo keeps the rounded face it was drawn with. */
.demo{ position:relative; isolation:isolate; margin:0; width:100%; font-family:'Nunito','Trebuchet MS',sans-serif; }
.stack{ position:relative; }
.sheet{
  position:absolute; inset:0; border-radius:18px;
  background:
    linear-gradient(rgba(190,215,255,.16) 1.5px, transparent 1.5px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(190,215,255,.16) 1.5px, transparent 1.5px) 0 0 / 60px 60px,
    linear-gradient(rgba(190,215,255,.08) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(190,215,255,.08) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--bp);
  border:2px solid var(--navy);
  transform: translate(16px, 18px) rotate(2.2deg);
  animation: sheet 1s .45s cubic-bezier(.2,.9,.25,1.15) both;
}
.sheet span{
  position:absolute; right:16px; bottom:10px;
  font:500 11px 'IBM Plex Mono',monospace; letter-spacing:.14em; color:rgba(243,233,210,.75);
}
.window{
  position:relative; border-radius:16px; overflow:hidden;
  background:#F7F8FA; border:2px solid var(--navy);
  box-shadow:0 26px 50px -22px rgba(30,44,74,.55), 0 6px 14px rgba(30,44,74,.12);
  animation: rise .8s .2s cubic-bezier(.2,.8,.2,1) both;
}
.chrome{
  display:flex; align-items:center; gap:12px;
  height:38px; padding:0 14px;
  background:#E9ECF1; border-bottom:2px solid var(--navy);
}
.dots{ display:flex; gap:7px; }
.dots i{ width:11px; height:11px; border-radius:50%; border:1.8px solid var(--navy); background:#F7F8FA; }
.dots i:nth-child(2){ background:var(--amber-hi); }
.url{
  flex:1; max-width:420px; margin:0 auto; display:flex; align-items:center; justify-content:center; gap:7px;
  height:24px; border-radius:12px; background:#FFFFFF; border:1.5px solid rgba(30,44,74,.35);
  font:500 12.5px 'IBM Plex Mono',monospace; color:var(--slate); white-space:nowrap; overflow:hidden;
}
.url svg{ width:11px; height:11px; flex:none; fill:none; stroke:var(--slate); stroke-width:2.4; }
.screen{ position:relative; overflow:hidden; aspect-ratio:1200/720; }
.screen > svg{ display:block; width:100%; height:100%; }
.pins{ position:absolute; inset:0; pointer-events:none; }
.pin{ position:absolute; width:0; height:0; }
.pin span{
  position:absolute; left:-12px; top:-12px; width:24px; height:24px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--navy); color:var(--paper); border:2px solid #fff;
  font:900 12px/1 'Nunito',sans-serif;
  box-shadow:0 3px 8px rgba(30,44,74,.35);
  transform:scale(0);
}
.pin.on span{ transform:scale(1); transition:transform .5s cubic-bezier(.3,1.7,.5,1); }

.layer{ position:absolute; left:0; top:0; width:0; height:0; pointer-events:none; }
.drop{ position:absolute; left:0; top:0; animation: drop .75s .85s cubic-bezier(.3,1.45,.5,1) both; }
.lens{
  --R:110px;
  position:absolute; left:calc(var(--R) * -1); top:calc(var(--R) * -1);
  width:calc(var(--R) * 2); height:calc(var(--R) * 2);
  will-change:transform; pointer-events:auto; touch-action:none;
}
.lens-shadow{
  position:absolute; left:16%; top:24%; width:100%; height:100%; border-radius:50%;
  background:radial-gradient(circle, rgba(30,44,74,.34) 0%, rgba(30,44,74,.18) 48%, rgba(30,44,74,0) 70%);
}
.handle{ position:absolute; left:50%; top:50%; width:0; height:0; transform:rotate(42deg); will-change:transform; }
.handle svg{
  position:absolute; left:calc(var(--R) * .84); top:calc(var(--R) * -.17);
  width:calc(var(--R) * 1.05); height:calc(var(--R) * .34); overflow:visible;
}
.glass{
  position:absolute; inset:calc(var(--R) * .11); border-radius:50%; overflow:hidden;
  background:var(--bp); transform:translateZ(0);
}
.world{ position:absolute; left:0; top:0; will-change:transform; }
.world > svg{ display:block; }
.marks{ position:absolute; inset:0; }
.mk{ position:absolute; left:0; top:0; width:0; height:0; }
.mk i{
  position:absolute; left:-15px; top:-15px; width:30px; height:30px; border-radius:50%;
  border:2px solid var(--amber-hi); opacity:0;
  animation: ping 2.2s ease-out infinite;
}
.mk i + i{ animation-delay:1.1s; }
.mk b{
  position:absolute; left:-12px; top:-12px; width:24px; height:24px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--amber); color:var(--navy); font:900 12px/1 'Nunito',sans-serif;
  box-shadow:0 0 0 3px rgba(246,194,102,.35), 0 0 22px 8px rgba(227,154,45,.5);
}
.mk.burst::after{
  content:""; position:absolute; left:-34px; top:-34px; width:68px; height:68px; border-radius:50%;
  border:3px solid #FFD58A; animation: burst .8s ease-out both;
}
.scan{
  position:absolute; left:0; right:0; top:-34%; height:34%;
  background:linear-gradient(rgba(246,194,102,0), rgba(246,194,102,.13) 70%, rgba(255,226,160,.32) 98%, rgba(246,194,102,0));
  animation: scan 3.4s linear infinite;
}
.glare{
  position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(90% 90% at 30% 24%, rgba(255,255,255,.2) 0 16%, rgba(255,255,255,0) 34%),
    radial-gradient(circle, rgba(8,16,34,0) 60%, rgba(8,16,34,.5) 100%);
  box-shadow:inset 0 0 0 2px rgba(255,236,200,.16);
}
.glare::after{
  content:""; position:absolute; left:13%; top:9%; width:48%; height:24%; border-radius:50%;
  border-top:3px solid rgba(255,255,255,.4); transform:rotate(-26deg);
}
.rim{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }

.note{ position:absolute; left:0; top:0; width:min(258px, 72vw); pointer-events:none; z-index:3; will-change:transform; }
.note-in{
  background:#FFFDF7; border:2px solid var(--navy); border-radius:14px; padding:11px 14px 13px;
  box-shadow:5px 6px 0 #D9DFE8, 0 16px 30px -12px rgba(30,44,74,.4);
  opacity:0; transform:scale(.82) rotate(-3deg); transform-origin:var(--ox, 0%) var(--oy, 50%);
  transition:opacity .16s ease-out, transform .38s cubic-bezier(.3,1.5,.5,1);
}
.note.show .note-in{ opacity:1; transform:scale(1) rotate(-1deg); }
.note-tag{
  display:flex; align-items:center; gap:7px; margin-bottom:6px;
  font:500 11px 'IBM Plex Mono',monospace; letter-spacing:.08em; text-transform:uppercase; color:var(--slate);
}
.note-tag i{
  width:18px; height:18px; border-radius:50%; display:grid; place-items:center; flex:none;
  background:var(--navy); color:var(--paper); font:800 11px/1 'Nunito',sans-serif; font-style:normal;
}
.note-t{ margin:0; font-weight:800; font-size:15px; line-height:1.32; color:var(--navy); }
.note-f{ margin:9px 0 0; font-weight:600; font-size:13.5px; line-height:1.4; color:var(--slate); }
.note-f b{
  display:inline-block; margin-right:5px; padding:1px 7px 2px; border-radius:6px;
  background:var(--navy); color:var(--paper); font-weight:800; font-size:11.5px; letter-spacing:.02em;
}

figcaption{ margin-top:18px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; animation: fade .6s 1.2s both; }
.pips{ display:flex; gap:5px; flex:none; }
.pips i{
  width:18px; height:18px; border-radius:50%; display:grid; place-items:center;
  border:1.8px dashed rgba(30,44,74,.4); color:transparent;
  font:900 10px/1 'Nunito',sans-serif; font-style:normal;
  transition:background .3s, border-color .3s, color .3s, transform .4s cubic-bezier(.3,1.7,.5,1);
}
.pips i.on{ background:var(--navy); border:2px solid var(--navy); color:var(--paper); transform:scale(1.08); }
.count{ font-weight:800; font-size:.95rem; }
.hint{ margin:0; flex-basis:100%; font-weight:600; font-size:.88rem; color:var(--slate); }
.hint .touch{ display:none; }
@media (hover:none), (pointer:coarse){ .hint .mouse{ display:none; } .hint .touch{ display:inline; } }
@media (hover:hover){ .screen, .lens{ cursor:none; } }

/* ---------- clues collected + attack path ---------- */
.collect{ margin-top:14px; }
.tray{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; min-height:30px; }
.tray li{
  display:inline-flex; align-items:center; gap:7px;
  padding:5px 11px 5px 7px; border-radius:999px;
  background:#FFFFFF; border:2px solid var(--navy); color:var(--navy);
  font-weight:800; font-size:.82rem; white-space:nowrap;
  animation: chip .4s cubic-bezier(.3,1.6,.5,1) both;
}
.tray li i{
  width:18px; height:18px; border-radius:50%; flex:none;
  display:grid; place-items:center; font-style:normal; font-size:.72rem;
  background:var(--navy); color:var(--paper);
}
.plan{
  position:absolute; left:50%; top:20%; transform:translate(-50%, -50%) rotate(-1deg);
  width:min(66%, 440px); z-index:5; pointer-events:none;
  background:#FFFDF5; color:var(--navy);
  border:2px solid var(--navy); border-radius:12px;
  box-shadow:0 18px 38px -10px rgba(30,44,74,.55);
  padding:14px 16px 15px;
  animation: planpop .5s cubic-bezier(.3,1.4,.5,1) both;
}
.plan::before{
  content:""; position:absolute; left:50%; top:-9px; transform:translateX(-50%);
  width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 38% 32%, #ff7a7a, #b5241c);
  box-shadow:0 2px 4px rgba(0,0,0,.4), inset 0 -2px 3px rgba(0,0,0,.25);
}
.plan h3{ margin:0 0 8px; font-size:15px; font-weight:800; }
.plan ol{ margin:0; padding:0; list-style:none; display:grid; gap:7px; }
.plan li{
  display:grid; grid-template-columns:20px 1fr; gap:9px; align-items:start;
  font-weight:600; font-size:11.5px; line-height:1.35; color:var(--slate);
}
.plan li::before{
  content:attr(data-n);
  width:20px; height:20px; border-radius:50%; display:grid; place-items:center;
  background:#C0392B; color:#fff; font-weight:800; font-size:11px;
}
.flow{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.flow .yarn{
  stroke:#C0392B; stroke-width:2.6; stroke-linecap:round;
  stroke-dasharray:var(--len); stroke-dashoffset:var(--len);
  filter:drop-shadow(0 1px 2px rgba(30,44,74,.45));
  animation: draw .6s ease-out forwards;
}
.flow .tack{ fill:#C0392B; stroke:#fff; stroke-width:2; opacity:0; animation: tackin .3s ease-out forwards; }
@keyframes chip{ from{ opacity:0; transform:scale(.6) translateY(6px); } }
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes planpop{ from{ opacity:0; transform:translate(-50%, -50%) scale(.82) rotate(-1deg); } }
@keyframes tackin{ to{ opacity:1; } }

/* ---------- the made-up bakery, drawn twice: as itself and as a blueprint ---------- */
.s{ font-family:'DM Serif Display',Georgia,serif; }
.b{ font-family:'Nunito',sans-serif; }
.lab{ font-family:'IBM Plex Mono',monospace; font-weight:500; fill:rgba(246,238,218,.8); letter-spacing:.02em; }
.bp .art :is(rect,path,circle,ellipse,line,polygon){ fill:none; stroke:rgba(236,226,200,.72); stroke-width:1.4px; stroke-dasharray:none; opacity:1; }
.bp .art .bg{ stroke:rgba(236,226,200,.4); stroke-dasharray:6 6; }
.bp .art .shade{ display:none; }
.bp .art text{ fill:rgba(243,233,210,.86); }

/* ---------- small screens ---------- */
@media (max-width:560px){
  .chrome{ height:32px; padding:0 10px; gap:8px; }
  .dots i{ width:9px; height:9px; }
  .pips i{ width:15px; height:15px; font-size:9px; }
  .dots{ display:none; }
  .url{ font-size:11px; height:22px; }
  .sheet{ transform:translate(8px, 12px) rotate(1.6deg); }
  .note{ width:min(236px, 66vw); }
  .note-t{ font-size:14px; }
  .note-f{ font-size:12.5px; }
}

@keyframes fade{ from{ opacity:0 } }
@keyframes rise{ from{ opacity:0; transform:translateY(22px) } }
@keyframes sheet{ from{ opacity:0; transform:translate(0,0) rotate(0) } }
@keyframes drop{ from{ opacity:0; transform:translate(70px,-90px) scale(.55) rotate(-14deg) } }
@keyframes ping{ 0%{ transform:scale(.6); opacity:.95 } 100%{ transform:scale(2.7); opacity:0 } }
@keyframes burst{ from{ transform:scale(.3); opacity:1 } to{ transform:scale(2.4); opacity:0 } }
@keyframes scan{ to{ transform:translateY(400%) } }

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