/* Elementor start page sections. Colours and typography come from the child theme. */
[data-elementor-type="wp-page"] {
  --home-space-top: clamp(40px, 4.2vw, 66px);
  --home-space-bottom: clamp(48px, 5.4vw, 82px);
  --home-curve: clamp(14px, 2vw, 30px);
}
:is(.spifi-home-section.audience, .spifi-sec.spifi-band) {
  --home-arc: radial-gradient(ellipse 62% 100% at 45% 0,
    var(--arc-from) 97%, transparent 100%);
}
.elementor .spifi-home-section {
  padding: var(--home-space-top) clamp(18px, 4vw, 48px) var(--home-space-bottom);
  background: var(--surface);
}
.elementor .spifi-home-section.looks { background: var(--tint-blue); }
.elementor .spifi-home-section.audience {
  padding-top: calc(var(--home-space-top) + var(--home-curve));
  background: var(--home-arc) top / 100% var(--home-curve) no-repeat var(--surface);
  --arc-from: var(--tint-yellow);
}
.spifi-home-section.e-con > .wrap { width: min(100%, var(--container)); margin-inline: auto; gap: 28px; }
.spifi-home-section .e-con { min-width: 0; }
.spifi-home-section :is(h1,h2,h3,p,ul,figure) { margin: 0; }
.spifi-home-section .section-heading { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 18px 48px; }
.spifi-home-section h2.elementor-heading-title { font-size: clamp(32px,4.1vw,56px); line-height: 1.08; }
.spifi-home-section .elementor-widget-html { width: 100%; }
.spifi-home-section .spifi-stripes { margin-bottom: 14px; }

.elementor .spifi-home-section.hero {
  padding-block: clamp(28px,4vw,60px) var(--home-space-bottom);
  background: linear-gradient(to bottom, var(--ground) calc(100% - var(--home-space-bottom)), var(--tint-yellow)) var(--ground);
}
.spifi-home-section.e-con > .hero-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px,5vw,68px); }
.spifi-home-section .hero-copy { gap: clamp(14px,1.7vw,25px); }
.hero.spifi-home-section .elementor-widget-heading h1.elementor-heading-title {
  color: var(--spifi-pink-deep); font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px,6.5vw,94px) !important; line-height: 1.04 !important; letter-spacing: -.04em;
}
.spifi-home-section .hero-lead { max-width: 54ch; font-size: clamp(18px,1.5vw,21px); }
.spifi-home-section .hero-copy .spifi-note { border-inline-start: 3px solid var(--spifi-teal); padding-inline-start: 12px; }
.spifi-home-section .hero-actions { flex-flow: row wrap; align-items: center; gap: 12px; }
.spifi-home-section .hero-actions .elementor-widget-button { width: auto; }
.spifi-home-section .hero-actions .elementor-button { border-radius: var(--radius-pill); background: var(--primary-bg); color: var(--ink); font-weight: 800; text-transform: none; padding: 14px 22px; }
.spifi-home-section .hero-actions .secondary .elementor-button { background: transparent; border: 2px solid var(--ink); }
.spifi-home-section .hero-art { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 10px; padding: clamp(16px,2.4vw,34px); overflow: hidden; border-radius: var(--radius-xl); background: var(--tint-blue); color: var(--ink); }
.spifi-home-section .clear-mark { position: absolute; inset: 8%; z-index: -1; opacity: .18; pointer-events: none; }
.spifi-home-section .clear-mark img { width: 100%; height: 100%; object-fit: contain; }
.spifi-home-section .hero-media { width: 100%; height: clamp(220px,28vw,370px); touch-action: pan-y; overflow: hidden; }
.spifi-home-section .hero-slides { position: relative; height: 100%; }
.spifi-home-section .hero-slide { position: absolute; inset: 0; display: grid; place-items: center; visibility: hidden; transform: translateX(100%); }
.spifi-home-section .hero-slide:has(~ .is-active) { transform: translateX(-100%); }
.spifi-home-section .hero-slide.is-active { transform: none; visibility: visible; }
.spifi-home-section .product-frame { max-width: 100%; height: 100%; aspect-ratio: 468 / 1013; border-radius: var(--radius-phone); background: var(--surface); overflow: hidden; }
.spifi-home-section .product-frame.paper { aspect-ratio: 794 / 1123; border-radius: var(--radius-s); }
.spifi-home-section .product-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.spifi-home-section .hero-highlights { display: grid; width: 100%; text-align: center; }
.spifi-home-section .hero-highlight { grid-area: 1/1; display: grid; justify-items: center; align-content: start; opacity: 0; visibility: hidden; }
.spifi-home-section .hero-highlight.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .spifi-home-section .slider-ready .hero-slide { transition: transform .4s, visibility .4s; }
  .spifi-home-section .slider-ready .hero-highlight { transition: opacity .4s, visibility .4s; }
}
.spifi-home-section .hero-highlight strong, .spifi-home-section .product-card h3, .spifi-home-section .audience-card strong { font: 900 clamp(20px,1.8vw,25px)/1.15 var(--font-display); }
.spifi-home-section .hero-highlight span { max-width: 38ch; }
.spifi-home-section :is(.hero-highlight,.product-card,.audience-card) a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.spifi-home-section :is(.hero-controls,.hero-arrows) { display: none; }
.spifi-home-section .slider-ready :is(.hero-controls,.hero-arrows), .spifi-home-section .hero-positions { display: flex; justify-content: center; align-items: center; }
.spifi-home-section .hero-art button { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-pill); min-height: 44px; padding: 0 14px; font-weight: 800; }
.spifi-home-section button.hero-position { border: 0; width: 44px; padding: 0; }
.spifi-home-section .hero-position::before { content: ''; display: inline-block; width: 11px; height: 11px; border: 2px solid currentColor; border-radius: var(--radius-pill); }
.spifi-home-section .hero-position[aria-current=true]::before { width: 24px; background: var(--ink); }
.spifi-home-section .hero-arrows { gap: 8px; }
.spifi-home-section .hero-slider-status { font-size: 13px; text-align: center; }

