
:root {
  --ink: #1b2b44;
  --ink-soft: rgb(27 43 68 / 0.72);
  --line: rgb(27 43 68 / 0.14);
  --paper: #ffffff;
  --blush: #fcedef;
  --blue: #0e74be;
  --font: "Jost", ui-sans-serif, system-ui, sans-serif;
  --radius-photo: 1.75rem;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd { margin: 0; }

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

button:not(:disabled),
[role="button"]:not(:disabled) { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection { background: var(--blush); color: var(--ink); }

.wrap { width: min(68rem, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: 4rem; }

@media (min-width: 56rem) {
  .wrap { width: min(68rem, calc(100% - 5rem)); }
  .section { padding-block: 6.5rem; }
}

.title-xl {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-lg {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.text { max-width: 34rem; color: var(--ink-soft); text-wrap: pretty; }
.text + .text { margin-top: 1rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}
.site-header > a { text-decoration: none; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo img { width: 2.25rem; height: 2.25rem; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 1rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-page { display: none; }
@media (min-width: 40rem) {
  .site-nav .nav-page { display: inline; }
}

.btn {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn:hover { border-color: var(--blue); background: var(--blue); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); background: transparent; }
.btn-small { min-height: 2.75rem; padding-inline: 1.2rem; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero { padding-block: 1.25rem 2rem; }
.hero .text { margin-top: 1.5rem; font-size: 1.25rem; }
@media (min-width: 56rem) {
  .hero { padding-block: 2rem 2.5rem; }
}

.about { display: grid; gap: 2.5rem; }
.about .title-lg { margin-bottom: 1.5rem; }
@media (min-width: 56rem) {
  .about { grid-template-columns: 1fr; }
}

.why-list { display: grid; margin-top: 2.5rem; }
.why-list div { border-top: 1px solid var(--line); padding-block: 1.4rem; }
.why-list dt { font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.why-list dd { margin-top: 0.35rem; color: var(--ink-soft); }
@media (min-width: 40rem) {
  .why-list { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
}

.contact { border-radius: var(--radius-photo); padding: 2.5rem 1.5rem; background: var(--blush); }
.contact .text { margin-top: 1rem; color: var(--ink); }
.lead-form { display: grid; gap: 0.75rem; max-width: 28rem; margin-top: 1.25rem; }
.field {
  min-height: 3.1rem;
  width: 100%;
  border: 1px solid rgb(18 59 98 / 0.14);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.75rem 0.95rem;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}
.field::placeholder { color: rgb(18 59 98 / 0.45); }
.hp { display: none; }
.form-note { min-height: 1.25rem; margin: 0; color: rgb(18 59 98 / 0.7); font-size: 0.92rem; }
.form-note.is-error { color: #9b2c2c; }
@media (min-width: 56rem) {
  .contact { padding: 4.5rem 4rem; }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.link-button:hover { color: var(--ink); }

dialog.policy {
  width: min(34rem, calc(100% - 2rem));
  margin: auto;
  border: 0;
  border-radius: var(--radius-photo);
  padding: 2rem 1.5rem;
  background: var(--paper);
  color: var(--ink);
}
dialog.policy::backdrop { background: rgb(27 43 68 / 0.5); }
dialog.policy h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
dialog.policy p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1rem; }
dialog.policy form { margin-top: 1.75rem; }
@media (min-width: 40rem) {
  dialog.policy { padding: 2.5rem; }
}

html:not(.dock-off) body {
  padding-bottom: calc(12.25rem + env(safe-area-inset-bottom));
}

html.dock-off .home-dock {
  display: none;
}

.home-dock {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.55rem calc(0.4rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.home-dock-card {
  pointer-events: auto;
  width: min(26rem, 100%);
  margin-inline: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgb(27 43 68 / 0.16);
  padding: 0.5rem 0.55rem 0.45rem;
  animation: dock-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock-head {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.dock-head p {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dock-head strong {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.dock-head span {
  display: none;
}

.home-dock-close {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 50%;
  background: rgb(27 43 68 / 0.06);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

.home-dock-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.15rem;
  margin: 0.4rem 0 0.4rem;
  background: var(--blush);
  border-radius: 999px;
}

.home-dock-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  min-height: 1.65rem;
}

.home-dock-switch button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgb(27 43 68 / 0.08);
}

.dock-steps {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.dock-steps.is-active {
  display: grid;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: center;
  padding: 0.4rem 0.3rem 0.35rem;
  min-height: 0;
}

.step-card b,
.step-card small {
  display: block;
}

.step-card b {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
}

.step-card small {
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.2;
}

.step-ico {
  width: 1.7rem;
  height: 1.7rem;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--blush);
  color: var(--ink);
}

.step-ico svg {
  width: 15px;
  height: 15px;
}

.step-card.is-hot {
  border-color: var(--ink);
  background: #f7f9fb;
  box-shadow: 0 0 0 2px var(--ink);
}

.step-card.is-hot .step-ico {
  background: var(--ink);
  color: #fff;
  animation: hop 1.15s ease-in-out infinite;
}

.dock-caption {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0.4rem 0.1rem 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.3;
}

.point-down {
  flex-shrink: 0;
  width: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.25;
  animation: hop 1.15s ease-in-out infinite;
}

.point-down.is-hidden {
  display: none;
}

@keyframes dock-in {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-dock-card,
  .step-card.is-hot .step-ico,
  .point-down {
    animation: none;
  }
}
