/* North West Digital — trustworthy, clean, modern */

:root {
  --navy: #0b1f33;
  --navy-deep: #071524;
  --slate: #334155;
  --muted: #64748b;
  --line: #d6dee8;
  --surface: #f4f7fa;
  --surface-2: #e8eef4;
  --white: #ffffff;
  --accent: #1f6f8b;
  --accent-soft: #5ba3c9;
  --accent-glow: rgba(91, 163, 201, 0.18);
  --success: #1a7a4c;
  --radius: 10px;
  --shadow: 0 18px 40px rgba(11, 31, 51, 0.12);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.55rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: #14304c;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Header */

.hero .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.hero .btn-primary:hover {
  background: #e8eef4;
  color: var(--navy);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-weight: 700;
  font-size: 1rem;
}

.logo-domain {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav .nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.site-nav .nav-cta:hover {
  background: #14304c;
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: calc(1.25rem + 1.5cm) 0 calc(2.75rem + 1.5cm);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(91, 163, 201, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(31, 111, 139, 0.35), transparent 50%),
    linear-gradient(165deg, #0b1f33 0%, #0a2740 42%, #071524 100%);
  animation: atmosphere-shift 14s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.5;
}

@keyframes atmosphere-shift {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(8deg) saturate(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: hero-rise 0.9s ease both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Advantage */

.advantage {
  padding: 5.5rem 0;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--white) 55%);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.advantage-point h3 {
  margin-bottom: 0.45rem;
}

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

.code-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.code-meta h3 {
  color: var(--white);
}

.code-meta p {
  color: rgba(255, 255, 255, 0.7);
}

.code-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.code-stats span {
  display: block;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--accent-soft);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.terminal {
  border-radius: 12px;
  overflow: hidden;
  background: #0a1624;
  border: 1px solid rgba(91, 163, 201, 0.2);
  min-height: 280px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a5d73;
}

.dot:nth-child(1) { background: #e07a5f; }
.dot:nth-child(2) { background: #f2cc8f; }
.dot:nth-child(3) { background: #81b29a; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.terminal-body {
  margin: 0;
  padding: 1.1rem 1.15rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #c5d4e2;
  overflow-x: auto;
  min-height: 220px;
}

.terminal-body .tok-tag { color: #5ba3c9; }
.terminal-body .tok-attr { color: #9ec9b0; }
.terminal-body .tok-str { color: #e8c07a; }
.terminal-body .tok-comment { color: #6b7c90; }
.terminal-body .cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 1px;
  background: var(--accent-soft);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Packages */

.packages {
  padding: 2.75rem 0 5.5rem;
  background: var(--white);
}

.package-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.package {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.package:hover {
  border-color: #b8c7d6;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 31, 51, 0.06);
}

.package-featured {
  border-color: var(--navy);
  background:
    linear-gradient(180deg, #f7fbfe 0%, var(--white) 40%);
  box-shadow: var(--shadow);
}

.package-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.package-header h3 {
  margin-bottom: 0.35rem;
}

.package-price {
  margin: 0 0 0.4rem;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.package-price .from {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.package-price .price-was {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.package-price .price-now,
.package-price strong {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro-offer-note {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 0.98rem;
}

.section-intro .intro-offer-note {
  color: var(--accent);
}

.intro-offer-note[hidden] {
  display: none;
}

.package-fit {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.package-price .price-period {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  flex-basis: 100%;
}

.package-badge-quiet {
  background: var(--surface-2);
  color: var(--navy);
}

.packages-aftercare {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.packages-aftercare a {
  color: var(--accent);
  font-weight: 600;
}

.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, var(--accent-glow), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.page-hero .hero-lead {
  margin: 0;
  max-width: 40rem;
}

.care-packages {
  background: var(--surface);
  padding-top: 3.5rem;
}

.care-compare-wrap {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

.care-compare-title {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.care-compare {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.care-compare th,
.care-compare td {
  padding: 0.7rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.care-compare thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.care-compare tbody th {
  font-weight: 600;
  color: var(--navy);
}

.care-compare td {
  text-align: center;
}

.care-compare thead th:not(:first-child) {
  text-align: center;
}

.care-yes {
  color: var(--success);
  font-weight: 600;
}

.care-no {
  color: var(--muted);
}

.care-fineprint {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.package ul {
  flex: 1;
  margin-bottom: 1.5rem;
}

.package li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.package .btn {
  width: 100%;
}

/* Apps */

.apps {
  padding: 4.5rem 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, #12324d 55%, #0b1f33 100%);
  color: rgba(255, 255, 255, 0.8);
}

.apps .eyebrow {
  color: var(--accent-soft);
}

.apps h2 {
  color: var(--white);
}

.apps-inner {
  max-width: 40rem;
}

.apps-points {
  margin: 1.25rem 0 1.75rem;
}

.apps-points li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
}

.apps-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-family: var(--mono);
}

.apps .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.apps .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

/* Coverage */

.coverage {
  padding: 5.5rem 0;
  background: var(--surface);
}

.coverage-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.coverage-points li {
  padding: 1.25rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.coverage-points strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.coverage-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */

.contact {
  padding: 5.5rem 0;
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-email {
  margin-top: 1.5rem;
  color: var(--muted);
}

.contact-email a {
  font-weight: 600;
}

.contact-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-actions-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28ch;
}

.contact-form,
.chat-form {
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.botcheck {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn:disabled,
.chat-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status,
.chat-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--success);
}

.form-status.is-error,
.chat-status.is-error {
  color: #b42318;
}

/* Footer */

.site-footer {
  padding: 2.75rem 0 2.25rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.footer-name {
  margin: 0 0 0.25rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tag,
.footer-abn {
  margin: 0;
  font-size: 0.9rem;
}

.footer-abn {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-legal a:hover {
  color: var(--accent-soft);
}

.footer-copy {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
}

.footer-copy a:hover {
  color: var(--accent-soft);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.28);
  margin: 0 0.15rem;
}

/* Legal pages */

.legal-page {
  padding: 3rem 0 4.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 40%);
}

.legal-content {
  max-width: 40rem;
}

.legal-content h1 {
  margin-bottom: 0.35rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-back {
  margin-top: 2.5rem;
}

/* Contract signing page */

.contract-page {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 163, 201, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--white) 35%);
  min-height: 100vh;
}

.contract-page .site-header .header-inner {
  justify-content: space-between;
  gap: 1rem;
}

.contract-header-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  max-width: 14rem;
  line-height: 1.35;
}

.contract-layout {
  max-width: 44rem;
  padding: 2.5rem 0 4rem;
}

.contract-intro .eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contract-intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.contract-intro .lead {
  font-size: 1.1rem;
  color: var(--slate);
}

.contract-flow {
  font-size: 0.98rem;
  color: var(--navy);
  background: var(--surface);
  border-left: 3px solid var(--accent-soft);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.contract-disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
}

.contract-panel {
  margin: 1.75rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contract-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

.contract-grid .field-span {
  grid-column: 1 / -1;
}

.contract-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}

.contract-form .field .optional {
  font-weight: 400;
  color: var(--muted);
}

.contract-form input[type="text"],
.contract-form input[type="email"],
.contract-form input[type="tel"],
.contract-form select {
  font: inherit;
  font-weight: 400;
  color: var(--slate);
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contract-form input:focus,
.contract-form select:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contract-form fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.contract-form legend {
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.contract-form .field-hint {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.contract-form .payment-note {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--slate);
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
  line-height: 1.45;
}

.contract-form .choice {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  width: 100%;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.contract-form .choice input[type="radio"],
.contract-form .choice input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  max-width: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  accent-color: var(--navy);
  appearance: auto;
}

.contract-form .choice span {
  min-width: 0;
  line-height: 1.45;
}

.agree-check {
  margin-bottom: 1.15rem;
}

.terms-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.agreement-body {
  max-height: min(55vh, 28rem);
  overflow: auto;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
}

.agreement-body h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.agreement-body h3:first-child {
  margin-top: 0;
}

.agreement-body h4 {
  font-size: 0.98rem;
  color: var(--navy);
  margin: 1rem 0 0.4rem;
}

.agreement-body p {
  margin-bottom: 0.65rem;
}

.sig-block {
  margin: 1rem 0 1.35rem;
}

.sig-canvas-wrap {
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  color-scheme: only light;
  overflow: hidden;
}

.sig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}

.btn-text {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  padding: 0;
}

#signature-pad {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  color-scheme: only light;
  touch-action: none;
  cursor: crosshair;
}

.form-status {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--success);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(26, 122, 76, 0.08);
}

.form-status.is-error {
  color: #8b1a1a;
  background: rgba(170, 17, 17, 0.08);
  border: 1px solid rgba(170, 17, 17, 0.25);
}

.contract-success h2 {
  color: var(--success);
}

.contract-footer {
  margin-top: auto;
}

.contract-footer .footer-compact {
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contract-footer .footer-compact p {
  margin: 0;
}

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

  .contract-header-note {
    display: none;
  }
}


/* Chat widget */

/* Chat launcher (opens tawk.to) */
.chat {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat[hidden] {
  display: none !important;
}

.chat-panel[hidden] {
  display: none !important;
}

/* Suppress tawk default launcher + "We are here" bubble until chat is opened */
html:not(.tawk-open) body > div:has(> iframe),
html:not(.tawk-open) .tawk-host {
  display: none !important;
}


.chat-toggle.is-waiting {
  opacity: 0.7;
  pointer-events: none;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-toggle:hover {
  background: #14304c;
}

.chat-toggle[aria-expanded="true"] {
  background: #14304c;
}

.chat-panel {
  width: min(340px, calc(100vw - 2rem));
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-in 0.22s ease;
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: var(--navy);
  color: var(--white);
}

.chat-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.chat-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.chat-form {
  padding: 1rem;
}

.chat-form .btn {
  width: 100%;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .advantage-grid,
  .package-list,
  .contact-inner,
  .code-showcase {
    grid-template-columns: 1fr;
  }

  .coverage-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11, 31, 51, 0.06);
  }

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

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--surface-2);
  }

  .site-nav .nav-cta {
    margin-top: 0.65rem;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: calc(1.25rem + 1.5cm) 0 calc(2.25rem + 1.5cm);
    align-items: flex-start;
  }

  .advantage,
  .packages,
  .care-packages,
  .coverage,
  .contact {
    padding: 4rem 0;
  }

  .packages {
    padding-top: 2rem;
  }

  .chat-toggle span {
    display: none;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