.spifi-home-section :is(.product-grid,.audience-grid) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.spifi-home-section :is(.product-card,.audience-card) { display: grid; align-content: start; align-items: start; gap: 16px; padding: clamp(18px,2vw,28px); border-radius: var(--radius-xl); background: var(--tint-blue); }
.spifi-home-section .product-card { grid-template-columns: minmax(44px,23%) 1fr; }
.spifi-home-section .product-card img { width: 100%; height: 140px; object-fit: contain; object-position: top; }
.spifi-home-section :is(.product-card,.audience-card) p { margin: .45em 0; }
.spifi-home-section .product-card:nth-child(2), .spifi-home-section .audience-4 { background: var(--tint-yellow); }
.spifi-home-section .product-card:nth-child(3), .spifi-home-section .audience-0 { background: var(--tint-teal); }
.spifi-home-section .audience-2 { background: var(--tint-pink); }
.spifi-home-section .audience-1 { background: var(--ground); }
.spifi-home-section .audience-5 { background: var(--chip-bg); }
.spifi-home-section .audience-card .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-m); background: var(--surface); color: var(--ink); }
@media (max-width: 900px) {
  .spifi-home-section.e-con > .hero-layout { grid-template-columns: 1fr; }
  .spifi-home-section .product-grid { grid-template-columns: minmax(0,1fr); }
  .spifi-home-section .audience-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spifi-home-section .product-card { grid-template-columns: 80px 1fr; }
}
@media (max-width: 600px) {
  .spifi-home-section .section-heading, .spifi-home-section .audience-grid { grid-template-columns: 1fr; }
  .spifi-home-section .product-card { grid-template-columns: 60px minmax(0,1fr); overflow-wrap: anywhere; }
  .spifi-home-section .hero-actions { gap: 8px; }
  .spifi-home-section .hero-art { padding-inline: 14px; }
}

.spifi-home-section.looks .spifi-phones { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); justify-items: stretch; gap: 14px; margin: 0; padding: 0; list-style: none; }
.spifi-home-section.looks .spifi-phones .look-link { display: block; height: 100%; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); padding: clamp(14px,1.6vw,22px); }
.spifi-home-section.looks .spifi-phones .look-link:hover { border-color: var(--ink); }
.spifi-home-section.looks .spifi-phones figure { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.spifi-home-section.looks .spifi-phones .frame { width: min(100%,132px); margin: 0; }
.spifi-home-section.looks .spifi-phones figcaption { display: grid; gap: 4px; text-align: center; justify-items: center; }
.spifi-home-section.looks .spifi-phones figcaption strong { font: 900 21px/1.15 var(--font-display); }
.spifi-home-section.looks .spifi-phones figcaption span { font-size: 14px; line-height: 1.4; }
@media (min-width:601px) {
  .spifi-home-section.looks .spifi-phones figcaption span { min-height: 2.8em; }
}
@media (min-width:601px) and (max-width:950px) {
  .spifi-home-section.looks .spifi-phones { display: flex; flex-wrap: wrap; justify-content: center; }
  .spifi-home-section.looks .spifi-phones li { width: calc((100% - 28px)/3); }
}
@media (max-width:600px) {
  .spifi-home-section.looks .spifi-phones { grid-template-columns: 1fr; gap: 10px; }
  .spifi-home-section.looks .spifi-phones figure { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 22px; }
  .spifi-home-section.looks .spifi-phones figcaption { justify-items: start; text-align: start; }
}

/* Elementor places the padding of boxed sections on the inner container. */
[data-elementor-type="wp-page"] > .spifi-sec > .e-con-inner {
  padding-block: var(--home-space-top) var(--home-space-bottom);
}
.spifi-sec:has(.spifi-steps) {
  --ink: var(--surface);
  --ink-body: var(--on-dark);
  --ink-muted: var(--on-dark);
  color: var(--on-dark);
  background: var(--band-bg) !important;
}
.spifi-sec:has(.spifi-steps) .spifi-steps strong { color: var(--surface); }
.spifi-sec:has(.spifi-steps) .spifi-steps li::before { color: var(--spifi-navy); }
.spifi-sec:has(.spifi-community) { background: var(--surface) !important; }
.spifi-sec:has(.spifi-frame) { background: var(--ground) !important; }
.spifi-sec:has(.spifi-faq) { background: var(--tint-teal) !important; }
.spifi-sec.spifi-band {
  --band-title: var(--spifi-navy);
  --on-dark: var(--ink-body);
  --arc-from: var(--tint-teal);
  background: var(--home-arc) top / 100% var(--home-curve) no-repeat var(--tint-yellow) !important;
}
[data-elementor-type="wp-page"] > .spifi-band > .e-con-inner {
  padding-block-start: calc(var(--home-space-top) + var(--home-curve));
}
.spifi-band .spifi-btn-band .elementor-button { border-color: var(--spifi-navy); }
@media (forced-colors: active) {
  [data-elementor-type="wp-page"] > .e-con + .e-con { border-block-start: 1px solid CanvasText; }
}
