/* Mieto landing page. "Petrol & Sand" palette from ui/src/theme.ts; no external fonts or scripts. */

:root {
  --petrol-0: #e8f3f5;
  --petrol-1: #cfe4e8;
  --petrol-5: #337f90;
  --petrol-7: #0f4c5c;
  --petrol-8: #0b3d4a;
  --petrol-9: #072d37;
  --sand-0: #fdf6ea;
  --sand-1: #f9e9cc;
  --sand-4: #e3a857;
  --sand-7: #a06a22;
  --sea: #2f8f6b;
  --terracotta: #c0583a;
  --text: #1d2a30;
  --muted: #55656c;
  --border: #dde6e8;
  --radius: 14px;
  --font: "Manrope Variable", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Anchor targets (#funktionen, #toms, ...) must not end up under the sticky header. */
[id] {
  scroll-margin-top: 80px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

h1,
h2,
h3 {
  color: var(--petrol-8);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--petrol-7);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--sand-4);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--petrol-7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header */

.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(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--petrol-7);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.header-nav a:not(.button):hover {
  color: var(--petrol-7);
}

@media (max-width: 560px) {
  .header-nav a:not(.button) {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button-primary {
  background: var(--petrol-7);
  color: #fff;
}

.button-primary:hover {
  background: var(--petrol-8);
}

.button-secondary {
  background: #fff;
  color: var(--petrol-7);
  border-color: var(--petrol-1);
}

.button-secondary:hover {
  border-color: var(--petrol-5);
}

.button-ghost {
  padding: 0.45rem 1.1rem;
  color: var(--petrol-7);
  border-color: var(--petrol-1);
}

.button-ghost:hover {
  border-color: var(--petrol-5);
}

.button-sand {
  background: var(--sand-4);
  color: var(--petrol-9);
}

.button-sand:hover {
  background: var(--sand-1);
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--petrol-0) 0%, #fff 100%);
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sand-7);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  background: var(--sand-1);
  color: var(--sand-7);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

/* Illustrative app card */

.mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(7, 45, 55, 0.35);
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: var(--petrol-7);
  color: #fff;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.mock-title {
  margin-left: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.mock-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.mock-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.mock-list li:last-child {
  border-bottom: none;
}

.mock-list .amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mock-list li.open .amount {
  color: var(--terracotta);
}

.status {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.status.ok {
  background: var(--sea);
}

.status.due {
  background: var(--terracotta);
}

.mock-footer {
  padding: 0.8rem 1.1rem;
  background: var(--sand-0);
  color: var(--sand-7);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--sand-0);
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
}

.feature h3 {
  color: var(--petrol-7);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--sand-1);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--petrol-7);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.trust {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 2rem;
}

.trust li {
  padding-left: 1rem;
  border-left: 3px solid var(--petrol-5);
  color: var(--muted);
}

.trust strong {
  display: block;
  color: var(--petrol-8);
}

.section-cta {
  background: var(--petrol-7);
  color: #fff;
}

.cta-box {
  text-align: center;
  max-width: 720px;
}

.cta-box h2 {
  color: #fff;
}

.cta-box p {
  color: var(--petrol-1);
  margin-bottom: 1.75rem;
}

/* Legal pages */

.legal {
  padding: 3.5rem 0 4.5rem;
}

.legal .container {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal th {
  color: var(--petrol-8);
}

.placeholder {
  background: var(--sand-1);
  padding: 0 0.25em;
  border-radius: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.25rem;
}

.footer-inner a {
  color: var(--muted);
}
