:root {
  --ink: #3a2f2b;
  --muted: #756b66;
  --paper: #fff6e8;
  --paper-2: #fffaf2;
  --panel: #ffffff;
  --line: #eadccd;
  --pink: #d91f73;
  --pink-2: #f05a97;
  --pink-soft: #ffe1ed;
  --brown: #5b4036;
  --blue: #cfe9f4;
  --gray: #eef0f2;
  --danger: #b3314a;
  --ok: #2f8a63;
  --shadow: 0 18px 34px rgba(92, 57, 45, 0.14);
  --soft-shadow: 0 10px 22px rgba(217, 31, 115, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 225, 237, 0.65), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 3px solid rgba(217, 31, 115, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brown);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav button,
.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.nav button,
.ghost-button,
.icon-button {
  color: var(--brown);
  background: transparent;
}

.nav button {
  padding: 9px 14px;
  font-weight: 800;
}

.nav button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: var(--pink-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding: 34px clamp(18px, 4vw, 56px) 28px;
  color: #a49b96;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-footer button {
  min-height: auto;
  padding: 0;
  color: #9a918c;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-footer button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inline-link {
  min-height: auto;
  padding: 0;
  color: var(--pink);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  border-color: rgba(155, 0, 72, 0.12);
  box-shadow: 0 8px 0 #a91557, 0 16px 26px rgba(217, 31, 115, 0.22);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #a91557, 0 20px 30px rgba(217, 31, 115, 0.24);
}

.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #a91557, 0 10px 18px rgba(217, 31, 115, 0.2);
}

.secondary-button {
  color: var(--pink);
  background: #fff;
  border-color: rgba(217, 31, 115, 0.24);
  box-shadow: 0 6px 14px rgba(92, 57, 45, 0.08);
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(179, 49, 74, 0.18);
}

.compact-button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.ghost-button {
  border-color: rgba(91, 64, 54, 0.18);
}

.icon-button {
  width: 44px;
  padding: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: auto;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin: clamp(16px, 3vw, 34px) clamp(14px, 4vw, 56px) 0;
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(135deg, rgba(217, 31, 115, 0.08), rgba(207, 233, 244, 0.58)),
    #fff2dc;
  border: 5px solid #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: -52px;
  right: -70px;
  width: 250px;
  height: 250px;
  content: "";
  background: rgba(255, 255, 255, 0.48);
  border-radius: 40px;
  transform: rotate(22deg);
}

.hero::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 180px;
  height: 24px;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(217, 31, 115, 0.18) 0 12px, transparent 12px 22px);
  border-radius: 999px;
}

.hero-visual,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  justify-self: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  width: 34px;
  height: 4px;
  content: "";
  background: var(--pink);
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brown);
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 690px;
  font-size: clamp(38px, 5.8vw, 74px);
  font-weight: 950;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

h3 {
  font-size: 20px;
  font-weight: 900;
}

.pink-ribbons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}

.pink-ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 18px;
  color: #fff;
  background: var(--pink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(91, 64, 54, 0.13);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 950;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #564943;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
}

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

.trust-row {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.trust-item,
.metric,
.mini-card,
.panel,
.result-card,
.lead-card,
.login-card {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 14px 16px;
}

.trust-item strong {
  display: block;
  color: var(--pink);
  font-size: 26px;
  line-height: 1.2;
}

.trust-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  min-height: 390px;
}

.flat-illustration {
  position: relative;
  min-height: 390px;
}

.circle-back {
  position: absolute;
  inset: 18px 8% auto;
  height: 320px;
  background: #fff;
  border: 6px solid #ffe4ef;
  border-radius: 999px;
  box-shadow: inset 0 -22px 0 #f7f0e7;
}

.house-illu {
  position: absolute;
  left: 10%;
  bottom: 60px;
  width: 220px;
  height: 152px;
  background: #fff;
  border: 5px solid var(--brown);
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(91, 64, 54, 0.12);
}

.house-illu::before {
  position: absolute;
  left: 26px;
  top: -62px;
  width: 142px;
  height: 142px;
  content: "";
  background: var(--pink);
  border: 5px solid var(--brown);
  border-right: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  border-radius: 12px 0 0;
}

.house-illu::after {
  position: absolute;
  right: 26px;
  bottom: 0;
  width: 54px;
  height: 80px;
  content: "";
  background: #ffe1ed;
  border-left: 5px solid var(--brown);
  border-top: 5px solid var(--brown);
  border-radius: 12px 12px 0 0;
}

