:root {
  --bg-top: #f4f9ff;
  --bg-mid: #e8f1ff;
  --bg-bot: #eef6f2;
  --ink: #0f2332;
  --muted: #48667a;
  --line: #c7d7e6;
  --card-line: #d4e2ee;
  --card-bg: rgba(255, 255, 255, 0.82);
  --primary: #0b6eb2;
  --primary-strong: #074d87;
  --teal: #0d8f78;
  --shadow-soft: 0 14px 36px rgba(10, 45, 84, 0.09);
  --shadow-strong: 0 24px 64px rgba(9, 38, 71, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(980px 420px at 8% -4%, rgba(11, 110, 178, 0.2), transparent 64%),
    radial-gradient(860px 360px at 94% 1%, rgba(13, 143, 120, 0.16), transparent 64%),
    linear-gradient(160deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bot));
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.legal-page {
  width: min(880px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  padding: 1.4rem;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-page h2 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.35rem;
}

.legal-page h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.08rem;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
}

.legal-page a {
  color: var(--primary-strong);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
}

.legal-page th,
.legal-page td {
  padding: 0.65rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: #eef6fc;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.legal-note {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--primary);
  background: #eef7ff;
}

@media print {
  .topbar,
  .footer,
  .legal-actions,
  .cookie-consent {
    display: none !important;
  }

  .legal-page {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

body::before {
  left: -220px;
  top: -180px;
  background: rgba(11, 110, 178, 0.16);
}

body::after {
  right: -210px;
  top: -160px;
  background: rgba(13, 143, 120, 0.14);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(199, 215, 230, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(9, 44, 82, 0.18));
}

.top-actions {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero {
  position: relative;
  margin-top: 1rem;
  padding: 2.4rem 1.4rem 2rem;
  border: 1px solid rgba(170, 199, 224, 0.8);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.88) 48%, rgba(238, 255, 250, 0.8));
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 110, 178, 0.22), rgba(11, 110, 178, 0));
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
  color: var(--primary);
  font-size: 0.82rem;
  padding: 0.34rem 0.56rem;
  border: 1px solid rgba(155, 190, 218, 0.9);
  border-radius: 999px;
  background: rgba(243, 250, 255, 0.9);
}

h1 {
  margin: 0.78rem 0 0.85rem;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 820px;
}

.lead {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  color: #355a72;
  max-width: 840px;
}

.hero-points {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: #173f58;
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.trust {
  margin-top: 0.95rem;
  color: #2a5069;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 0.95rem;
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10, 43, 80, 0.13);
}

.btn-primary {
  background: linear-gradient(110deg, var(--primary), var(--primary-strong));
  color: #fff;
  border-color: transparent;
}

.btn-secondary,
.btn-soft {
  background: #ffffff;
  color: #143f5e;
}

.section {
  margin-top: 1.05rem;
  padding: 1.15rem;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.screenshots {
  border-color: #bdd7ea;
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 255, 0.92));
}

