/* Layout and components. Brand colours and fonts come from theme.css (generated per store);
   shadows, easings, radii and fluid type scale come from Open Props (static/open-props.min.css). */

:root {
  --primary-deep: color-mix(in srgb, var(--primary) 78%, #000);
  --brand-gradient: radial-gradient(120% 90% at 100% 100%, var(--accent-tint), transparent 60%), linear-gradient(135deg, var(--primary), var(--primary-deep));
  --primary-soft: color-mix(in srgb, var(--primary) 10%, var(--bg));
  --primary-tint: color-mix(in srgb, var(--primary) 18%, transparent);
  --accent-tint: color-mix(in srgb, var(--accent) 22%, transparent);
  --line: color-mix(in srgb, var(--text) 9%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 16%, transparent);
  --shadow-color: 220 20% 20%;
  --shadow-strength: 2%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body), system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--font-lineheight-3);
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading), var(--font-body), sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: var(--font-letterspacing-0); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 2rem + 3.2vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: var(--font-letterspacing-4); font-weight: 600; opacity: .7; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 42ch; line-height: 1.5; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; scroll-margin-top: 72px; }
.section--alt { background: var(--surface); }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-bottom: 0; }
.section__head .chip { margin-bottom: 1rem; }

/* Radius scale set per brand */
.radius-sharp { --r-sm: var(--radius-2); --r-md: var(--radius-2); --r-lg: var(--radius-3); --r-btn: var(--radius-2); }
.radius-soft  { --r-sm: var(--radius-3); --r-md: var(--radius-4); --r-lg: 28px; --r-btn: var(--radius-3); }
.radius-round { --r-sm: var(--radius-4); --r-md: 28px; --r-lg: 40px; --r-btn: var(--radius-round); }

/* Chips, badges */
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .6rem; border-radius: var(--radius-round); background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.chip--invert { background: color-mix(in srgb, var(--primary-contrast) 14%, transparent); color: var(--primary-contrast); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--r-btn); border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: transform .25s var(--ease-3), box-shadow .25s var(--ease-3), background .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease-3); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--primary-contrast); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent), var(--shadow-3); }
.btn--primary:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent), var(--shadow-4); }
.btn--invert { background: var(--primary-contrast); color: var(--primary); box-shadow: var(--shadow-3); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 500; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .site-nav { display: none; } .site-header__cta { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5rem); background: var(--surface); isolation: isolate; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: -1; pointer-events: none; }
.hero__glow--a { width: 48vw; height: 48vw; max-width: 640px; max-height: 640px; right: -10vw; top: -20vw; background: var(--primary-tint); }
.hero__glow--b { width: 36vw; height: 36vw; max-width: 480px; max-height: 480px; left: -12vw; bottom: -18vw; background: var(--accent-tint); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero--image_left .hero__media { order: -1; }
.hero--centered .hero__grid { grid-template-columns: 1fr; text-align: center; }
.hero--centered .hero__cta, .hero--centered .trust { justify-content: center; }
.hero--centered .lead { margin-inline: auto; }
.hero--centered .hero__media { max-width: 640px; margin-inline: auto; }
.hero__copy .chip { margin-bottom: 1.25rem; }
.hero__copy h1 { margin-bottom: 1.1rem; }
.hero__cta { display: flex; align-items: center; gap: 1.25rem 1.75rem; flex-wrap: wrap; margin: 1.75rem 0 1.5rem; }
.price-tag { display: inline-grid; line-height: 1.1; }
.price-tag strong { font-family: var(--font-heading), sans-serif; font-size: 1.6rem; letter-spacing: -0.02em; }
.price-tag s { color: var(--muted); font-size: 1rem; }
.price-tag small { color: var(--muted); font-size: .75rem; margin-top: .2rem; }

.hero__media { position: relative; }
.hero__frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--primary-soft); box-shadow: var(--shadow-6); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem .95rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid color-mix(in srgb, #fff 50%, transparent); box-shadow: var(--shadow-4); font-weight: 600; font-size: .9rem; animation: float 6s var(--ease-3) infinite; }
.float .icon { width: 20px; height: 20px; color: var(--primary); }
.float--a { left: -1.25rem; top: 14%; }
.float--b { right: -1.25rem; bottom: 14%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero--image_left .hero__media { order: 0; }
  .float--a { left: .75rem; } .float--b { right: .75rem; }
}

.trust { list-style: none; padding: 0; margin: 0; display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust .icon { width: 17px; height: 17px; color: var(--primary); }
.trust--invert { margin-top: 1.25rem; color: color-mix(in srgb, var(--primary-contrast) 75%, transparent); }
.trust--invert .icon { color: var(--primary-contrast); }

/* Bento benefits */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.4rem, 2.5vw, 2rem); transition: transform .3s var(--ease-3), box-shadow .3s var(--ease-3); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-4); }
.tile p { margin: 0; color: var(--muted); }
.tile__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); margin-bottom: 1.25rem; }
.tile--feature { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; background: var(--brand-gradient); color: var(--primary-contrast); border: none; }
.tile--feature .tile__icon { background: color-mix(in srgb, var(--primary-contrast) 16%, transparent); color: var(--primary-contrast); width: 56px; height: 56px; margin-bottom: auto; }
.tile--feature h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); letter-spacing: -0.02em; margin-top: 2rem; }
.tile--feature p { color: color-mix(in srgb, var(--primary-contrast) 80%, transparent); font-size: 1.05rem; max-width: 46ch; }
/* Tiles 2 and 3 sit beside the feature; the rest fill full rows below: 1 → full width, 2 → halves, 3 → thirds. */
.bento .tile:nth-child(4):last-child { grid-column: span 6; display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center; }
.bento .tile:nth-child(4):last-child .tile__icon { margin: 0; grid-row: span 2; }
.bento .tile:nth-child(4):last-child p { grid-column: 2; }
.bento .tile:nth-child(4):nth-last-child(2), .bento .tile:nth-child(5):last-child { grid-column: span 3; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile { grid-column: span 1 !important; grid-row: auto; display: block; }
  .bento .tile--feature { grid-column: span 2 !important; min-height: 260px; display: flex; }
  .bento .tile:nth-child(4):last-child .tile__icon { margin-bottom: 1.25rem; }
}
@media (max-width: 560px) { .bento .tile { grid-column: span 2 !important; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; position: relative; }
.step { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.step__num { display: block; font-family: var(--font-heading), sans-serif; font-weight: 800; font-size: 2.75rem; letter-spacing: -0.04em; line-height: 1; color: var(--primary); margin-bottom: 1rem; }
.step p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 120px; gap: 1rem; align-items: start; }
.gallery__main { margin: 0; }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-4); }
.gallery__main figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.gallery__thumbs { display: grid; gap: .75rem; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); cursor: pointer; aspect-ratio: 1; transition: border-color .2s, transform .2s var(--ease-3); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--primary); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
}

