/* ============================================================
   ticketYoo — Marketing Website Theme
   Mailchimp-inspired: big serif display, pill buttons, flat cards.
   Radius: 0px globally · Buttons: 30px + shadow-xl
   Colors (simple): primary #343a3d · accent (teal) #13cfc0
   Fonts (self-hosted, DSGVO): Roboto Slab (headings) / Roboto Condensed (body)
   Dark mode: follows system (prefers-color-scheme), set by main.js
   ============================================================ */

@import url("../assets/fonts/fonts.css");

:root {
  --ty-primary: #343a3d;        /* dark brand / headings on light */
  --ty-accent: #13cfc0;         /* teal signal */
  --ty-accent-ink: #0c2d2a;     /* readable text on teal */
  --ty-accent-dark: #0fb3a6;    /* teal hover */
  --ty-bg: #ffffff;
  --ty-text: #1a252a;
  --ty-muted: #5b676d;
  --ty-surface: #e4e7e9;        /* alternate section background */
  --ty-surface-2: #f4f6f7;
  --ty-line: #d8dde0;
  --ty-ink-section: #2b3033;    /* dark section bg (mailchimp-style) */
  --ty-shadow-xl: 0 20px 40px -12px rgba(20, 28, 32, .28);
  --ty-shadow-card: 0 1px 0 rgba(20,28,32,.05), 0 18px 40px -28px rgba(20,28,32,.45);
}

.dark {
  --ty-primary: #e7eaeb;
  --ty-accent: #15ddcd;
  --ty-accent-ink: #03201d;
  --ty-accent-dark: #2ee9da;
  --ty-bg: #14191b;
  --ty-text: #e6eaec;
  --ty-muted: #9aa6ab;
  --ty-surface: #1d2326;
  --ty-surface-2: #1a2022;
  --ty-line: #2c3439;
  --ty-ink-section: #0e1214;
  --ty-shadow-xl: 0 20px 44px -12px rgba(0, 0, 0, .6);
  --ty-shadow-card: 0 18px 40px -28px rgba(0,0,0,.8);
}

/* ---- Base ---- */
* { border-radius: 0; }               /* radius 0 globally */
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto Condensed', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ty-bg);
  color: var(--ty-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .font-display {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  color: var(--ty-primary);
  letter-spacing: -0.01em;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--ty-accent); color: var(--ty-accent-ink); }

.ty-container { max-width: 1180px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px){ .ty-container { padding-left: 2rem; padding-right: 2rem; } }

.ty-muted { color: var(--ty-muted); }
.ty-accent-text { color: var(--ty-accent-dark); }

/* ---- Section backgrounds ---- */
.section { padding: 5rem 0; }
@media (min-width: 768px){ .section { padding: 6.5rem 0; } }
.section--surface { background: var(--ty-surface-2); }
.dark .section--surface { background: var(--ty-surface); }
.section--ink { background: var(--ty-ink-section); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .ty-muted { color: rgba(255,255,255,.7); }

/* ---- Buttons: 30px radius + shadow-xl ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.9rem;
  border-radius: 30px;
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary { background: var(--ty-accent); color: var(--ty-accent-ink); box-shadow: var(--ty-shadow-xl); }
.btn-primary:hover { background: var(--ty-accent-dark); box-shadow: var(--ty-shadow-xl); }

.btn-dark { background: var(--ty-primary); color: var(--ty-bg); box-shadow: var(--ty-shadow-xl); }
.dark .btn-dark { background: #fff; color: #14191b; }
.btn-dark:hover { box-shadow: var(--ty-shadow-xl); opacity: .92; }

.btn-outline { background: transparent; color: var(--ty-text); border-color: var(--ty-line); }
.btn-outline:hover { border-color: var(--ty-primary); background: transparent; }
.section--ink .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }

.btn-ghost-light { background: #fff; color: #14191b; box-shadow: var(--ty-shadow-xl); }
.btn-ghost-light:hover { box-shadow: var(--ty-shadow-xl); }

.btn-sm { padding: .6rem 1.2rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.12rem; }

/* ---- Cards (flat, radius 0) ---- */
.ty-card {
  background: var(--ty-bg);
  border: 1px solid var(--ty-line);
  box-shadow: var(--ty-shadow-card);
  padding: 1.75rem;
}
.dark .ty-card { background: var(--ty-surface-2); }
.ty-card--surface { background: var(--ty-surface-2); border-color: transparent; box-shadow: none; }
.dark .ty-card--surface { background: var(--ty-surface); }

/* highlight bar behind a phrase (mailchimp-style) */
.ty-highlight { background: var(--ty-accent); color: var(--ty-accent-ink); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* eyebrow / kicker */
.ty-kicker { font-family:'Roboto Condensed',sans-serif; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .78rem; color: var(--ty-accent-dark); }

/* ============== NAVBAR ============== */
.ty-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ty-line);
  transition: box-shadow .3s ease;
}
.dark .ty-nav { background: var(--ty-bg); }
.ty-nav.is-solid { box-shadow: 0 6px 22px -12px rgba(20,28,32,.28); }
.ty-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.ty-nav-logo { height: 3.1rem; width: auto; display: block; }
.ty-nav-links { display: none; gap: 1.6rem; align-items: center; }
@media (min-width: 900px){ .ty-nav-links { display: flex; } }

