:root {
  color-scheme: light;
  --ink: #08234a;
  --muted: #5d6b82;
  --line: #dbe7f3;
  --soft: #f3f8fc;
  --panel: #ffffff;
  --blue: #063b83;
  --cyan: #00aebd;
  --green: #1f9d68;
  --danger: #b42318;
  --warning: #ad6f00;
  --shadow: 0 18px 45px rgba(8, 35, 74, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbfd;
  line-height: 1.55;
}

a {
  color: var(--blue);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 750;
  font-size: 0.92rem;
}

.topbar nav a,
.account a {
  text-decoration: none;
  color: var(--muted);
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.nav-user {
  font-weight: 850;
}

.button,
button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 106, 154, 0.22);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.small,
button.small {
  min-height: 38px;
  padding-inline: 14px;
}

.button.full,
button.full,
.ghost.full {
  width: 100%;
  margin-top: 12px;
}

.ghost {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.flash {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid #bcebf0;
  border-radius: 12px;
  background: #eafcfe;
  font-weight: 800;
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: center;
  padding: clamp(42px, 6vw, 68px) clamp(24px, 5vw, 70px);
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 174, 189, 0.16), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #eef9fc 52%, #eaf4fb 100%);
}

.hero h1,
.section h1,
.section h2,
.app-main h1,
.auth-card h1,
.checkout h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(2.55rem, 4.55vw, 4.25rem);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: #007987;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.hero-preview {
  width: 100%;
  min-width: 0;
  align-self: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 59, 131, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.hero-image-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(8, 35, 74, 0.2);
}

.hero-image-card figcaption strong {
  font-size: 1.05rem;
}

.hero-image-card figcaption span {
  color: #007987;
  font-weight: 950;
}

.brand-strip {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(34px, 5vw, 62px) clamp(18px, 6vw, 80px);
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.brand-strip img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.brand-strip h2,
.visual-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.brand-strip p,
.visual-copy p {
  color: var(--muted);
}

.visual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  padding: clamp(52px, 8vw, 92px) clamp(18px, 6vw, 80px);
  background:
    linear-gradient(135deg, rgba(6, 59, 131, 0.06), rgba(0, 174, 189, 0.12)),
    #f7fbfd;
}

.visual-section img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.visual-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.visual-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
}

.section {
  padding: clamp(54px, 8vw, 90px) clamp(18px, 6vw, 80px);
}

.section.narrow {
  max-width: 880px;
  margin: 0 auto;
}

.band {
  background: #ffffff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.feature-grid,
.pricing-grid,
.faq-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.price-card,
.metric,
.panel,
.auth-card,
.summary-card,
.question-panel,
.feedback,
.history-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(8, 35, 74, 0.06);
}

.feature,
.price-card,
.metric,
.panel,
.question-panel,
.feedback,
.history-item {
  padding: 20px;
}

.feature h3,
.price-card h3,
.step h3 {
  margin: 8px 0;
}

.feature p,
.price-card p,
.step p,
.muted {
  color: var(--muted);
}

.icon-dot {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 18px;
  border-left: 4px solid var(--cyan);
  background: #f8fcff;
}

.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dff7fa;
  color: #007987;
  font-weight: 950;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price {
  margin: 14px 0;
  font-size: 2.3rem;
  font-weight: 950;
  color: var(--blue);
}

.price-card ul {
  padding-left: 20px;
  color: var(--muted);
  flex: 1;
}

details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

summary {
  font-weight: 900;
  cursor: pointer;
}

.final-cta {
  margin: clamp(36px, 6vw, 70px) clamp(18px, 6vw, 80px);
  padding: clamp(34px, 6vw, 64px);
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #063b83, #008e9b);
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.auth-card {
  width: min(100%, 480px);
  padding: 28px;
}

label {
  display: block;
  margin-top: 14px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8fbfe;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(0, 174, 189, 0.26);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check input {
  width: 20px;
  min-height: 20px;
}

.notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e8;
  color: var(--warning);
  font-weight: 800;
}

.checkout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: start;
  padding: clamp(54px, 8vw, 90px) clamp(18px, 6vw, 80px);
}

.summary-card {
  padding: 24px;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
}

.kv dt {
  color: var(--muted);
  font-weight: 850;
}

.kv dd {
  margin: 0;
  font-weight: 900;
}

.app-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.app-sidebar {
  padding: 26px 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.app-sidebar a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

.app-sidebar a:hover {
  background: var(--soft);
  color: var(--ink);
}

.app-main {
  padding: clamp(28px, 5vw, 54px);
}

.metric-grid {
  margin: 20px 0;
}

.metric p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 850;
}

.metric div {
  font-size: 1.25rem;
  font-weight: 950;
}

.question-panel h1 {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
}

.options {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.option input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.feedback {
  margin-top: 22px;
}

.feedback.ok {
  border-color: #bfe8d4;
  background: #f0fbf5;
}

.feedback.bad {
  border-color: #ffd1cc;
  background: #fff7f6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef6fb;
  font-size: 0.88rem;
}

.history-item {
  margin-top: 12px;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar nav,
  .account {
    justify-content: flex-start;
  }

  .hero,
  .checkout,
  .app-shell,
  .brand-strip,
  .visual-section {
    grid-template-columns: 1fr;
  }

  .hero-image-card img {
    height: 100%;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .app-sidebar a {
    white-space: nowrap;
  }

  .feature-grid,
  .pricing-grid,
  .faq-grid,
  .metric-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.25rem);
  }

  .hero-image-card figcaption {
    position: static;
    border-radius: 0;
    box-shadow: none;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
