/* 12projects.ch — shared stylesheet */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

:root {
  --ink: #181818;
  --text: #393939;
  --paper: #fafafa;
  --surface: #ffffff;
  --line: #e0e0e0;
  --section: #f0f0ee;
  --petrol: #297373;
  --petrol-dark: #1e5555;
  --orange: #ff8552;
  --orange-dark: #e56a38;
  --yellow: #e9d758;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Space Grotesk', var(--sans);

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}

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

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo span { color: var(--petrol); }

.logo:hover { text-decoration: none; }

nav.main-nav {
  display: flex;
  gap: 32px;
}

nav.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 16px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: #181112;
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--petrol);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--petrol-dark); }

.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ---------- Hero grid motif (12 tiles) ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--petrol);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: block;
}

.hero h1 { margin-bottom: 20px; }

.hero .lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 4 / 3;
}

.tile-grid span {
  background: var(--section);
  border-radius: 2px;
}

.tile-grid span:nth-child(2) { background: var(--petrol); }
.tile-grid span:nth-child(7) { background: var(--orange); }
.tile-grid span:nth-child(10) { background: var(--yellow); }

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .tile-grid { max-width: 320px; }
}

/* ---------- App tiles on homepage ---------- */

.section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 40px;
  max-width: 60ch;
}

.section-header h2 { margin-bottom: 12px; }

.platform-group { margin-bottom: 48px; }
.platform-group:last-child { margin-bottom: 0; }

.platform-heading {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.apps-grid:has(.app-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 460px;
}

.app-card {
  background: var(--surface);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.app-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--petrol);
  border: 1px solid var(--petrol);
  border-radius: 3px;
  padding: 3px 9px;
  margin-bottom: 16px;
  width: fit-content;
}

.app-card .card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}

.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-eyebrow-row .app-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.hero-eyebrow-row .hero-eyebrow { margin-bottom: 0; }

.app-card h3 { margin-bottom: 10px; font-size: 1.4rem; }

.app-card p { color: var(--text); margin-bottom: 20px; }

.app-card .app-shot {
  border: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--section);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card .app-shot img { width: 100%; height: 100%; object-fit: contain; }

.app-card .placeholder-shot {
  border: 1px solid var(--line);
  margin-bottom: 22px;
  aspect-ratio: 16/10;
  background: var(--section);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card .placeholder-shot svg { width: 46%; opacity: 0.85; }

.app-card .btn { margin-top: auto; align-self: flex-start; }

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

/* ---------- Feature list (product pages) ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

.feature-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { color: var(--text); margin-bottom: 0; font-size: 0.97rem; }

@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Screenshot showcase ---------- */

.shot-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.shot {
  border: 1px solid var(--line);
  background: var(--surface);
}

.shot img { width: 100%; }

.shot figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.shot { margin: 0; }

@media (max-width: 720px) {
  .shot-showcase { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.price-card {
  background: var(--surface);
  padding: 32px;
  position: relative;
}

.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--orange);
  color: #181112;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 0 0 0 6px;
}

.price-card.is-highlight {
  background: #fff;
  box-shadow: inset 0 3px 0 var(--orange);
}

.price-card .amount {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 18px;
}

.price-card .amount small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.price-card li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.price-card li:first-child { border-top: none; }

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

/* ---------- Callout / CTA band ---------- */

.cta-band {
  background: var(--petrol);
  color: #fff;
  padding: 56px 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #d9ecec; }

.cta-band .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-band .btn-outline:hover { background: #fff; color: var(--petrol); }

/* ---------- About page ---------- */

.about-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 780px) {
  .about-block { grid-template-columns: 1fr; }
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.value-list li:last-child { border-bottom: 1px solid var(--line); }

.value-list strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text);
}

footer.site-footer nav {
  display: flex;
  gap: 20px;
}

footer.site-footer a { color: var(--text); }
footer.site-footer a:hover { color: var(--petrol); }

/* ---------- misc ---------- */

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text);
}

.mono-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--petrol); }
