/* Klyn website — shared across all five languages. */
:root {
  --bg: #f6f8fc;
  --paper: #fff;
  --ink: #17243b;
  --muted: #5d6b82;
  --quiet: #718097;
  --line: #dfe6f1;
  --blue: #315eea;
  --blue-dark: #2048c4;
  --blue-soft: #ebf1ff;
  --mint: #d9f4ec;
  --shadow: 0 22px 65px rgba(29, 52, 99, .09);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Navigation */
.site-head { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.site-head .wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand img { display: block; width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(34,77,165,.16); }
.site-head nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2.6vw, 30px); }
.site-head nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-head nav a:hover, .site-head nav a:focus-visible { color: var(--blue); }
.site-head .language-nav { max-width: 1180px; min-height: 42px; margin: 0 auto; padding: 0 28px 9px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.site-head .language-nav a { padding: 4px 11px; border-radius: 999px; font-size: 12px; color: var(--quiet); }
.site-head .language-nav a:hover, .site-head .language-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-soft); }

/* Home hero */
.home-page { background: linear-gradient(180deg, #f2f6ff 0, #f9fbff 675px, #f6f8fc 1040px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 70px); padding-top: 50px; padding-bottom: 64px; }
.hero-copy { position: relative; z-index: 2; padding: 32px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid #cbd9ff; border-radius: 999px; background: #eaf0ff; color: var(--blue-dark); font-size: 12px; font-weight: 750; letter-spacing: .025em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #31b99b; box-shadow: 0 0 0 4px #d5f5ea; }
.hero h1 { margin: 24px 0 20px; max-width: 12ch; font-size: clamp(40px, 5.3vw, 70px); line-height: 1.07; letter-spacing: -.055em; font-weight: 800; }
.hero-copy > p:not(.cta-note) { max-width: 34rem; margin: 0 0 28px; color: var(--muted); font-size: clamp(17px, 1.75vw, 19px); line-height: 1.55; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 13px 20px; border-radius: 14px; background: var(--blue); color: white; box-shadow: 0 13px 25px rgba(49,94,234,.23); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.cta:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 28px rgba(49,94,234,.28); }
.cta span { font-size: 19px; line-height: 1; font-weight: 400; }
.cta-note { margin: 13px 0 0; color: var(--quiet); font-size: 13px; }
.hero-visual { position: relative; min-height: 650px; isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; width: 88%; aspect-ratio: 1; left: 6%; top: 8%; border-radius: 50%; background: radial-gradient(circle at 43% 40%, #fff 0, #deebff 47%, #c8defd 73%, rgba(200,222,253,0) 76%); }
.hero-visual::after { content: ""; position: absolute; z-index: -2; inset: 15% 0 1%; border: 1px solid rgba(61,102,203,.1); border-radius: 48% 52% 44% 56%; transform: rotate(-19deg); }
.phone-shot { position: absolute; width: 46%; max-width: 250px; overflow: hidden; border: 7px solid #1b2a47; border-radius: 39px; background: #eef3ff; box-shadow: 0 28px 55px rgba(20,41,85,.23), inset 0 0 0 1px rgba(255,255,255,.6); }
.phone-shot img { display: block; width: 100%; height: auto; }
.phone-home { z-index: 2; left: 9%; top: 8%; transform: rotate(-7deg); }
.phone-mail { z-index: 1; right: 4%; top: 15%; transform: rotate(8deg); }

/* Sections and feature cards */
.home-page section { padding-top: 76px; padding-bottom: 76px; }
.section-title { margin: 0 0 12px; max-width: 24ch; font-size: clamp(29px, 3.5vw, 42px); line-height: 1.18; letter-spacing: -.04em; font-weight: 770; }
.section-lede { max-width: 67ch; margin: 0 0 30px; color: var(--muted); font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card { min-height: 174px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 9px 25px rgba(29,52,99,.035); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 11px; margin: 0 0 13px; font-size: 17px; line-height: 1.3; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; box-shadow: 0 0 0 5px #f3f6fc; }

/* Mail and review */
.mail-section { padding-top: 15px !important; }
.mail-panel { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 30px; padding: clamp(28px, 5vw, 56px); border: 1px solid #cfdefa; border-radius: 28px; background: linear-gradient(115deg, #e8f1ff, #f3f8ff 65%, #e7f9f4); }
.mail-symbol { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 22px; background: var(--paper); color: var(--blue); box-shadow: 0 11px 26px rgba(33,82,180,.12); font-size: 45px; line-height: 1; }
.mail-panel .section-lede { margin-bottom: 0; }
.review-section { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 12px 60px; align-items: start; border-top: 1px solid var(--line); }
.review-section .section-title { grid-row: span 2; }
.review-section .section-lede { margin-bottom: 0; }

/* Privacy panel and pricing */
.band { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 64px); border-radius: 28px; background: linear-gradient(120deg, #152c61, #234dc0 66%, #2d66d7); color: white; box-shadow: 0 20px 45px rgba(28,67,157,.18); }
.band::after { content: ""; position: absolute; width: 320px; height: 320px; right: -85px; top: -115px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.035); }
.band h2 { position: relative; z-index: 1; margin: 0 0 15px; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
.band p { position: relative; z-index: 1; max-width: 62ch; margin: 0; color: #e2eaff; font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; gap: 16px; }
.plan { min-height: 175px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.plan.featured { border: 2px solid #6286f5; background: linear-gradient(160deg, #fff, #f2f6ff); }
.plan .badge { display: inline-block; margin-bottom: 17px; padding: 5px 10px; border-radius: 7px; background: #dfe9ff; color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.plan .badge.alt { background: #e8f5ef; color: #25765c; }
.plan .name { color: var(--muted); font-size: 15px; font-weight: 650; }
.plan .price { margin: 2px 0 0; font-size: 31px; line-height: 1.3; letter-spacing: -.035em; font-weight: 800; }
.plan .price span { color: var(--quiet); font-size: 14px; font-weight: 500; letter-spacing: 0; }

/* Legal documents */
.legal-page { background: linear-gradient(180deg, #eef4ff 0, #f6f8fc 460px); }
.legal { padding: 48px 24px 90px; }
.legal .wrap { max-width: 860px; padding: clamp(28px, 5vw, 68px); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.legal h1 { margin: 0 0 8px; font-size: clamp(34px, 4.5vw, 49px); line-height: 1.1; letter-spacing: -.045em; }
.updated { margin: 0 0 32px; color: var(--quiet); font-size: 14px; }
.legal h2 { margin: 46px 0 12px; padding-top: 4px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; scroll-margin-top: 25px; }
.legal h3 { margin: 28px 0 8px; font-size: 17px; }
.legal p, .legal li { color: #48566d; font-size: 15.5px; line-height: 1.75; }
.legal p { margin: 0 0 15px; }
.legal ul { padding-left: 24px; margin: 11px 0 20px; }
.legal li { padding-left: 2px; margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.callout { margin: 0 0 30px; padding: 22px 25px; border: 1px solid #c8d9ff; border-left: 4px solid var(--blue); border-radius: 15px; background: #eff4ff; }
.callout p { margin: 0; color: #33476a; }
.toc { padding: 22px 25px; border-radius: 16px; background: #f7f9fd; border: 1px solid var(--line); }
.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 28px; margin: 0; padding-left: 24px; }
.toc li { margin: 0; }
.toc a { color: var(--blue-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Footer and contact controls */
.site-foot { padding: 34px 0 48px; border-top: 1px solid var(--line); background: #fff; color: var(--quiet); font-size: 13px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-foot nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--blue); }
.contact-link { padding: 0; border: 0; background: none; color: var(--blue-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.site-foot .contact-link { color: var(--muted); text-decoration: none; }
.site-foot .contact-link:hover { color: var(--blue); }
.email-rev { unicode-bidi: bidi-override; direction: rtl; }

@media (max-width: 850px) {
  .hero { gap: 15px; }
  .hero h1 { font-size: clamp(37px, 5.2vw, 54px); }
  .hero-visual { min-height: 475px; }
  .phone-shot { border-width: 5px; border-radius: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-head .wrap { min-height: 67px; }
  .site-head .language-nav { justify-content: flex-start; padding-left: 15px; padding-right: 15px; padding-bottom: 9px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 40px; padding-bottom: 38px; gap: 0; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 14ch; margin-top: 20px; font-size: clamp(39px, 9vw, 55px); }
  .hero-visual { width: min(100%, 430px); min-height: 480px; margin: 10px auto 0; }
  .phone-shot { width: 48%; max-width: 193px; }
  .phone-home { left: 10%; top: 10px; }
  .phone-mail { right: 8%; top: 26px; }
  .home-page section { padding-top: 48px; padding-bottom: 48px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .mail-panel { grid-template-columns: 1fr; gap: 19px; }
  .mail-symbol { width: 60px; height: 60px; border-radius: 18px; font-size: 34px; }
  .review-section { display: block; }
  .review-section .section-lede { margin-bottom: 16px; }
  .plans { grid-template-columns: 1fr; }
  .legal { padding: 24px 14px 64px; }
  .legal .wrap { padding: 28px 22px; border-radius: 20px; }
  .toc ol { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .site-head .wrap { gap: 7px; }
  .site-head .wrap nav { gap: 12px; }
  .site-head .wrap nav a { font-size: 12px; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .hero-visual { min-height: 440px; }
  .phone-shot { width: 49%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .card { transition: none; }
}