/* --- Module mega-dropdown (hover) --- */
.ty-nav-item { position: relative; display: flex; align-items: center; }
/* full-height hover target so there is no dead zone between link and dropdown */
.ty-nav-item > .ty-nav-link { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; padding: 1.65rem 0; }
.ty-nav-dd {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  margin-top: 0; width: 560px; max-width: 86vw;
  background: var(--ty-bg); border: 1px solid var(--ty-line); box-shadow: var(--ty-shadow-xl);
  padding: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 60;
}
/* invisible bridge across the visual gap so hover stays continuous */
.ty-nav-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.ty-nav-item:hover .ty-nav-dd, .ty-nav-item:focus-within .ty-nav-dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ty-dd-item { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; text-decoration: none; transition: background .12s; }
.ty-dd-item:hover { background: var(--ty-surface-2); }
.dark .ty-dd-item:hover { background: var(--ty-surface); }
.ty-dd-item svg { width: 22px; height: 22px; color: var(--ty-accent-dark); flex-shrink: 0; margin-top: 2px; }
.ty-dd-item b { display: block; color: var(--ty-text); font-weight: 700; font-size: .95rem; }
.ty-dd-item span { display: block; color: var(--ty-muted); font-size: .82rem; line-height: 1.35; }
.ty-dd-badge { display: inline-block !important; margin-top: .4rem; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--ty-accent); color: var(--ty-accent-ink); padding: .2rem .5rem; }
.ty-nav-link { font-weight: 600; font-size: .98rem; color: var(--ty-text); text-decoration: none; opacity: .82; transition: opacity .15s, color .15s; }
.ty-nav-link:hover, .ty-nav-link.active { opacity: 1; color: var(--ty-accent-dark); }
.ty-nav-right { display: flex; align-items: center; gap: .6rem; }
.ty-lang { background: transparent; border: 0; font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--ty-muted); cursor: pointer; padding: .5rem .55rem; }
.ty-lang:hover { color: var(--ty-text); }
.ty-nav .btn-outline, .ty-nav .btn-primary { padding: .6rem 1.25rem; font-size: .92rem; }
.ty-hide-mobile { display: none; }
@media (min-width: 900px){ .ty-hide-mobile { display: inline-flex; } }

.ty-burger { display: inline-flex; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: .6rem; cursor: pointer; }
@media (min-width: 900px){ .ty-burger { display: none; } }
.ty-burger span { display: block; width: 22px; height: 2px; background: var(--ty-text); transition: transform .2s, opacity .2s; }

.ty-mobile { display: none; padding: .5rem 0 1rem; border-top: 1px solid var(--ty-line); }
.ty-mobile.open { display: block; }
.ty-mobile a { display: block; padding: .7rem .25rem; font-weight: 600; color: var(--ty-text); text-decoration: none; }
.ty-mobile .btn { display: flex; justify-content: center; margin-top: .5rem; }

/* ============== HERO ============== */
.ty-hero { padding-top: 8rem; padding-bottom: 4rem; background: linear-gradient(180deg, var(--ty-surface-2), var(--ty-bg)); overflow: hidden; }
.dark .ty-hero { background: linear-gradient(180deg, var(--ty-surface), var(--ty-bg)); }
@media (min-width: 768px){ .ty-hero { padding-top: 9.5rem; padding-bottom: 5rem; } }
@media (min-width: 900px){ .ty-sub-grid { grid-template-columns: 1fr 1fr; } }
.ty-h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.02; }
.ty-lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--ty-muted); line-height: 1.55; }

/* hero with full-bleed photo background slideshow (mailchimp-style) */
.ty-hero--photo { position: relative; z-index: 2; background: var(--ty-ink-section); box-shadow: var(--ty-shadow-xl); }

