:root {
  --surface: #1A1219; --raised: #251A24; --sunken: #140E13; --line: #3a2a37;
  --ink: #F7EEF0; --ink2: #B5A1AC; --ink3: #998892;
  --primary: #FF6B5B; --on-primary: #1E0F12; --accent: #FF9384;
  --hold: #A2B5FF; --waiting: #FFC34F;
  --glow: rgba(255,107,91,.20); --shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
  --desk: radial-gradient(120% 90% at 85% 100%, #5a2f3d 0%, transparent 55%), radial-gradient(90% 70% at 10% 0%, #2a1d3a 0%, transparent 60%), #1d1420;
  --display: "Fraunces", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", ui-serif, Georgia, serif;
  --body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", ui-rounded, system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --surface: #FBF4F1; --raised: #FFFFFF; --sunken: #F3E8E4; --line: #ead9d3;
  --ink: #2B1626; --ink2: #6F5867; --ink3: #84707C;
  --primary: #E5503F; --on-primary: #FFFFFF; --accent: #D5483A;
  --hold: #4A62D6; --waiting: #B37400;
  --glow: rgba(229,80,63,.14); --shadow: 0 30px 70px -32px rgba(60,20,40,.35), 0 0 0 1px rgba(43,22,38,.07);
  --desk: radial-gradient(120% 90% at 85% 100%, #f2d2c6 0%, transparent 55%), radial-gradient(90% 70% at 10% 0%, #d9d3ea 0%, transparent 60%), #efe4ea;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: #FBF4F1; --raised: #FFFFFF; --sunken: #F3E8E4; --line: #ead9d3;
    --ink: #2B1626; --ink2: #6F5867; --ink3: #84707C;
    --primary: #E5503F; --on-primary: #FFFFFF; --accent: #D5483A;
    --hold: #4A62D6; --waiting: #B37400;
    --glow: rgba(229,80,63,.14); --shadow: 0 30px 70px -32px rgba(60,20,40,.35), 0 0 0 1px rgba(43,22,38,.07);
    --desk: radial-gradient(120% 90% at 85% 100%, #f2d2c6 0%, transparent 55%), radial-gradient(90% 70% at 10% 0%, #d9d3ea 0%, transparent 60%), #efe4ea;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.lede { color: var(--ink2); font-size: clamp(17px, 1.6vw, 20px); max-width: 38em; }
section { padding: clamp(72px, 10vw, 128px) 0; }
.band { background: var(--sunken); }
section:not(.band):not(.hero) + section:not(.band) { padding-top: 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }

/* stitched: the brand's dashed seam */
.stitched { position: relative; }
.stitched::after {
  content: ""; position: absolute; inset: 7px; border-radius: inherit; pointer-events: none;
  border: 1.5px dashed color-mix(in srgb, var(--ink3) 45%, transparent);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 10px 30px -10px var(--primary); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--primary); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.not-mac .btn.dl { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.not-mac .join-cta .btn.dl { order: 2; }
.not-mac .btn.web { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -10px var(--primary); }
.nav .btn.web, .not-mac .nav .btn.dl { display: none; }
.not-mac .nav .btn.web { display: inline-flex; }
.dl-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; }
.dl-wrap small { font-size: 12.5px; color: var(--ink3); }
.not-mac .dl-wrap { order: 2; }

/* nav */
header.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--surface) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 21px/1 var(--display); font-variation-settings: "SOFT" 100; text-decoration: none; }
.tile { width: 30px; height: 30px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; }
.nav .links a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; }
.nav .links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 16px; font-size: 14px; gap: 0; }
.theme { background: none; border: 1.5px solid var(--line); color: var(--ink2); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
@media (max-width: 760px) { .nav { gap: 16px; } .nav .links a:not(.keep) { display: none; } .nav .btn { margin-left: 0; } }
@media (max-width: 420px) { .nav .btn .long { display: none; } }

/* hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 104px); position: relative; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "h stage" "lede stage" "cta stage"; column-gap: clamp(32px, 5vw, 80px); align-items: center; align-content: center; position: relative; }
.hero-grid > * { min-width: 0; }
.hero h1 { grid-area: h; align-self: end; font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--primary); font-weight: 500; }
.hero .hv-b { display: block; font-size: clamp(40px, 5vw, 68px); line-height: 1.06; }
.hv-b > span { display: block; white-space: nowrap; }
.hero .hv-b .b1 { display: flex; align-items: center; gap: .2em; }
.hl-tile { width: .86em; height: .86em; border-radius: .22em; background: var(--raised); box-shadow: 0 .08em .3em -.1em rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); display: grid; place-items: center; flex: none; overflow: hidden; }
.hl-tile svg, .hl-tile img { width: 62%; height: 62%; }
.hl-tile img.full { width: 100%; height: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .lede { grid-area: lede; margin: 24px 0 32px; }
.hero .cta-block { grid-area: cta; align-self: start; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--ink3); }
.stage { grid-area: stage; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "h" "stage" "lede" "cta"; }
  .stage { margin-top: 32px; }
  .hero .lede { margin-top: 32px; }
}

/* the stage: an assistant asks, Patch makes the call */
.stage { position: relative; border-radius: 28px; background: var(--desk); box-shadow: var(--shadow); padding: clamp(22px, 3.4vw, 40px); display: grid; justify-items: center; }
.ask, .call { width: 100%; max-width: 420px; background: var(--raised); border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.ask { padding: 18px 22px 22px; }
.ask .from { display: flex; align-items: center; gap: 9px; font: 600 14px/1 var(--body); color: var(--ink2); height: 24px; }
.ask .from svg { width: 22px; height: 22px; flex: none; }
.ask .req { margin-top: 12px; font: 500 clamp(26px, 3vw, 34px)/1.12 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; min-height: 2.24em; text-wrap: balance; }
.swap { display: inline-block; transition: opacity .45s ease, filter .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.swap.out { opacity: 0; filter: blur(8px); transform: translateY(6px); }
.req .w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(5px); animation: win .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes win { to { opacity: 1; filter: none; transform: none; } }

.cord { width: 120px; height: 56px; overflow: visible; }
.cord path { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 8; }
.cord circle { fill: var(--primary); }
.cord .spark { fill: var(--accent); opacity: 0; }
.cord.go .spark { animation: spark .8s ease-in-out forwards; offset-path: path("M20 6 C 20 34, 100 22, 100 50"); }
@keyframes spark { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.call { padding: 16px 18px; display: grid; gap: 0; transition: opacity .4s; }
.call.idle { opacity: .55; }
.call-head { display: flex; align-items: center; gap: 12px; }
.call-head .tile { width: 36px; height: 36px; flex: none; }
.call-head b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.st { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink2); height: 20px; }
.st .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); flex: none; transition: background .3s; }
.st[data-k="talk"] .dot { background: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
.st[data-k="hold"] .dot { background: var(--hold); }
.st[data-k="hold"] { color: var(--hold); }
.st[data-k="ask"] .dot { background: var(--waiting); animation: pulse 1.2s ease-in-out infinite; }
.st[data-k="ask"] { color: var(--waiting); font-weight: 600; }
.st[data-k="done"] .dot { background: var(--primary); }
.st[data-k="done"] { color: var(--primary); font-weight: 600; }
.st[data-k="ring"] .dot { animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .6; } }
.res { margin-top: 12px; padding: 11px 13px; border-radius: 13px; background: var(--sunken); font-size: 15px; min-height: 4.4em; color: var(--ink3); transition: color .3s; }
.call.done .res { color: var(--ink); }

.ais { display: flex; gap: 8px; margin-top: 26px; list-style: none; padding: 0; flex-wrap: wrap; justify-content: center; }
.ais li { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--raised) 70%, transparent); color: var(--ink); opacity: .5; transition: opacity .35s, transform .35s, box-shadow .35s; }
.ais li svg, .ais li img { width: 20px; height: 20px; }
.ais li img.full { width: 28px; height: 28px; border-radius: 7px; }
.ask .from img { width: 22px; height: 22px; flex: none; }
.ask .from img.full { border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.ais li.on { opacity: 1; transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--primary); background: var(--raised); }
.ais-cap { margin-top: 10px; font-size: 13px; color: var(--ink2); text-align: center; }
.ais-cap a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink3) 45%, transparent); }
.ais-cap a:hover { color: var(--ink); border-color: var(--ink2); }
@media (max-width: 560px) {
  .stage { padding: 18px 16px 20px; border-radius: 24px; }
  .ask { padding: 16px 18px 18px; }
  .ask .req { font-size: 25px; }
  .cord { height: 44px; }
  .ais { margin-top: 18px; gap: 6px; flex-wrap: nowrap; }
  .ais li { width: 36px; height: 36px; border-radius: 11px; }
}

