.fd-home-contact-intro-short { display: none; }

@media (max-width: 740px) {
  .fd-page {
    --fd-gutter: clamp(16px, 5vw, 28px);
    --fd-section-gap: 34px;
  }

  .fd-page-shell > section {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--fd-gutter));
    min-width: 0;
  }
  .fd-page-shell > main { padding-inline: var(--fd-gutter) !important; }
  .fd-page-shell > section:not(#top, .fd-process-hero),
  .fd-page-shell > main > section { padding-block: var(--fd-section-gap) !important; }
  .fd-page-shell > section h2, .fd-page-shell > main section h2 {
    font-size: clamp(25px, 7vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
  }
  .fd-page h1, .fd-page h2, .fd-page h3 { overflow-wrap: break-word; }
  .fd-page button, .fd-page input, .fd-page select, .fd-page textarea { font: inherit; }
  .fd-page :is(input:not([type="range"]), textarea, select):not([type="radio"]) { font-size: 16px; }

  /* Common header and footer */
  .fd-site-header, .fd-site-footer {
    padding-left: max(var(--fd-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--fd-gutter), env(safe-area-inset-right)) !important;
  }
  .fd-site-header-inner {
    padding-block: 9px 1px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 4px 10px !important;
  }
  .fd-header-brand {
    grid-area: 1 / 1;
  }
  .fd-header-cta {
    grid-area: 1 / 2;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  .fd-site-header nav {
    grid-column: 1 / -1;
    border-top: 1px solid #222224;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 !important;
    font-size: 14px !important;
  }
  .fd-site-header nav a {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 44px;
    color: #c1c1c6;
    box-shadow: inset 0 -2px transparent;
  }
  .fd-site-header nav a[aria-current] { color: #fafafa; box-shadow: inset 0 -2px #fafafa; }
  .fd-site-footer > div {
    padding-block: 20px max(20px, env(safe-area-inset-bottom)) !important;
    display: grid !important;
    gap: 9px !important;
    justify-content: stretch !important;
  }
  .fd-site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .fd-site-footer nav { gap: 2px 16px !important; }

  /* Keep the last controls scrollable above the fixed contact bar. */
  .fd-page { --fd-contact-clearance: calc(80px + env(safe-area-inset-bottom)); }
  .fd-page-shell:has(> .fab) { padding-bottom: var(--fd-contact-clearance); }
  .fab {
    --fab-size: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, var(--fab-size));
    gap: 6px;
    box-sizing: border-box;
    width: auto;
    height: auto;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 6px;
    border: 1px solid #39393e;
    border-radius: 18px;
    background: #171719;
    box-shadow: 0 6px 28px #0009;
  }
  .fab a {
    position: relative;
    inset: auto;
    transform: none;
    border-radius: 11px;
    box-shadow: none;
  }
  .fab .fab-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25312a;
    color: #fafafa;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
  }
  .fab .fab-ig { background: #27242a; }
  .fab .fab-email { background: #262d3a; }
  .fab :is(.fab-wa, .fab-ig) img { width: 27px; height: 27px; border-radius: 50%; }
  .fab .fab-question { display: inline; }
  .fab .fab-tip { display: none; }
  .fd-page .cookiebar {
    position: static;
    display: flex;
    box-sizing: border-box;
    width: calc(100% - 2 * var(--fd-gutter));
    max-width: none;
    margin: 0 auto max(18px, env(safe-area-inset-bottom));
    padding: 10px 12px 10px 15px;
    gap: 12px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #2c2c30;
    animation: none;
  }
  .fd-page .cookiebar button { min-height: 44px; font-size: 14px; }

  /* Homepage */
  .fd-page--index #top { padding-block: 28px 30px !important; gap: 20px !important; }
  .fd-page--index #top > div:first-child { min-width: 0; gap: 14px !important; }
  .fd-page--index #top h1 {
    font-size: clamp(29px, 8.2vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.052em !important;
    text-wrap: initial !important;
  }
  .fd-page--index #top p { font-size: 16px !important; line-height: 1.45 !important; color: #b3b3ba !important; }
  .fd-page--index #top > div:first-child > div:has(> a[href="apply.html"]) {
    width: 100%;
    margin-top: 0 !important;
  }
  .fd-page--index #top a[href="apply.html"] {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    min-height: 52px !important;
    font-size: 17px !important;
  }
  .fd-page--index .fd-hero-price { color: #b1b1b8 !important; }
  .fd-page--index #top .fd-hero-wall { height: clamp(187px, 55vw, 320px); border-radius: 14px; }
  .fd-page--index #top .fd-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: 112%; transform: translate(-50%, -50%) rotate(8deg); }
  .fd-featured button { font-size: 14px; }
  .fd-featured button img { border-radius: 10px; }
  #templates [data-open-website-gallery] { box-sizing: border-box; min-height: 48px !important; justify-content: center; width: 100%; }
  .fd-page .fd-cta-band { display: grid !important; padding: 18px !important; gap: 12px !important; }
  .fd-cta-band p { font-size: 18px !important; }
  .fd-cta-band a { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; box-sizing: border-box; }
  .fd-page--index .fd-included-card { padding: 20px !important; gap: 24px !important; }
  .fd-page--index .fd-included-card > div { flex-basis: 100% !important; min-width: 0; }
  .fd-page--index .fd-included-card li { font-size: 15px !important; }
  .fd-page--index .fd-offer-cards li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 7px 12px; padding: 16px; }
  .fd-page--index .fd-offer-cards .fd-card-icon { width: 40px; height: 40px; grid-row: span 2; border-radius: 12px; }
  .fd-page--index .fd-offer-cards h3 { font-size: 20px; text-wrap: initial; }
  .fd-page--index .fd-offer-cards p { grid-column: 2; font-size: 14px; }
  .fd-founder-portrait { min-height: clamp(238px, 81vw, 342px); overflow: hidden; }
  .fd-founder-quote { flex-basis: 100% !important; padding: 20px !important; box-sizing: border-box; }
  .fd-founder-quote p { font-size: 17px !important; line-height: 1.5 !important; }
  .fd-founder-quote > span { font-size: 14px !important; }

  /* Comparison and chat */
  .fd-page .fd-comparison-section,
  .fd-page .fd-chat-section,
  .fd-page .fd-about-cards { width: calc(100% - 2 * var(--fd-gutter)); }
  .fd-comparison-stage > input[type="range"] { touch-action: pan-y; }
  .fd-comparison-original { transform: scale(var(--fd-comparison-scale, .24)) !important; }
  .fd-comparison-stage [data-handle] { width: 6px; }
  .fd-comparison-stage [data-handle] > span { width: 35px !important; height: 35px !important; }
  .fd-comparison-stage [data-handle] svg { width: 18px; height: 18px; }
  .fd-comparison-stage > div[aria-hidden="true"][data-clip-right] > span,
  .fd-comparison-stage > div[aria-hidden="true"][data-clip-left] > span {
    bottom: 9px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
    letter-spacing: .04em !important;
  }
  .fd-comparison-stage > div[aria-hidden="true"][data-clip-right] > span { left: 9px !important; }
  .fd-comparison-stage > div[aria-hidden="true"][data-clip-left] > span { right: 9px !important; }
  .fd-chat-section .fd-chat-columns { gap: 15px !important; }
  .fd-chat-topics { grid-row: 1; gap: 7px !important; }
  .fd-chat-topics > ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px !important;
  }
  .fd-chat-section .topicrow { padding: 7px !important; gap: 7px !important; min-height: 55px; border-radius: 10px !important; }
  .fd-chat-section .topicrow img { width: 28px !important; height: 28px !important; border-radius: 5px !important; }
  .fd-chat-section .topicrow > span:not(.topic-dot) > span:first-child { font-size: 13px !important; line-height: 1.23 !important; }
  .fd-chat-section .topicrow > span:not(.topic-dot) > span:nth-child(2),
  .fd-chat-section .topic-dot { display: none; }
  .fd-chat-section .fd-chat-phone { width: min(100%, 325px) !important; padding: 7px !important; border-radius: 33px !important; }
  .fd-chat-phone > div { border-radius: 27px !important; }
  .fd-chat-phone > div > div:first-child { height: 29px !important; }
  .fd-chat-phone .fd-chat { min-height: 248px !important; }
  .fd-chat-phone .chat-variant > div { max-width: 95% !important; }
  .fd-chat-topics > p:last-child { margin-block: 6px 0 !important; font-size: 14px !important; }
  .fd-chat-section > .fd-care-cards {
    gap: 8px !important;
    scroll-margin-top: 104px;
  }
  .fd-care-cards > li {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 4px 12px !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }
  .fd-care-cards .fd-care-icon {
    grid-row: span 2;
    align-self: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .fd-care-cards .fd-care-icon svg { width: 21px; height: 21px; }
  .fd-care-cards h3 { font-size: 16px !important; }
  .fd-care-cards p {
    grid-column: 2;
    margin: 0 !important;
    line-height: 1.4 !important;
  }

  /* Homepage contact */
  .fd-page-shell > .fd-home-contact {
    display: grid !important;
    gap: 16px !important;
    scroll-margin-top: 104px;
  }
  .fd-home-contact .fd-portrait-accent {
    width: clamp(156px, 45vw, 190px);
    aspect-ratio: 1;
    border-radius: 50%;
  }
  .fd-home-contact .fd-portrait-accent img {
    inset: auto auto 0 50%;
    width: 122%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
  }
  .fd-home-contact .fd-home-contact-copy { gap: 10px !important; }
  .fd-page-shell > .fd-home-contact h2 { font-size: 24px !important; }
  .fd-home-contact-intro { display: none; }
  .fd-home-contact-intro-short {
    display: block;
    margin: 0;
    color: #a0a0a6;
    font-size: 15px;
    line-height: 1.5;
    max-width: 36ch;
  }

  /* Secondary pages */
  .fd-process-hero { padding-block: 25px 32px; gap: 23px; }
  .fd-process-hero h1, .fd-pricing-heading h1, .fd-ready h1 { font-size: clamp(30px, 8.4vw, 42px); letter-spacing: -.045em; }
  .fd-process-hero :is(.fd-process-cta,.fd-process-example),
  .fd-pricing-top .fd-process-cta { box-sizing: border-box; width: 100%; }
  .fd-process-cta { justify-content: center; }
  .fd-pricing-heading h1 + p { font-size: 16px !important; line-height: 1.43; }
  .fd-pricing-heading label, .fd-pricing-heading select { width: 100%; box-sizing: border-box; }
  .fd-page .fd-payments { gap: 9px; margin-block: 16px 12px; }
  .fd-page .fd-payments > li, .fd-page .fd-brief > div { padding: 16px; }
  .fd-page .fd-payments h2 { font-size: 16px !important; letter-spacing: 0 !important; }
  .fd-page .fd-payments strong { font-size: 29px; }
  .fd-ready-header-brand { grid-column: 1 / -1; justify-content: space-between; gap: 7px !important; }
  .fd-ready-header-actions { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px !important; }
  .fd-ready-header-actions a { font-size: 13px !important; padding: 0 8px !important; justify-content: center; }
  .fd-page--ready-page .fd-site-header-inner { padding-bottom: 9px !important; }
  .fd-ready > .fd-process-cta { margin-top: 0; }
  .fd-page--about .fd-page-shell > section:first-of-type h1 { font-size: clamp(31px, 8.1vw, 44px) !important; }
  .fd-portrait-accent { aspect-ratio: 6 / 5; }
  .fd-page--about .fd-portrait-accent { width: min(100%, 340px); margin-inline: auto; }

  /* Enquiry */
  .fd-page--apply .fd-apply-backdrop { display: none !important; }
  .fd-page--apply .fd-apply-stage {
    position: static !important;
    align-items: flex-start !important;
    flex: 1;
    padding: max(var(--fd-gutter), env(safe-area-inset-top)) var(--fd-gutter) var(--fd-contact-clearance) !important;
    overflow: visible !important;
  }
  .fd-page--apply .fd-apply-panel {
    max-height: none !important;
    padding: 19px !important;
    border-radius: 17px !important;
    overflow: visible !important;
    gap: 10px !important;
  }
  .fd-page--apply .fd-apply-choice, .fd-page--apply .fd-apply-actions a { min-height: 44px; box-sizing: border-box; }
  .fd-page--apply .fd-apply-actions a { display: inline-flex; align-items: center; }
  .fd-page--apply .fd-apply-actions button[type="submit"] { flex: 1; }
  .fd-page--apply .fd-apply dl { font-size: 14px; }
  .fd-page--apply .fd-apply dd { flex: none; }

  /* Template gallery keeps its content in a single scroll region */
  .fd-page .fd-gallery { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .fd-page .fd-gallery > header { padding-top: max(12px, env(safe-area-inset-top)); }
  .fd-page .fd-gallery-scroll, .fd-page .fd-gallery-preview { padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  .fd-page .fd-gallery-controls { grid-template-columns: minmax(0, 1fr) minmax(106px, 36%); gap: 8px; }
  .fd-page .fd-gallery-card-copy { padding: 8px 9px 10px; font-size: 14px; }
  .fd-page .fd-gallery-preview-head > div { order: 3; width: 100%; }
  .fd-page .fd-gallery-back { padding-inline: 10px; }

  /* Legal pages and internal review boards */
  .fd-page .text-page { overflow-wrap: anywhere; padding-block: 28px 40px; }
  .fd-page :is(.text-page, .wrap.header, .wrap.footer) { width: calc(100% - 2 * var(--fd-gutter)); }
  .fd-page .wrap.footer { gap: 10px 16px; }
  .fd-page .wrap.footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .fd-design-board { width: 100% !important; height: auto !important; padding: var(--fd-gutter) !important; gap: 24px !important; }
  .fd-page--logo .fd-design-board > div > div:nth-child(2),
  .fd-page--before-after .fd-design-board > div { flex-direction: column !important; gap: 14px !important; }
  .fd-page--logo .fd-design-board > div > div:nth-child(2) > div { flex: none !important; height: 105px !important; }
  .fd-page--logo .fd-design-board > div > div:nth-child(2) > div > div { font-size: clamp(30px, 9vw, 46px) !important; }
  .fd-page--logo .fd-design-board svg { max-width: 46px; }
  .fd-page--before-after .fd-design-board > div:first-child > div { width: 100%; min-width: 0; gap: 11px !important; }
  .fd-page--before-after .fd-design-board > div:first-child > div > div:nth-child(2) { width: min(100%, 340px) !important; }
}

@media (max-width: 370px) {
  .fd-page .fd-gallery-controls { grid-template-columns: 1fr; }
  .fd-page .fd-gallery-controls input, .fd-page .fd-gallery-controls select { min-height: 44px; }
  .fd-page--index #top h1 { font-size: 29px !important; }
  .fd-chat-section .topicrow img { width: 24px !important; height: 24px !important; }
}

.fd-comparison-stage:has(> input[type="range"]:focus-visible) [data-handle] > span {
  outline: 3px solid #1f7af5;
  outline-offset: 3px;
}
