/* Aula Events — landing page styles (ported from the Astro Landing component).
   Depends on the tokens/components in global.css. Loaded only on the front page. */

.landing .container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.landing .section { padding: 128px 0; }
.landing .section-h { font-size: clamp(32px, 4.2vw, 50px); max-width: 20ch; line-height: 1.08; text-shadow: var(--display-shadow); }
.landing .section-sub { color: var(--ink-75); max-width: 56ch; margin-top: 20px; font-size: 19px; }
.landing .kicker { font-family: 'Tanker','General Sans',sans-serif; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.14em; font-size: 17px; margin-bottom: 18px; }

/* hero */
.hero { padding: 104px 0 72px; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-lockup { width: clamp(300px, 44vw, 540px); margin-bottom: 60px; }
.hero-h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.1; text-shadow: var(--display-shadow); }
.hero-lead { color: var(--ink-75); max-width: 52ch; margin-top: 26px; font-size: 21px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.hero-platforms { margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.platform-item { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; font-size: 16px; }
.pi-ic { display: inline-flex; color: var(--accent-text); }
.no-download { font-style: italic; color: var(--ink-60); font-size: 13px; }

/* hero device cluster */
.hero-cluster { position: relative; width: 100%; max-width: 860px; margin: 60px auto 0; }
.hero-cluster .hc-laptop { width: min(600px, 84%); margin: 0 auto; z-index: 2; }
.hero-cluster .hc-phone { position: absolute; left: 6%; bottom: 4%; width: 124px; z-index: 3; }
.hero-cluster .hc-tablet { position: absolute; right: -2%; top: -11%; width: 320px; z-index: 1; }
.hc-laptop .mock-screen { border-radius: 10px; background: #000; }
.hc-embed { position: absolute; top: 50%; left: 0; width: 100%; aspect-ratio: 16 / 9; transform: translateY(-50%); border: 0; display: block; }
.hc-laptop .mock-screen::before,
.hc-laptop .mock-screen::after { content: ""; position: absolute; left: 0; right: 0; height: 15px; background: #000; z-index: 3; pointer-events: none; }
.hc-laptop .mock-screen::before { top: 0; }
.hc-laptop .mock-screen::after { bottom: 0; }

/* section header alignment */
.section-head.center { text-align: center; }
.section-head.center .section-h,
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* platform — device-by-device showcase */
.platform-head { max-width: 620px; }
.device-blocks { display: flex; flex-direction: column; gap: 104px; margin-top: 88px; }
.device-block { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.device-block.reverse .device-copy { order: 2; }

.feat-list { list-style: none; display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0; }
/* icon tiles top-align to the title so they line up straight down the column (as on the Astro build) */
.feat { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; }
.feat-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: rgba(240,148,59,0.16); border: 1px solid rgba(240,148,59,0.30); color: var(--accent-text); box-shadow: 0 16px 30px -12px rgba(17,0,37,0.42), 0 3px 9px -3px rgba(17,0,37,0.24); }
[data-theme='dark'] .feat-ic { background: rgba(240,148,59,0.14); border-color: rgba(240,148,59,0.22); box-shadow: 0 14px 28px -12px rgba(240,148,59,0.55); }
.feat-ic svg { width: 27px; height: 27px; }
.feat-h { font-size: 22px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.feat-p { color: var(--ink-75); font-size: 17px; line-height: 1.6; }

/* device mockups */
.device-visual { display: grid; place-items: center; }
.mock { position: relative; line-height: 0; width: 100%; }
/* drop-shadow follows the device silhouette (frame PNGs are cut out), so each device lifts off the page */
.mock-frame { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 44px rgba(17,0,37,0.28)); }
[data-theme='dark'] .mock-frame { filter: drop-shadow(0 26px 44px rgba(0,0,0,0.55)); }
.mock-screen { position: absolute; overflow: hidden; z-index: 2; line-height: normal; background: #0d0d12; }
.mock-screen > img, .mock-screen > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.device-visual .mock-mobile { max-width: 232px; }
.device-visual .mock-tablet { max-width: 430px; }
.device-visual .mock-desktop { max-width: 520px; }

/* formats — expandable cards */
.formats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; align-items: start; }
.card-p { color: var(--ink-75); font-size: 16.5px; line-height: 1.6; }
.format-card { padding: 40px; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
/* clickable format cards light up with an orange glow on hover — an inner orange ring + outer halo */
.format-card:hover {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(240,148,59,0.50),
    0 0 46px -4px rgba(240,148,59,0.32),
    0 30px 70px -26px rgba(240,148,59,0.40),
    0 16px 38px -20px rgba(6,0,18,0.40);
  transform: translateY(-3px);
}
.format-h { font-family: 'Tanker',sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 26px; margin-bottom: 12px; }
.format-hot .format-h { color: var(--accent-text); }
.format-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease; }
.format-card.open .format-more { max-height: 600px; opacity: 1; margin-top: 14px; }
.format-more .card-p + .card-p { margin-top: 12px; }
.format-actions { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.format-tour { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--ink-15); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none !important; transition: border-color 0.15s ease, color 0.15s ease; }
.format-tour svg { color: var(--accent-text); }
.format-tour:hover { border-color: var(--accent-text); color: var(--accent-text); }
.format-toggle { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink-15); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 0.25s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.format-toggle:hover { border-color: var(--ink-60); }
.format-card.open .format-toggle { transform: rotate(45deg); background: var(--orange); color: var(--violet); border-color: var(--orange); }

/* build */
.build-group { margin-top: 48px; }
.build-group + .build-group { margin-top: 60px; }
.build-label { font-family: 'Tanker',sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 15px; color: var(--ink-60); text-align: center; margin-bottom: 22px; }
.build-group .formats-grid { margin-top: 0; }
.format-actions-end { justify-content: flex-end; }
.format-card.no-toggle { cursor: default; }
/* "Bring your own" isn't clickable — it stays put, no hover glow */
.format-card.no-toggle:hover { transform: none; border-color: transparent; box-shadow: var(--card-lift); }

/* section padding overrides */
#testimonials.section { padding: 52px 0 56px; }   /* a touch more air under the hero, a little under the cards */
#platform.section { padding-top: 88px; }
#one-pager.section { padding-bottom: 72px; }
#build.section { padding-top: 72px; padding-bottom: 72px; }
#audiences.section { padding: 72px 0; }
#pricing.section { padding-bottom: 80px; }
#book.section { padding-top: 72px; padding-bottom: 72px; }

/* the ambient field is now ONE continuous gradient on `body` (global.css) so sections blend
   with no seams — deliberately no per-section backgrounds here (those created the hard lines). */

/* audiences */
.audiences-statement { max-width: min(960px, 100%); margin: 0 auto; text-align: center; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); text-shadow: var(--display-shadow); }

/* calculator */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 60px; padding: 44px; }
.calc-row { margin-bottom: 26px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 10px; }
.calc-label output { color: var(--accent-text); font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 1.5px solid var(--ink-15); border-radius: 999px; padding: 8px 18px; font-size: 14.5px; cursor: pointer; color: var(--ink-75); transition: all 0.12s ease; }
.seg label:hover { border-color: var(--ink-60); color: var(--ink); }
/* the calc is always a dark card now — the selected segment is an orange pill in both themes */
.seg input:checked + label { background: var(--orange); border-color: var(--orange); color: var(--violet); font-weight: 600; }
.calc input[type='range'] { width: 100%; accent-color: var(--orange); height: 32px; }
.calc-result { border-left: 1px solid var(--ink-08); padding-left: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.calc-result-label { font-family: 'Tanker',sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-60); font-size: 14px; }
.calc-price { font-size: clamp(40px, 5vw, 56px); font-weight: 700; color: var(--accent-text); line-height: 1.1; margin: 8px 0 14px; }
.calc-note { color: var(--ink-60); font-size: 13.5px; margin-bottom: 22px; max-width: 30ch; }
.calc-more { margin: 28px auto 0; max-width: 76ch; text-align: center; border: 1px solid rgba(240,148,59,0.28); background: rgba(240,148,59,0.06); border-radius: 18px; padding: 22px 30px; }
.calc-more-main { color: var(--ink); font-size: 16px; line-height: 1.55; }
.calc-more-note { color: var(--ink-60); font-size: 13.5px; line-height: 1.5; margin: 13px auto 0; padding-top: 13px; border-top: 1px solid var(--ink-08); max-width: 58ch; }

/* booking */
.booking-wrap { text-align: center; }
.booking-title { font-family: 'Tanker',sans-serif; font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.05; letter-spacing: 0.01em; margin: 0 auto; text-shadow: var(--display-shadow); }
.booking-cta { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* one-pager */
.onepager { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; padding: 48px; }
.onepager-h { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; margin-bottom: 14px; text-shadow: var(--display-shadow); }
.onepager-sub { color: var(--ink-75); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.onepager-action { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.onepager-action .btn { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 24px; }
.op-note { color: var(--ink-60); font-size: 13px; margin: 0 0 5px; }   /* PDF note sits tight to the tag below it */
.op-tag { color: var(--ink-60); font-size: 13px; margin: 0; }

/* proof — "companies that trusted us": a logo marquee + two case-study cards (between hero and platform) */
/* Tanker + orange: a lighter, display "bonus section" label rather than a heavy heading (Viko) */
.proof-title { text-align: center; font-family: 'Tanker','General Sans',sans-serif; font-weight: 400; color: var(--accent-text); font-size: clamp(25px, 2.7vw, 33px); letter-spacing: 0.01em; }

/* infinite logo marquee — monochrome, theme-adaptive, edges faded, pauses on hover */
.logo-marquee { position: relative; overflow: hidden; margin-top: 38px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.logo-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: logo-scroll 48s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: 30px; width: auto; flex-shrink: 0; object-fit: contain; filter: brightness(0); opacity: 0.5; }
[data-theme='dark'] .logo-track img { filter: brightness(0) invert(1); opacity: 0.62; }
/* per-logo optical sizing — wordmarks vary in cap-height, so equal pixel height reads uneven */
.logo-track img.lg-fiskars { height: 24px; }
.logo-track img.lg-innovation-home { height: 40px; }
.logo-track img.lg-finitec { height: 40px; }
.logo-track img.lg-bf { height: 46px; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }

/* two case-study cards */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.testimonial { display: flex; flex-direction: column; padding: 36px; }
.testimonial-quote { font-size: 18px; line-height: 1.62; color: var(--ink); margin: 0 0 28px; font-weight: 500; }
.testimonial-by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); flex-shrink: 0; }
/* cap the who-block width so the role wraps to two lines on BOTH cards (Hanna already did) — that
   frees the corner so the company logo can sit larger without crowding the name */
.testimonial-who { display: flex; flex-direction: column; max-width: 170px; }
.testimonial-name { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.testimonial-role { color: var(--accent-text); font-size: 13px; margin-top: 3px; }
/* company logo tucks into the bottom-right corner, opposite the speaker — keeps the card compact */
.testimonial-logo { margin-left: auto; height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: right center; flex-shrink: 0; }
.testimonial-logo.is-mark { height: 42px; }   /* SMEY mark stays as-is; only the wordmark grew */
@media (max-width: 760px) { .testimonials-grid { grid-template-columns: 1fr; } .testimonial-who { max-width: none; } }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-08); padding-top: 28px; }
  .device-block { grid-template-columns: 1fr; gap: 40px; }
  .device-block.reverse .device-copy { order: 0; }
  .device-blocks { gap: 72px; margin-top: 60px; }
  .hero-cluster .hc-tablet { display: none; }
  .hero-cluster .hc-laptop { width: min(560px, 92%); }
  .hero-cluster .hc-phone { left: 3%; bottom: 3%; width: 120px; }
}
@media (max-width: 760px) {
  .onepager { grid-template-columns: 1fr; gap: 22px; padding: 32px; }
}
@media (max-width: 620px) {
  .formats-grid { grid-template-columns: 1fr; }
  /* keep mobile short: show only the UN Women case study, hide the first card */
  .testimonials-grid .testimonial:first-child { display: none; }
  .hero { padding: 64px 0 64px; }
  .hero-cluster .hc-phone { display: none; }
  .hero-cluster .hc-laptop { width: 90%; }
  .device-visual .mock-desktop { max-width: 100%; }
  .device-visual .mock-mobile { max-width: 190px; }
}
