/* Warpgate homepage, Oct 20 rework (Josh: "more emphasis on not just me building websites, but also improving
   workflows with AI"). Loads after styles.css and keeps its tokens, type and components (sections, samples,
   steps, about, FAQ, the form). New here: the hero with the live conversation, the busywork list, the dark AI
   band with example tools, and the three price cards. */

:root {
  --night:    #0c120f;
  --night-2:  #131b17;
  --night-3:  #1b2620;
  --night-ln: #263229;
  --night-ink:#e8eee9;
  --night-2nd:#a9b6ad;
  --glow:     #5cc993;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font: 600 0.82rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--go);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.section-head .eyebrow { margin-bottom: 1.1rem; }

/* ------------------------------------------------------------------ hero */
.hx { position: relative; padding-block: clamp(2.25rem, 5vw, 4.5rem) var(--band); overflow: clip; }
.hx::before {   /* faint dot grid, fading out downwards, with a green glow behind the demo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 78% 38%, color-mix(in srgb, var(--go) 13%, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hx h1 { margin-top: 1.4rem; font-size: clamp(2.7rem, 1.3rem + 4.4vw, 5.2rem); letter-spacing: -0.04em; line-height: 0.97; max-width: 13ch; }
.hx h1 em { font-style: normal; color: var(--go); }
.hx .lede { margin-top: 1.6rem; max-width: 34ch; }
.hx .hero-actions { margin-top: 2.2rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; font: 500 0.98rem/1.2 var(--f-display); color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 0.5em; }
.trust li::before { content: ""; width: 15px; height: 15px; flex: none; background: var(--go); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The demo: a customer texting a made-up heating company after hours, and the summary that reaches the tech. */
.demo { position: relative; margin: 0; padding-left: 2.5rem; }
.stage { position: relative; padding-bottom: 6.5rem; }
.demo figcaption { margin-top: 0.9rem; text-align: right; font: italic 400 0.95rem/1.4 var(--f-text); color: var(--ink-3); }
.cphone {
  position: relative; width: min(100%, 360px); margin-left: auto; height: 560px;
  border-radius: 40px; padding: 10px; background: #1a1f1c;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset, 0 50px 80px -40px rgb(var(--shadow) / 0.55), 0 18px 30px -18px rgb(var(--shadow) / 0.35);
}
.cscreen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #f6f7f4; display: flex; flex-direction: column; font: 400 15px/1.38 -apple-system, "Helvetica Neue", Arial, sans-serif; color: #18201b; }
.cscreen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 92px; height: 24px; translate: -50% 0; border-radius: 99px; background: #1a1f1c; z-index: 3; }
.chead { display: flex; align-items: center; gap: 10px; padding: 44px 16px 12px; background: #fff; border-bottom: 1px solid #e3e6e1; }
.chead .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #c2410c; color: #fff; font: 700 15px/1 "Helvetica Neue", Arial, sans-serif; flex: none; }
.chead b { display: block; font-size: 15px; font-weight: 650; }
.chead small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #5f6b63; }
.chead small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d5f; }
.cbody { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px 12px; overflow: hidden; }
.cbody .when { align-self: center; margin-bottom: 4px; font-size: 11.5px; color: #7a857e; }
.b { max-width: 82%; padding: 9px 12px; border-radius: 18px; overflow-wrap: anywhere; }
.b.in { align-self: flex-start; background: #e6e9e4; border-bottom-left-radius: 6px; }
.b.out { align-self: flex-end; background: #0f6a45; color: #fff; border-bottom-right-radius: 6px; }
.b.out small { display: block; margin-bottom: 2px; font-size: 11px; opacity: 0.75; }
.b.dots { display: none; align-self: flex-end; gap: 4px; padding: 12px 14px; background: #0f6a45; border-bottom-right-radius: 6px; }
.b.dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0.5; animation: dot 1s infinite; }
.b.dots i:nth-child(2) { animation-delay: 0.15s; } .b.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.cfoot { display: flex; gap: 8px; align-items: center; padding: 10px 12px 18px; background: #fff; border-top: 1px solid #e3e6e1; }
.cfoot span { flex: 1; padding: 9px 14px; border-radius: 99px; border: 1px solid #dfe3dd; color: #8a948d; font-size: 14px; }
.cfoot i { width: 34px; height: 34px; border-radius: 50%; background: #0f6a45; flex: none; }

.alert {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: min(78%, 320px);
  padding: 14px 16px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -28px rgb(var(--shadow) / 0.5), 0 8px 18px -10px rgb(var(--shadow) / 0.25);
  font: 400 14px/1.4 var(--f-display); color: var(--ink);
}
.alert .top { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.alert .top i { width: 20px; height: 20px; border-radius: 6px; background: var(--go); flex: none; position: relative; }
.alert .top i::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px; border: solid var(--go-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.alert .top span:last-child { margin-left: auto; }
.alert h4 { margin: 10px 0 6px; font: 700 15.5px/1.25 var(--f-display); letter-spacing: -0.01em; }
.alert h4 b { color: #c2410c; }
@media (prefers-color-scheme: dark) { .alert h4 b { color: #fb923c; } }
.alert ul { display: grid; gap: 3px; color: var(--ink-2); font-size: 13.5px; }
.alert ul li { display: flex; gap: 8px; }
.alert ul li span:first-child { width: 4.3em; flex: none; color: var(--ink-3); }
.alert .acts { display: flex; gap: 8px; margin-top: 12px; }
.alert .acts span { padding: 7px 12px; border-radius: 8px; background: var(--go); color: var(--go-ink); font: 600 13px/1 var(--f-display); }
.alert .acts span + span { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }

@media (max-width: 900px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx h1 { max-width: 14ch; }
  .demo { max-width: 460px; padding-left: 1.5rem; }
  .cphone { height: 520px; }
}
@media (max-width: 480px) {
  .demo { padding-left: 0; }
  .cphone { width: 88%; height: 500px; }
  .alert { width: 84%; }
}

/* Chat motion: only with JS and without reduced motion; otherwise the finished conversation shows. */
@media (prefers-reduced-motion: no-preference) {
  .js .demo .cbody > :not(.show) { display: none; }
  .js .demo .cbody > .show { animation: pop 0.38s var(--ease) both; }
  .js .demo .cbody > .b.dots.show { display: flex; }
  .js .demo .alert { opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .js .demo .alert.show { opacity: 1; transform: none; }
  .js .demo.fade .cbody, .js .demo.fade .alert { opacity: 0; transition: opacity 0.4s; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
}

/* -------------------------------------------------------------- busywork */
.chores .fix .now { font-size: 1.28rem; }
.chores-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-2); font-size: 1.1rem; font-style: italic; max-width: 60ch; }

/* --------------------------------------------------------- the dark AI band */
.night { background: var(--night); color: var(--night-ink); position: relative; overflow: clip; }
.night::before { content: ""; position: absolute; inset: auto -10% -30% auto; width: 60rem; height: 40rem; background: radial-gradient(closest-side, rgb(92 201 147 / 0.12), transparent); pointer-events: none; }
.night .section-head p { color: var(--night-2nd); }
.night .eyebrow { color: var(--glow); }
.night a { color: var(--glow); }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); position: relative; }
.tool {
  display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 14px;
  background: linear-gradient(180deg, var(--night-2), color-mix(in srgb, var(--night-2) 60%, var(--night)));
  border: 1px solid var(--night-ln);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
@media (hover: hover) { .tool:hover { border-color: rgb(92 201 147 / 0.45); transform: translateY(-3px); } }
.tool .kind { align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: rgb(92 201 147 / 0.12); color: var(--glow); font: 600 0.8rem/1 var(--f-mono); letter-spacing: 0.04em; }
.tool h3 { margin-top: 1rem; font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.tool p { margin-top: 0.6rem; color: var(--night-2nd); font-size: 1.07rem; line-height: 1.5; }
.flowline { display: flex; align-items: stretch; gap: 0; margin-top: auto; padding-top: 1.5rem; font: 500 0.86rem/1.25 var(--f-display); }
.flowline li { flex: 1; position: relative; padding: 0.65rem 0.7rem; border-radius: 9px; background: var(--night-3); border: 1px solid var(--night-ln); color: var(--night-ink); }
.flowline li + li { margin-left: 22px; }
.flowline li + li::before { content: ""; position: absolute; left: -17px; top: 50%; width: 12px; height: 12px; translate: 0 -50%; background: var(--glow); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h8M7 3l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h8M7 3l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.flowline li:last-child { background: rgb(92 201 147 / 0.14); border-color: rgb(92 201 147 / 0.35); }
.flowline small { display: block; margin-bottom: 2px; color: var(--night-2nd); font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.flowline li:last-child small { color: var(--glow); }
.tools-note { margin-top: 1.5rem; color: var(--night-2nd); font-size: 1rem; font-style: italic; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--night-ln); }
.promises h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.promises p { margin-top: 0.5rem; color: var(--night-2nd); font-size: 1.05rem; }
@media (max-width: 860px) { .tools, .promises { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .flowline { flex-direction: column; } .flowline li + li { margin: 18px 0 0; } .flowline li + li::before { left: 50%; top: -15px; translate: -50% 0; rotate: 90deg; } }

/* ------------------------------------------------------------- websites */
.wfeats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.wfeats li { padding-top: 1rem; border-top: 2px solid var(--go); font: 600 1.08rem/1.3 var(--f-display); }
.wfeats li span { display: block; margin-top: 0.35rem; font: 400 1rem/1.45 var(--f-text); color: var(--ink-2); }
@media (max-width: 860px) { .wfeats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .wfeats { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- pricing */
.free-band { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; padding: 1.1rem 1.4rem; border-radius: 12px; background: var(--go-soft); border: 1px solid color-mix(in srgb, var(--go) 25%, transparent); font: 600 1.1rem/1.3 var(--f-display); }
.free-band span { font: 400 1.02rem/1.4 var(--f-text); color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.plan { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.plan.lead { border-color: var(--go); box-shadow: 0 0 0 1px var(--go), 0 30px 50px -36px rgb(var(--shadow) / 0.5); }
.plan .kind { font: 600 0.8rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--go); }
.plan h3 { margin-top: 0.8rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.plan > p { margin-top: 0.5rem; color: var(--ink-2); font-size: 1.05rem; }
.plan .price { margin-top: 1.4rem; }
.plan .price .amt { font-size: clamp(2.6rem, 2rem + 1.8vw, 3.4rem); }
.plan .then { margin-top: 0.45rem; color: var(--ink-2); font: 500 0.98rem/1.35 var(--f-display); }
.plan ul { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; font-size: 1.02rem; }
.plan ul li { display: flex; gap: 0.6em; }
.plan ul li::before { content: ""; width: 14px; height: 14px; margin-top: 0.38em; flex: none; background: var(--go); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: 2rem; color: var(--ink-2); font-size: 1.02rem; }
.extras b { display: block; color: var(--ink); font: 600 1.02rem/1.35 var(--f-display); }
@media (max-width: 960px) { .plans, .extras { grid-template-columns: 1fr; } .plans { max-width: 560px; } }

/* Section labels: beat .section-head p / .about-copy p, which set size and colour for body copy. */
.section-head p.eyebrow, .about-copy p.eyebrow, .hx p.eyebrow { margin-top: 0; max-width: none; font-size: 0.82rem; line-height: 1; color: var(--go); }
.night .section-head p.eyebrow { color: var(--glow); }
.about-copy p.eyebrow { margin-bottom: 1.1rem; }

/* ------------------------------------------------------------- closing */
.closing-box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem 3rem; align-items: center; background: var(--night); color: var(--night-ink); border: 1px solid var(--night-ln); }
.closing-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(34rem 24rem at 85% 50%, rgb(92 201 147 / 0.16), transparent 70%), radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.closing-box > * { position: relative; }
.closing-box p { color: var(--night-2nd); }
.closing-box .btn { background: var(--glow); color: #08130d; }
.closing-box .btn:hover { background: #7dd9ab; color: #08130d; }
.closing-box .mail, .closing-box .mail:hover { color: var(--night-ink); }
.done-stack { display: grid; gap: 0.7rem; }
.done-stack li { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; border-radius: 12px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--night-ln); font: 500 1rem/1.3 var(--f-display); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.done-stack li:nth-child(2) { margin-left: 1.5rem; } .done-stack li:nth-child(3) { margin-left: 0.6rem; } .done-stack li:nth-child(4) { margin-left: 2.2rem; }
.done-stack i { position: relative; width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgb(92 201 147 / 0.16); }
.done-stack i::after { content: ""; position: absolute; left: 10px; top: 6px; width: 5px; height: 10px; border: solid var(--glow); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.done-stack small { display: block; color: var(--night-2nd); font: 400 0.85rem/1.3 var(--f-text); font-style: italic; }
.done-stack time { margin-left: auto; color: var(--night-2nd); font: 500 0.78rem/1 var(--f-mono); }
@media (prefers-color-scheme: dark) {
  .closing-box { background: var(--night); color: var(--night-ink); border-color: var(--night-ln); }
  .closing-box p { color: var(--night-2nd); }
  .closing-box .btn { background: var(--glow); color: #08130d; }
  .closing-box .mail, .closing-box .mail:hover { color: var(--night-ink); }
}
@media (max-width: 860px) { .closing-box { grid-template-columns: 1fr; } .done-stack li { margin-left: 0 !important; } }
@media (prefers-reduced-motion: no-preference) {
  .js .done-stack li { opacity: 0; transform: translateX(14px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
  .js .closing-box.in .done-stack li { opacity: 1; transform: none; }
  .js .closing-box.in .done-stack li:nth-child(2) { transition-delay: 0.25s; }
  .js .closing-box.in .done-stack li:nth-child(3) { transition-delay: 0.5s; }
  .js .closing-box.in .done-stack li:nth-child(4) { transition-delay: 0.75s; }
}
@media (max-width: 480px) { .hx .eyebrow .more { display: none; } }
