/* The home page below the hero: the facts band, how it works, the editing demos, before/after, pricing, questions
   and the last call. Warm paper, cream alternates, and deep navy for the bands that should stand out. */

/* facts: a navy band with amber icons */
.band { background: var(--brand-deep); color: #dfe6ee; position: relative; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; padding: 2rem 0; }
.facts > div { display: grid; grid-template-columns: 40px 1fr; column-gap: .8rem; align-items: start; }
.facts svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 11px; background: rgba(224, 165, 38, .14);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts b { display: block; color: #fff; font: 600 1.08rem/1.3 var(--serif); }
.facts span { color: #b7c3d0; font-size: .9rem; line-height: 1.45; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 1.1rem; } }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--soft); position: relative; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; margin: 0 0 .8rem; max-width: 22ch; font-weight: 600; }
.center { text-align: center; }
.section-head { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head h2, .section-head .lead { margin-inline: auto; }

/* the "just ask" band: navy, so the page has a dark moment between the light ones */
.section.dark { color: #dfe6ee; background: radial-gradient(50% 80% at 100% 0%, rgba(224, 165, 38, .16), transparent 60%),
  radial-gradient(40% 70% at 0% 100%, rgba(181, 83, 47, .18), transparent 60%), var(--brand-deep); }
.section.dark h2 { color: #fff; }
.section.dark .lead { color: #b7c3d0; }
.section.dark .eyebrow { color: #f3c58f; }
.section.dark .checks li { color: #e7edf3; }
.section.dark .checks li::before { background: rgba(224, 165, 38, .16); color: var(--accent); }
/* before / after: warm paper with a faint dot grid */
.section.warm { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--soft), #fbf3e4); }
.section.warm::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background: radial-gradient(rgba(181, 83, 47, .16) 1px, transparent 1.4px) 0 0 / 22px 22px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
/* a warm tilted card behind each demo, like the hero's */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 6% -3% -5% 8%; z-index: -1; border-radius: 26px; transform: rotate(2.5deg);
  background: linear-gradient(135deg, rgba(224, 165, 38, .38), rgba(181, 83, 47, .26)); }
.split.reverse .glow::before { inset: 6% 8% -5% -3%; transform: rotate(-2.5deg); }
.section.dark .glow::before { background: linear-gradient(135deg, rgba(224, 165, 38, .55), rgba(181, 83, 47, .5)); }
.center h2, .center .lead { margin-inline: auto; }
.small { font-size: .88rem; }
.narrow { width: min(760px, 100% - 2.5rem); }

/* how it works: three cards joined by a dotted path */
.how { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; }
.how::before { content: ""; position: absolute; top: 47px; left: 12%; right: 12%; border-top: 2px dashed #e2cfae; z-index: -1; }
.how li { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 12px 30px rgba(122, 76, 20, .07); transition: transform .2s, box-shadow .2s; }
.how li:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 18px 40px rgba(122, 76, 20, .12); }
.how li::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--clay));
  transform: scaleX(.25); transform-origin: left; transition: transform .3s; }
.how li:hover::after { transform: none; }
.how-icon { position: absolute; top: 1.5rem; right: 1.5rem; width: 34px; height: 34px; fill: none; stroke: #dcc29a; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.how h3 { margin: .9rem 0 .4rem; font-size: 1.3rem; }
.how p { margin: 0; color: var(--muted); }
.how-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--accent); color: var(--clay); font: italic 700 1.25rem var(--serif); }
@media (max-width: 800px) { .how { grid-template-columns: 1fr; } .how::before { display: none; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .65rem; align-items: baseline; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #e3f1e8; color: var(--ok); font-weight: 700; font-size: .75rem; transform: translateY(3px); }

/* the editing demos */
.ai-demo, .type-demo { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 26px 60px rgba(80, 50, 15, .16); }
.ai-site { border-bottom: 1px solid var(--line); }
.ai-hero { padding: 1.4rem 1.2rem; color: #fff; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(90deg, rgba(28, 18, 10, .82), rgba(28, 18, 10, .45) 60%, rgba(28, 18, 10, .1)), url(/img/joes-diner.jpg) 70% 60% / cover; }
.ai-hero h3 { margin: 0 0 .35rem; font: 700 1.35rem/1.15 Georgia, "Times New Roman", serif; max-width: 16ch; }
.ai-hero p { margin: 0; font-size: .85rem; opacity: .9; }
.flash { animation: flash 1.6s ease; border-radius: 4px; }
@keyframes flash { 0%, 60% { background: rgba(255, 213, 79, .45); } 100% { background: transparent; } }
/* a fixed height, room for both bubbles and a two-line message, so the page never moves while the demo plays */
.ai-chat { padding: 1rem; display: grid; gap: .6rem; height: 270px; overflow: hidden; align-content: end; background: #fcf8f2; }
@media (max-width: 520px) { .ai-chat { height: 330px; } }
.bubble { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.bubble.me { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.me:empty { display: none; }
.bubble.ai { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-input { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .6rem .8rem; font-size: .9rem; min-height: 4rem; color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--brand-2); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.type-body { padding: 1.4rem 1.2rem 1.6rem; position: relative; }
.type-bar { position: absolute; top: .4rem; left: 1.2rem; display: flex; gap: 2px; background: #1f2937; border-radius: 8px; padding: 3px; font: .72rem var(--sans); }
.type-bar span { color: #fff; padding: .25rem .55rem; border-radius: 6px; }
.type-bar span:first-child { background: var(--brand-2); }
.type-target { margin: 1.6rem 0 .4rem; font-size: 1.4rem; outline: 2px solid var(--brand-2); outline-offset: 4px; border-radius: 3px; display: inline-block; }
.type-body p { margin: 0; color: var(--muted); }

/* before / after slider */
.compare-demo { position: relative; max-width: 920px; margin: 2.2rem auto 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 30px 70px rgba(80, 50, 15, .2); text-align: left; }
.compare-demo .mock { position: absolute; inset: 0; }
.compare-demo .mock.new { clip-path: inset(0 0 0 55%); }
.compare-demo .new-hero { align-items: flex-end; text-align: right; }
.compare-demo .new-hero::before { background: linear-gradient(rgba(28, 18, 10, .5), rgba(28, 18, 10, .62)), url(/img/joes-diner.jpg) 75% 55% / cover; }
.compare-demo .new-hero h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
.compare-demo .new-actions { justify-content: flex-end; }
.compare-demo input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 55%; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); z-index: 2; pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--clay); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.corner-l, .corner-r { position: absolute; bottom: .8rem; z-index: 2; }
.corner-l { left: .8rem; } .corner-r { right: .8rem; }
@media (max-width: 600px) {
  .compare-demo { aspect-ratio: 4 / 5; }
  .compare-demo .new-nav span { display: none; }
}

/* pricing: the middle plan in navy */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 2.4rem 0 1.2rem; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem;
  box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 12px 30px rgba(122, 76, 20, .06); }
.plan.featured { background: var(--brand-deep); color: #dfe6ee; border-color: var(--brand-deep); box-shadow: 0 26px 60px rgba(20, 50, 79, .3); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .muted, .plan.featured .price small { color: #b7c3d0; }
.plan h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.price { font: 650 2.6rem/1.1 var(--serif); color: var(--ink); margin: .3rem 0 0; letter-spacing: -.02em; }
.price small { font: 500 1rem var(--sans); color: var(--muted); }
.plan ul { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; display: grid; gap: .45rem; border-top: 1px solid var(--line); }
.plan.featured ul { border-color: rgba(255, 255, 255, .14); }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .5rem; }
.plan.featured li::before { color: var(--accent); }
.badge { position: absolute; top: -13px; left: 1.8rem; background: var(--accent); color: #3b2a05; font-size: .75rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 999px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* questions: the heading beside the list */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-head a { color: var(--clay); font-weight: 600; }
.faq-list details:first-child { margin-top: 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-head { position: static; } }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; margin-top: .7rem; transition: box-shadow .2s; }
details[open] { box-shadow: 0 10px 30px rgba(122, 76, 20, .08); }
summary { cursor: pointer; font-weight: 650; padding: 1.05rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--clay); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 1.1rem; color: var(--muted); }
.build-log { background: none; border: 0; padding: 0; box-shadow: none !important; }
.build-log summary { font-weight: 500; padding: .3rem 0; color: var(--muted); justify-content: flex-start; }

/* last call: a navy panel with the same warm glow as the hero */
.cta { text-align: center; }
.cta-panel { border-radius: 28px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(60% 90% at 85% 0%, rgba(224, 165, 38, .35), transparent 60%),
              radial-gradient(50% 80% at 0% 100%, rgba(181, 83, 47, .3), transparent 60%), var(--brand-deep);
  box-shadow: 0 30px 70px rgba(20, 50, 79, .28); }
.cta-panel h2 { margin-inline: auto; color: #fff; }
.cta-panel .eyebrow { color: #f3c58f; }
.cta-panel .claim { background: #fff; padding: .45rem; border-radius: 16px; gap: .45rem; max-width: 560px; }
.cta-panel .claim input { border: 0; }
.cta-panel .error { color: #ffb4a6; }
.center-form { margin-inline: auto; justify-content: center; }
.section.cta { padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (max-width: 520px) { .cta-panel .claim { flex-direction: column; } .cta-panel .claim input { flex-basis: auto; } }

@media (prefers-reduced-motion: reduce) { .caret { animation: none; } .how li, .how li::after { transition: none; } }
