/* Shared layout and component styles. */
:root { --content-width:1200px; --gutter:clamp(1.25rem,4vw,3rem); }
html { scroll-padding-top:7rem; }
body { margin:0; font-size:1rem; -webkit-font-smoothing:antialiased; }
.container { width:100%;max-width:var(--content-width);box-sizing:border-box; }
.nav > .container,.body > .hero > .content .container,.body > .container,.site-footer > .container { padding-left:var(--gutter);padding-right:var(--gutter); }
.nav { height:6rem; }
.body > .hero { margin-top:-6rem; }
.body > .hero > .content { padding-top:11rem;padding-bottom:5rem;text-align:left; }
.body > .hero .content h1 { max-width:none;font-size:clamp(2.5rem,5.7vw,4.75rem);line-height:1.08;letter-spacing:-.045em;font-weight:700; }
.body > .hero .content p { max-width:none;font-size:clamp(1.125rem,2vw,1.35rem);line-height:1.6;margin:1.25rem 0 0;color:#fff; }
.body > .hero .content a.big { margin-top:1.75rem;box-shadow:none;border:2px solid #eee; }
.body > .hero + .container { margin:0 auto;padding-top:3rem;padding-bottom:1rem; }
.body > .container { margin:0 auto;padding-top:3rem;padding-bottom:1rem; }
/* Keep the first block under every hero aligned the same way. */
.body > .hero + .container > :first-child { margin-top:0; }
.body > .hero + .container > a[name]:first-child { display:block;height:0;margin:0;padding:0;overflow:hidden;border:0; }
.body > .hero + .container > a[name]:first-child + :not(a[name]) { margin-top:0; }
.body > .hero + .container > a[name]:first-child + a[name] { display:block;height:0;margin:0;padding:0;overflow:hidden;border:0; }
.body > .hero + .container > a[name]:first-child + a[name] + * { margin-top:0; }
.body > .hero + .container > .row:first-of-type > :first-child,
.body > .hero + .container > a[name]:first-child + .row > :first-child,
.body > .hero + .container > a[name]:first-child + a[name] + .row > :first-child { margin-top:0; }
.body > .container p { line-height:1.75; }
.body > .container h2 { font-size:clamp(1.6rem,3vw,2.25rem);line-height:1.2;letter-spacing:-.025em; }
.body > .container h3 { line-height:1.35;letter-spacing:-.015em; }
.body > .container a { text-underline-offset:.25em; }

.body > .container .row { margin-bottom:2.5rem; }
.body > .container .row:has(> .columns.four) { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem; }
.body > .container .row:has(> .columns.four) > .columns { float:none;width:auto;margin:0;min-width:0; }
.body > .container .row:has(> .columns.four) > .clear { display:none; }
.video { overflow:hidden;border-radius:10px;background:#191919; }
.video + p { margin:.8rem 0 0;font-size:1rem; }
.pricing-table { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem; }
.pricing-table > .clear { display:none; }
html[data-theme="dark"] .pricing-table .pricing-plan { margin:0;padding:1.75rem 1.5rem;border:1px solid #ffffff20;border-radius:12px;background:#202020;box-shadow:none;transition:none; }
html[data-theme="dark"] .pricing-table .pricing-plan :is(.plan-header,.plan-price,.plan-item) { background:transparent;text-align:left;border:0;padding:0; }
html[data-theme="dark"] .pricing-table .pricing-plan .plan-header { font-size:1.125rem;font-weight:600;line-height:1.4; }
.pricing-table .pricing-plan .plan-price { margin:1rem 0 1.5rem; }
.pricing-table .pricing-plan .plan-price-amount { font-size:2.75rem;line-height:1.1;font-weight:600; }
.pricing-table .pricing-plan .plan-price-currency { font-size:1.25rem;vertical-align:top; }
html[data-theme="dark"] .pricing-table .pricing-plan .plan-item {
    font-size:1rem;
    line-height:1.75;
    padding:.85rem 0;
    border-top:1px solid #ffffff12;
    max-width:none;
}
.pricingExtras { padding-top:1.5rem; }
.pricingExtras p { margin:.55rem 0;line-height:1.75; }
.pricingExtras i { display:inline-block;margin-top:.35rem;line-height:1.75; }

body[data-page="privacy"] .body > .container h2,body[data-page="terms"] .body > .container h2 { margin-top:2.5rem;font-size:1.5rem; }
.site-footer { margin-top:4rem; }
.site-footer > .container { padding-top:2.5rem;padding-bottom:2rem; }
.featured-app { padding-top:0; }
.home-services { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-top:2.5rem; }
html[data-theme="dark"] .body .service-card { position:relative;display:block;padding:1.75rem;border:1px solid #ffffff20;border-radius:12px;color:#eee;text-decoration:none; }
.service-card h2 { margin:0 0 .75rem;font-size:1.4rem; }
.service-card p { margin:0;color:#bbb;font-size:1rem; }
.service-card .service-link { display:block;margin-top:1.5rem;font-size:1rem;font-weight:600; }
.service-card .service-link::after { content:"";position:absolute;inset:0;border-radius:12px; }
html[data-theme="dark"] .body .service-card:hover,
html[data-theme="dark"] .body .service-card:has(.service-link:hover),
html[data-theme="dark"] .body .service-card:has(.service-link:focus-visible) { background:#2d2d2d;border-color:#ffffff50; }
.service-card .service-link:focus-visible { outline:none; }
.service-card:has(.service-link:focus-visible) { outline:2px solid #eee;outline-offset:4px; }
@media(min-width:768px) and (max-width:1000px) {
    .nav > .container > ul { gap:1.15rem; }
    .nav > .container > ul > li > a.navItem { font-size:1rem; }
    .nav > .container > ul > li > .logo { width:3rem;height:3rem;margin-right:1.25rem; }
}
@media(min-width:1001px) { .nav > .container > ul { gap:2.25rem; } }
@media(max-width:767px) {
    .body > .hero,.hero > .img { height:100vh; }
    .body > .hero > .content { padding-top:9.5rem;padding-bottom:3.5rem;text-align:center; }
    .body > .hero .content h1 { font-size:clamp(2.5rem,9vw,3.75rem); }
    .body > .hero .content p > div:has(> a.big) { width:100%; }
    .body > .hero .content a.big { display:flex;justify-content:center;width:100%;max-width:22rem;margin-left:auto;margin-right:auto;box-sizing:border-box; }
    .body > .container,.body > .hero + .container { padding-top:2rem; }
    .home-services,.pricing-table,.body > .container .row:has(> .columns.four) { grid-template-columns:1fr; }
    .home-services { gap:1rem; }
    .site-footer { margin-top:2.5rem; }
    .nav > .container > ul > li > .logo { width:3rem;height:3rem;top:1.5rem; }
}
@media(prefers-reduced-motion:reduce) { .stars * { animation:none !important; }.menu span,.menu span:before,.menu span:after { transition:none !important; } }
/* Image layers follow the actual hero height, including wrapped headings. */
.body > .hero.hasImage > .img { inset:0;width:100%;height:100%;background-size:cover;background-repeat:no-repeat; }
/* Video thumbs open YouTube in a new tab instead of embedding. */
.youtube-player > .youtube-link { display:block;position:absolute;inset:0;width:100%;height:100%; }
body[data-page="contact"] .contact-intro h2 { margin:0 0 1rem; }
body[data-page="contact"] .contact-intro h2 + p { margin-top:0; }
/* Distinguish inline links without adding decoration to navigation or controls. */
html[data-theme="dark"] .body > .container a:not(.service-card):not(.app-button):not(.buy):not(.big),
html[data-theme="dark"] .cookie-consent p a {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}
html[data-theme="dark"] .body > .container a:not(.service-card):not(.app-button):not(.buy):not(.big):hover,
html[data-theme="dark"] .body > .container a:not(.service-card):not(.app-button):not(.buy):not(.big):focus-visible,
html[data-theme="dark"] .cookie-consent p a:hover,
html[data-theme="dark"] .cookie-consent p a:focus-visible {
    text-decoration-style: solid;
}
html[data-theme="dark"] .body > .hero .content a.big,
html[data-theme="dark"] .body .app-button,
html[data-theme="dark"] .body a.buy,
html[data-theme="dark"] #contact-form button {
    font-size:1.25rem;
    font-weight:700;
    line-height:1.4;
    padding:.8em 1.4em;
}

html { font-size:100%; }
small,sub,sup { font-size:1rem; }



.body > .container p { max-width:none; }
/* Shared inline-link treatment in content, hero copy, and consent text. */
html[data-theme="dark"] .body > .container a:not(.service-card):not(.app-button):not(.buy):not(.big),
html[data-theme="dark"] .hero .content p a:not(.big),
html[data-theme="dark"] .cookie-consent p a {
    color:#fff6ec;
    text-decoration-line:underline;
    text-decoration-style:dotted;
    text-decoration-thickness:1px;
    text-underline-offset:.22em;
}
html[data-theme="dark"] #contact-form .contact-privacy a,
html[data-theme="dark"] .cookie-consent p a {
    color:#fff6ec;
    text-decoration:underline dotted;
    text-decoration-thickness:1px;
    text-underline-offset:.22em;
}

.home-services .service-card { display:flex !important;flex-direction:column; }
.home-services .service-card p { font-weight:400; }
html[data-theme="dark"] .body .home-services .service-link { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:auto;padding-top:1.5rem;color:#fff6ec;font-weight:400;text-decoration:none; }
.home-services .service-link span { text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:.22em; }
.home-services .service-link:hover span { text-decoration-style:solid; }
.home-services .service-link svg { flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }
.nav a.navItem::after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-6px;
    height:2px;
    background:rgba(255,255,255,.4);
    transform:scaleX(0);
    transform-origin:left center;
    transition:transform .2s ease-out;
    pointer-events:none;
}
.nav a.navItem:not(.active)::after { display:none; }
@media(prefers-reduced-motion:reduce) { .nav a.navItem:not(.active)::after { transition:none; } }

.nav a.navItem.active::after { background:#fff6ec;transform:scaleX(1); }
html[data-theme="dark"] .body > .hero .content a.big,
html[data-theme="dark"] .body .app-button,
html[data-theme="dark"] .body a.buy,
html[data-theme="dark"] #contact-form button {
    padding-top:.65em;
    padding-bottom:.65em;
    border-width:3px;
}
html[data-theme="dark"] .body > .hero .content a.big,
html[data-theme="dark"] .body .app-button,
html[data-theme="dark"] .body a.buy,
html[data-theme="dark"] #contact-form button {
    background-color:rgba(36,36,36,.55);
}
html[data-theme="dark"] .body > .hero .content a.big:hover,
html[data-theme="dark"] .body > .hero .content a.big:focus-visible,
html[data-theme="dark"] .body .app-button:hover,
html[data-theme="dark"] .body .app-button:focus-visible,
html[data-theme="dark"] .body a.buy:hover,
html[data-theme="dark"] .body a.buy:focus-visible,
html[data-theme="dark"] #contact-form button:not(:disabled):hover,
html[data-theme="dark"] #contact-form button:not(:disabled):focus-visible {
    background-color:#fff;
    border-color:#fff;
    color:#000;
}
html[data-theme="dark"] #contact-form[aria-busy="true"] button { background-color:#383838; }
/* Hero layers: photo, overlay, texture, stars, then content. */
.body > .hero { isolation:isolate; }
.body > .hero > .img { z-index:0; }
.body > .hero > .overlay { z-index:1; }
.body > .hero > .noise { z-index:2; }
.body > .hero > .stars { z-index:3; }
.body > .hero > .content { z-index:4; }
html[data-theme="dark"] .body > .hero .content a.big,
html[data-theme="dark"] .body .app-button,
html[data-theme="dark"] .body a.buy,
html[data-theme="dark"] #contact-form button {
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
}
html[data-theme="dark"] .body > .hero .content a.big:hover,
html[data-theme="dark"] .body > .hero .content a.big:focus-visible,
html[data-theme="dark"] .body .app-button:hover,
html[data-theme="dark"] .body .app-button:focus-visible,
html[data-theme="dark"] .body a.buy:hover,
html[data-theme="dark"] .body a.buy:focus-visible,
html[data-theme="dark"] #contact-form button:not(:disabled):hover,
html[data-theme="dark"] #contact-form button:not(:disabled):focus-visible {
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
}
/* Legacy pricing styles used black prices and inherited black footnotes. */
html[data-theme="dark"] .pricing-table .pricing-plan.is-dark .plan-price .plan-price-amount,
html[data-theme="dark"] .pricing-table .pricing-plan .plan-price .plan-price-amount .plan-price-currency {
    color:#fff6ec;
}
html[data-theme="dark"] .pricingExtras { color:#eee; }
html[data-theme="dark"] .pricingExtras :is(i,em) { color:#bbb; }
