/* The lower sections shared by demos B and 4: "Your idea, a better one, or ours", "Made for every screen",
   "Found on Google" and the closing call. Also the WhatsApp icon and the phone layout of the call buttons.
   Needs demo.css first. */

/* padding-top / padding-bottom only, never the "padding" shorthand: .wrap gives these sections their side margins */
.block { padding-top: 96px; display: grid; gap: 28px; }
.block-head { display: grid; gap: 12px; max-width: 760px; }
.block h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.block .lead { color: var(--mute); }

/* ---------- your idea, a better one, or ours ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { position: relative; display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.path:nth-child(2) { background: linear-gradient(160deg, #2a1a10, var(--card) 70%); border-color: rgb(255 107 26 / 0.4); }
.path b { font-size: 13px; font-weight: 800; color: var(--acc); letter-spacing: 0.06em; }
.path h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.path p { color: var(--mute); }
.path svg { width: 46px; height: 46px; color: var(--acc); }
.path svg .draw { stroke-dasharray: 120; stroke-dashoffset: 0; }

/* ---------- every screen: real pages of client sites in a phone, a tablet and a laptop ---------- */
/* the heading, then the site tabs under it: side by side they ran off the screen at middle widths */
.dev-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* three equal tabs; the orange pill slides to the chosen one */
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: max-content; max-width: 100%; padding: 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 22px) / 3); border-radius: 99px; background: var(--fill);
  transform: translateX(calc(var(--i, 0) * (100% + 6px))); transition: transform 420ms var(--ease); }
