:root {
  --powder: #b7cacf;
  --gold: #fede37;
  --goldenrod: #f0bb3a;
  --leaf: #88bb6d;
  --jade: #3ba878;
  --deep-teal: #0b8464;
  --teal: #228c7c;
  --cyan: #177080;
  --slate: #3c414d;
  --ivory: #fdfff1;
  --white: #ffffff;
  --bg-page: var(--ivory);
  --bg-card: #ffffff;
  --gradient: var(--goldenrod);
  --text-gradient: linear-gradient(90deg, var(--slate) 1000%);
  --gradient-soft: linear-gradient(135deg, rgba(254, 222, 55, 0.18) 0%, rgba(136, 187, 109, 0.14) 50%, rgba(11, 132, 100, 0.08) 100%);
  --surface-muted: #f5f7e8;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(60, 65, 77, 0.12);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: only light;
  background-color: var(--bg-page);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.eyebrow,
.step-num,
.btn,
.site-nav a,
.feature-card h3,
.problem-card h3,
.step h3,
.compare-table thead th {
  font-family: var(--font-display);
}

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

a {
  color: var(--deep-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(253, 255, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(183, 202, 207, 0.5);
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 88px;
  width: auto;
  max-width: min(320px, 60vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--deep-teal);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--slate) !important;
}

.nav-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  border-radius: 1px;
}

/* Wave dividers at section foot (creativeocean / CodePen WboQLVe) */
.wave-divider {
  display: flex;
  width: 100vw;
  max-width: 100vw;
  height: clamp(36px, 5vw, 56px);
  margin: 2rem calc(50% - 50vw) 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  justify-content: center;
  align-items: flex-end;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.wave-divider__path {
  display: block;
  color-scheme: only light;
}

.wave-divider--from-hero {
  background: var(--gradient-soft);
}

.wave-divider--from-band {
  background: var(--surface-muted);
}

.wave-divider--from-white {
  background: var(--white);
}

.wave-divider--from-ivory {
  background: var(--bg-page);
}

.wave-divider--from-slate {
  background: var(--slate);
}

.hero,
.section--band,
.section--alt,
.cta {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Hero */
.hero {
  padding: 4rem 1.5rem 0;
  background: var(--gradient-soft);
  text-align: center;
  border-bottom: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--teal);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--slate);
}

.hero-lead {
  font-size: 1.15rem;
  margin: 0 0 2rem;
  color: var(--cyan);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  border: none;
  box-shadow: var(--shadow);
  color: var(--slate);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary .btn-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--slate);
  border: 2px solid var(--powder);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section--band {
  max-width: none;
  width: 100%;
  background: var(--surface-muted);
  padding: 4rem 1.5rem 0;
}

.section--alt {
  max-width: none;
  width: 100%;
  background: var(--white);
  padding: 4rem 1.5rem 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--slate);
}

.section-header p {
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--cyan);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-teal);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Problem */
.problem-intro {
  font-size: 1.05rem !important;
  color: var(--slate) !important;
}

.problem-tagline {
  margin-top: 1rem !important;
  font-weight: 600;
  color: var(--deep-teal) !important;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid var(--powder);
}

.problem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.problem-card h3 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--slate);
}

.problem-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--jade);
}

.step-num {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--deep-teal);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
}

.steps-footnote {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cyan);
  font-style: italic;
}

/* Dashboard */
.dashboard-block {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dashboard-icon {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.dashboard-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--slate);
}

.dashboard-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--cyan);
  max-width: 40rem;
}

.dashboard-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.dashboard-list li {
  padding: 0.85rem 1rem;
  background: var(--ivory);
  border-radius: var(--radius);
  border-left: 4px solid var(--jade);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dashboard-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--deep-teal);
  margin-bottom: 0.15rem;
}

@media (max-width: 700px) {
  .dashboard-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dashboard-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .dashboard-list {
    text-align: left;
  }
}

/* Video — full-width white band; only the player is narrowed */
.section--video .section-header,
.section--video .video-wrap {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--slate);
}

.video-wrap video {
  width: 100%;
  display: block;
}

/* Security */
#security .section-header {
  margin-bottom: 2rem;
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.security-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--powder);
  border-left: 4px solid var(--jade);
}

.security-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-teal);
}

.security-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .security-list {
    grid-template-columns: 1fr;
  }
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(183, 202, 207, 0.4);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table thead th {
  background: var(--slate);
  color: var(--white);
  font-weight: 700;
}

.compare-table thead th:nth-child(2) {
  background: var(--deep-teal);
}

.compare-table tbody tr:hover {
  background: var(--gradient-soft);
}

.compare-table .yes {
  color: var(--jade);
  font-weight: 800;
  font-size: 1.1rem;
}

.compare-table .no {
  color: #c44;
  font-weight: 700;
}

.compare-table .partial {
  color: var(--goldenrod);
  font-weight: 600;
}

.table-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--cyan);
}

/* CTA */
.cta {
  max-width: none;
  padding: 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--slate);
  color: var(--white);
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  font-style: italic;
}

