/* MyZenfi website — the only stylesheet. Visual identity is provisional; keep all styling here. */

:root {
  --accent: #2E7D32;
  --accent-strong: #1B5E20;
  --accent-soft: #E8F5E9;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #1C1F1D;
  --muted: #5B6560;
  --border: #DFE5DF;
  --radius: 12px;
  --max: 1040px;
  --prose: 72ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #66BB6A;
    --accent-strong: #81C784;
    --accent-soft: #1B2A1E;
    --bg: #121513;
    --surface: #1A1F1B;
    --text: #E8EAE6;
    --muted: #A5ADA8;
    --border: #2B332D;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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);
}

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2em; }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .35em 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--accent-soft); padding: .1em .35em; border-radius: 4px; }

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

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-strong); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg); }
.lang-switch a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }

/* Main */
main { padding-block: 32px 64px; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.meta { color: var(--muted); font-size: .95rem; }

/* Landing */
.hero { padding-block: 24px 8px; max-width: 760px; }
.hero h1 { max-width: 20ch; }
.hero-actions { margin-top: 28px; }

.store-placeholder {
  display: inline-flex; flex-direction: column; gap: 2px;
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 14px 20px; max-width: 420px; background: var(--surface);
}
.store-placeholder-title { font-weight: 700; }
.store-placeholder-note { color: var(--muted); font-size: .9rem; }
.store-badge img { height: 60px; width: auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 16px; border-top: 4px solid var(--accent);
}
.feature-card h3 { margin-bottom: .4em; }
.feature-card p { margin: 0; color: var(--muted); font-size: .98rem; }

.step-list { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.step-list li { counter-increment: step; position: relative; padding-left: 52px; min-height: 40px; }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700;
}
.step-list h3 { margin-bottom: .2em; }
.step-list p { margin: 0; }
.how .step-list p { color: var(--muted); }

.notice { margin-top: 40px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; }
.notice p { margin: 0; }

.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.link-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.link-list a { font-weight: 600; }
.link-list span { color: var(--muted); }

/* Text pages */
.prose { max-width: var(--prose); }
.page-header { margin-bottom: 28px; }
.page-header h1 { margin-bottom: .3em; }
.translation-notice { font-size: .92rem; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.legal section h2 { font-size: 1.2rem; margin-top: 1.8em; }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-block: 24px; }
.callout h2 { margin-top: 0; font-size: 1.2rem; }
.callout > :last-child { margin-bottom: 0; }

.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 0;
}
.button:hover { background: var(--accent-strong); color: #fff; }

.faq-item { padding-block: 14px; border-top: 1px solid var(--border); }
.faq-item h3 { margin-bottom: .3em; }
.faq-item p { margin: 0; }

.related { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .95rem; }

.not-found { text-align: left; padding-block: 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding-block: 28px 36px; font-size: .92rem; color: var(--muted); }
.footer-disclaimer { max-width: 70ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-company, .footer-copy { margin: 4px 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { gap: 10px 16px; }
  .site-nav { order: 3; width: 100%; gap: 4px 14px; }
  main { padding-block: 24px 48px; }
  .feature-card { padding: 16px; }
}

@media print {
  .site-header, .site-footer, .skip-link, .lang-switch, .related { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
