/* =========================================================================
   Searchly — marketing site stylesheet
   Brand: calm, safe, warm. Built for older & low-vision readers:
   large type, high contrast, generous spacing, big tap targets.
   ========================================================================= */

:root {
  --green:      #1A7F4B;   /* primary CTA */
  --green-dark: #14663b;
  --green-soft: #e7f3ec;
  --blue:       #2F6FED;   /* accent / links */
  --blue-dark:  #2559c9;
  --ink:        #1A1D21;   /* headings */
  --body:       #3A4048;   /* body text */
  --muted:      #5B6470;   /* secondary text */
  --bg:         #ffffff;
  --bg-soft:    #F4F6F9;   /* off-white sections */
  --line:       #E2E6EB;   /* borders / toolbar grey */
  --red:        #B3261E;   /* alerts */
  --red-soft:   #fbeceb;
  --amber-soft: #fdf3e3;
  --amber-ink:  #8a5a12;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;
  --shadow:     0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg:  0 12px 40px rgba(16,24,40,.12);
  --maxw:       1120px;
  --font:       "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Noto Sans JP", "Noto Sans Devanagari", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;            /* large, comfortable base */
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1rem; }
:lang(de) h1, :lang(nl) h1 { letter-spacing: -.02em; } /* long compounds */

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { color: var(--ink); font-weight: 700; }

/* ---- Accessible focus ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.section__head p { font-size: 1.15rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); background: var(--green-soft);
  padding: .35rem .8rem; border-radius: 100px; margin-bottom: 1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  padding: 1rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--muted); }
.btn--lg { font-size: 1.2rem; padding: 1.15rem 2rem; }
.btn--block { width: 100%; }
.btn__sub { display: block; font-weight: 500; font-size: .8rem; opacity: .9; margin-top: .15rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav a { color: var(--body); font-weight: 600; padding: .55rem .8rem; border-radius: 10px; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); }
.header-cta { margin-left: .4rem; }

/* language switcher */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .7rem; font: inherit; font-weight: 600; font-size: .95rem; color: var(--body); cursor: pointer; }
.lang__btn:hover { border-color: var(--muted); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; min-width: 220px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang__menu[hidden] { display: none; }
.lang__menu a { padding: .5rem .7rem; border-radius: 8px; color: var(--body); font-weight: 600; font-size: .95rem; }
.lang__menu a:hover { background: var(--bg-soft); text-decoration: none; }
.lang__menu a[aria-current="true"] { color: var(--green); background: var(--green-soft); }

/* mobile nav toggle */
.nav-toggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .7rem; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink); }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1rem; }
.hero__lede { font-size: 1.3rem; color: var(--body); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; align-items: center; }
.hero__note { font-size: .95rem; color: var(--muted); margin-top: 1.1rem; }
.hero__note strong { color: var(--green); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; }
.badge-row span { display: inline-flex; align-items: center; gap: .45rem; font-size: .98rem; font-weight: 600; color: var(--body); }
.badge-row svg { flex: none; }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding-block: 2rem; }
.trust__grid .num { font-size: 1.9rem; font-weight: 800; color: var(--ink); display: block; }
.trust__grid .lbl { font-size: .98rem; color: var(--muted); }

/* ---- Feature blocks (alternating) ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); }
.feature--reverse .feature__media { order: -1; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.feature__list li { position: relative; padding-left: 2rem; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/72% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/72% no-repeat; }

/* ---- Card grid (features overview / privacy) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); height: 100%; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--green-soft); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.card--blue .card__icon { background: #e8f0fe; }

/* ---- Problem / empathy ---- */
.problem__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 2.5rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; box-shadow: var(--shadow); }
.stat-card .num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--red); }
.stat-card .lbl { color: var(--muted); font-size: 1rem; }