.window {
  position: absolute;
  left: 28px;
  top: 48px;
  width: 58px;
  height: 48px;
  background: var(--blue);
  border: 5px solid var(--brown);
  border-radius: 10px;
}

.window::before,
.window::after {
  position: absolute;
  content: "";
  background: var(--brown);
}

.window::before {
  left: 23px;
  top: 0;
  width: 5px;
  height: 100%;
}

.window::after {
  left: 0;
  top: 18px;
  width: 100%;
  height: 5px;
}

.person-illu {
  position: absolute;
  right: 16%;
  bottom: 54px;
  width: 96px;
  height: 156px;
}

.person-illu::before {
  position: absolute;
  top: 0;
  left: 30px;
  width: 46px;
  height: 46px;
  content: "";
  background: #ffd8bc;
  border: 5px solid var(--brown);
  border-radius: 50%;
}

.person-illu::after {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 76px;
  height: 108px;
  content: "";
  background: #8bc7dd;
  border: 5px solid var(--brown);
  border-radius: 28px 28px 18px 18px;
}

.paper-illu {
  position: absolute;
  right: 8%;
  top: 68px;
  width: 112px;
  height: 142px;
  background: #fff;
  border: 5px solid var(--brown);
  border-radius: 12px;
  box-shadow: 8px 8px 0 #ffe1ed;
  transform: rotate(8deg);
}

.paper-illu::before,
.paper-illu::after {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 7px;
  content: "";
  background: var(--pink);
  border-radius: 999px;
}

.paper-illu::before {
  top: 34px;
}

.paper-illu::after {
  top: 62px;
  background: var(--blue);
}

.magnifier-illu {
  position: absolute;
  left: 50%;
  top: 82px;
  width: 110px;
  height: 110px;
  border: 12px solid var(--pink);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.magnifier-illu::after {
  position: absolute;
  right: -46px;
  bottom: -24px;
  width: 64px;
  height: 15px;
  content: "";
  background: var(--pink);
  border-radius: 999px;
  transform: rotate(42deg);
}

.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--pink);
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}

.sparkle.one {
  left: 8%;
  top: 52px;
}

.sparkle.two {
  right: 14%;
  bottom: 208px;
  background: #8bc7dd;
}

.section {
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.mini-card {
  padding: 22px;
  box-shadow: 0 8px 20px rgba(92, 57, 45, 0.08);
}

.mini-card .icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: var(--pink);
  border-radius: 16px;
}

.mini-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-layout,
.result-layout,
.admin-layout {
  display: grid;
  gap: 18px;
}

.form-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.panel {
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 12px 26px rgba(92, 57, 45, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 9px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.check-row {
  color: var(--brown);
  font-size: 14px;
  font-weight: 900;
}

.required {
  color: var(--pink);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.step-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.step-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.step-header h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.step-progress {
  height: 3px;
  margin-top: 18px;
  background: #e7e2da;
}

.step-progress span {
  display: block;
  height: 100%;
  background: var(--pink);
  transition: width 0.2s ease;
}

.step-description {
  max-width: 720px;
  margin: -8px 0 28px;
  color: var(--muted);
  line-height: 2;
}

.field-note {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.field-note.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #ead8c6;
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  font-weight: 700;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(217, 31, 115, 0.14);
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-card {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--brown);
  background: #fffaf4;
  border: 2px solid #ead8c6;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
}

.radio-card input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--pink);
}

.step-actions {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.radio-card:has(input:checked) {
  color: var(--pink);
  background: var(--pink-soft);
  border-color: var(--pink);
  box-shadow: 0 8px 18px rgba(217, 31, 115, 0.12);
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  font-weight: 800;
}

.check-row input {
  min-height: auto;
  margin-top: 4px;
  accent-color: var(--pink);
}

.notice {
  padding: 15px;
  color: #5d524d;
  background: #fff7e9;
  border: 2px solid #efd8bd;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
}

.notice strong {
  color: var(--brown);
}

.result-layout {
  grid-template-columns: minmax(0, 1fr) 370px;
}

.result-hero {
  padding: 30px;
  color: var(--brown);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 25%, transparent 25%) 0 0 / 18px 18px,
    #ffe1ed;
  border: 4px solid #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.result-hero p {
  color: #5d524d;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.metric {
  padding: 16px;
  box-shadow: 0 8px 20px rgba(92, 57, 45, 0.08);
}

.metric strong {
  display: block;
  color: var(--pink);
  font-size: 28px;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.result-card {
  padding: 20px;
  box-shadow: 0 8px 20px rgba(92, 57, 45, 0.08);
}

.strategy-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.strategy-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  background: #fff7e9;
  border: 2px solid #f1decb;
  border-radius: 16px;
  font-weight: 800;
}

.strategy-list strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border-radius: 50%;
}