/* Comparison */
.compare-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-3); overflow: hidden; }
.compare { width: 100%; table-layout: fixed; border-collapse: collapse; }
.compare th, .compare td { padding: 1.05rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line); overflow-wrap: break-word; hyphens: auto; vertical-align: middle; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare th:first-child, .compare td:first-child { width: 42%; text-align: left; font-weight: 500; }
.compare th { font-weight: 600; color: var(--muted); font-size: .9rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.compare__pill { display: inline-block; padding: .35rem .9rem; border-radius: var(--radius-round); background: var(--primary); color: var(--primary-contrast); font-weight: 700; }
.compare td.compare__us { background: var(--primary-soft); font-weight: 600; }
.compare th.compare__us { background: var(--primary-soft); }
.mark { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; }
.mark .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.mark--yes { background: var(--primary); color: var(--primary-contrast); }
.mark--no { background: var(--line); color: var(--muted); }
@media (max-width: 720px) { .compare th, .compare td { padding: .8rem .5rem; font-size: .9rem; } .compare th:first-child, .compare td:first-child { width: 38%; } .compare__pill { padding: .3rem .6rem; font-size: .8rem; } }

/* Offer */
.offer { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: var(--brand-gradient); color: var(--primary-contrast); box-shadow: var(--shadow-6); position: relative; overflow: hidden; }
.offer::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--primary-contrast) 10%, transparent); filter: blur(40px); pointer-events: none; }
.offer__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-5); }
.offer__body { position: relative; }
.offer__body .chip { margin-bottom: 1rem; }
.offer__body h2 { margin-bottom: 1.25rem; }
.offer__price { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.offer__price strong { font-size: clamp(2.2rem, 2rem + 1vw, 3rem); font-family: var(--font-heading), sans-serif; letter-spacing: -0.03em; line-height: 1; }
.offer__price s { opacity: .65; }
.offer__price small { opacity: .75; font-size: .85rem; width: 100%; }
.offer__note { opacity: .8; }
.checklist { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--primary-contrast) 18%, transparent); stroke-width: 3; margin-top: .1rem; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* Guarantee */
.guarantee { text-align: center; }
.guarantee .lead { margin-inline: auto; color: var(--text); }
.guarantee__icon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); margin-bottom: 1.5rem; box-shadow: 0 0 0 10px var(--primary-soft), var(--shadow-3); }
.guarantee__icon .icon { width: 32px; height: 32px; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0 1.25rem; transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary { cursor: pointer; font-weight: 600; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform .25s var(--ease-3); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { margin: 0 0 1.2rem; color: var(--muted); }

/* Final CTA */
.section--cta { padding-top: 0; }
.cta { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cta h2 { margin-bottom: 1.5rem; }

/* Legal */
.legal h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal p { color: var(--muted); }

/* Footer (dark) */
.site-footer { background: var(--text); color: color-mix(in srgb, var(--bg) 70%, transparent); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--bg); opacity: .6; }
.site-footer__grid a { display: block; text-decoration: none; color: inherit; margin-bottom: .5rem; transition: color .2s; }
.site-footer__grid a:hover { color: var(--bg); }
.logo--footer { margin-bottom: 1rem; }
.logo--footer svg text { fill: var(--bg); }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--bg) 12%, transparent); font-size: .85rem; opacity: .7; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > div:first-child { grid-column: 1 / -1; } }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease-3); }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text { display: grid; line-height: 1.15; }
.sticky-cta__text strong { font-size: .9rem; }
.sticky-cta__text span { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 760px) { .sticky-cta { display: flex; } body { padding-bottom: 76px; } }

/* Cookie banner */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; max-width: 520px; margin-inline: auto; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 1.25rem; box-shadow: var(--shadow-6); font-size: .95rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 1rem; }
.cookie__actions { display: flex; gap: .75rem; justify-content: flex-end; }
@media (max-width: 760px) { .cookie { bottom: 88px; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-3), transform .7s var(--ease-3); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

.icon { width: 24px; height: 24px; }