/* ---- How it works (steps) ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); position: relative; }
.step__n { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.2rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Callout / banner ---- */
.callout { background: linear-gradient(135deg, var(--green) 0%, #12925a 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem,5vw,3.5rem); text-align: center; }
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 56ch; margin-inline: auto; }
.callout .btn--primary { background: #fff; color: var(--green-dark); }
.callout .btn--primary:hover { background: #f2f2f2; }
.callout .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.callout .btn--secondary:hover { border-color: #fff; }
.callout__cta { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:1.6rem; }

/* ---- Case studies ---- */
.persona-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.persona { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.persona .tag { font-size:.8rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color: var(--blue); }
.persona h3 { margin:.3rem 0 .5rem; }
.persona p { color: var(--muted); margin:0; }

.case { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem,4vw,2.6rem); box-shadow: var(--shadow); }
.case + .case { margin-top: 1.6rem; }
.case__head { display:flex; align-items:center; gap:1rem; margin-bottom:1.3rem; }
.case__avatar { width:56px; height:56px; border-radius:50%; background:var(--green-soft); display:grid; place-items:center; font-weight:800; color:var(--green); font-size:1.3rem; flex:none; }
.case__head h3 { margin:0; }
.case__head .who { color: var(--muted); font-size:.98rem; }
.case__body { display:grid; grid-template-columns: repeat(3,1fr); gap:1.4rem; }
.case__body h4 { font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 .4rem; }
.case__body p { margin:0; }
.case__body .risk h4 { color: var(--red); }
.case__body .fix h4 { color: var(--green); }
.case__body .win h4 { color: var(--blue); }

/* ---- Quote ---- */
.quote { max-width: 820px; margin-inline:auto; text-align:center; }
.quote blockquote { font-size: clamp(1.3rem,3vw,1.7rem); color: var(--ink); font-weight: 600; line-height:1.45; margin:0 0 1rem; }
.quote cite { color: var(--muted); font-style: normal; font-size:1rem; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 700; color: var(--ink); font-size:1.08rem; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.6rem; color: var(--green); font-weight:400; line-height:1; }
.faq details[open] summary::after { content:"\2013"; }
.faq details > div { padding: 0 1.4rem 1.3rem; color: var(--body); }
.faq details > div p:last-child { margin-bottom:0; }

/* ---- Download page ---- */
.dl-hero { text-align:center; }
.dl-card { max-width: 560px; margin: 2rem auto 0; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-lg); }
.dl-card .dl-version { display:inline-block; background: var(--green-soft); color: var(--green-dark);
  font-weight:700; font-size:.9rem; padding:.35rem .8rem; border-radius:100px; margin:0 0 1rem; }
.dl-card .dl-version time { font-variant-numeric: tabular-nums; }
.dl-card .os { color: var(--muted); font-weight:600; margin-bottom: 1.2rem; }
.footer__version { color:#9aa1ab; font-variant-numeric: tabular-nums; }
.spec-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; max-width: 820px; margin: 2.5rem auto 0; }
.spec { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.spec dt { font-weight:800; color: var(--ink); margin-bottom:.2rem; }
.spec dd { margin:0; color: var(--muted); }

/* ---- Notice / reassurance ---- */
.notice { max-width: 820px; margin: 2rem auto 0; background: var(--amber-soft); border:1px solid #f0dcb6; border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--amber-ink); }
.notice strong { color: var(--amber-ink); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c8ccd2; padding-block: 3rem 2rem; }
.site-footer a { color: #dfe3e8; }
.footer__grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand .brand { color:#fff; }
.footer__brand p { color:#9aa1ab; max-width: 34ch; margin-top:.8rem; font-size:.98rem; }
.footer__col h4 { color:#fff; font-size:1rem; margin-bottom:.8rem; }
.footer__col ul { list-style:none; padding:0; margin:0; display:grid; gap:.5rem; }
.footer__col a { font-size:.98rem; }
.footer__bottom { border-top:1px solid #2b2f36; margin-top:2.4rem; padding-top:1.5rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; color:#9aa1ab; font-size:.92rem; }
.footer__langs { display:flex; flex-wrap:wrap; gap:.3rem 1rem; }
.footer__langs a { color:#c8ccd2; font-size:.92rem; }

/* ---- Utilities ---- */
.center { text-align:center; }
.mt-lg { margin-top: 2rem; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.lede { font-size:1.2rem; color: var(--body); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero__grid, .feature, .feature--reverse .feature__media { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .hero__media { order: -1; }
  .cards, .problem__grid, .steps { grid-template-columns: 1fr 1fr; }
  .case__body { grid-template-columns: 1fr; gap: 1rem; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }

  /* mobile nav */
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background:#fff; border-bottom:1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; margin-left: 0; box-shadow: var(--shadow-lg); }
  .nav[hidden] { display: none; }
  .nav a { padding: .9rem 1rem; font-size: 1.1rem; }
  .nav .header-cta { margin: .5rem; }
  .nav .lang { margin: .3rem .5rem; }
  .nav .lang__menu { position: static; box-shadow:none; border:none; padding: .3rem 0 0; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .cards, .problem__grid, .steps, .trust__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}
