:root {
  --bg: #f7fafc;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #cbd9ea;
  --panel: rgba(255, 255, 255, 0.88);
  --primary: #007f72;
  --blue: #1769aa;
  --orange: #ff7a00;
  --shadow: 0 22px 60px rgba(31, 41, 55, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(203, 217, 234, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 217, 234, 0.28) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  padding: 5px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(23, 105, 170, 0.16);
}

.brand-lockup strong {
  color: #1f2937;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-lockup strong span {
  color: var(--orange);
}

.app-title {
  text-align: center;
}

.app-title p,
.app-title h1 {
  margin: 0;
}

.app-title p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.app-title h1 {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.15;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header-tools select {
  min-width: 126px;
  min-height: 44px;
  padding: 0 36px 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 105, 170, 0.08);
  font-weight: 800;
  cursor: pointer;
}

main {
  width: min(1296px, calc(100% - 32px));
  margin: 32px auto 56px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 26px;
  align-items: center;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.intro-panel h2,
.preview-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-copy,
.preview-copy p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.link-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.link-card > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.copy-row button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 15px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.copy-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(340px, 430px);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
  margin-top: 36px;
  padding: 24px 0;
}

.preview-copy {
  position: sticky;
  top: 122px;
  padding-top: 28px;
}

.phone-preview {
  width: min(390px, 100%);
  min-height: 760px;
  margin: 0 auto;
  padding: 15px 12px 12px;
  background: #101827;
  border: 1px solid rgba(16, 24, 39, 0.55);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.28);
}

.phone-speaker {
  width: 86px;
  height: 6px;
  margin: 0 auto 12px;
  background: #334155;
  border-radius: 999px;
}

.phone-preview iframe {
  display: block;
  width: 100%;
  height: 724px;
  background: #fff;
  border: 0;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .brand-lockup,
  .header-tools {
    justify-content: center;
  }

  .intro-panel,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .preview-copy {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px;
  }

  .header-tools {
    flex-wrap: wrap;
  }

  .header-tools select {
    min-width: 140px;
  }

  main {
    width: min(100% - 20px, 1296px);
    margin-top: 18px;
  }

  .intro-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .copy-row {
    flex-direction: column;
  }

  .phone-preview {
    min-height: 680px;
    padding: 12px 9px 9px;
    border-radius: 28px;
  }

  .phone-preview iframe {
    height: 640px;
    border-radius: 20px;
  }
}
