/* Leafmark website: sales page + legal pages */
:root {
  --ink: #1f1d1a;
  --muted: #6f6a63;
  --paper: #fffdf9;
  --sand: #f4f0e9;
  --line: #e6e0d6;
  --leaf: #3f7d4e;
  --leaf-dark: #2f6b3e;
  --leaf-soft: #e8f3ea;
  --yellow: #fbf3d3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--leaf-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Literata, Georgia, serif; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Languages: elements marked .en / .de are shown for the active language only. */
html[lang="de-CH"] .en, html[lang="en"] .de { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 249, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.45rem Literata, Georgia, serif; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--leaf-dark); }
.top nav a.login { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding-left: 20px; border-left: 1px solid var(--line); }
.top nav a.login .login-ic { flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { font: inherit; font-size: .8rem; border: 0; background: #fff; padding: 5px 10px; cursor: pointer; }
.lang button.on { background: var(--ink); color: #fff; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem Inter, sans-serif; padding: 13px 22px; border-radius: 10px; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: #fff; cursor: pointer; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.leaf { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.btn:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Hero */
.hero { padding: 72px 0 120px; text-align: center; }   /* 120px bottom: the sheet's shadow (24px down + 60px blur) fades out fully, then a light strip before the sand section */
.hero .kicker { font: 600 .8rem Inter, sans-serif; letter-spacing: .25em; text-transform: uppercase; color: var(--leaf-dark); margin-bottom: 14px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.shot { margin: 48px auto 0; max-width: 1100px; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(31, 29, 26, .16); border: 1px solid var(--line); }

/* Sections */
section { padding: 72px 0; }
section.sand { background: var(--sand); }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf-dark); font-weight: 700; display: grid; place-items: center; margin-bottom: 12px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.feature .ic { font-size: 1.6rem; }
.feature h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font: 700 .65rem/.7556em Inter, sans-serif; letter-spacing: .08em; color: #fff; background: var(--leaf); border-radius: 4px; padding: 5.5px calc(6px - .1167em) 4px calc(6px - .0556em); vertical-align: 2px; margin-left: 6px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--leaf); box-shadow: 0 16px 40px rgba(63, 125, 78, .14); }
.plan .price { font: 700 2.4rem Literata, Georgia, serif; margin: 6px 0 2px; }
.plan .per { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid #f0ebe3; font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--leaf); font-weight: 700; }
.plan .btn { text-align: center; }

/* Printables */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(31, 29, 26, .12); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
footer.site .credit { flex-basis: 100%; font-size: .8rem; }

/* Legal pages (Impressum, Datenschutz, AGB …) */
main.legal { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
main.legal h1 { font-size: 2.4rem; margin-top: .4em; }
main.legal h2 { font-size: 1.4rem; margin-top: 2em; }
main.legal p, main.legal li { color: #34312c; }
main.legal address { font-style: normal; background: var(--sand); border-radius: 10px; padding: 14px 18px; }
main.legal > p:first-child strong { display: block; background: #fdf6e3; border: 1px solid #efdcae; border-radius: 8px; padding: 10px 14px; color: #7a5b12; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .steps, .features, .plans, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
}
.feature .ic img { width: 32px; height: 32px; }
.terms-note { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.terms-note a { color: inherit; text-decoration: underline; }
footer.site .footnote a { color: inherit; text-decoration: underline; }
sup.fn { font-size: .7em; line-height: 0; vertical-align: .6em; margin-left: 1px; }

@media print { #nl-badge-frame { display: none !important; } }
.feature.wide { grid-column: 1 / -1; background: #f6faf4; border-color: #cfe3cf; }

/* ---------- Phones and small tablets (iPhone SE 320 px … large Android 430 px, iPad portrait) ---------- */
main.legal, main.legal h1, main.legal h2, main.legal h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 860px) {
  /* header: logo + language on the first line, the page links in a second, swipeable line */
  .top .wrap { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 10px; padding-bottom: 0; }
  .top .lang { margin-left: auto; }
  .top nav { display: flex; order: 3; width: 100%; margin: 0; gap: 0 22px; flex-wrap: wrap; font-size: .92rem; }   /* wraps: "Log in" always visible */
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 8px 0 10px; white-space: nowrap; }
  .top nav a.login { padding-left: 0; border-left: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .lang button { padding: 8px 12px; }
  main.legal { padding: 28px 16px 64px; }
  main.legal h1 { font-size: 1.8rem; }
  main.legal h2 { font-size: 1.22rem; }
  main.legal > p:first-child a { display: inline-block; padding: 10px 0; }
  footer.site nav { margin-left: 0; gap: 2px 20px; }
  footer.site nav a { display: inline-block; padding: 11px 0; }
  .btn { min-height: 44px; }
}

.shot-cap { margin: 10px 0 0; text-align: center; font-size: .85rem; color: var(--muted, #6b665f); }

/* "New" feature card: repeats across months */
.tag.tag-new { background: #a85d1c; }   /* 4.9:1 with white text */
.feature .tag + .tag { margin-left: 4px; }
.mstrip .mlabel { font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.mstrip .months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.mstrip .m { text-align: center; font: 600 .66rem/1 Inter, sans-serif; padding: 5px 0; border-radius: 4px; background: #fff; color: #b5ada0; border: 1px solid var(--line); }
.mstrip .m.on { background: var(--leaf); color: #fff; border-color: var(--leaf); }
/* "Weekdays, dates & pauses" card: two weeks, active days open, the rest hatched like on the printed sheet */
.dstrip .days { display: flex; gap: 6px; }
.dstrip .wk { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dstrip .d { text-align: center; font: 600 .66rem/1 Inter, sans-serif; padding: 5px 0; border-radius: 4px; color: #b5ada0; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #fff 0 3px, #d9d2c6 3px 4px); }
.dstrip .d.on { background: #fff; color: var(--ink); border-color: var(--leaf); }
/* cards with a strip: the strip sits at the bottom, so neighbouring strips line up */
.feature:has(.mstrip) { display: flex; flex-direction: column; }
.feature .mstrip { margin-top: auto; padding-top: 12px; }
.tm { font-size: .42em; vertical-align: .95em; font-weight: 500; margin-left: .06em; letter-spacing: 0; }
