/* FrisAI Creator: universal developer presentation.
   Load after base.css, style.css and compact.css. */
:root {
  --paper: #eff1f5;
  --ink: #142132;
  --muted: #596677;
  --blue: #124dff;
  --night: #102032;
  --line: #d1d6df;
  --header-h: 68px;
  --pad: clamp(20px, 4.4vw, 72px);
  font-family: Arial, "Segoe UI", sans-serif;
}
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: 16px; line-height: 1.5; }
.wrap { max-width: 1520px; }
.section { padding-block: 40px; }
.section-head { gap: 42px; margin-bottom: 28px; align-items: center; }
.section-head h2, .plans-heading h2 { font-size: clamp(36px, 3.15vw, 48px); line-height: 1.07; }
.section-head .body, .body { font-size: 17px; line-height: 1.5; }
.section-head .body { max-width: 44ch; }
.eyebrow { font-size: 12px; line-height: 1.45; margin-bottom: 14px; }
.button { min-height: 46px; padding: 12px 21px; font-size: 15px; gap: 20px; }
.link { font-size: 14px; }
.header .wrap { min-height: var(--header-h); padding-block: 9px; }
.header .frisai { width: 104px; }
.header .brand-main { gap: 9px; }
.header .brands small { font-size: 10px; }
.header .nav { font-size: 14px; gap: 25px; }
.header .nav-calc { white-space: nowrap; }

/* A short opening statement, one proof strip, two clear next steps. */
.hero { grid-template-columns: 1.1fr 1fr; gap: 62px; padding-block: 32px; align-items: center; }
.hero h1 { font-size: clamp(44px, 4.15vw, 61px); line-height: 1.04; letter-spacing: -.052em; margin-bottom: 22px; }
.hero .lead { font-size: 18px; line-height: 1.48; max-width: 48ch; }
.hero-trust, .hero-clients { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 14px; max-width: 50ch; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 19px; }
.hero-trust > span { display: inline-flex; align-items: baseline; gap: 7px; }
.hero-trust > span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex: none; align-self: center; }
.hero-proof { margin-top: 23px; padding-block: 19px; gap: 18px; }
.hero-proof strong { font-size: 31px; line-height: 1.1; margin-bottom: 8px; color: var(--blue); }
.hero-proof span { font-size: 14px; line-height: 1.4; max-width: 18ch; }
.hero-actions { margin-top: 24px; gap: 23px; }
.hero-actions .button { font-size: 15px; min-height: 46px; padding: 12px 20px; }
.hero .hero-footnote { margin-top: 18px; font-size: 14px; line-height: 1.5; max-width: 50ch; }
.hero-media { padding-bottom: 70px; }
.hero-main { aspect-ratio: 1.14; max-height: 470px; border-radius: 26px; }
.hero-portrait { width: 31%; aspect-ratio: 1; left: -18px; border: 6px solid var(--paper); border-radius: 22px; }
.hero-caption { left: 36%; bottom: 10px; max-width: 28ch; font-size: 14px; line-height: 1.4; }
.oval-accent { display: inline-block; position: relative; color: var(--blue); padding: .02em .14em; margin-inline: .04em; isolation: isolate; white-space: nowrap; }
.oval-accent::after { content: ""; position: absolute; inset: -.09em -.12em -.04em; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-7deg); pointer-events: none; z-index: -1; }
.hero-proof .oval-accent { font-size: inherit; max-width: none; line-height: inherit; }