.cta-inner > p:not(.contact-alert) {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.cta-url {
  margin-top: 1rem !important;
}

.cta-url a {
  color: var(--gold);
}

.contact-notices {
  width: 100%;
  max-width: 32rem;
  margin: 0 0 1.25rem;
}

.contact-alert {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
}

.contact-alert--success {
  background: rgba(136, 187, 109, 0.25);
  color: var(--ivory);
  border: 1px solid var(--leaf);
}

.contact-alert--error {
  background: rgba(254, 222, 55, 0.15);
  color: var(--ivory);
  border: 1px solid var(--goldenrod);
}

.contact-form {
  width: 100%;
  max-width: 32rem;
  margin: 0;
  text-align: left;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form__row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ivory);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--ivory);
  border: 1px solid var(--powder);
  border-radius: 8px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
}

/* Drafto's Glasses demo */
.section--glasses {
  max-width: none;
  width: 100%;
}

.section--band .section-header,
.section--band .steps,
.section--band .steps-footnote,
.section--band .table-wrap,
.section--band .table-note {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section--band .dashboard-block {
  max-width: var(--max);
  margin: 0 auto;
}

.section--glasses .section-header {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.glasses-demo {
  max-width: var(--max);
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.glasses-demo,
.glasses-demo * {
  user-select: none;
  -webkit-user-select: none;
}

body.glasses-interacting .glasses-stage.is-active {
  overscroll-behavior: contain;
}

body.glasses-interacting {
  touch-action: pan-y;
}

.glasses-query {
  background: var(--white);
  border: 1px solid var(--powder);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.glasses-query blockquote {
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
}

.glasses-query blockquote p {
  margin: 0;
}

.glasses-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.glasses-label--drafto {
  color: var(--deep-teal);
}

.glasses-stage {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  background: var(--white);
}

.glasses-stage:not(.is-active) {
  cursor: default;
}

.glasses-stage.is-active {
  cursor: crosshair;
}

.glasses-stage.is-active.is-lens-dragging {
  touch-action: none;
}

.glasses-response {
  padding: 1.35rem 1.5rem 1.5rem;
  font-size: 0.98rem;
}

.glasses-response p {
  margin: 0 0 0.75rem;
}

.glasses-response p:last-child {
  margin-bottom: 0;
}

.glasses-response--drafto {
  position: relative;
  z-index: 1;
  min-height: 340px;
  background: linear-gradient(160deg, rgba(254, 222, 55, 0.14) 0%, rgba(136, 187, 109, 0.1) 45%, rgba(35, 140, 124, 0.08) 100%);
  border: 1px solid rgba(35, 140, 124, 0.22);
}

.glasses-response--generic {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--surface-muted);
  border: 1px solid var(--powder);
  transition: opacity 0.35s ease;
}

.glasses-defs {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}

.glasses-response--generic.is-revealing {
  -webkit-mask: url(#glasses-reveal-mask);
  mask: url(#glasses-reveal-mask);
}

.glasses-stage.is-fully-revealed .glasses-response--generic {
  opacity: 0;
  pointer-events: none;
}

.glasses-kb-note {
  margin-top: 1rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(35, 140, 124, 0.35);
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
}

.glasses-lens {
  position: absolute;
  z-index: 4;
  left: var(--lens-x, 50%);
  top: var(--lens-y, 50%);
  width: var(--lens-w, 451px);
  height: var(--lens-h, 368px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow: visible;
}

.glasses-lens path {
  fill: none;
  stroke: var(--slate);
  stroke-width: 5px;
  vector-effect: non-scaling-stroke;
}

.glasses-stage.is-active .glasses-lens {
  opacity: 1;
}

.glasses-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 5;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--ivory);
  border: 1px solid var(--powder);
  border-radius: 999px;
  pointer-events: none;
}

.glasses-activate-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.glasses-activate-wrap[hidden] {
  display: none;
}

.glasses-activate {
  position: static;
  transform: none;
  cursor: pointer;
  border: none;
  pointer-events: auto;
}

.glasses-activate:hover {
  transform: translateY(-1px);
}

.glasses-activate .btn-text {
  -webkit-text-fill-color: var(--slate);
  color: var(--slate);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--ivory);
  border-top: 1px solid var(--powder);
}

.footer-logo {
  height: 80px;
  width: auto;
  max-width: 280px;
  margin: 0 auto 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cyan);
}

@media (min-width: 900px) {
  .logo {
    height: 104px;
    max-width: 360px;
  }

  .footer-logo {
    height: 96px;
    max-width: 320px;
  }
}

/* Mobile nav + marketing layout fixes */
@media (max-width: 768px) {
  .hero,
  .section--band,
  .section--alt,
  .cta {
    position: relative;
    padding-bottom: 32px;
    overflow-x: hidden;
  }

  .wave-divider {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 32px;
    margin: 0;
    transform: translateX(-50%);
    align-self: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 88px;
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--powder);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