.consent-box {
  position: sticky;
  top: 88px;
}

.admin-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(92, 57, 45, 0.08);
}

.sidebar button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 14px;
  text-align: left;
  font-weight: 800;
}

.sidebar button.active,
.sidebar button:hover {
  color: var(--pink);
  background: var(--pink-soft);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar input,
.toolbar select {
  max-width: 240px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.legal-page {
  width: min(980px, calc(100% - 36px));
  margin: 72px auto;
}

.legal-panel {
  padding: clamp(28px, 5vw, 56px);
}

.legal-grid {
  margin-top: 24px;
}

.legal-text {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 14px;
}

.lead-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(92, 57, 45, 0.08);
}

.lead-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  color: #fff;
  background: #7394a5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-new {
  background: var(--pink);
}

.status-contacted {
  background: #b8860b;
}

.status-meeting {
  background: var(--ok);
}

.status-lost {
  background: #777;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kv {
  padding: 12px;
  background: #fff7e9;
  border: 2px solid #f1decb;
  border-radius: 16px;
  font-weight: 800;
}

.kv span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.copy-block {
  white-space: pre-wrap;
  padding: 14px;
  color: #3f342f;
  background: #fff7e9;
  border: 2px solid #f1decb;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 750;
}

.copy-section {
  margin-top: 22px;
}

.copy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.copy-heading h3 {
  margin: 0;
}

.copy-button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
}

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

th {
  background: #fff0f6;
  color: var(--brown);
  font-size: 12px;
  font-weight: 900;
}

.login-wrap {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 34px 18px;
}

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

.empty {
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 2px dashed #e4cbb9;
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--pink);
  background: #fff;
  border: 2px solid var(--pink-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.dark {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--pink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    justify-self: stretch;
  }

  .hero-visual {
    order: 2;
  }
}

@media (max-width: 980px) {
  .form-layout,
  .result-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .features,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consent-box,
  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
    padding: 28px 18px 24px;
    text-align: center;
  }

  .hero {
    margin: 12px;
    padding: 20px;
    border-radius: 22px;
  }

  .hero-visual,
  .flat-illustration {
    min-height: 300px;
  }

  .circle-back {
    height: 245px;
  }

  .house-illu {
    left: 2%;
    width: 180px;
    height: 126px;
  }

  .house-illu::before {
    left: 23px;
    top: -50px;
    width: 112px;
    height: 112px;
  }

  .person-illu {
    right: 4%;
    transform: scale(0.86);
    transform-origin: bottom right;
  }

  .paper-illu {
    right: 2%;
    top: 36px;
    transform: rotate(8deg) scale(0.86);
  }

  .magnifier-illu {
    left: 46%;
    top: 74px;
    transform: rotate(-18deg) scale(0.78);
  }

  .trust-row,
  .features,
  .form-grid,
  .metrics,
  .admin-grid,
  .detail-grid,
  .radio-options {
    grid-template-columns: 1fr;
  }

  .section-head,
  .lead-card {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .lead-card > div:last-child,
  .detail-actions {
    justify-content: flex-start;
  }

  .pink-ribbon {
    width: 100%;
  }
}

