/* Clutch Sphere website (20261205). Colours of the app: app bar #0D47A1,
   logo #0D2B45 / #1565C0 / #7FD3FF; orange = "Kommt bald" (the colour the app
   uses for values it computes itself). System fonts only, nothing external. */

:root {
  --navy: #0d2b45;
  --navy-2: #0f3a63;
  --brand: #0d47a1;
  --brand-2: #1565c0;
  --sky: #7fd3ff;
  --orange: #e65100;
  --orange-soft: #fff1e6;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #13202e;
  --muted: #546474;
  --line: #dbe3ec;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .06), 0 8px 24px rgba(13, 43, 69, .07);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

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

/* Header */
.site-header { background: var(--navy); color: #fff; }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-title { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.header-spacer { flex: 1; }
.lang-switch {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 12px;
}
.lang-switch:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* Pills */
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.pill-soon { background: var(--orange); color: #fff; }
.pill-small { font-size: .68rem; padding: 2px 8px; background: var(--orange-soft); color: var(--orange); }
.site-header .pill-soon { font-size: .72rem; }

/* Buttons */
.button {
  display: inline-block; background: #fff; color: var(--navy); font-weight: 700;
  text-decoration: none; border-radius: 999px; padding: 12px 22px; border: 2px solid #fff;
}
.button:hover { background: #eaf5ff; color: var(--navy); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.button-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.legal-page .button, .not-found .button { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(127, 211, 255, .25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--brand) 100%);
  padding: 56px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .95rem; color: var(--sky); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.01em; margin-bottom: .45em; }
.hero-name { display: block; font-size: .55em; font-weight: 600; color: #cfe9ff; letter-spacing: .02em; margin-bottom: .2em; }
.hero-lead { font-size: 1.15rem; color: #e3eef8; max-width: 36em; }
.hero-readonly { color: #b9d3ea; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* App preview (example drawing) */
.preview { margin: 0; justify-self: center; text-align: center; }
.preview figcaption { margin-top: 10px; font-size: .8rem; color: #b9d3ea; }
.preview-phone {
  width: 300px; max-width: 100%; background: #f6f9fc; color: var(--text); text-align: left;
  border-radius: 30px; padding: 12px; border: 6px solid #0a1f33;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.preview-bar { background: var(--brand); color: #fff; font-weight: 700; border-radius: 16px 16px 8px 8px; padding: 10px 14px; font-size: .95rem; }
.preview-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.preview-tile { background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.preview-tile-wide { grid-column: span 2; }
.preview-label { display: block; font-size: .7rem; color: var(--muted); }
.preview-value { display: block; font-size: 1.5rem; font-weight: 700; color: #111; }
.preview-value small { font-size: .6em; font-weight: 600; color: var(--muted); }
.preview-tile-gear .preview-value { color: var(--brand); font-size: 2rem; line-height: 1.1; }
.preview-chart { background: #fff; border-radius: 10px; padding: 8px 10px 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 6px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart-count { font-size: .62rem; color: var(--muted); margin-bottom: 2px; }
.chart-bar { width: 100%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 4px 4px 0 0; }
.chart-gear { font-size: .72rem; font-weight: 700; margin-top: 3px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: #e9f0f8; }
.section-header { max-width: 40em; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-header p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.feature-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.feature-icon {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center;
  background: #e8f2fe; color: var(--brand);
}
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-number {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.35rem; }
.info-card p { margin: 0; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin: 8px 0; color: var(--muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: #2e7d32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.section-contact { background: var(--navy); color: #fff; text-align: center; }
.contact { max-width: 44em; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact p { color: #d5e6f5; }
.contact-mail { color: #fff; font-size: 1.35rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sky); }
.contact-mail:hover { color: var(--sky); }
.makers { margin-top: 28px; font-size: .95rem; }
.makers a { color: var(--sky); font-weight: 600; }
.trademark { font-size: .78rem; color: #9fbad3 !important; margin: 18px auto 0; max-width: 40em; }

/* Legal pages */
.legal-page { padding: 48px 0 64px; }
.legal-header { margin-bottom: 26px; }
.legal-header .eyebrow { color: var(--brand); }
.legal-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.legal-lead { color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.legal-stack { display: grid; gap: 16px; max-width: 52em; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.legal-card h2 { font-size: 1.1rem; }
.legal-card p:last-child, .legal-card address:last-child { margin-bottom: 0; }
address { font-style: normal; }

/* Footer */
.site-footer { background: #0a2236; color: #b9cfe3; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 14px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #dbe9f6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps, .two-col, .legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-header .pill-soon { display: none; }
  .section { padding: 48px 0; }
}
