/* =========================================================
   Kalenderly — styles.css
   Light, clean, trust-forward scheduling SaaS aesthetic.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --blue: #9AC1FC;
  --blue-soft: #EAF2FE;
  --ink: #111111;
  --ink-60: rgba(17, 17, 17, 0.62);
  --ink-40: rgba(17, 17, 17, 0.40);
  --border: rgba(17, 17, 17, 0.10);
  --border-strong: rgba(17, 17, 17, 0.16);

  /* The single highlight moment — orange→red gradient (used once: step numbers). */
  --grad-warm: linear-gradient(135deg, #FF8E4C 0%, #FF3231 100%);

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.07);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.10);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
}

/*  SWAP: real Fellix .woff2 here  ─────────────────────────
    When the licensed Fellix files are available, self-host them
    and remove the Space Grotesk <link> in index.html.

    @font-face {
      font-family: "Fellix";
      src: url("fonts/Fellix-Regular.woff2") format("woff2");
      font-weight: 400;
      font-display: swap;
    }
    @font-face {
      font-family: "Fellix";
      src: url("fonts/Fellix-SemiBold.woff2") format("woff2");
      font-weight: 600;
      font-display: swap;
    }
    Then set:  --font-head: "Fellix", system-ui, sans-serif;
    ───────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Mono label (code-style tag) ---------- */
.mono-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark-glyph { display: block; }

/* Language toggle (top-right) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn[aria-pressed="true"] {
  color: var(--ink);
  background: var(--blue-soft);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.lang-divider { color: var(--ink-40); font-size: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  max-width: 12ch;
}

.hero-subhead {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-60);
  max-width: 46ch;
}

/* ---------- Product mockup ---------- */
.mockup {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.mockup-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mockup-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 22px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-month {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}

.cal-nav { display: flex; gap: 10px; color: var(--ink-40); font-size: 18px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-40);
  text-align: center;
  padding: 4px 0;
}

.cal-days span {
  font-size: 12.5px;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
  color: var(--ink);
}

.cal-days .muted { color: var(--ink-40); }

.cal-days .sel {
  background: var(--blue);
  color: var(--ink);
  font-weight: 600;
}

.mockup-slots { display: flex; flex-direction: column; gap: 8px; }

.slots-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.slot {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  background: var(--white);
}

.slot-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }

/* ---------- Features ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  margin-bottom: 18px;
}

.card-title { font-size: 19px; margin-bottom: 8px; }

.card-text { color: var(--ink-60); font-size: 15px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

/* Gradient step number — the single warm-gradient highlight moment. */
.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: max-content;
}

.step-title { font-size: 18px; font-weight: 600; }

/* ---------- Trust block ---------- */
.trust-card {
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 44px 44px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--blue);
  margin-bottom: 20px;
}

.trust-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }

.trust-body {
  color: var(--ink-60);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Legal (Impressum / Privacy) ---------- */
.legal { padding: 48px 0; border-top: 1px solid var(--border); }

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

.legal-body { color: var(--ink-60); font-size: 15px; }

.legal-body p { margin-bottom: 16px; }

.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-body a { color: var(--ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { color: var(--ink-60); font-size: 14px; }

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { max-width: 18ch; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .trust-card { padding: 32px 24px; }
  .mockup-body { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
}

/* ---------- Standalone legal pages (impressum / privacy / terms) ---------- */
/* Additive only — reuses .container, .legal-inner, .legal-body, .mono-label.
   Does not alter the look of the main page. */
.legal-page {
  padding: 56px 0 80px;
  min-height: calc(100vh - 68px - 85px); /* header + footer, keeps short pages from leaving footer mid-screen */
}

.legal-doc-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 18px 0 6px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-40);
  margin-bottom: 30px;
}

.legal-body h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 10px;
}

.legal-body li::marker { color: var(--blue); }

.legal-body .lead-in { color: var(--ink); font-weight: 600; }

.legal-body .clause { margin-bottom: 14px; }

.legal-body .clause-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-right: 6px;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-decoration: none;
}

.legal-back:hover { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