.shot-grid {
  margin-top: 0.82rem;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shot-card {
  margin: 0;
  border: 1px solid #c9dceb;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(10, 45, 84, 0.08);
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(160deg, #f2f8ff, #eff8f4);
}

.shot-card figcaption {
  padding: 0.6rem 0.68rem;
  color: #2a4f67;
  font-size: 0.84rem;
  line-height: 1.4;
}

.section h2 {
  margin: 0 0 0.58rem;
  font-size: clamp(1.22rem, 1.95vw, 1.68rem);
  letter-spacing: -0.01em;
}

.section p {
  margin: 0;
  color: #2a4e65;
  line-height: 1.58;
}

.sub {
  margin-top: 0.84rem !important;
  font-weight: 700;
  color: #173f58 !important;
}

.note {
  margin-top: 0.68rem !important;
  color: #375d75 !important;
}

.list {
  margin: 0.6rem 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.43rem;
}

.list li {
  color: #203f54;
  line-height: 1.48;
  position: relative;
  padding-left: 1.55rem;
}

.list-bullet li::before,
.list-check li::before {
  position: absolute;
  left: 0;
  top: 0.06rem;
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.list-bullet li::before {
  content: "•";
  background: #e7f1fb;
  color: #16517a;
}

.list-check li::before {
  content: "✓";
  background: #e5f6ef;
  color: #0b6c54;
}

.grid-2 {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid #d6e5ef;
  border-radius: 13px;
  background:
    linear-gradient(165deg, #ffffff, #f6fbff 50%, #f3fbf7);
  padding: 0.72rem 0.82rem;
  color: #1a435d;
  font-weight: 600;
}

.calculator {
  border-color: #bdd6e8;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(240, 250, 255, 0.9));
}

.calc-disclaimer {
  margin-top: 0.5rem !important;
  font-size: 0.92rem;
  color: #3f6075 !important;
}

.calculator .calc-inputs {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator label {
  display: grid;
  gap: 0.38rem;
}

.calculator label span {
  font-size: 0.9rem;
  color: #2d5268;
  font-weight: 700;
}

input[type="number"] {
  border: 1px solid #bfd4e3;
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.62rem 0.68rem;
  font: inherit;
  min-height: 44px;
}

input[type="number"]:focus {
  outline: 2px solid rgba(11, 110, 178, 0.24);
  border-color: #7fb2d6;
}

.calc-output {
  margin-top: 1rem;
  border: 1px solid #d2e4ef;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.calc-example {
  font-weight: 800;
  color: #113e59 !important;
}

.calc-block {
  border: 1px solid #dbeaf3;
  border-radius: 11px;
  padding: 0.68rem;
  background: #fff;
}

.calc-block h3 {
  margin: 0 0 0.42rem;
  font-size: 1rem;
}

.calc-block p {
  margin: 0.22rem 0;
}

.calc-block .sum {
  margin-top: 0.48rem;
  font-weight: 800;
  color: #0b4e79;
}

.calculator .btn {
  margin-top: 0.86rem;
}

.fit {
  display: grid;
  gap: 0.84rem;
  grid-template-columns: 1fr;
}

.fit-card {
  border: 1px solid #d3e2eb;
  border-radius: 13px;
  padding: 0.82rem;
  background: #fff;
}

.fit-ok {
  border-color: #b7dfcf;
  background: linear-gradient(170deg, #ffffff, #f4fcf8);
}

.fit-no {
  border-color: #ecd8bb;
  background: linear-gradient(170deg, #ffffff, #fff9f0);
}

.footer {
  margin-top: 1.25rem;
  margin-bottom: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #557082;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
}

.faq {
  display: grid;
  gap: 0.62rem;
}

.faq details {
  border: 1px solid #d6e5ef;
  border-radius: 12px;
  background: #fff;
  padding: 0.72rem 0.82rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: #173f58;
}

.faq details p {
  margin-top: 0.5rem;
}

.footer a {
  color: #2f5d7a;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2f5d7a;
  cursor: pointer;
  font: inherit;
}

.footer-link-button:hover {
  text-decoration: underline;
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #bdd6e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 45, 65, 0.2);
}

.cookie-consent__text {
  display: grid;
  gap: 0.25rem;
  color: #1a435d;
  font-size: 0.88rem;
}

.cookie-consent__text a {
  color: #0b6eb2;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.cookie-consent__actions .btn {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
}

.hero,
.section {
  animation: fade-in-up 380ms ease both;
}

.section:nth-of-type(2) {
  animation-delay: 40ms;
}

.section:nth-of-type(3) {
  animation-delay: 80ms;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .shot-grid,
  .grid-2,
  .fit,
  .calculator .calc-inputs {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1100px, calc(100% - 1rem));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hide-sm {
    display: none;
  }

  .hero {
    padding: 1.55rem 0.92rem 1.35rem;
    border-radius: 18px;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    display: grid;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 0.92rem;
    border-radius: 14px;
  }
}
