/* Digital Product Strategy — site styles */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; }
ul { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); text-decoration: none; }
.btn--light { background: #fff; color: var(--brand-strong); }
.btn--light:hover { background: var(--brand-tint); text-decoration: none; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--brand); }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
}
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__link.is-active { color: var(--brand); }
.nav__cta { margin-left: 4px; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.burger span::before { content: ""; position: absolute; top: -6px; }
.burger span::after { content: ""; position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 22px;
    gap: 14px;
  }
  .nav__cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.10), transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero__title em { color: var(--brand); font-style: normal; }
.hero__lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; max-width: 540px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__note { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__media { display: flex; align-items: center; justify-content: center; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 18px 0;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.trust__item i { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section--tight { padding: 36px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 30px; }

.section__head { max-width: 620px; margin: 0 0 40px; }
.section__head--left { margin-bottom: 24px; }
.section__title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.01em; }
.section__lead { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { font-size: 17.5px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.card__icon--accent { background: var(--accent-tint); color: var(--accent); }
.post-card__more { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__media { display: flex; align-items: center; justify-content: center; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.feature-list i { color: var(--accent); margin-top: 3px; }

/* ---------- Steps ---------- */
.step { display: flex; gap: 16px; }
.step__no {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-head);
}
.step h3 { font-size: 16.5px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Callout ---------- */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--accent-tint);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout i { color: var(--accent); font-size: 20px; margin-top: 2px; }
.callout p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.callout b { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--night), var(--night-2));
  color: #fff;
  border-radius: 22px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 12px; }
.cta-band p { color: #AEB4D6; margin: 0 0 26px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding: 54px 0 42px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero__title { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; font-weight: 800; }
.page-hero__lead { color: var(--ink-soft); font-size: 16.5px; max-width: 660px; margin: 0; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 4px; }

/* ---------- Guide / TOC ---------- */
.toc {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 7px 13px;
  border-radius: 999px;
}
.toc a:hover { background: var(--brand-tint); color: var(--brand-strong); text-decoration: none; }

.guide { max-width: 740px; }
.guide__block { padding: 26px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.guide__block:last-child { border-bottom: none; }
.guide__block h2 { font-size: 21px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.guide__block h2 i { color: var(--accent); }
.guide__block p { color: var(--ink-soft); margin: 0 0 14px; }
.guide__block p:last-child { margin-bottom: 0; }

/* ---------- Glossary ---------- */
.glossary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.glossary-letters span {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.term__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.term__head h3 { font-size: 16.5px; }
.term__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--brand-strong); background: var(--brand-tint); padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.term p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- Post / blog cards ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-card__media { position: relative; background: var(--brand-tint); padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.post-card__cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--brand-strong); }
.post-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post-card__body h3 { font-size: 17px; margin: 0 0 8px; }
.post-card__body p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; flex: 1; }

/* ---------- Article ---------- */
.article { max-width: 740px; margin: 0 auto; }
.article__header { margin-bottom: 8px; }
.article__title { font-size: clamp(26px, 4vw, 36px); margin: 14px 0 16px; font-weight: 800; }
.article__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.article__media { border-radius: var(--radius); overflow: hidden; background: var(--brand-tint); padding: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.article__body h2 { font-size: 21px; margin: 32px 0 12px; }
.article__body p { color: var(--ink-soft); margin: 0 0 16px; }
.article__body ul { padding-left: 20px; color: var(--ink-soft); margin: 0 0 16px; }
.article__body li { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info h2 { font-size: 19px; margin-bottom: 8px; }
.contact-info > p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; }
.contact-info__item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info__item i { color: var(--accent); margin-top: 3px; }
.contact-info__label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-info__value { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.captcha { display: flex; align-items: center; gap: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.captcha__q { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--brand); }
.captcha .field input { max-width: 140px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; cursor: pointer; }
.consent input { margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  padding: 18px 0;
  cursor: pointer;
}
.faq__q i { transition: transform 0.2s ease; color: var(--muted); }
.faq__item.is-open .faq__q i { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq__a p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal__updated { display: block; font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.legal__block { margin-bottom: 30px; }
.legal__block h2 { font-size: 19px; margin: 0 0 10px; }
.legal__block p { color: var(--ink-soft); margin: 0 0 14px; }
.legal__block ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; }
.legal__block li { margin-bottom: 6px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 80;
  background: var(--night);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  margin: 0 auto;
}
.cookie__text strong { display: block; margin-bottom: 6px; }
.cookie__text p { margin: 0; color: #B9BEDA; font-size: 13.5px; max-width: 520px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__btn { border-radius: 8px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; border: 1px solid rgba(255,255,255,0.18); cursor: pointer; }
.cookie__btn--reject, .cookie__btn--config { background: transparent; color: #fff; }
.cookie__btn--accept { background: var(--accent); color: #04231F; border-color: transparent; }
.cookie[hidden] { display: none !important; }

/* ---------- Modal (cookie settings / thanks) ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 38, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__dialog {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal__dialog h3 { font-size: 19px; margin-bottom: 8px; }
.modal__opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.modal__opt small { color: var(--muted); }
.modal__footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal__dialog.thanks-dialog { text-align: center; }
.modal__dialog.thanks-dialog i { font-size: 40px; color: var(--accent); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 52px 0 110px; background: var(--surface); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer__brand { max-width: 300px; }
.footer__about { color: var(--ink-soft); font-size: 14px; margin: 14px 0 16px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.footer__socials a:hover { color: var(--brand); text-decoration: none; }
.footer__col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink-soft); font-size: 14.5px; }
.footer__col a:hover { color: var(--ink); text-decoration: none; }
.footer__contact { gap: 12px !important; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 13.5px; }
.footer__contact i { color: var(--accent); margin-top: 2px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom-links { display: flex; gap: 18px; }
.footer__bottom-links a { color: var(--muted); }

@media (max-width: 600px) {
  .cookie { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie__actions { justify-content: stretch; }
  .cookie__btn { flex: 1; }
  .cta-band { padding: 36px 24px; }
  .footer__top { gap: 28px; }
}
