/* Approved identity: full horizontal artwork at every screen size. */
.header .brand, .footer .footer-brand { min-width: 0; }
.brand picture { display: block; }
.header .brand-logo { display: block; width: 330px; height: auto; max-width: 100%; }
.footer .footer-brand-logo { display: block; width: 420px; height: auto; max-width: 100%; }
.footer-top { grid-template-columns: minmax(390px, 1.6fr) 1fr .8fr; }
.home-hero .hero-sticker .brand-sticker-icon { width: 54px; height: 25px; object-fit: contain; }
@media (max-width: 1100px) {
  .header .brand-logo { width: 260px; }
  .footer-top { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 640px) {
  .header .brand-logo { width: clamp(190px, 56vw, 235px); }
  .header .brand { flex-shrink: 1; }
  .footer .footer-brand-logo { width: 290px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .home-hero .hero-sticker .brand-sticker-icon { width: 44px; height: 21px; }
}

/* Quiet contour lines on the charcoal brand surfaces; static and decorative. */
.utility, .footer { position: relative; isolation: isolate; }
.utility::before, .footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url('./abstract-flow.svg');
  background-repeat: no-repeat;
}
.utility::before { background-size: 1500px auto; background-position: center 45%; opacity: .75; }
.footer::before {
  background-size: cover; background-position: center;
  mask-image: linear-gradient(90deg, #000, #0008 35%, #0006 65%, #000);
}
.footer::after {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 5% 5%, #446C5726, transparent 50%),
    radial-gradient(ellipse at 100% 100%, #71937F14, transparent 45%);
}
@media (max-width: 640px) {
  .footer::before { background-size: auto 100%; background-position: 60% center; opacity: .75; }
  .utility::before { background-size: 1000px auto; }
}

/* Shallow flowing lines are composed specifically for the 32–36px top strip. */
.utility::before {
  background-image: url('./header-ribbon.svg');
  background-size: auto 100%; background-position: center; opacity: 1;
}

/* Full-width green chapters carry a softer, larger version of the contour motif. */
.homepage .why-section, .homepage .closing { position: relative; isolation: isolate; }
.homepage .why-section::before, .homepage .closing::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: 0; right: 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  z-index: -1; pointer-events: none;
  background-image: url('./abstract-flow.svg'),
    radial-gradient(ellipse at 95% 5%, #92B39E1F, transparent 58%),
    radial-gradient(ellipse at 0% 90%, #0E2B2059, transparent 55%);
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.homepage .why-section::before { opacity: .7; }
.homepage .closing::before { background-position: center 65%; }

/* Same static cyan / violet stroke as the Facebook review overlay. */
.button:not(.button-outline) { position: relative; }
.button:not(.button-outline)::after, .mobile-call::after {
  content: ''; position: absolute; inset: -1.5px; padding: 2px;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, #1877F2, #38BDF8 38%, #8B5CF6 74%, #1877F2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
@media (max-width: 640px) {
  .homepage .why-section::before { background-size: auto 100%; background-position: 64% center; }
  .homepage .closing::before { background-size: auto 100%; background-position: 35% center; }
}
@media (forced-colors: active) {
  .button:not(.button-outline)::after, .mobile-call::after { display: none; }
}

/* Mobile footer: one short navigation block, social links, then legal details. */
.footer .footer-explore > .footer-contact-link { color: #FAFAFA; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 640px) {
  .footer .footer-top { display: grid; grid-template-columns: 1fr; gap: 20px; padding-block: 32px 18px; }
  .footer .footer-top > div { grid-column: 1; grid-row: auto; }
  .footer .footer-top > .footer-explore { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 0; }
  .footer .footer-top h3 { display: none; }
  .footer .footer-top .footer-contact-link { display: flex; }
  .footer .footer-top > .footer-social { display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 10px; border-top: 1px solid #FAFAFA1A; }
  .footer .footer-top > div > a:not(.brand) { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 12px; }
  .footer .footer-brand-logo { width: 270px; }
  .footer .footer-top p { margin-top: 12px; line-height: 1.6; }
  .footer .footer-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 88px; }
  .footer .footer-bottom > span:first-child { max-width: 185px; line-height: 1.7; }
  .footer .footer-bottom > .footer-preview-note { display: none; }
  .footer .footer-bottom > a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (min-width: 641px) { .footer .footer-explore > .footer-contact-link { margin-top: 10px; min-height: 44px; display: flex; align-items: center; } }


/* A clean breakpoint: three desktop columns, or the complete compact footer. */
@media (max-width: 1100px) {
  .footer .footer-top, .footer .footer-bottom { width: 90%; max-width: 640px; margin-inline: auto; }
  .footer .footer-top { display: grid; grid-template-columns: 1fr; gap: 20px; padding-block: 32px 18px; }
  .footer .footer-top > div { grid-column: 1; grid-row: auto; }
  .footer .footer-top > .footer-explore { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 0; }
  .footer .footer-top h3 { display: none; }
  .footer .footer-top > .footer-social { display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 10px; border-top: 1px solid #FAFAFA1A; }
  .footer .footer-top > div > a:not(.brand) { display: flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 12px; margin: 0; }
  .footer .footer-brand-logo { width: 270px; }
  .footer .footer-top p { margin-top: 12px; line-height: 1.6; }
  .footer .footer-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 28px; }
  .footer .footer-bottom > span:first-child { max-width: 230px; line-height: 1.7; }
  .footer .footer-bottom > .footer-preview-note { display: none; }
  .footer .footer-bottom > a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 640px) {
  .footer .footer-bottom { padding-bottom: 88px; }
  .footer .footer-bottom > span:first-child { max-width: 185px; }
}


/* Tablet / smaller desktop: branding stays left; both link groups stay right. */
@media (min-width: 641px) and (max-width: 1100px) {
  .footer .footer-top, .footer .footer-bottom { width: 90%; max-width: 1200px; }
  .footer .footer-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 32px; padding-block: 40px 28px; align-items: start; }
  .footer .footer-top > div:first-child { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .footer .footer-top > .footer-explore { grid-column: 2; grid-row: 1; display: block; }
  .footer .footer-top > .footer-social { grid-column: 2; grid-row: 2; display: flex; gap: 0 18px; padding-top: 8px; }
  .footer .footer-top .footer-explore h3 { display: block; margin-bottom: 8px; }
  .footer .footer-top > div > a:not(.brand) { font-size: 12px; min-height: 40px; }
  .footer .footer-brand-logo { width: 330px; }
  .footer .footer-top p { font-size: 11px; }
  .footer .footer-bottom { padding-bottom: 24px; }
}
/* Anchor footer link groups to the right with equal, deliberate column widths. */
@media (min-width: 1101px) {
  .footer .footer-top { grid-template-columns: minmax(0, 1fr) 170px 170px; column-gap: 64px; }
  .footer .footer-explore, .footer .footer-social { width: 170px; justify-self: end; text-align: left; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .footer .footer-top { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 48px; row-gap: 18px; }
  .footer .footer-top > .footer-explore,
  .footer .footer-top > .footer-social { width: 220px; justify-self: end; text-align: left; }
  .footer .footer-top > .footer-social { display: block; padding-top: 14px; }
  .footer .footer-top .footer-social h3 { display: block; margin: 0 0 8px; }
}
