/* ============================================================
   MASHINA STUDIO — Home page components
   Hero grid, spec list, spec table (price sheet), proof cards,
   owner teaser.
   ============================================================ */

/* --- Hero --- */
.hero { padding-block: clamp(64px, 7.5vw, 100px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: start;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero__content h1 {
  font-size: clamp(2.25rem, 3.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-top: var(--sp-4);
  word-break: normal;
  overflow-wrap: normal;
}

.hero__lead {
  max-width: 50ch;
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin-top: var(--sp-6);
}

.hero__side {
  display: flex;
  flex-direction: column;
}

.hero__side .machine-console {
  margin-top: 0;
  max-width: 100%;
  width: 100%;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-top: var(--sp-6);
}

.hero__cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}

/* Enlarged hero CTA buttons */
.btn--hero {
  padding: 16px 32px;
  font-size: 0.9375rem;
  letter-spacing: 0.09em;
  font-weight: 600;
  text-align: center;
}

.btn--hero.btn--signal {
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.22);
}

/* --- Ownership strip: "the tool is completely yours" --- */
.ownership-strip {
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--paper-2);
  padding: var(--sp-8);
}

.ownership-strip h2 { margin-top: var(--sp-3); max-width: 22ch; }

.ownership-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-6);
}

.ownership-strip__grid .label { color: var(--signal); margin-bottom: var(--sp-2); }
.ownership-strip__grid p:not(.label) { margin-top: var(--sp-2); line-height: var(--lh-body); color: var(--ink-2); }

.ownership-strip__note {
  margin-top: var(--sp-10);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-6);
  max-width: 72ch;
  color: var(--ink-2);
}

@media (max-width: 768px) {
  .ownership-strip { padding: var(--sp-6); }
  .ownership-strip__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* --- Proof stats strip (home + proof page) --- */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.proof-stat {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-6);
  border-right: 1px solid var(--line);
}

.proof-stat:last-child { border-right: none; }

.proof-stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--signal);
}

.proof-stat__label {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* --- Spec list (studio specs in hero) --- */
.spec-list {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--size-small);
}

.spec-list li span:first-child {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* --- Spec table (price sheet) --- */
.spec-table {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.spec-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto auto;
  align-items: center;
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}

.spec-row:hover { background: var(--paper-2); }

.spec-row__num {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  color: var(--signal);
  letter-spacing: 0.08em;
}

.spec-row__body h3 { margin-bottom: var(--sp-2); }

.spec-row__body p {
  font-size: var(--size-small);
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: var(--sp-2);
}

.spec-row__body .label { display: block; }

.spec-row__price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

/* "from" chip — prices are starting estimates */
.spec-row__price::before {
  content: "from";
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--metal);
  display: inline-block;
  margin-right: var(--sp-1);
  transform: translateY(-0.35em);
}

html[lang="sl"] .spec-row__price::before,
:lang(sl) .spec-row__price::before {
  content: "od";
}

.spec-row__price--free {
  color: var(--signal);
}

.spec-row__price--free::before {
  display: none;
}


/* --- Proof cards (deliberately varied, not identical) --- */
.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
}

.proof-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-0);
  padding: var(--sp-6);
}

.proof-card:first-child { border-left: 3px solid var(--signal); }

.proof-card h3 { margin-block: var(--sp-2) var(--sp-3); }

.proof-card p { font-size: var(--size-small); color: var(--ink-2); }

.proof-card--link {
  text-decoration: none;
  display: block;
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.proof-card--link:hover {
  background: var(--paper-2);
}

.proof-card--link h3 {
  color: var(--ink);
}

/* --- Owner teaser --- */
#owner-teaser {
  padding-top: var(--sp-12);
  padding-bottom: clamp(5rem, 8vw, 7.5rem);
}

.owner-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 769px) {
  .owner-teaser__body {
    padding-top: calc(0.8125rem * 1.4 + var(--sp-3));
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero__side .machine-console {
    margin-top: var(--sp-4);
  }
  .hero__actions {
    margin-top: var(--sp-4);
  }
}

@media (max-width: 768px) {
  .spec-row {
    grid-template-columns: 2rem 1fr;
    grid-template-areas:
      "num body"
      "num price";
    row-gap: var(--sp-3);
  }
  .spec-row__num { grid-area: num; }
  .spec-row__body { grid-area: body; }
  .spec-row__price { grid-area: price; justify-self: start; font-size: 1.125rem; }
  .spec-row .btn { grid-column: 2; justify-self: start; }
  .spec-row__detail { grid-column: 1 / -1; }
  .proof-grid { grid-template-columns: 1fr; }
  .owner-teaser { grid-template-columns: 1fr; gap: var(--sp-6); }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .proof-stat:nth-child(2) { border-right: none; }
  .proof-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .proof-stats {
    gap: 0;
  }
  .proof-stat {
    padding: var(--sp-4) var(--sp-3);
  }
}

@media (max-width: 480px) {
  .hero__cta {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .hero__cta .btn--hero {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .proof-stat {
    padding: var(--sp-3) var(--sp-2);
  }
  .proof-stat__label {
    font-size: 0.65rem;
  }
}