/* ===============================
   Evolvia – Design System (lite)
   =============================== */

/* 1) Tokens */
:root{
  --e-green:#7ACB92;
  --e-dark:#344556;
  --e-mid:#8FA2B2;
  --e-bg:#F5F7F6;
  --white:#fff;

  --r-xl:22px; --r-lg:16px; --r-md:12px;
  --sh-sm:0 6px 20px rgba(52,69,86,.12);
  --sh-md:0 14px 40px rgba(52,69,86,.16);

  --maxw:1200px;
  --ff:"Nunito",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
}

/* 2) Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; font-family:var(--ff);
  color:var(--e-dark);
  background:#fff; /* ČISTO ozadje – brez globalnih gradientov, da ni “rezin” */
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
h1,h2,h3,h4,h5{ margin:0; }
.muted{ color:#6a7d8c; }

/* 3) Buttons */
.btn{
  appearance:none; border:0; cursor:pointer; display:inline-block;
  font-weight:700; border-radius:999px; padding:12px 18px; line-height:1;
  transition:all .25s ease; text-decoration:none;
}
.btn-primary{ background:var(--e-green); color:#0f2a1a; box-shadow:var(--sh-sm); }
.btn-primary:hover{ transform:translateY(-1px); box-shadow:var(--sh-md); }
.btn-ghost{ background:transparent; color:var(--e-dark); border:1px solid rgba(52,69,86,.18); }
.btn-ghost:hover{ border-color:rgba(52,69,86,.35); }
.btn-text--short{ display:none; } /* mobilna krajša oznaka */

/* 4) Header + Nav */
.hdr{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.7);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(52,69,86,.06);
}
.nav{
  display:flex; align-items:center; justify-content:space-between; height:72px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-full{ display:block; }
.nav-cta{ display:flex; gap:10px; align-items:center; }

/* 5) Hero (white, z zelo subtilnim svetlobnim flekom znotraj heroja) */
.hero-static{
  background:#fff;
  padding: 72px 0 40px;
}
.hero-static-inner{
  display:grid; gap:28px; align-items:center; grid-template-columns:1fr;
}
@media (min-width:960px){ .hero-static-inner{ grid-template-columns:1.15fr .85fr; gap:40px; } }
.hero-text .eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:999px; font-weight:700;
  background:rgba(122,203,146,.16); color:#145c35; width:max-content; margin-bottom:14px;
}
.hero-text h1{ font-size:clamp(38px,6vw,64px); line-height:1.04; letter-spacing:-.5px; font-weight:700; margin:0 0 10px; }
.sub{ margin:0 0 24px; color:#4c5f6d; font-size:clamp(16px,1.5vw,19px); }
.cta-row{ display:flex; gap:10px; flex-wrap:wrap; }

.hero-art{ display:grid; place-items:center; }
/*.tile{
  width:min(440px, 88vw); aspect-ratio:1/1; border-radius:28px;
  background: radial-gradient(1200px 500px at 75% -10%, rgba(122,203,146,.12), transparent 60%), #fff;
  border:1px solid rgba(52,69,86,.08);
  box-shadow: var(--sh-sm);
  display:grid; place-items:center;
}*/
.tile-logo{ width:100%; height:auto; display:block; filter:drop-shadow(0 6px 14px rgba(0,0,0,.06)); }
@media (max-width:980px){ .tile{margin:0 auto} .tile-logo{width:100%} }

.hero-highlight{ outline:2px solid rgba(122,203,146,.4); }

/* 6) Features (white) */
.section{ padding:56px 42px; background:#fff; }
.features{ padding:0; }
.grid-4{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
@media (min-width:980px){ .grid-4{ grid-template-columns:repeat(4,1fr); } }
.feature{
  background:var(--white); border:1px solid rgba(52,69,86,.08);
  border-radius:var(--r-lg); padding:18px; box-shadow:var(--sh-sm);
}
.feature.highlight{ outline:2px solid rgba(122,203,146,.4); }

.feature h4{ margin:8px 0 6px; font-size:18px; }
.feature p{ margin:0; color:#5a6b78; font-size:15px; }

/* 7) DOMe (accent full-width) */
.section-dome{ background:var(--e-bg); }
.section-head{ margin-bottom:0; }
.section-head h3{
  font-size:30px; letter-spacing:-.2px; line-height:1.2; margin:0 0 12px;
}
.section-head p{
  margin:0 auto 28px; margin-left: 0px; max-width:720px; font-size:17px; line-height:1.55; color:#4c5f6d;
}
.dome-grid{
  display:grid; gap:16px; grid-template-columns:1fr 1fr;
}
@media (min-width:900px){ .dome-grid{ grid-template-columns:repeat(1,1fr); } }
.dome-card{
  background:var(--white);
  border:1px solid rgba(52,69,86,.08);
  border-radius:var(--r-lg); padding:16px; box-shadow:var(--sh-sm);
}
.dome-card h5{ margin:0 0 6px; font-size:16px; }


.card-icon{
  width: 28px;
  height: auto;
}

/* 8) Strip CTA (ostane znotraj wrapa) */
.strip{
  margin:28px 0 0; border-radius:var(--r-xl);
  background:linear-gradient(135deg, rgba(122,203,146,.18), rgba(143,162,178,.15));
  padding:16px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:12px; border:1px solid rgba(52,69,86,.08);
}
.strip span{ color:#325a43; font-weight:700; }

/* 9) Cards / Modeli (white) */
.cards{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:820px){ .cards{ grid-template-columns:repeat(2,2fr); } }
.card{
  background:var(--white); border:1px solid rgba(52,69,86,.08);
  border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-sm);
  display:flex; flex-direction:column;
}
.card .img{ aspect-ratio:16/10; background:linear-gradient(135deg, #dfe9e5, #f5f7f6); }
.card .body{ padding:16px; }
.chip{
  display:inline-block; font-size:12px; font-weight:700;
  background:rgba(122,203,146,.15); color:#145c35; padding:6px 10px; border-radius:999px;
}

.dome-head{ color:#325a43; font-weight:700; }


/* 10) Pricing (accent full-width) */
.section-pricing{ background:var(--e-bg); }
.pricing{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:900px){ .pricing{ grid-template-columns:repeat(4,1fr); } }
.price-card{
  background:var(--white); border:1px solid rgba(52,69,86,.08);
  border-radius:var(--r-lg); padding:18px; box-shadow:var(--sh-sm);
  display:flex; flex-direction:column; gap:12px;
}
.price-card .price{ font-size:22px; font-weight:800; }
.price-card ul{ margin:0; padding-left:18px; color:#5a6b78; }
.price-card.highlight{ outline:2px solid rgba(122,203,146,.4); }

/* 11) Footer */
.ftr{ margin-top:50px; padding:28px 0 40px; border-top:1px solid rgba(52,69,86,.08); color:#607280; font-size:14px; }

/* 12) Mobile improvements (≤ 600px & ≤ 420px) */
@media (max-width:600px){
  .wrap{ padding-inline:22px; }     /* več zraka ob robovih */
  .section{ padding:44px 0; }       /* malo nižje sekcije */
}

@media (max-width:420px){
  .wrap{ padding-inline:18px; }
  /* header: [logo][praznina][gumbi] – gumbi se ne lomijo */
  .nav{
    display:grid; grid-template-columns:auto 1fr max-content;
    align-items:center; gap:6px; height:64px;
  }
  .nav-cta{ display:flex; gap:6px; justify-self:end; white-space:nowrap; }
  .nav-cta .btn{ padding:8px 10px; font-size:12.5px; line-height:1.2; white-space:nowrap; }
  .btn-text--full{ display:none; }
  .btn-text--short{ display:inline; }

  .cta-row{ flex-direction:column; align-items:stretch; }
  .cta-row .btn{ width:100%; }
  .tile{ width:min(360px, 88vw); }
}

/* skrij vse, dokler guard ne dovoli prikaza */
html.guard-wait body { visibility: hidden; }

/* 13) Forms */
.form{ display:grid; gap:16px; margin-top:20px; }
.form label{ display:flex; flex-direction:column; font-weight:600; font-size:15px; color:#344556; }
.form input, .form textarea, .form select{
  margin-top:6px;
  padding:12px 14px;
  border:1px solid rgba(52,69,86,.18);
  border-radius:var(--r-md);
  font-size:15px;
  font-family:var(--ff);
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus, .form select:focus{
  outline:none;
  border-color:var(--e-green);
  box-shadow:0 0 0 3px rgba(122,203,146,.25);
}
.form textarea{ resize:vertical; min-height:90px; }
.form .checkbox{ flex-direction:row; align-items:center; font-weight:500; }
.form .checkbox input{ margin-right:8px; }

/* DOMe pill badge (neodvisen od .badge) */
.dom-badge{
  display:inline-block !important;
  width: 130px !important;
  padding:4px 10px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:600;
  line-height:1;
  background:#e6f4ea;
  color:#107f3a;
  border:1px solid #cfe8d5;
  margin-top:6px;
  box-shadow:none;
}

:fullscreen .canvas-wrap,
:-webkit-full-screen .canvas-wrap {
  aspect-ratio: auto;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
}

:fullscreen canvas,
:-webkit-full-screen canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

.h-scroll{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:min(85%, 340px);
  gap:16px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.h-scroll > .card{ scroll-snap-align:start; }
.h-scroll::-webkit-scrollbar{ height:8px; }
.h-scroll::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.15); border-radius:8px; }



/* Native fullscreen – uporabimo kar .viewer kot FS element */
.viewer:fullscreen,
.viewer:-webkit-full-screen {
  width: 100vw !important;
  height: 100dvh !important; /* iOS friendly */
  border-radius: 0;
}

.viewer:fullscreen .canvas-wrap,
.viewer:-webkit-full-screen .canvas-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.viewer:fullscreen canvas,
.viewer:-webkit-full-screen canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

/* PSEUDO fullscreen fallback */
body.fs-lock {
  overflow: hidden; /* prepreči scroll v ozadju */
}

.viewer.fs-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important; /* na iOS je dvh/svh zanesljivejši od vh */
  z-index: 9999 !important;
  border-radius: 0 !important;
  background: #fff;
}

.viewer.fs-active .canvas-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.viewer.fs-active canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

/* malo stajlinga gumba v FS (da ne pleše čez rob) */
.viewer:fullscreen .toolbar,
.viewer:-webkit-full-screen .toolbar,
.viewer.fs-active .toolbar {
  left: 12px;
  bottom: 12px;
}

@media (max-width: 480px){
  .viewer:fullscreen .toolbar .kbd,
  .viewer:-webkit-full-screen .toolbar .kbd,
  .viewer.fs-active .toolbar .kbd {
    font-size: 11px;
    padding: 5px 9px;
  }
}

/* --- Feature rows (namesto treh kartic) --- */
.feature-list { display:flex; flex-direction:column; gap:16px; }

.feature-row {
  display:grid; grid-template-columns: 56px 1fr auto; align-items:center;
  gap:16px; background:#fff; padding:16px 18px; border-radius:14px;
  box-shadow: 0 6px 20px rgba(25,43,22,.06);
}

.feature-row.highlight{ outline:2px solid rgba(122,203,146,.4); }

.feature-icon {
  width:56px; height:56px; border-radius:12px; background:linear-gradient(180deg,#eaf5ee,#dbeee3);
  display:flex; align-items:center; justify-content:center; font-weight:700; color:#264b2f;
}

.feature-body h4 { margin:0 0 4px 0; }
.feature-body p  { margin:0 0 8px 0; color:#47544b; }

.feature-meta { display:flex; flex-wrap:wrap; gap:8px; }
.feature-meta .pill {
  font-size:12px; line-height:1; padding:8px 10px; border-radius:999px; background:#f0f5f2; color:#2f4636;
}

.feature-cta { display:flex; gap:10px; }

/* Responsive */
@media (max-width: 900px){
  .feature-row { grid-template-columns: 48px 1fr; align-items:center; }
  .feature-cta { grid-column: 1 / -1; }
}

.ftr-more {
  margin-left: .5rem;
  font-size: .9rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: #444;
  text-decoration: none;
  transition: background .2s ease;
}
.ftr-more:hover {
  background: #e5e5e5;
}

.ftr-line{display:flex;gap:.5rem;align-items:center;justify-content:center;flex-wrap:wrap}
.ftr-line .sep{opacity:.35}
.ftr-link{opacity:.8;text-decoration:none}
.ftr-link:hover{opacity:1;text-decoration:underline}

.ftr-line{display:flex;gap:.75rem;align-items:center;justify-content:center;flex-wrap:wrap}
.ftr-pill{
  padding:.28rem .6rem;border-radius:999px;
  background:#f0f4f2;border:1px solid #e3ece6;
  text-decoration:none;opacity:.9;transition:background .2s,opacity .2s
}
.ftr-pill:hover{background:#e7f0eb;opacity:1}

.ftr a{color:#2f6f47}

