/* ============================================================
   Skim Sinj — shared stylesheet
   HR default · EN behind a topbar toggle · modern minimal
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,500&f[]=general-sans@400,500,600&display=swap');

:root {
  --bg:           #FAFAF7;
  --bg-elev:      #FFFFFF;
  --ink:          #0F0F0F;
  --ink-soft:     #3A3A3A;
  --ink-muted:    #6B6B6B;
  --rule:         #E5E5E0;
  --accent:       #E63946;
  --accent-ink:   #FFFFFF;

  --max:          1180px;
  --pad:          clamp(20px, 4vw, 40px);

  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body:    'General Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}
a:hover { color: var(--accent); }

/* ============================================================
   Language toggle — only one language visible at a time
   ============================================================ */

html[data-lang="hr"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-hr { display: none !important; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-elev);
  gap: 2px;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all 120ms ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.topbar nav a { text-decoration: none; color: var(--ink-soft); }
.topbar nav a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .topbar nav { gap: 12px; font-size: 13px; }
  .topbar nav a.hide-sm { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(36px, 6vw, 72px);
  position: relative;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  max-width: 720px;
}
.hero .lede p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all 150ms ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover { background: #C72E3A; border-color: #C72E3A; color: var(--accent-ink); }

/* ============================================================
   Carousel preview
   ============================================================ */

.preview {
  padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 8vw, 96px);
}
.preview-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.preview-label .small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.card {
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.card .role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.card .copy {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(13px, 1.3vw, 18px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card.hook { background: var(--accent); border-color: var(--accent); }
.card.hook .num,
.card.hook .role,
.card.hook .copy { color: var(--accent-ink); }
.card.outro { background: var(--ink); border-color: var(--ink); }
.card.outro .num,
.card.outro .role,
.card.outro .copy { color: var(--bg); }
@media (max-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.hook { grid-column: 1 / -1; aspect-ratio: 16/9; }
}

/* ============================================================
   Sections
   ============================================================ */

section.block {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
}
.block-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(28px, 4vw, 48px);
  align-items: baseline;
}
.block-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.block-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
@media (max-width: 640px) {
  .block-head { grid-template-columns: 1fr; gap: 8px; }
}

.body-prose { max-width: 760px; }
.body-prose p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
}
.body-prose p:last-child { margin-bottom: 0; }

/* ============================================================
   How-it-works steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.step {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 20px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}
.step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
}
.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   App screenshots — operator review flow (thumbnails + lightbox)
   ============================================================ */

.app-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 180px));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 16px;
  justify-content: start;
}
.app-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-shot .shot-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shot-thumb {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  border-radius: 14px;
  transition: transform 200ms ease;
}
.shot-thumb:hover { transform: translateY(-2px); }
.shot-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.shot-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px -6px rgba(15, 15, 15, 0.14);
  transition: box-shadow 200ms ease;
  background: #fff;
}
.shot-thumb:hover img {
  box-shadow: 0 16px 32px -6px rgba(15, 15, 15, 0.22);
}
.app-shot .shot-caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.app-shot .shot-caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
@media (max-width: 960px) {
  .app-shots { grid-template-columns: repeat(3, minmax(0, 160px)); }
}
@media (max-width: 640px) {
  .app-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    margin-left: 0;
    margin-right: auto;
  }
}

/* ============================================================
   Lightbox — opens on thumbnail click
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
  cursor: zoom-out;
  animation: lightbox-fade 180ms ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
  font-family: var(--font-body);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ============================================================
   Operator / About card
   ============================================================ */

.operator {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-elev);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
}
.operator dl { margin: 0; }
.operator dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.operator dd {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
}
.operator dd:last-child { margin-bottom: 0; }
.operator dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .operator { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */

footer.foot {
  border-top: 1px solid var(--rule);
  padding: 48px 0 64px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 13px;
}
footer.foot .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
footer.foot .legal a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-right: 18px;
}
footer.foot .legal a:hover { color: var(--accent); }
footer.foot .credit {
  text-align: right;
}
footer.foot .credit strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
@media (max-width: 640px) {
  footer.foot .wrap { grid-template-columns: 1fr; }
  footer.foot .credit { text-align: left; }
}

/* ============================================================
   Legal pages (Privacy / Terms / Data Deletion)
   ============================================================ */

.legal-page {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px);
}
.legal-page .legal-head {
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.legal-page .meta {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.legal-section {
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--rule);
}
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section .legal-head-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: baseline;
}
.legal-section .legal-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
}
.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.legal-section .body-prose p { font-size: 15px; }
@media (max-width: 640px) {
  .legal-section .legal-head-row { grid-template-columns: 1fr; gap: 4px; }
}

/* utility */
.muted { color: var(--ink-muted); }
.mono  { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }
