/* =========================================================================
   pages.css — page-specific layouts
   ========================================================================= */

/* ----- service page ---------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--s-5);
}
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-6);
  position: relative; overflow: hidden;
  transition: transform var(--d-3) var(--ease-out),
              box-shadow var(--d-3) var(--ease-out),
              border-color var(--d-3) var(--ease-out);
}
.svc-card::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at 100% 0%, var(--tint-blue) 0%, transparent 70%);
  transition: opacity var(--d-3) var(--ease-out);
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
  border-color: var(--accent);
}
.svc-card .icon-bubble { margin-bottom: var(--s-4); }
.svc-card h3 { font-family: var(--font-display); font-size: var(--fs-600); margin-bottom: var(--s-2); }
.svc-card p { font-size: var(--fs-200); color: var(--ink-3); margin-bottom: var(--s-4); }
.svc-card ul { display: grid; gap: 0.4rem; }
.svc-card li { font-size: var(--fs-200); color: var(--ink-2); padding-left: 1.2rem; position: relative; }
.svc-card li::before {
  content: "→"; color: var(--accent); position: absolute; left: 0; font-weight: 700;
}

/* ----- mobile-app feature --------------------------------------------- */
.app-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center;
}
@media (max-width: 900px) { .app-feature { grid-template-columns: 1fr; } }
.app-feature .device-mock {
  position: relative; aspect-ratio: 9/16; max-width: 380px; margin: 0 auto;
  background: linear-gradient(160deg, #1A1B22, #0B0B10);
  border-radius: 38px; border: 8px solid #0B0B10;
  box-shadow: var(--shadow-4), inset 0 0 0 1px rgba(255,255,255,0.06);
  padding: 16px;
  overflow: hidden;
}
.app-feature .device-screen {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
  border-radius: 28px; height: 100%; position: relative;
  display: flex; flex-direction: column;
}
.app-feature .device-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #0B0B10; border-radius: 0 0 14px 14px;
}
.app-feature .device-status {
  display: flex; justify-content: space-between; padding: 12px 18px 4px;
  font-size: 0.7rem; font-weight: 600; color: var(--ink);
}
.app-feature .device-content { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.app-feature .device-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-2); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
}
.app-feature .device-card .dot { width: 8px; height: 8px; border-radius: 50%; }
.app-feature .device-card .dot.green { background: var(--success); }
.app-feature .device-card .dot.blue { background: var(--accent); }
.app-feature .device-card .dot.gold { background: var(--gold); }

