:root {
  --teal: #0b7c86;
  --teal-dark: #065f68;
  --cyan: #12d6c5;
  --amber: #f59e0b;
  --red: #e11d48;
  --ink: #111827;
  --slate: #334155;
  --muted: #64748b;
  --line: #d8e7e6;
  --mist: #eff8f7;
  --blue-mist: #eef6ff;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #f7fbfb;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 251, 251, 0.92);
  border-bottom: 1px solid rgba(216, 231, 230, 0.68);
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.brand,
.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand strong,
.app-logo strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 214, 197, 0.95), rgba(11, 124, 134, 0.98)),
    var(--teal);
  box-shadow: inset 0 -10px 18px rgba(6, 95, 104, 0.25);
}

.brand-mark::before {
  position: absolute;
  inset: 9px 10px;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top-width: 5px;
  border-radius: 4px;
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--amber);
}

.brand-mark.small {
  width: 30px;
  height: 30px;
}

.brand-mark.small::before {
  inset: 8px 9px;
}

.brand-mark.small::after {
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--slate);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--mist);
  color: var(--ink);
  outline: none;
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--teal-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section-pad {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(135deg, rgba(239, 248, 247, 0.98) 0%, rgba(255, 255, 255, 0.9) 54%, rgba(238, 246, 255, 0.98) 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: normal;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.06;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
}

h4 {
  margin: 0;
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--slate);
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(11, 124, 134, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.button.compact {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
  max-width: 720px;
}

.signal-row span {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 700;
}

.signal-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.5rem;
}

.hero-product {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid rgba(216, 231, 230, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.product-topbar,
.call-header,
.card-title,
.dashboard-head,
.filter-row,
.tag-row {
  display: flex;
  align-items: center;
}

.product-topbar {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-topbar strong {
  color: var(--ink);
}

.live-dot {
  width: 9px;
  height: 9px;
  margin-right: auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(225, 29, 72, 0.12);
}

.incoming-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.incoming-call h2 {
  margin: 2px 0 10px;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
}

.incoming-call p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.incoming-call .muted {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 128px;
}

.waveform span {
  display: block;
  min-height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), #4aa3ff);
  animation: pulse 1.2s infinite ease-in-out;
}

.waveform span:nth-child(2) {
  height: 74px;
  animation-delay: 120ms;
}

.waveform span:nth-child(3) {
  height: 112px;
  animation-delay: 240ms;
}

.waveform span:nth-child(4) {
  height: 64px;
  animation-delay: 320ms;
}

.waveform span:nth-child(5) {
  height: 96px;
  animation-delay: 180ms;
}

.waveform span:nth-child(6) {
  height: 48px;
  animation-delay: 80ms;
}

.waveform span:nth-child(7) {
  height: 88px;
  animation-delay: 260ms;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.75);
  }
  50% {
    transform: scaleY(1);
  }
}

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

.ai-grid article,
.feature-card,
.price-card,
.scenario-step,
.notify-card,
.notification-preview,
.call-card,
.transcript-card,
.stat-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.ai-grid article {
  min-height: 138px;
  padding: 16px;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.ai-grid strong {
  display: block;
  margin-top: 12px;
  line-height: 1.35;
}

.ai-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px clamp(18px, 5vw, 72px);
  background: var(--line);
}

.proof-bar span {
  display: grid;
  min-height: 68px;
  place-items: center;
  padding: 14px 10px;
  background: var(--white);
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--white);
}

.section-heading {
  max-width: 850px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--slate);
  line-height: 1.8;
}

.section-heading.narrow {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-card {
  padding: 24px;
}

.feature-no {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-card p,
.scenario-step p,
.price-card p,
.contact-copy p {
  color: var(--slate);
  line-height: 1.75;
}

.flow-section {
  background: var(--mist);
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.flow-track article {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.flow-track article span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.flow-track p {
  color: var(--slate);
  line-height: 1.7;
}

.demo-section {
  background: #f7fbfb;
}

.demo-section .section-heading {
  margin-bottom: 32px;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.app-sidebar {
  padding: 18px;
  background: var(--ink);
  color: var(--white);
}

.app-logo {
  min-height: 48px;
  margin-bottom: 24px;
}

.view-tab {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-align: left;
}

.view-tab.active,
.view-tab:hover,
.view-tab:focus-visible {
  background: rgba(18, 214, 197, 0.12);
  color: var(--white);
  border-color: rgba(18, 214, 197, 0.26);
  outline: none;
}

.app-main {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.dashboard-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-head h3 {
  margin-top: 4px;
}

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

.stat-grid article {
  min-height: 102px;
  padding: 16px;
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.stat-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.call-card,
.transcript-card {
  padding: 18px;
}

.call-header,
.card-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.pill.urgent {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.pill.ready {
  background: rgba(11, 124, 134, 0.12);
  color: var(--teal-dark);
}

.call-card p {
  color: var(--slate);
  line-height: 1.75;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-row span {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-dot {
  position: relative;
  padding-left: 14px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.status-dot::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
}

.transcript {
  display: grid;
  gap: 10px;
}

.transcript p {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--slate);
  line-height: 1.65;
}

.filter-row {
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
  font-weight: 800;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  border-color: var(--teal);
  background: var(--mist);
  color: var(--teal-dark);
  outline: none;
}

.history-table {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 96px minmax(170px, 1.1fr) minmax(220px, 1.8fr) 96px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.history-row strong,
.history-row span,
.history-row p {
  min-width: 0;
}

.history-row p {
  margin: 0;
  color: var(--slate);
  line-height: 1.5;
}

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

.scenario-step {
  min-height: 180px;
  padding: 18px;
}

.scenario-step span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.scenario-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-mist);
}

label {
  display: grid;
  gap: 8px;
  color: var(--slate);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c7dcda;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 214, 197, 0.14);
  outline: none;
}

.branch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.branch-list span {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.notify-card {
  display: grid;
  min-height: 146px;
  gap: 10px;
  align-content: start;
  padding: 18px;
  color: var(--ink);
}

.notify-card input {
  width: 24px;
  min-height: 24px;
  accent-color: var(--teal);
}

.notify-card span {
  color: var(--teal-dark);
  font-weight: 900;
}

.notification-preview {
  margin-top: 14px;
  padding: 20px;
}

.notification-preview h4 {
  margin-top: 12px;
}

.notification-preview p {
  margin-bottom: 0;
  color: var(--slate);
  line-height: 1.7;
}

.pricing-section {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.price-card {
  display: grid;
  min-height: 292px;
  align-content: start;
  padding: 22px;
}

.price-card.featured {
  background:
    linear-gradient(180deg, rgba(18, 214, 197, 0.1), rgba(255, 255, 255, 1)),
    var(--white);
  border-color: rgba(11, 124, 134, 0.38);
  box-shadow: 0 18px 44px rgba(11, 124, 134, 0.14);
}

.price-card h3 {
  margin-top: 26px;
}

.price-card .button {
  margin-top: auto;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--mist);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 900;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-weight: 900;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  font-weight: 800;
}

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

  .hero-product {
    max-width: 860px;
  }

  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .flow-track,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .app-logo {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .view-tab {
    justify-content: center;
    margin: 0;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 71px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
  }

  .section-pad {
    padding-block: 56px;
  }

  .hero-actions,
  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .signal-row,
  .ai-grid,
  .stat-grid,
  .flow-track,
  .pricing-grid,
  .notify-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .incoming-call,
  .live-layout {
    grid-template-columns: 1fr;
  }

  .waveform {
    height: 82px;
  }

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

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

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

  .scenario-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .product-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-bar {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