/* Two distinct products; the format catalogue remains a separate section. */
.product-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-split .product-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 290px; padding: 30px; border-radius: 26px; }
.product-split .product-top { width: 100%; font-size: 13px; line-height: 1.4; margin-bottom: 25px; }
.product-split .product-brand { background: linear-gradient(125deg, #eaebee 0%, #d9e9f6 60%, #c2dcf4 100%); }
.product-split .product-blogger { background: linear-gradient(125deg, #f1e1d5 0%, #f3c9a3 60%, #d7d9c7 100%); }
.product-split .eyebrow { font-size: 13px; margin-bottom: 25px; }
.product-split .product-card h3 { font-size: clamp(29px, 2.65vw, 39px); line-height: 1.08; max-width: 19ch; margin-bottom: 19px; }
.product-split .product-card p { font-size: 17px; line-height: 1.5; max-width: 48ch; }
.product-split .product-outcome { width: 100%; margin-top: auto; padding-top: 22px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.product-outcome strong { font-weight: 500; }
.product-grid { gap: 17px; }
.product-grid .product-card { min-height: 250px; padding: 24px; }
.product-grid .product-top { font-size: 12px; line-height: 1.4; margin-bottom: 24px; }
.product-grid .product-card h3 { font-size: 27px; line-height: 1.1; margin-bottom: 15px; }
.product-grid .product-card h4 { font-size: 15px; line-height: 1.4; margin-bottom: 9px; }
.product-grid .product-card p { font-size: 15px; line-height: 1.5; }
.amb-product { padding: 25px; }
.amb-product p { font-size: 15px; line-height: 1.5; }

/* Native proportions: no video, including a vertical example, is cropped. */
.film-player { border-radius: 20px; background: #102032; min-width: 0; }
.film-player video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.film-player.landscape { aspect-ratio: 16 / 9; }
.film-player.portrait { aspect-ratio: 9 / 16; }
.film-caption h3, .case-caption h3 { font-size: 27px; line-height: 1.13; }
.film-caption p, .case-caption p { font-size: 16px; line-height: 1.5; }
.film-caption .eyebrow, .case-caption .eyebrow { font-size: 12px; margin-bottom: 9px; }
.film-caption { margin-top: 20px; }
.brand-product-section { background: #e3eaf5; }
.blogger-product-section { background: #f7f4ee; }
.product-demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.product-demo-grid > figure { min-width: 0; }
.brand-main-demo .film-player { width: 100%; max-width: 650px; }
.brand-main-demo .film-caption, .mascot-demo .film-caption { display: block; }
.brand-main-demo figcaption p, .mascot-demo figcaption p { margin-top: 10px; }
.mascot-demo { display: grid; grid-template-columns: minmax(150px, 43%) minmax(0, 1fr); gap: 23px; align-items: center; }
.mascot-demo .film-player { width: 100%; max-height: none; }
.mascot-demo .film-caption, .mascot-demo .case-caption { margin: 0; }
.mascot-demo h3 { font-size: 25px; }
.mascot-demo p { font-size: 15px; line-height: 1.5; }
.blogger-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.blogger-demo { min-width: 0; }
.blogger-demo .film-player { width: 100%; max-height: none; margin-inline: auto; }
.blogger-demo .film-player.portrait { width: min(100%, 245px); }
.blogger-demo figcaption { font-size: 14px; line-height: 1.5; margin: 14px 0 0; max-width: 65ch; color: var(--muted); }
.blogger-story { display: grid; gap: 23px; }
.blogger-step { border-top: 1px solid #c8c8c2; padding-top: 18px; }
.blogger-step .eyebrow, .blogger-step > span { display: block; font-size: 12px; line-height: 1.4; color: var(--blue); margin-bottom: 8px; }
.blogger-step h3 { font-size: 26px; line-height: 1.15; margin-bottom: 9px; }
.blogger-step p { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 54ch; }
.blogger-target { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 5px 15px; padding: 14px 19px; border: 1px solid #d6deeb; border-radius: 18px; background: rgba(255, 255, 255, .8); }
.blogger-target strong { font-size: 31px; line-height: 1.1; font-weight: 400; letter-spacing: -.045em; color: var(--blue); }
.blogger-target > span { font-size: 15px; line-height: 1.4; }
.blogger-target p { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--muted); }
.featured-film .film-caption p { font-size: 16px; }
.social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.social-grid > figure { grid-template-columns: minmax(145px, 42%) minmax(0, 1fr); gap: 24px; }
.olv-extra .case-caption p, .social-grid .case-caption p { font-size: 15px; line-height: 1.5; }
.social-grid .case-caption .eyebrow { font-size: 12px; }

/* Proof is read as two cases, with large crops and the original a click away. */
.results-section { background: #fff; padding-block: 55px; }
.result-group { padding-top: 30px; border-top: 1px solid var(--line); }
.result-group + .result-group { margin-top: 48px; }
.result-group-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 38px; row-gap: 10px; align-items: end; margin-bottom: 25px; }
.result-group-head h3 { grid-column: 1; font-size: 32px; line-height: 1.12; }
.result-group-head > p { grid-column: 1; font-size: 16px; line-height: 1.45; color: var(--muted); max-width: 53ch; }
.result-metrics { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 30px; align-items: flex-start; }
.result-metrics > * { min-width: 0; }
.result-metrics strong, .result-metrics b { display: block; font-size: 34px; font-weight: 400; letter-spacing: -.045em; line-height: 1.1; color: var(--blue); }
.result-metrics span, .result-metrics small { display: block; margin-top: 8px; max-width: 20ch; color: var(--muted); font-size: 14px; line-height: 1.4; }
.result-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.result-proof { min-width: 0; }
.result-proof.gallery-item a { display: block; border: 1px solid #dce1e9; border-radius: 22px; background: #f4f6f9; overflow: hidden; }
.result-proof.gallery-item img { display: block; width: 100%; height: clamp(390px, 33vw, 470px); aspect-ratio: auto; object-fit: cover; object-position: center 22%; transform: none; }
.result-proof.gallery-item a:hover img { transform: none; }
.result-proof a[href$="mascot-stats.webp"] img { object-position: center 23%; }
.result-proof a[href$="mascot-grid.webp"] img { object-position: center 0%; }
.result-proof a[href$="blogger-stats.webp"] img { object-position: center 23%; }
.result-proof a[href$="blogger-grid.webp"] img { object-position: center 37%; }
.result-proof.gallery-item a > span { width: 42px; height: 42px; bottom: 14px; right: 14px; background: #124dff; color: #fff; box-shadow: 0 3px 14px #14213220; }
.result-proof.gallery-item a > span .icon { width: 20px; height: 20px; }
.result-proof.gallery-item figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 13px; padding-inline: 3px; }
.result-proof figcaption strong { color: var(--ink); font-weight: 500; }
.results-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 28px; max-width: 95ch; }
dialog:has(#gallery-image[src*="/proof/"]) { width: min(1000px, 96vw); max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
dialog:has(#gallery-image[src*="/proof/"]) #gallery-image { display: block; width: auto; height: auto; max-width: 100%; max-height: none; aspect-ratio: auto; margin-inline: auto; object-fit: contain; }
dialog:has(#gallery-image[src*="/proof/"]) .dialog-top { position: sticky; top: -18px; z-index: 2; background: #102032; padding-top: 12px; }
dialog:has(#gallery-image[src*="/proof/"]) .dialog-bottom { position: sticky; bottom: -18px; z-index: 2; background: #102032; padding-bottom: 12px; }

/* Pricing retains the existing logic; only spacing and legibility change. */
.brand-custom-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 35px; align-items: center; margin-top: 30px; padding: 25px 28px; border: 1px solid #cbd7ee; border-radius: 24px; background: #e6edf9; }
.brand-custom-offer .eyebrow { margin-bottom: 9px; }
.brand-custom-offer h3 { font-size: 27px; line-height: 1.12; }
.brand-custom-offer p { font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 12px; max-width: 75ch; }
.brand-custom-offer .button { white-space: nowrap; }
.price-row p, .price-note, .plan-caption, .content-counts span, .channel-note, .included p, .terms-grid p { font-size: 14px; line-height: 1.5; }
.price-card .price-fact p { font-size: 15px; line-height: 1.5; }
.plan .body { font-size: 16px; line-height: 1.5; }
.plan { padding: 25px 28px; }
.plan .eyebrow { font-size: 12px; }
.plan .button { min-height: 44px; font-size: 15px; margin-top: 18px; }
.plan-price { font-size: 44px; }
.plan-price small { font-size: 14px; }
.content-counts { padding-block: 14px; margin-block: 17px; }
.content-counts strong { font-size: 30px; }
.month p { font-size: 16px; line-height: 1.5; }
.preset-tabs button { min-height: 42px; font-size: 14px; padding: 10px 16px; }
.quantity-row { padding-block: 13px; }
.quantity-row label { font-size: 20px; }
.quantity-row p { font-size: 14px; line-height: 1.4; }
.quantity-control button { width: 44px; height: 44px; }
.quantity-control input { width: 52px; height: 43px; font-size: 17px; }
.program-label { font-size: 20px; margin-top: 22px; }
select { font-size: 15px; min-height: 48px; }
.summary { padding: 25px 28px; }
.summary > .eyebrow { font-size: 12px; }
.summary-line, .summary .link, .estimate-detail summary, .estimate-detail li, .download-button { font-size: 14px; line-height: 1.45; }
.summary .button { min-height: 44px; font-size: 15px; }
.copy-status { font-size: 13px; line-height: 1.4; }
.summary .total { font-size: 44px; }
.footer-dark .bottom { font-size: 14px; }

@media (min-width: 1100px) {
  .hero, #products, #brand-ambassador, #lead-blogger, #formats, #pr, #olv, #social, #offer, #ambassador-plans { min-height: calc(100svh - var(--header-h)); }
  #products, #formats, #offer, #ambassador-plans { display: flex; flex-direction: column; justify-content: center; }
  #brand-ambassador, #lead-blogger { display: flex; align-items: center; }
  #brand-ambassador > .wrap, #lead-blogger > .wrap { width: 100%; }
  #calculator { min-height: calc(100svh - var(--header-h)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-demo-grid .brand-main-demo .film-player { max-width: 620px; }
}

@media (min-width: 1100px) and (max-height: 780px) {
  .section { padding-block: 28px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .plans-heading h2 { font-size: 39px; }
  .section-head .body { font-size: 16px; }
  .hero { padding-block: 26px; gap: 48px; }
  .hero h1 { font-size: 49px; margin-bottom: 19px; }
  .hero .lead { font-size: 17px; }
  .hero-trust { margin-top: 12px; }
  .hero-proof { margin-top: 18px; padding-block: 16px; }
  .hero-proof strong { font-size: 29px; }
  .hero-actions { margin-top: 20px; }
  .hero-main { max-height: 410px; }
  .hero-media { padding-bottom: 65px; }
  .product-split .product-card { min-height: 280px; padding: 27px; }
  .product-split .product-card h3 { font-size: 33px; }
  .product-split .product-card p { font-size: 16px; }
  .product-grid .product-card { min-height: 250px; padding: 22px; }
  .product-grid .product-card h3 { font-size: 25px; }
  .product-grid .product-card p, .product-grid .product-card h4 { font-size: 14px; }
  .product-demo-grid { gap: 32px; grid-template-columns: 1.2fr 1fr; }
  .brand-demo-grid .brand-main-demo .film-player { max-width: 570px; }
  .mascot-demo { grid-template-columns: minmax(140px, 39%) 1fr; gap: 21px; }
  .blogger-demo .film-player.portrait { max-width: 215px; }
  .blogger-layout { gap: 40px; }
  .blogger-story { gap: 14px; }
  .blogger-step { padding-top: 12px; }
  .blogger-step .eyebrow { margin-bottom: 5px; }
  .blogger-step h3 { font-size: 24px; margin-bottom: 7px; }
  .blogger-step p { font-size: 16px; }
  .result-proof.gallery-item img { height: 420px; }
  .result-group-head h3 { font-size: 29px; }
  .result-metrics strong, .result-metrics b { font-size: 31px; }
  .result-metrics { gap: 23px; }
  .brand-custom-offer { padding: 22px; margin-top: 23px; }
  .brand-custom-offer h3 { font-size: 25px; }
  .brand-custom-offer p { font-size: 15px; }
  .plan { padding: 22px 26px; }
  .plan .body { font-size: 15px; }
  .content-counts { margin-block: 13px; padding-block: 12px; }
  .quantity-row { padding-block: 10px; }
  .summary { padding: 22px 25px; }
}

@media (min-width: 761px) and (max-width: 1099px) {
  :root { --pad: 32px; }
  .header .nav { gap: 18px; font-size: 13px; }
  .hero { gap: 34px; padding-block: 45px; }
  .hero h1 { font-size: 44px; }
  .hero-proof { gap: 12px; }
  .hero-proof strong { font-size: 26px; }
  .hero-proof span { font-size: 14px; }
  .hero-caption { font-size: 13px; left: 36%; }
  .product-split .product-card { padding: 27px; }
  .product-split .product-card h3 { font-size: 31px; }
  .product-split .product-card p { font-size: 16px; }
  .product-demo-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .mascot-demo { grid-template-columns: 44% 1fr; gap: 18px; }
  .mascot-demo h3 { font-size: 23px; }
  .blogger-layout { grid-template-columns: 1.1fr 1fr; gap: 30px; }
  .blogger-step p { font-size: 16px; }
  .result-group-head { grid-template-columns: 1fr; gap: 12px; }
  .result-metrics { grid-column: 1; grid-row: auto; gap: 30px; margin-top: 4px; }
  .result-proof-grid { gap: 22px; }
  .result-proof.gallery-item img { height: 390px; }
  .brand-custom-offer { grid-template-columns: 1fr; gap: 24px; }
  .brand-custom-offer .button { grid-column: 1 / -1; justify-self: start; }
  .plan-price { font-size: 40px; }
}

@media (max-width: 760px) {
  :root { --header-h: 108px; --pad: 20px; }
  html { scroll-padding-top: 118px; }
  .wrap { padding-inline: 20px; }
  .section { padding-block: 48px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head h2, .plans-heading h2 { font-size: clamp(33px, 8.6vw, 41px); line-height: 1.09; }
  .section-head .body { font-size: 17px; line-height: 1.5; margin-top: 19px; max-width: none; }
  .header .wrap { gap: 13px; padding-block: 12px; min-height: var(--header-h); }
  .header .brands { justify-content: flex-start; }
  .header .brand-main .frisai { width: 98px; }
  .header .brands small { font-size: 10px; }
  .header .nav { font-size: 13px; gap: 15px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; justify-content: flex-start; }
  .header .nav::-webkit-scrollbar { display: none; }
  .header .nav a { font-size: 13px; flex: 0 0 auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 35px 45px; gap: 35px; }
  .hero h1 { font-size: clamp(39px, 10.3vw, 57px); line-height: 1.05; margin-bottom: 22px; }
  .hero .lead { font-size: 18px; line-height: 1.48; }
  .hero-trust { font-size: 14px; margin-top: 16px; }
  .hero-proof { gap: 14px; padding-block: 18px; margin-top: 23px; }
  .hero-proof strong, .hero-proof > div:nth-child(2) strong { font-size: 27px; }
  .hero-proof span { font-size: 14px; line-height: 1.4; }
  .hero-actions { gap: 20px; margin-top: 23px; }
  .hero-actions .button, .hero .button { font-size: 15px; min-height: 48px; }
  .hero-media { padding-bottom: 68px; }
  .hero-main { aspect-ratio: 1.25; max-height: none; border-radius: 22px; }
  .hero-portrait { left: 12px; width: 32%; }
  .hero-caption { left: 40%; bottom: 9px; font-size: 13px; max-width: 24ch; }
  .product-split { grid-template-columns: 1fr; gap: 19px; }
  .product-split .product-card { padding: 27px; min-height: 280px; }
  .product-split .product-card h3 { font-size: 34px; margin-bottom: 18px; }
  .product-split .product-card p { font-size: 17px; }
  .product-split .product-outcome { font-size: 15px; padding-top: 23px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-grid .product-card { min-height: 0; padding: 27px; }
  .product-grid .product-card h3 { font-size: 30px; }
  .product-grid .product-card p, .product-grid .product-card h4 { font-size: 16px; }
  .product-demo-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-main-demo .film-player { max-width: none; }
  .brand-main-demo .film-caption { margin-top: 18px; }
  .mascot-demo { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 22px; }
  .mascot-demo h3 { font-size: 25px; }
  .mascot-demo p { font-size: 15px; }
  .film-caption h3, .case-caption h3 { font-size: 27px; }
  .film-caption p, .case-caption p { font-size: 16px; }
  .film-player { border-radius: 16px; }
  .blogger-layout { grid-template-columns: 1fr; gap: 30px; }
  .blogger-demo .film-player { width: 100%; }
  .blogger-demo .film-player.portrait { width: min(76%, 290px); }
  .blogger-demo figcaption { font-size: 14px; }
  .blogger-story { gap: 24px; }
  .blogger-step { padding-top: 20px; }
  .blogger-step h3 { font-size: 27px; }
  .blogger-step p { font-size: 17px; }
  .blogger-target { padding: 17px 20px; }
  .blogger-target strong { font-size: 30px; }
  .social-grid { grid-template-columns: 1fr; gap: 24px; }
  .social-grid > figure { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 22px; }
  .social-grid .case-caption p, .olv-extra .case-caption p { font-size: 15px; }
  .social-grid .case-caption h3 { font-size: 24px; }
  .social-grid .case-caption .eyebrow { font-size: 12px; }
  .gallery-item figcaption { font-size: 14px; line-height: 1.4; }
  .gallery-heading p { font-size: 14px; }
  .result-group { padding-top: 27px; }
  .result-group + .result-group { margin-top: 40px; }
  .result-group-head { grid-template-columns: 1fr; row-gap: 12px; margin-bottom: 23px; }
  .result-group-head h3 { font-size: 30px; }
  .result-group-head > p { font-size: 16px; line-height: 1.5; }
  .result-metrics { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 16px; margin-top: 7px; }
  .result-metrics strong, .result-metrics b { font-size: 30px; }
  .result-metrics span, .result-metrics small { font-size: 14px; margin-top: 6px; }
  .result-proof-grid { grid-template-columns: 1fr; gap: 27px; }
  .result-proof.gallery-item img { height: clamp(350px, 100vw, 490px); }
  .result-proof.gallery-item a { border-radius: 20px; }
  .result-proof a[href$="mascot-stats.webp"] img { object-position: center 20%; }
  .result-proof a[href$="blogger-stats.webp"] img { object-position: center 27%; }
  .result-proof a[href$="blogger-grid.webp"] img { object-position: center 29%; }
  .result-proof.gallery-item figcaption { font-size: 14px; margin-top: 12px; }
  .results-note { font-size: 14px; }
  dialog:has(#gallery-image[src*="/proof/"]) { width: 96vw; padding: 12px; border-radius: 16px; }
  dialog:has(#gallery-image[src*="/proof/"]) .dialog-top { top: -12px; }
  dialog:has(#gallery-image[src*="/proof/"]) .dialog-bottom { bottom: -12px; }
  .dialog-top { gap: 15px; font-size: 14px; line-height: 1.4; }
  .brand-custom-offer { grid-template-columns: 1fr; padding: 25px; gap: 20px; margin-top: 27px; }
  .brand-custom-offer h3 { font-size: 28px; }
  .brand-custom-offer p { font-size: 16px; }
  .brand-custom-offer .button { justify-self: start; white-space: normal; }
  .plan { padding: 27px; }
  .plan .body { font-size: 16px; }
  .plan .button { font-size: 15px; min-height: 46px; }
  .plan-price { font-size: 43px; }
  .content-counts { margin-block: 23px; padding-block: 18px; }
  .quantity-row { gap: 16px; padding-block: 18px; }
  .quantity-row label { font-size: 20px; }
  .quantity-row p { font-size: 14px; max-width: 22ch; }
  .quantity-control input { width: 43px; }
  .quantity-control button { width: 42px; height: 44px; }
  .preset-tabs button { font-size: 14px; padding: 11px 15px; }
  select { font-size: 16px; min-height: 52px; }
  .summary { padding: 27px; }
  .summary .button { font-size: 15px; }
  .summary .total { font-size: 44px; }
  .estimate-detail summary, .estimate-detail li { font-size: 14px; }
  .footer-dark .button { font-size: 15px; }
  .footer-dark .bottom { font-size: 14px; line-height: 1.5; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 18px; }
  .hero h1 { font-size: 38px; }
  .hero-proof { grid-template-columns: 1fr; gap: 16px; }
  .hero-proof > div { display: grid; grid-template-columns: 115px 1fr; align-items: baseline; gap: 14px; }
  .hero-proof strong { margin-bottom: 0; }
  .hero-proof span { max-width: none; }
  .hero-caption { font-size: 12px; }
  .product-split .product-card, .product-grid .product-card { padding: 24px; }
  .mascot-demo { grid-template-columns: 1fr; }
  .mascot-demo .film-player { width: 75%; margin-inline: auto; }
  .quantity-row { grid-template-columns: 1fr; gap: 13px; }
  .quantity-control { justify-self: start; }
  .quantity-row p { max-width: none; }
  .plan-price { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}

@media (min-width: 1100px) and (max-height: 780px) {
  #brand-ambassador, #lead-blogger { padding-block: 18px; }
  #brand-ambassador .section-head, #lead-blogger .section-head { margin-bottom: 18px; }
}

@media (max-width: 420px) {
  .header .nav { justify-content: space-between; width: 100%; gap: 5px; font-size: 12px; }
  .header .nav-calc .icon { display: none; }
}