.tabs button { position: relative; z-index: 1; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 99px; background: transparent; color: var(--mute); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; transition: color 300ms, background-color 0s; }
.tabs button:hover { color: var(--text); }
/* the chosen tab also takes the orange itself once the pill has arrived (same colour, so nothing changes to the eye) */
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--fill); transition: color 300ms, background-color 0s 400ms; }
.trio { display: flex; align-items: flex-end; justify-content: center; gap: 28px; padding: 24px 0 8px; transform-style: preserve-3d; }
.dev { margin: 0; display: grid; gap: 10px; justify-items: center; }
.dev figcaption { font-size: 13px; font-weight: 700; color: var(--mute); }
.shell { position: relative; background: #1d1d21; border: 1px solid rgb(255 255 255 / 0.2); box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.95); }
.screen { position: relative; overflow: hidden; background: #fff; }
.screen img { display: block; width: 100%; height: auto; will-change: transform; }
.phone .shell { width: 200px; padding: 8px; border-radius: 34px; } .phone .screen { height: 405px; border-radius: 26px; }
.tablet .shell { width: 320px; padding: 10px; border-radius: 26px; } .tablet .screen { height: 448px; border-radius: 16px; }
.laptop .shell { width: 560px; padding: 12px 12px 14px; border-radius: 16px 16px 6px 6px; } .laptop .screen { height: 334px; border-radius: 6px; }
.laptop .base { width: 640px; height: 14px; margin-top: -1px; border-radius: 0 0 14px 14px; background: linear-gradient(#2a2a30, #151518); }
.dev-note { font-size: 13.5px; color: var(--mute); text-align: center; }

/* ---------- found on Google ---------- */
.seo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.seo ul { display: grid; gap: 12px; margin-top: 8px; }
.seo li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.seo li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--fill) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23160700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 14px no-repeat; }
/* a client's real result under "Found on Google" (owner, 19/11/2026); build.py writes the line from agency/results.py */
.case-line { grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); }
.case-line img { display: block; width: 150px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; }
.case-line-tag { display: inline-block; margin-bottom: 6px; padding: 5px 11px; border-radius: 99px; background: var(--fill); color: #160700; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.case-line p { margin: 0; font-size: 16px; line-height: 1.45; }
.case-line p b { color: var(--acc); }
.case-line small { display: block; margin-top: 4px; font-size: 12px; color: var(--mute); }
.case-line-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: border-color 200ms ease; }
.case-line-btn:hover { border-color: var(--fill); }
.case-line-btn:focus-visible { outline: 2px solid var(--fill); outline-offset: 2px; }
.case-line-btn i { font-style: normal; color: var(--fill); }
@media (max-width: 760px) {
  .case-line { grid-template-columns: 84px minmax(0, 1fr); gap: 12px 14px; padding: 14px; }
  .case-line img { width: 84px; aspect-ratio: 1; } .case-line p { font-size: 15px; } .case-line-btn { grid-column: 1 / -1; justify-content: center; }
}
.search { display: grid; gap: 14px; padding: 24px; border-radius: 22px; background: #f4f3f1; color: #17130e; }
.search .ex { justify-self: start; padding: 4px 10px; border-radius: 99px; border: 1px solid rgb(23 19 14 / 0.25); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #57534d; }
.sbox { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 99px; background: #fff; border: 1px solid rgb(23 19 14 / 0.15); box-shadow: 0 6px 16px -10px rgb(23 19 14 / 0.4); font-size: 17px; }
.sbox svg { width: 20px; height: 20px; color: #57534d; flex: none; }
.sbox .caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; background: var(--fill); }
.result { display: grid; gap: 3px; padding: 4px 6px; }
.result small { color: #0b6b3a; font-size: 13px; } .result b { color: #1a0dab; font-size: 19px; font-weight: 600; } .result span { color: #4d5156; font-size: 14.5px; }

/* ---------- the closing call ---------- */
.close { padding-top: 110px; padding-bottom: 170px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.close h2 { font-size: clamp(32px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; max-width: 16ch; }

/* a chat icon on every WhatsApp button (Lucide "message-circle", drawn in the button's own colour) */
.btn.wa::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/></svg>") center / contain no-repeat; }

/* below about 1240 px the three devices no longer fit in one row: the computer goes on top, the tablet and phone under it */
@media (max-width: 1240px) {
  .trio { flex-wrap: wrap; gap: 18px 28px; }
  .laptop { order: -1; width: 100%; } .laptop .shell { width: min(100%, 560px); } .laptop .screen { height: auto; aspect-ratio: 16 / 10; }
  .laptop .base { width: min(calc(100% + 24px), 620px); }
}
@media (max-width: 960px) {
  .paths, .seo { grid-template-columns: 1fr; }
  .trio { gap: 18px; }
  .phone .shell { width: 150px; } .phone .screen { height: 300px; } .tablet .shell { width: 200px; } .tablet .screen { height: 280px; }
}

/* phones: the call buttons stack full width (WhatsApp first, the quote form as an outlined button), the site tabs share the width */
@media (max-width: 600px) {
  .block { padding-top: 76px; }
  .close { padding-top: 90px; padding-bottom: 150px; }
  .btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
  .close .btns { max-width: 420px; }
  .btns .btn { width: 100%; min-height: 58px; font-size: 16.5px; }
  .btns .link { justify-content: center; min-height: 54px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 16px; }
  .btns .link:active { border-color: var(--acc); }
  .dev-head { gap: 22px; }
  .tabs { width: 100%; border-radius: 18px; }
  .tabs::before { border-radius: 14px; }
  .tabs button { padding: 8px 4px; border-radius: 14px; font-size: 14.5px; }
  .tabs .more { display: none; }
  .path { padding: 24px; }
}

/* the chat's page buttons and the video player (demos B and 4) */
.lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--text); font: 700 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.lnk:hover { border-color: var(--acc); color: var(--acc); }
.lnk.vid::before { content: ""; flex: none; width: 9px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }   /* a play triangle */
.msg-links { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.chatpanel .lnk, .bubble .lnk { color: #17130e; border-color: rgb(23 19 14 / 0.28); }
.chatpanel .lnk:hover, .bubble .lnk:hover { color: #c2410c; border-color: #c2410c; }
.ai-note a, .chat-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vidbox { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 16px; background: rgb(8 8 10 / 0.86); }
.vidbox[hidden] { display: none; }
.vidbox-in { position: relative; width: min(960px, 100%); display: grid; gap: 10px; }
.vidbox video { width: 100%; max-height: 80vh; border-radius: 14px; background: #000; }
.vidbox-title { color: #f4f3f1; font-weight: 700; }
.vidbox-close { position: absolute; top: -12px; right: -6px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f4f3f1; color: #17130e; font-size: 24px; line-height: 1; cursor: pointer; }

/* from a simple website to a fully interactive one (owner, 18/11/2026): four steps that climb like stairs; the bar on top grows with each step */
.stairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 960px) { .stairs { grid-template-columns: repeat(4, 1fr); align-items: end; gap: 16px; } .stair { margin-bottom: calc(var(--i) * 34px); } }
.stair { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 20px 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 107 26 / calc(0.05 + var(--i) * 0.05)), rgb(20 18 16 / 0.92) 70%); border: 1px solid rgb(255 255 255 / 0.12);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms ease; }
.stair::before { content: ""; position: absolute; left: 20px; top: 0; width: calc((100% - 40px) * (0.25 + var(--i) * 0.25)); height: 3px; border-radius: 0 0 3px 3px; background: var(--fill); }
.stair:hover { transform: translateY(-4px); border-color: rgb(255 138 69 / 0.5); }
.stair b { font-size: 13px; letter-spacing: 0.08em; color: var(--acc); }
.stair h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.stair p { color: var(--mute); font-size: 15.5px; line-height: 1.55; }
.stair span { margin-top: 4px; font-size: 13px; color: #d4d1d6; }
.stairs-note { color: var(--mute); }
.stairs-note a { color: var(--text); font-weight: 700; border-bottom: 1px solid currentColor; }
.stairs-note a i { font-style: normal; color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .stair { transition: none; } .stair:hover { transform: none; } }