/* ----- about / culture ------------------------------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--paper-2);
  border-radius: var(--r-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  transition: transform var(--d-3) var(--ease-out), border-color var(--d-3) var(--ease-out);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.value-card h3 { font-family: var(--font-display); font-size: var(--fs-500); margin-block: var(--s-3) var(--s-2); }
.value-card p { color: var(--ink-3); font-size: var(--fs-200); }
.value-num { font-family: var(--font-display); font-size: var(--fs-800); color: var(--accent); line-height: 1; }

.team-strip {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-5); margin-top: var(--s-7);
}
@media (max-width: 880px) { .team-strip { grid-template-columns: 1fr; } }
.team-card {
  background: var(--paper-2); border-radius: var(--r-4);
  border: 1px solid var(--line); padding: var(--s-5);
  display: flex; gap: var(--s-4); align-items: center;
}
.team-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; flex-shrink: 0;
}
.team-card h4 { font-family: var(--font-sans); font-size: var(--fs-300); }
.team-card span { color: var(--ink-3); font-size: var(--fs-200); }

/* ----- news list ------------------------------------------------------ */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-4); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.news-card .media { aspect-ratio: 16/10; border-radius: 0; }
.news-card .body { padding: var(--s-5); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.news-card h3 { font-family: var(--font-display); font-size: var(--fs-500); line-height: 1.25; }
.news-card .meta { font-size: var(--fs-100); color: var(--ink-3); text-transform: uppercase; letter-spacing: var(--tracking-wide); display: flex; gap: 0.6rem; }
.news-card .meta .dot { color: var(--line-2); }
.news-card p { color: var(--ink-3); font-size: var(--fs-200); }
.news-card .read-more { margin-top: auto; }

/* ----- contact -------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-9);
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-family: var(--font-display); margin-bottom: var(--s-4); }
.contact-info ul { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.contact-info li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info .icon-bubble { width: 44px; height: 44px; flex-shrink: 0; }
.contact-info .icon-bubble svg { width: 22px; height: 22px; }
.contact-info .label { font-size: var(--fs-100); color: var(--ink-3); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.contact-info .value { color: var(--ink); font-weight: 500; }
.contact-info a.value:hover { color: var(--accent); }

.map-placeholder {
  background: linear-gradient(135deg, var(--tint-blue), var(--paper-3));
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.map-placeholder .pin { position: relative; }
.map-placeholder .pin svg { width: 56px; height: 56px; color: var(--accent); filter: drop-shadow(0 8px 14px rgba(28,105,212,0.4)); }
.map-placeholder .ripple {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 24px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(28,105,212,0.4) 0%, transparent 70%);
  animation: pulse 2s infinite;
}
.map-placeholder .label {
  position: absolute; bottom: 12px; left: 14px;
  background: var(--ink); color: var(--paper);
  padding: 0.4rem 0.8rem; border-radius: var(--r-2);
  font-size: var(--fs-200); font-weight: 500;
}

/* ----- legal pages ---------------------------------------------------- */
.legal-page { max-width: 920px; margin: 0 auto; padding: var(--s-9) var(--gutter) var(--s-12); }
.legal-header { margin-bottom: var(--s-7); }
.legal-meta { font-size: var(--fs-100); color: var(--ink-3); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.legal-header h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-block: var(--s-3) var(--s-4); }
.legal-toc {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: var(--s-5);
  margin-bottom: var(--s-8);
}
.legal-toc h2 { font-size: var(--fs-500); margin-bottom: var(--s-3); }
.legal-toc ol { list-style: decimal inside; columns: 2; column-gap: var(--s-6); }
.legal-toc li { padding: 0.25rem 0; color: var(--ink-2); font-size: var(--fs-200); }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--accent); }
.legal-page h2 { font-family: var(--font-display); font-size: var(--fs-700); margin-block: var(--s-8) var(--s-4); scroll-margin-top: calc(var(--header-h) + 16px); border-top: 1px solid var(--line); padding-top: var(--s-7); }
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-page h3 { font-family: var(--font-sans); font-size: var(--fs-500); margin-block: var(--s-5) var(--s-3); color: var(--ink); }
.legal-page h4 { font-family: var(--font-sans); font-size: var(--fs-400); margin-block: var(--s-4) var(--s-2); }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: var(--fs-300); }
.legal-page p { margin-bottom: var(--s-3); }
.legal-page ul, .legal-page ol { padding-left: 1.4rem; margin-bottom: var(--s-4); }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: 0.3rem; }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--accent-3); }
.legal-table { width: 100%; border-collapse: collapse; margin-block: var(--s-3); font-size: var(--fs-200); }
.legal-table th, .legal-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--paper-3); font-weight: 600; }
.legal-back-to-top { display: inline-block; margin-top: var(--s-3); font-size: var(--fs-100); color: var(--ink-3); }
.legal-back-to-top:hover { color: var(--accent); }
.legal-clause { margin-bottom: var(--s-3); }

@media print {
  .site-header, .site-footer, .legal-toc, .legal-back-to-top, .skip-link, .cookie-banner, .no-print { display: none !important; }
  .legal-page { max-width: 100%; padding: 0; }
  .legal-page h2 { break-before: page; }
  body { font-size: 11pt; line-height: 1.4; color: #000; background: #fff; }
  .legal-page p, .legal-page li { color: #000; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ----- 404 ------------------------------------------------------------ */
.error-404 {
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--s-10) var(--gutter);
  background: var(--paper);
}
.error-404 .mascot { width: 240px; margin-bottom: var(--s-5); }

/* ----- JSON-LD inline (hidden) ---------------------------------------- */
.jsonld-hidden { display: none; }
