/* Hatch landing page.
   Scene hero with a framed live preview of the app, then calm 600px reading columns and 800px two-up rows.
   Type: Instrument Serif for headings, Inter for text. Colour: #007AFF on #F7F7F7. */

:root {
  --blue: #007aff;
  --blue-d: #0064d6;
  --ink: #000;
  --ink-2: rgba(0, 0, 0, .72);
  --ink-3: rgba(0, 0, 0, .5);
  --surface: #f7f7f7;
  --line: rgba(0, 0, 0, .08);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; letter-spacing: -.02em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #000; color: #fff; padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: min(1000px, 100%); margin: 0 auto; padding: 0 24px; }
.col { width: min(648px, 100%); margin: 0 auto; padding: 0 24px; display: grid; gap: 18px; }
.col h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.02; letter-spacing: -.005em; }
.col > p { color: var(--ink-2); }
main > section { margin-top: 96px; }
.sep { padding-top: 96px; border-top: 1px solid var(--line); width: min(600px, calc(100% - 48px)); padding-left: 0; padding-right: 0; }

/* ---------- Buttons ---------- */
.btn-white, .btn-blue, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease), background .25s var(--ease); }
.btn-white { background: #f7f7f7; color: #2b2f7a; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0, 0, 0, .12), 0 3px 2px rgba(0, 0, 0, .06); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 1px #8cc2ff, 0 0 0 1px #005fc6; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 2px 4px rgba(0, 0, 0, .04); }
.btn-white:hover, .btn-blue:hover, .btn-ghost:hover { transform: translateY(-1px); }
.btn-blue:hover { background: var(--blue-d); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 40px; isolation: isolate; }
.hero-sky { position: absolute; inset: 0 0 7% 0; z-index: -1; overflow: hidden; background: #7f8ee8 url("app/bg/1.webp") center 70% / cover no-repeat; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.stars { position: absolute; inset: 0 0 50% 0; opacity: .9; background-image:
  radial-gradient(1.5px 1.5px at 8% 12%, #fff 60%, transparent), radial-gradient(1px 1px at 18% 30%, #fff 60%, transparent), radial-gradient(1.5px 1.5px at 31% 8%, #fff 60%, transparent),
  radial-gradient(1px 1px at 44% 22%, #fff 60%, transparent), radial-gradient(2px 2px at 57% 6%, #fff 60%, transparent), radial-gradient(1px 1px at 66% 28%, #fff 60%, transparent),
  radial-gradient(1.5px 1.5px at 78% 14%, #fff 60%, transparent), radial-gradient(1px 1px at 88% 34%, #fff 60%, transparent), radial-gradient(1.5px 1.5px at 94% 9%, #fff 60%, transparent),
  radial-gradient(1px 1px at 24% 46%, #fff 60%, transparent), radial-gradient(1px 1px at 72% 44%, #fff 60%, transparent); animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo span { font-family: var(--serif); font-size: 26px; letter-spacing: 0; line-height: 1; }
.nav-pills { display: flex; gap: 4px; }
.nav-pills a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 16px; border-radius: 999px; transition: background .25s var(--ease); }
.nav-pills a:hover, .nav-pills a:first-child { background: rgba(255, 255, 255, .16); }

.hero-copy { text-align: center; color: #fff; display: grid; justify-items: center; gap: 18px; padding-top: 56px; }
.hero-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 52px); line-height: 1.02; letter-spacing: -.005em; max-width: 15em; text-shadow: 0 1px 12px rgba(30, 30, 90, .15); }
.hero-copy p { max-width: 34em; color: rgba(255, 255, 255, .92); font-size: 16px; }
.hero-copy .btn-white { margin-top: 18px; }

.hero-frame { margin-top: 64px; }
.bezel { width: min(900px, 100%); margin: 0 auto; padding: 12px; border-radius: 42px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 40px 80px rgba(30, 30, 90, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); will-change: transform; }
.screen { position: relative; aspect-ratio: 1296 / 838; border-radius: 32px; overflow: hidden; background: #8fa0e8; }
.pv-wrap { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.pv { width: 1296px; height: 838px; border: 0; transform-origin: 0 0; pointer-events: none; display: block; }

/* ---------- Feature list ---------- */
.flist { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 20px; }
.flist li { display: flex; align-items: center; gap: 14px; height: 58px; font-weight: 500; }
.fi { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.fi svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more-pill { justify-self: center; margin-top: 6px; padding: 8px 18px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Two-up rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: min(848px, 100%); }
.row.flip .visual { order: 2; }
.row .text { display: grid; gap: 10px; max-width: 340px; }
.row.flip .text { justify-self: start; }
.row:not(.flip) .text { justify-self: end; }
.row h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.row .text p { color: var(--ink-2); }
.visual { position: relative; min-height: 290px; display: grid; place-items: center; }

/* project types: a tilted stack of cards */
.types { position: relative; width: 300px; height: 280px; }
.type { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 0 0 5px var(--surface), 0 10px 24px rgba(0, 0, 0, .06); transition: transform .9s var(--ease); }
.type b { display: block; font-size: 15px; }
.type small { color: var(--ink-3); font-size: 12px; line-height: 1.3; display: block; }
.ti { width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; }
.t1 { top: 0; } .t2 { top: 70px; } .t3 { top: 140px; } .t4 { top: 210px; }
.in .t1 { transform: rotate(-2deg) translateX(-6px); } .in .t2 { transform: rotate(1.5deg) translateX(8px); } .in .t3 { transform: rotate(-1deg); } .in .t4 { transform: rotate(2.5deg) translateX(-4px); }

/* payments: notifications over a list */
.paid { position: relative; width: 330px; padding-top: 62px; }
.notif { position: absolute; left: 50%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 300px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .1); transition: transform .9s var(--ease), opacity .6s; }
.notif b { font-size: 13px; display: block; } .notif small { font-size: 11px; color: var(--ink-3); }
.notif em { font-style: normal; font-weight: 700; color: #1f9d47; font-size: 13px; }
.notif time { position: absolute; top: 10px; right: 14px; font-size: 10px; color: var(--ink-3); }
.notif.n1 em { margin-top: 12px; }
.ni { width: 34px; height: 34px; border-radius: 10px; background: var(--blue) url("brand/hatch-icon.svg") center / cover; }
.n1 { top: 0; z-index: 2; transform: translate(-50%, 18px) rotate(4deg); }
.n2 { top: -14px; z-index: 1; transform: translate(-50%, 18px) scale(.9); opacity: .6; }
.in .n1 { transform: translate(-50%, 0) rotate(4deg); } .in .n2 { transform: translate(-50%, -8px) scale(.9); opacity: 1; }
.paid-list { position: relative; z-index: 0; background: #fff; border-radius: 22px; padding: 16px 14px 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 0 0 5px var(--surface); transform: rotate(2deg); }
.paid-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.paid-list li:last-child { border-bottom: 0; }
.paid-list b { font-size: 13px; display: block; } .paid-list small { font-size: 11px; color: var(--ink-3); }
.dotp { width: 30px; height: 30px; border-radius: 9px; background: var(--c); position: relative; }
.dotp::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #ff9500; box-shadow: 0 0 0 2px #fff; }

/* files: three tilted thumbnails */
.files { position: relative; width: 330px; height: 260px; }
.fcard { position: absolute; width: 170px; height: 190px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 34px rgba(0, 0, 0, .14); transition: transform .9s var(--ease); }
.fcard img { width: 100%; height: 100%; object-fit: cover; }
.fcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; margin: 0 8px 8px; border-radius: 14px; color: #fff; text-align: center; background: rgba(20, 24, 60, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fcard b { display: block; font-size: 13px; } .fcard small { font-size: 11px; opacity: .85; }
.f1 { left: 0; top: 50px; z-index: 1; } .f2 { left: 80px; top: 0; z-index: 2; } .f3 { left: 160px; top: 40px; z-index: 3; }
.in .f1 { transform: rotate(-12deg); } .in .f2 { transform: rotate(-3deg); } .in .f3 { transform: rotate(9deg); }
.lockb { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; }
.lockb svg { width: 15px; height: 15px; fill: none; stroke: #000; stroke-width: 2; }

/* contract card */
.contract { position: relative; width: 300px; padding-top: 34px; }
.ccard { position: relative; z-index: 1; display: grid; gap: 10px; padding: 22px 20px 20px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 0 0 8px rgba(255, 255, 255, .6), 0 0 0 9px rgba(0, 0, 0, .05), 0 18px 34px rgba(0, 0, 0, .08); }
.ccard p { font-size: 11px; line-height: 1.45; color: var(--ink-3); } .ccard b { color: var(--ink); font-weight: 600; }
.clabel { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.csig { height: 56px; border-radius: 8px; background: rgba(0, 122, 255, .1); box-shadow: inset 0 0 0 1px var(--blue); display: grid; place-items: center; font-family: "Caveat", cursive; font-size: 30px; color: #1a2b4a; letter-spacing: 0; }
.cbtn { height: 36px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.cpill { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 13px; background: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 18px rgba(0, 0, 0, .1); transition: transform .9s var(--ease); white-space: nowrap; }
.cpill i { width: 20px; height: 20px; border-radius: 6px; background: var(--blue); }
.cpill b { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; display: grid; place-items: center; margin-left: 6px; }
.p1 { left: -18px; top: 6px; transform: scale(.7); } .p2 { right: -26px; top: -4px; transform: scale(.7); }
.in .p1 { transform: rotate(-5deg); } .in .p2 { transform: rotate(4deg); }

/* ---------- Payments grid ---------- */
.pgrid { width: min(648px, 100%); display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.pgrid article { padding: 32px 26px 32px 0; display: grid; gap: 10px; align-content: start; }
.pgrid article:nth-child(odd) { border-right: 1px solid var(--line); }
.pgrid article:nth-child(even) { padding-left: 26px; padding-right: 0; }
.pgrid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.pgrid .fi { width: 48px; height: 48px; margin-bottom: 6px; }
.pgrid .fi svg { width: 22px; height: 22px; }
.pgrid h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.pgrid p { color: var(--ink-2); }
.paykey { width: min(648px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.paykey p { font-weight: 600; font-size: 17px; max-width: 16em; }
.key { display: grid; place-items: center; width: 220px; height: 92px; border-radius: 24px; background: var(--blue); color: #fff; font-weight: 700; font-size: 20px; transform: perspective(500px) rotateX(28deg) rotateZ(-8deg); box-shadow: 0 10px 0 #0055b3, 0 22px 30px rgba(0, 85, 179, .35), inset 0 2px 0 rgba(255, 255, 255, .45); }

/* ---------- Fan of live client pages ---------- */
.fan { position: relative; height: 320px; width: min(1100px, 100%); margin-top: 56px; }
.fcardp { position: absolute; left: 50%; top: 30px; width: 410px; aspect-ratio: 1296 / 838; margin-left: -205px; border-radius: 22px; overflow: hidden; background: #8fa0e8; box-shadow: 0 0 0 1px rgba(34, 34, 34, .2), 0 0 0 5px var(--surface), 0 20px 40px rgba(0, 0, 0, .12); transition: transform 1.1s var(--ease); }
.c1 { z-index: 1; } .c2 { z-index: 3; } .c3 { z-index: 2; } .c4 { z-index: 4; }
.fan.in .c1 { transform: translateX(-275px) translateY(32px) rotate(-6deg); }
.fan.in .c2 { transform: translateX(-100px) translateY(10px) rotate(-2deg); }
.fan.in .c3 { transform: translateX(100px) translateY(10px) rotate(2deg); }
.fan.in .c4 { transform: translateX(275px) translateY(30px) rotate(6deg); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; gap: 26px; margin-top: 22px; counter-reset: st; }
.steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 30px; width: 3px; border-radius: 2px; background: var(--blue); opacity: .9; }
.steps li { position: relative; padding-left: 56px; counter-increment: st; display: grid; gap: 4px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -6px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps b { font-size: 18px; font-weight: 600; }
.steps p { color: var(--ink-2); }

/* ---------- Pricing ---------- */
.price { display: grid; grid-template-columns: 80px 1fr; gap: 22px; align-items: center; }
.burst { position: relative; width: 80px; height: 80px; display: grid; place-items: center; transform: rotate(-12deg); }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue); }
.burst b { position: relative; color: #fff; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; }
.price p { font-size: 16px; } .price small { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.quote { margin-top: 12px; padding: 4px 0 4px 18px; border-left: 4px solid var(--blue); font-size: 16px; font-weight: 500; }

/* ---------- Memo ---------- */
.memo-wrap { display: grid; place-items: center; margin-top: 110px; }
.memo { width: min(660px, 100%); padding: 44px 46px 36px; background: #fffdf8; border-radius: 6px; transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 30px 60px rgba(0, 0, 0, .12), 0 2px 0 rgba(0, 0, 0, .04); display: grid; gap: 14px; }
.memo h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.memo p { color: var(--ink-2); line-height: 1.55; }
.memo footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.sign { font-family: "Caveat", cursive; font-size: 34px; color: #1a2b4a; letter-spacing: 0; transform: rotate(-3deg); }
.who { display: flex; align-items: center; gap: 10px; }
.who b { display: block; font-size: 13px; } .who small { color: var(--ink-3); font-size: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }

/* ---------- Final CTA and footer ---------- */
.final { justify-items: center; text-align: center; margin-top: 120px; padding-bottom: 20px; }
.app-ic { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 12px 26px rgba(0, 122, 255, .3); margin-bottom: 8px; }
.final h2 { font-size: 48px; max-width: 12em; }
.final p { color: var(--ink-2); max-width: 30em; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.foot { margin-top: 80px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; width: min(648px, 100%); }
.foot-in p { color: var(--ink-2); font-size: 14px; max-width: 26em; }
.foot-in small { display: block; margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.foot-in nav { display: grid; gap: 10px; font-size: 14px; font-weight: 500; text-align: right; }
.foot-in a { color: var(--ink); }
.foot-in nav a { text-decoration: none; }
.foot-scene { height: 180px; margin: 56px auto 0; width: min(1012px, 100%); border-radius: 36px 36px 0 0; background: url("app/bg/3.webp") center 70% / cover; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .stars { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row.flip .visual { order: 0; }
  .row .text, .row:not(.flip) .text { justify-self: center; max-width: 520px; text-align: left; }
  .fan { height: auto; display: grid; gap: 14px; justify-items: center; }
  .fcardp, .fan.in .fcardp { position: relative; left: auto; top: auto; margin: 0; transform: none; width: min(520px, 100%); }
  .fcardp:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .wrap, .col { padding: 0 16px; }
  .sep { width: calc(100% - 32px); }
  .nav-pills a:not(:first-child) { display: none; }
  .hero-copy { padding-top: 24px; }
  .bezel { padding: 6px; border-radius: 22px; }
  .screen { border-radius: 17px; }
  .col h2 { font-size: 34px; }
  .flist { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .pgrid article, .pgrid article:nth-child(even) { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .paykey { flex-direction: column; text-align: center; }
  .key { width: 180px; height: 76px; font-size: 17px; }
  .types, .paid, .files, .contract { transform: scale(.92); }
  .memo { padding: 30px 24px 26px; transform: rotate(-1deg); }
  .final h2 { font-size: 36px; }
  .foot-in { flex-direction: column; }
  .foot-in nav { text-align: left; }
  .foot-scene { border-radius: 24px 24px 0 0; height: 120px; }
}
