/* TeleSocks theme: playful consumer brand. System fonts only, no external assets. */
:root {
  --coral: #ff6b6b;
  --peach: #ff9f68;
  --sun: #ffd166;
  --teal: #4ecdc4;
  --violet: #6c8cff;
  --ink: #2d3047;
  --muted: #6b6f85;
  --bg: #fffaf5;
  --card: #ffffff;
  --line: #f0e6dc;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(45, 48, 71, 0.09);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 0.25em 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0.3em 0 0.5em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.grad { background: linear-gradient(120deg, var(--coral), var(--peach) 40%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; margin: 0; padding: 5px 13px; border-radius: 999px; background: #ffe9e3; color: var(--coral); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; }

/* Reveal-on-scroll (site.js adds .js to <html> and .in to elements) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 245, 0.82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s; }
.topbar.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(45, 48, 71, 0.06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { transition: transform 0.4s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); font-weight: 650; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.btn):hover { text-decoration: none; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--coral), var(--peach)); color: #fff !important; font-weight: 750; font-size: 1rem; box-shadow: 0 10px 24px rgba(255, 107, 107, 0.32); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(255, 107, 107, 0.38); text-decoration: none; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--coral); }

/* Hero */
.hero { position: relative; padding: 80px 0 70px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.blob-a { width: 520px; height: 520px; background: #ffd4c4; top: -160px; right: -120px; }
.blob-b { width: 420px; height: 420px; background: #cff4f1; bottom: -200px; left: -140px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 12px; }
.hero-visual { position: relative; }
.photo-frame { border-radius: 42% 58% 54% 46% / 48% 40% 60% 52%; overflow: hidden; box-shadow: 0 30px 60px rgba(45, 48, 71, 0.18); animation: morph 14s ease-in-out infinite alternate, bob 7s ease-in-out infinite; }
.photo-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 28% 50%; transform: scale(1.06); }
@keyframes morph { to { border-radius: 56% 44% 40% 60% / 42% 58% 42% 58%; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 0.92rem; }
.float-card small { display: block; color: var(--muted); font-size: 0.78rem; }
.card-found { left: -26px; bottom: 34px; animation: bob 6s ease-in-out infinite -2s; }
.card-pair { right: -18px; top: 26px; flex-direction: column; gap: 2px; animation: bob 6.5s ease-in-out infinite -4s; }
.dot-live { width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.link-line { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 16px 0; transform: rotate(-1.2deg); margin: 10px -20px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; font-weight: 750; letter-spacing: 0.02em; }
.marquee-track span::after { content: "✦"; color: var(--sun); margin-left: 48px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 90px 24px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 22px 44px rgba(45, 48, 71, 0.13); }
.card h3 { margin: 14px 0 6px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--violet)); box-shadow: 0 10px 20px rgba(108, 140, 255, 0.3); }

/* Split sections with photos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 60px 24px; }
.split.reverse .split-img { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 26px 50px rgba(45, 48, 71, 0.16); }
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-img:hover img { transform: scale(1.05); }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 32px; position: relative; margin: 10px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #dff7f5; color: #1ea69c; font-weight: 900; font-size: 0.8rem; display: grid; place-items: center; }

/* Stats band */
.band { background: linear-gradient(135deg, var(--ink), #3d4166); color: #f3f1ee; padding: 70px 0; margin: 40px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-row strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); background: linear-gradient(120deg, var(--sun), var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-row span { color: #c9cad6; }

/* FAQ */
.faq { padding: 70px 24px; max-width: 780px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 12px 0; transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--coral); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* CTA */
.cta { position: relative; padding: 110px 0; margin-top: 40px; overflow: hidden; color: #fff; text-align: center; }
.cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 107, 107, 0.92), rgba(78, 205, 196, 0.85)), url("/assets/img/cozy.jpg") center / cover; z-index: -1; animation: zoom 24s ease-in-out infinite alternate; }
@keyframes zoom { to { transform: scale(1.12); } }
.cta h2 { margin-top: 0; }
.cta .btn { background: #fff; color: var(--coral) !important; }

/* Inner pages */
.page { padding: 60px 0 80px; }
.about-split { padding-top: 0; }
.photo-wide { border-radius: var(--radius); overflow: hidden; margin: 36px 0; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stats strong { display: block; font-size: 2.4rem; color: var(--coral); }
.stats span { color: var(--muted); font-size: 0.95rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.legal { max-width: 820px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.notfound .big404 { font-size: clamp(6rem, 16vw, 10rem); font-weight: 900; margin: 0; line-height: 1; background: linear-gradient(135deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-3deg) translateY(-6px); } }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 52px 0 26px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; }
.footer-brand { font-weight: 800; font-size: 1.2rem; margin: 0 0 6px; }
.footer-title { font-weight: 750; margin: 0 0 6px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* Cookie banner */
.cookie { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(740px, calc(100% - 32px)); background: var(--ink); color: #f3f1ee; border-radius: var(--radius); padding: 18px 22px; z-index: 50; display: flex; gap: 18px; align-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 30px); } }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 0.92rem; }
.cookie a { color: var(--sun); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie .btn { padding: 9px 16px; font-size: 0.9rem; }
.cookie .btn-ghost { background: transparent; color: #f3f1ee !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); }

@media (max-width: 880px) {
  .hero-grid, .features, .footer-grid, .contact-grid, .stats, .split, .stats-row { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--bg); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.4s var(--ease); }
  body.menu-open .nav { transform: none; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .card-found { left: 0; }
  .card-pair { right: 0; }
  .cookie { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