/* contact page: Chris circle + speech bubble */
.ty-chris { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: var(--ty-shadow-xl); border: 3px solid #fff; }
.dark .ty-chris { border-color: var(--ty-surface-2); }
.ty-bubble { position: relative; background: var(--ty-accent); color: var(--ty-accent-ink); padding: 1.1rem 1.4rem; max-width: 22rem; box-shadow: var(--ty-shadow-xl); }
.ty-bubble:before { content: ""; position: absolute; left: -14px; top: 28px; border: 8px solid transparent; border-right-color: var(--ty-accent); }
@media (max-width: 620px){ .ty-bubble:before { left: 28px; top: -14px; border: 8px solid transparent; border-bottom-color: var(--ty-accent); } }
.ty-bubble b { display: block; font-family: 'Roboto Slab', serif; font-size: 1.1rem; }
.ty-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.ty-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; }
.ty-hero-bg img.is-active { opacity: 1; }
.ty-hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,17,19,.78) 0%, rgba(13,17,19,.66) 42%, rgba(13,17,19,.86) 100%); }
.ty-hero--photo .ty-container { position: relative; z-index: 2; }
.ty-hero--photo .ty-h1,
.ty-hero--photo .ty-kicker { color: #fff; }
.ty-hero--photo .ty-lead { color: rgba(255,255,255,.9); }
.ty-hero--photo .ty-trust { color: #fff; }
.ty-hero--photo .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.ty-hero--photo .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.ty-hero--photo .ty-muted { color: rgba(255,255,255,.72); }

/* underlined module links inside the hero copy (mailchimp underline) */
.ty-ul { color: inherit; text-decoration: none; font-weight: 600; background-image: linear-gradient(var(--ty-accent), var(--ty-accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .14em; padding-bottom: .02em; transition: background-size .18s ease, color .18s ease; }
.ty-ul:hover { background-size: 100% 100%; color: var(--ty-accent-ink); }

/* ============== APPLE-STYLE SLIDER ============== */
.ty-slider { position: relative; max-width: 1080px; margin: 0 auto; }
.ty-slider-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ty-surface); box-shadow: var(--ty-shadow-xl); }
.ty-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 4.5s ease; pointer-events: none; }
.ty-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ty-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.ty-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 30px; border: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); box-shadow: var(--ty-shadow-xl); display: none; align-items: center; justify-content: center; cursor: pointer; color: #14191b; }
@media (min-width: 760px){ .ty-slider-btn { display: flex; } }
.ty-slider-btn:hover { background: #fff; }
.ty-slider-btn.prev { left: 16px; } .ty-slider-btn.next { right: 16px; }
.ty-slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 4; display: flex; gap: .5rem; justify-content: center; }
.ty-slider-dot { width: 9px; height: 9px; border-radius: 30px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.ty-slider-dot.active { width: 26px; background: #fff; }

/* hero device mockup */
.ty-mock { background:#fff; border:1px solid var(--ty-line); box-shadow: var(--ty-shadow-xl); overflow:hidden; }
.dark .ty-mock { background: var(--ty-surface-2); }
.ty-mock-bar { display:flex; gap:6px; padding:12px 14px; background: var(--ty-surface-2); border-bottom:1px solid var(--ty-line); }
.dark .ty-mock-bar { background: var(--ty-surface); }
.ty-mock-bar i { width:11px; height:11px; border-radius:50%; display:block; background:var(--ty-line); }

/* trust logos / stat row */
.ty-trust { display:flex; flex-wrap:wrap; gap:1.2rem 2.4rem; align-items:center; justify-content:center; opacity:.85; }

/* ============== FEATURE / MODULE CAROUSEL ============== */
.ty-carousel-wrap { position: relative; }
.ty-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.25rem; -ms-overflow-style: none; scrollbar-width: none; }
.ty-track::-webkit-scrollbar { display: none; }
.ty-mod-card {
  scroll-snap-align: start; flex: 0 0 300px; min-height: 360px;
  display: flex; flex-direction: column;
  background: var(--ty-primary); color: #fff;
  padding: 1.9rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--ty-shadow-card);
}
.dark .ty-mod-card { background: #232a2d; }
.ty-mod-card:nth-child(even){ background: #2b3033; }
.ty-mod-card:hover { transform: translateY(-4px); }
.ty-mod-ico { width: 56px; height: 56px; margin-bottom: 1.1rem; color: var(--ty-accent); }
.ty-mod-card h3 { color:#fff; font-size: 1.4rem; font-weight: 800; line-height: 1.15; margin-bottom: .6rem; }
.ty-mod-card p { color: rgba(255,255,255,.78); font-size: .98rem; line-height: 1.55; flex: 1; }
.ty-mod-more { display:inline-flex; align-items:center; gap:.45rem; margin-top:1.4rem; font-weight:700; color: var(--ty-accent); }
.ty-cbtn { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:44px; height:44px; border-radius:30px; background:var(--ty-bg); border:1px solid var(--ty-line); box-shadow:var(--ty-shadow-xl); display:none; align-items:center; justify-content:center; cursor:pointer; color:var(--ty-text); }
@media (min-width: 900px){ .ty-cbtn { display:flex; } }
.ty-cbtn.prev { left:-18px; } .ty-cbtn.next { right:-18px; }
.ty-dots { display:flex; gap:.5rem; justify-content:center; margin-top:.5rem; }
.ty-dot { width:8px; height:8px; border-radius:30px; background:var(--ty-line); border:0; cursor:pointer; padding:0; }
.ty-dot.active { background: var(--ty-accent-dark); width:22px; }

/* ============== GENERIC GRID FEATURE CARDS ============== */
.ty-grid { display:grid; gap:1.1rem; }
.ty-grid-2 { grid-template-columns: 1fr; }
.ty-grid-3 { grid-template-columns: 1fr; }
.ty-grid-4 { grid-template-columns: repeat(2,1fr); }
@media (min-width: 640px){ .ty-grid-2 { grid-template-columns: repeat(2,1fr); } .ty-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .ty-grid-3 { grid-template-columns: repeat(3,1fr); } .ty-grid-4 { grid-template-columns: repeat(4,1fr); } }
.ty-ico { width:44px; height:44px; color: var(--ty-accent-dark); margin-bottom:.9rem; }
.ty-feat h3 { font-size:1.18rem; font-weight:700; margin-bottom:.4rem; }
.ty-feat p { color: var(--ty-muted); font-size:.98rem; line-height:1.55; }

/* badge pills (trust strip) */
.ty-pill { display:flex; align-items:center; gap:.6rem; justify-content:center; padding:1rem; background: rgba(19,207,192,.10); border:1px solid rgba(19,207,192,.30); font-weight:700; color: var(--ty-accent-ink); text-align:center; }
.dark .ty-pill { color: var(--ty-accent); background: rgba(19,207,192,.08); }

/* team */
.ty-team-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:1.5rem; }
@media (min-width: 640px){ .ty-team-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px){ .ty-team-grid { grid-template-columns: repeat(4,1fr); } }
.ty-team-card { text-align:center; }
.ty-team-card img { width:120px; height:120px; object-fit:cover; border-radius:50%; margin:0 auto .75rem; display:block; }

/* ============== FOOTER ============== */
.ty-footer { background: var(--ty-ink-section); color: rgba(255,255,255,.62); padding: 4rem 0 2.5rem; }
.ty-footer h4 { color:#fff; font-family:'Roboto Condensed',sans-serif; text-transform:uppercase; letter-spacing:.12em; font-size:.8rem; margin-bottom:1rem; }
.ty-footer a { color: rgba(255,255,255,.62); text-decoration:none; transition: color .15s; }
.ty-footer a:hover { color:#fff; }
.ty-footer-grid { display:grid; grid-template-columns: 1fr; gap:2.5rem; }
@media (min-width: 768px){ .ty-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ty-footer-cols { display:grid; grid-template-columns: 1fr 1fr; gap:2rem; }
.ty-footer li { margin-bottom:.6rem; font-size:.95rem; }
.ty-footer-bottom { margin-top:3rem; padding-top:2rem; border-top:1px solid rgba(255,255,255,.12); text-align:center; font-size:.9rem; }

/* ============== UTIL ============== */
.fade-in { opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .fade-in { opacity:1; transform:none; transition:none; } .btn:hover{ transform:none; } html{ scroll-behavior:auto; } }
.logo-light { display:block; } .logo-dark { display:none; }
.dark .logo-light { display:none; } .dark .logo-dark { display:block; }
.ty-legal h2 { margin-top:2rem; } .ty-legal a.ty-accent-text { text-decoration:underline; }
.text-center { text-align:center; }
.mx-auto { margin-left:auto; margin-right:auto; }
.maxw-2xl { max-width: 42rem; } .maxw-3xl { max-width: 50rem; } .maxw-xl { max-width: 36rem; }