/* Silex-inspired refined theme overrides */
:root {
  --ink: #202020;
  --muted: #74716d;
  --paper: #f5f3ef;
  --paper-2: #fbfaf7;
  --panel: #ffffff;
  --line: #ddd8cf;
  --pink: #a85f70;
  --pink-2: #c78997;
  --pink-soft: #f3e5e8;
  --brown: #2d2d2b;
  --blue: #e8eef0;
  --gray: #ecebea;
  --danger: #8f3d4b;
  --ok: #567a65;
  --shadow: 0 22px 50px rgba(41, 39, 36, 0.08);
  --soft-shadow: 0 14px 34px rgba(41, 39, 36, 0.08);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.topbar {
  padding: 22px clamp(22px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.12;
}

.brand-text strong {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-text span {
  color: #343331;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}

.nav button {
  color: var(--ink);
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
}

.nav button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: transparent;
  color: var(--pink);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  min-height: 48px;
  border-radius: 0;
  letter-spacing: 0.04em;
}

.primary-button {
  color: #fff;
  background: #262522;
  border-color: #262522;
  box-shadow: none;
  min-width: 190px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 700;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #3a3834;
  border-color: #3a3834;
  box-shadow: 0 16px 34px rgba(41, 39, 36, 0.18);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.secondary-button,
.ghost-button {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: stretch;
  margin: 0;
  padding: clamp(42px, 6vw, 82px) clamp(22px, 6vw, 92px);
  background: var(--paper-2);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-visual {
  min-height: clamp(420px, 58vw, 640px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(32, 32, 32, 0.08), rgba(32, 32, 32, 0.28)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=82") center / cover;
}

.flat-illustration {
  display: none;
}

.hero-content {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  justify-content: center;
  justify-self: stretch;
  padding: clamp(18px, 4vw, 48px) 0;
}

.eyebrow {
  gap: 14px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 48px;
  height: 1px;
  background: var(--ink);
  border-radius: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
}

h1 {
  max-width: 680px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1.13;
  letter-spacing: 0.015em;
}

h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.16;
}

h3 {
  font-size: 19px;
}

.worldview {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
}

.pink-ribbons {
  gap: 8px;
  margin: 28px 0;
}

.pink-ribbon {
  min-height: auto;
  padding: 0;
  color: var(--pink);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 600;
}

.pink-ribbon::before {
  width: 10px;
  height: 10px;
  margin-right: 12px;
  content: "";
  background: var(--pink);
}

.lead {
  max-width: 690px;
  margin-top: 8px;
  color: #5e5b56;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 2;
}

.hero-actions {
  margin-top: 38px;
}

.cta-block {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 38px;
}

.hero-cta {
  margin-top: 42px;
}

.cta-button {
  min-height: 62px;
  min-width: 256px;
  padding-inline: 40px;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.cta-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.cta-note {
  margin: 0;
  color: #5d5954;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.trust-row {
  max-width: 680px;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item,
.metric,
.mini-card,
.panel,
.result-card,
.lead-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.trust-item {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  padding: 28px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
}

.trust-item span {
  color: #3f3c38;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.section {
  padding: clamp(72px, 9vw, 132px) clamp(22px, 6vw, 92px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  align-items: flex-start;
  margin-bottom: 52px;
}

.section-head p {
  max-width: 780px;
  color: var(--muted);
  font-weight: 400;
  line-height: 2;
}

.features {
  gap: 0;
  border-top: 1px solid var(--line);
}

.mini-card {
  min-height: 260px;
  padding: 34px 28px;
  border-width: 0 1px 1px 0;
  background: transparent;
}

.mini-card .icon {
  width: 42px;
  height: 42px;
  color: var(--pink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
}

.mini-card p {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.9;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(34px, 7vw, 98px);
  align-items: start;
  background: #eeece7;
}

.split-section > div > p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 2;
}

.flow-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d2ccc2;
}

.flow-list article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid #d2ccc2;
}

.flow-list span {
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.flow-list h3 {
  margin-bottom: 8px;
}

.flow-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.cta-section {
  display: grid;
  justify-items: start;
  gap: 22px;
  background:
    linear-gradient(90deg, rgba(245, 243, 239, 0.96), rgba(245, 243, 239, 0.72)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.cta-section .bottom-cta {
  margin-top: 8px;
}

.cta-lead {
  margin: 0;
  color: #4f4b46;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.9;
}

input,
select,
textarea {
  min-height: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(168, 95, 112, 0.13);
}

.radio-card {
  min-height: 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 500;
}

.radio-card:has(input:checked) {
  color: var(--ink);
  background: #f6f1ef;
  border-color: var(--pink);
  box-shadow: inset 4px 0 0 var(--pink);
}

.notice,
.strategy-list li,
.kv,
.copy-block {
  background: #f7f5f1;
  border: 1px solid var(--line);
  border-radius: 0;
}

.strategy-list strong {
  background: var(--ink);
}

.result-hero {
  color: var(--ink);
  background: #eeece7;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.metric strong {
  color: var(--pink);
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: 0;
}

.sidebar button {
  border-radius: 0;
}

.sidebar button.active,
.sidebar button:hover {
  color: var(--ink);
  background: #f1eeee;
  box-shadow: inset 3px 0 0 var(--pink);
}

.status-new {
  background: var(--pink);
}

.badge {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
}

.badge.dark,
.toast {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

table {
  border: 1px solid var(--line);
  border-radius: 0;
}

th {
  background: #eeece7;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
    order: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 14px;
    padding: 16px 18px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-text small {
    font-size: 9px;
  }

  .hero {
    padding: 28px 18px 46px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .trust-row,
  .features,
  .split-section,
  .radio-options {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .mini-card {
    border-right: 0;
  }

  .flow-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-list p {
    grid-column: auto;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
  }

  .cta-block {
    width: 100%;
  }

  .form-step .row-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-step .row-actions button {
    width: 100%;
  }
}