/* how it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--raised); border-radius: 22px; padding: 26px 24px; box-shadow: 0 1px 0 var(--line); }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 15px/1 var(--body); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink2); font-size: 16px; }

.demo { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: clamp(40px, 6vw, 72px); text-decoration: none; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.demo .shot { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--sunken); }
.demo .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.demo:hover .shot img { transform: scale(1.02); }
.demo .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.demo .play svg { width: 24px; height: 24px; margin-left: 4px; }
.demo h3 { margin: 12px 0 10px; font-size: clamp(24px, 2.6vw, 30px); }
.demo p { color: var(--ink2); }
.demo .more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--primary); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
.trust li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.trust svg { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.trust b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.trust span { color: var(--ink2); font-size: 15.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--primary); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.price { padding: 24px; border-radius: 22px; background: var(--raised); box-shadow: 0 1px 0 var(--line); }
.price .big { font: 600 clamp(44px, 5vw, 58px)/1 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.03em; }
.price.talk .big { color: var(--primary); }
.price.wait .big { color: var(--hold); }
.price > span { display: block; color: var(--ink2); font-size: 15px; margin-top: 10px; }
.price.free { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.price.free > span { color: inherit; opacity: .88; }
.price-note { margin-top: 18px; color: var(--ink2); font-size: 15px; }
.price-note a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* join */
.join { text-align: center; }
.join-card { padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: 34px; background: var(--raised); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.join-card .big-mark { width: 72px; height: 72px; margin: 0 auto 26px; }
.join-card h2 { max-width: 14em; margin: 0 auto; }
.join-card .lede { margin: 18px auto 30px; }
form.wl { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
form.wl input { flex: 1 1 260px; min-width: 0; font: 500 16px/1 var(--body); padding: 16px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sunken); color: var(--ink); }
form.wl input::placeholder { color: var(--ink3); }
form.wl input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.join-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.formnote { margin-top: 14px; font-size: 13.5px; color: var(--ink3); min-height: 1.6em; }
.formnote.ok { color: var(--primary); font-weight: 600; }

footer { padding: 40px 0 56px; color: var(--ink3); font-size: 14px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .cd-bar i { animation: none; }
  .req .w { animation: none; opacity: 1; filter: none; transform: none; }
  .st .dot { animation: none !important; }
}
