/* visualize.sk: a white sheet on concrete, ink, and the logo's amber for the one press.
   One family (Geologica, served from here: the site calls nobody else). */

@font-face {
  font-family: Geologica;
  src: url(geologica-latin-ext.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geologica;
  src: url(geologica-latin.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sheet: #ffffff;
  --ground: #eef0f1;
  --ink: #1a1b1e;
  --soft: #5f646b;
  --line: #d3d7da;
  --field: #9ba1a8;
  --amber: #ffb627;
  --amber-ink: #7a5200;
  --dusk: #1b2a3a;
  --dusk-soft: #a9b6c4;
  --blue: #2463c9;
  --red: #b3261e;
  --green: #1f7a4d;
  --gutter: clamp(18px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 400 16px/1.55 Geologica, system-ui, sans-serif;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
  padding: 0;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.soft {
  color: var(--soft);
}

.small {
  font-size: 0.875rem;
}

.link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn.press {
  background: var(--amber);
  border-color: var(--amber);
}

.btn.compact {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.btn.light {
  border-color: #fff;
  color: #fff;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

/* Hlavička: značka a jediné tlačidlo stránky, vždy po ruke */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 30px;
}

/* Úvod: pár slov a pod nimi film ukážkového domu, čo najväčší a celý */

.hero {
  padding: clamp(22px, 3.2vw, 44px) var(--gutter) clamp(36px, 5vw, 64px);
}

/* the whole film on the first screen: the block is as wide as the height left allows */
.hero-in {
  width: min(100%, 1440px, calc((100svh - 330px) * 16 / 9));
  min-width: min(100%, 720px);
  margin: 0 auto;
}

.hero-words {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 19ch;
}

.hero .lede {
  font-weight: 300;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  max-width: 24ch;
}

.hero video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--ground);
}

.over {
  position: relative;
}

.sheet-bg {
  background: var(--sheet);
}

/* Pásy */

.band {
  padding: clamp(52px, 8vw, 96px) 0;
}

.band h2 {
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.band h3 {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}

.on-ground {
  background: var(--ground);
}

.dusk {
  background: var(--dusk);
  color: #fff;
}

.dusk .soft {
  color: var(--dusk-soft);
}

/* Čo dostanete: jeden veľký obrázok, vedľa neho ostatné; ten istý pohľad ako 3D model, cez deň a večer */

.viewer {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
}

.pic {
  width: 100%;
  border-radius: 6px;
  background: #0f1822;
  object-fit: cover;
}

.stage {
  position: relative;
}

.stage .pic {
  aspect-ratio: 3 / 2;
  height: 100%;
  transition: opacity 0.25s ease;
}

.stage .pic.swap {
  opacity: 0;
}

.seg {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: rgba(15, 24, 34, 0.72);
  backdrop-filter: blur(6px);
}

.seg button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #fff;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
}

.thumbs button {
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s ease;
}

.thumbs button:hover,
.thumbs button[aria-pressed="true"] {
  opacity: 1;
}

.thumbs button[aria-pressed="true"] {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.thumbs .pic {
  height: 100%;
  aspect-ratio: 3 / 2;
}

.also {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.also li {
  padding: 16px 18px 0 0;
}

.also li + li {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.also p {
  color: var(--dusk-soft);
  font-size: 0.95rem;
  margin-top: 2px;
}

.also a {
  color: #fff;
  text-underline-offset: 4px;
}

.after {
  margin-top: 26px;
}

/* Ako to funguje: kótovacia čiara */

.chain {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  margin-top: 46px;
}

.chain li {
  position: relative;
  padding: 18px 20px 0 0;
}

.chain li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -10px;
  width: 1.5px;
  height: 19px;
  background: var(--ink);
  transform: rotate(45deg);
}

.chain .dur {
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--soft);
  white-space: nowrap;
}

.chain p {
  color: var(--soft);
  margin-top: 5px;
  font-size: 0.95rem;
}

/* Cena */

.price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px clamp(32px, 7vw, 96px);
  align-items: start;
}

.figure {
  font-weight: 600;
  font-size: clamp(4.4rem, 11vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.figure small {
  font-size: 0.42em;
  letter-spacing: -0.02em;
}

.ticks {
  list-style: none;
}

.ticks li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 7px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.less {
  margin-top: 22px;
  max-width: 34rem;
}

.less div {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.less dt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.promise {
  max-width: 34rem;
  margin: 18px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
  font-weight: 600;
}

.price .small {
  max-width: 34rem;
}

/* Čo poslať: hárky, ktoré vieme čítať, a tie, ktoré zatiaľ nie */

.files {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 18px clamp(18px, 3vw, 36px);
}

.docs {
  list-style: none;
  display: flex;
  gap: 12px;
}

.doc {
  position: relative;
  width: clamp(64px, 8vw, 92px);
}

.doc svg {
  width: 100%;
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.doc b {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: -0.01em;
}

.doc.not svg {
  fill: none;
  stroke: var(--field);
  stroke-dasharray: 5 5;
}

.doc.not b {
  color: var(--soft);
  font-weight: 400;
}

.files-say {
  max-width: 24ch;
}

.band h2.second {
  margin-top: clamp(52px, 8vw, 96px);
}

/* Na rovinu: tri čísla, ktoré platia, a pod nimi štyri vety */

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(20px, 4vw, 56px);
}

.facts li {
  border-top: 1.5px solid var(--ink);
  padding-top: 12px;
}

.facts b {
  display: block;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.facts span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
}

.plain {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 44px);
}

.plain li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* Hárok: formulár ako výkres. Hore miesto na výkresy, dole pečiatka s cenou a tlačidlom. */

.sheet {
  width: min(560px, 100vw);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  box-shadow: -24px 0 60px rgba(27, 42, 58, 0.28);
}

.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.28s ease-out;
}

.sheet::backdrop {
  background: rgba(27, 42, 58, 0.55);
}

@keyframes sheet-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 30px) 6px;
}

.sheet-top h2 {
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.x {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.x:hover {
  background: var(--sheet);
}

.x svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

#plans {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px clamp(18px, 4vw, 30px) 22px;
}

.sheet-body > * + * {
  margin-top: 14px;
}

.sheet-body > .offs {
  margin-top: 20px;
}

.sheet-body a {
  color: var(--blue);
}

/* where the drawings go: a sheet of squared paper */
.drop {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px 24px;
  border: 1.5px dashed var(--field);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(var(--ground) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, var(--ground) 1px, transparent 1px) 0 0 / 22px 100%,
    var(--sheet);
}

.drop:hover,
.drop:focus-within {
  border-color: var(--ink);
}

.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-doc {
  width: 46px;
  margin-bottom: 8px;
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.drop-doc .up {
  fill: none;
  stroke: var(--amber-ink);
}

.drop-say {
  font-size: 1.1rem;
  font-weight: 600;
}

.chosen {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sheet);
  font-size: 0.95rem;
}

.chosen li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
}

.chosen .name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.chosen .bad {
  color: var(--red);
}

/* who sends them: ruled cells, as on a drawing */
.tb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}

.cell {
  display: block;
  min-width: 0;
  padding: 10px 14px 12px;
  background: var(--sheet);
}

.cell.wide {
  grid-column: 1 / -1;
}

.cell:focus-within {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.lab {
  display: block;
  font-size: 0.8rem;
  color: var(--soft);
  margin-bottom: 3px;
}

.cell > input,
.cell > textarea {
  display: block;
  width: 100%;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  resize: none;
}

.offs {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.offs legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--soft);
}

.off {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.off:has(input:checked) {
  border-color: var(--ink);
}

.off input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.off b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.off.agree {
  grid-template-columns: 20px 1fr;
}

/* the title block: the price and the one press, always in sight */
.sheet-bar {
  padding: 14px clamp(18px, 4vw, 30px) 18px;
  border-top: 1.5px solid var(--ink);
  background: var(--sheet);
  display: grid;
  gap: 10px;
}

.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cost .figure {
  font-size: 2.9rem;
  line-height: 1;
  margin-bottom: 4px;
}

.cost .small {
  display: block;
}

.sheet-bar .btn {
  padding: 15px 26px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.say {
  color: var(--red);
  font-size: 0.95rem;
}

.bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--ground);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}

.trap {
  position: absolute;
  left: -9999px;
}

.sent {
  margin: 12px clamp(18px, 4vw, 30px);
  padding: 22px;
  border-radius: 10px;
  background: var(--sheet);
  display: grid;
  gap: 10px;
}

.sent h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dropping {
  position: fixed;
  inset: 12px;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 4px solid var(--amber);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* Právne stránky */

.doc {
  max-width: 44rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.doc h2 {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p {
  margin-top: 0.9rem;
}

.doc ul {
  margin-top: 0.6rem;
  padding-left: 1.3rem;
}

.doc li {
  margin-top: 0.3rem;
}

.doc a {
  color: var(--blue);
}

.doc .intro {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--soft);
}

.doc .clause-no {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
}

.doc blockquote {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--ground);
  border-left: 3px solid var(--ink);
}

.doc blockquote p:first-child {
  margin-top: 0;
}

.doc .summary {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--ground);
  border-radius: 10px;
}

.doc .summary h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Päta */

.site-footer {
  background: var(--sheet);
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  font-size: 0.9rem;
  color: var(--soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-footer p + p {
  margin-top: 0.8rem;
}

.footer-name {
  font-weight: 600;
  color: var(--ink);
}

.footer-contact {
  color: var(--ink);
}

/* Úzke obrazovky */

@media (max-width: 860px) {
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-words {
    padding: 0 var(--gutter);
  }

  .hero video {
    border-radius: 0;
  }

  .price,
  .viewer,
  .plain {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .also {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }

  .also li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .files {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .chain {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1.5px solid var(--ink);
    margin-top: 8px;
  }

  .chain li {
    padding: 0 0 28px 20px;
    display: flex;
    flex-direction: column;
  }

  .chain li::before {
    left: -10px;
    top: 5px;
    width: 19px;
    height: 1.5px;
  }

  .chain .dur {
    position: static;
    order: 3;
    text-align: left;
    margin-top: 7px;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .tb {
    grid-template-columns: 1fr;
  }

  .cost .figure {
    font-size: 2.3rem;
  }

  .sheet-bar .btn {
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sheet[open] {
    animation: none;
  }

  .stage .pic,
  .thumbs button {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }
}
