/* VisaVisible: navy ink on passport paper, one entry-stamp green accent. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-display.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/publicsans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #13233f;
  --navy-2: #1e3354;
  --paper: #f7f3ea;
  --paper-2: #efe8d9;
  --card: #fffdf8;
  --ink: #13233f;
  --muted: #4b5568;
  --rule: #d8cfbd;
  --green: #1f7a5c;
  --green-dark: #17634a;
  --green-on-navy: #5dbb97;
  --paper-on-navy: #e9e4d8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 35, 63, 0.06), 0 8px 24px rgba(19, 35, 63, 0.08);
  --wrap: 76rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 var(--space-2);
}

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

.narrow {
  max-width: 44rem;
}

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

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.button-outline {
  background: transparent;
  color: var(--green-dark);
}

.button-outline:hover {
  background: var(--green);
  color: #fff;
}

.button-small {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.text-link {
  font-weight: 600;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: var(--space-2);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
}

.fine {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  margin-right: auto;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 0.2rem;
}

.site-nav a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) 0 calc(var(--space-6) + 3rem);
  background:
    repeating-radial-gradient(circle at 92% 18%, transparent 0 22px, rgba(19, 35, 63, 0.035) 22px 23px),
    var(--paper);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0 var(--space-1);
}

/* Decorative skyline line art (CSS backgrounds, so they stay out of the content) */
.hero::after,
.section-form::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1200px, 140%);
  background: url("/assets/img/skyline-melbourne.webp") center bottom / 100% auto no-repeat;
  aspect-ratio: 1200 / 493;
  opacity: 0.12;
  pointer-events: none;
}

.section-form::after {
  background-image: url("/assets/img/skyline-sydney.webp");
  aspect-ratio: 1200 / 408;
}

/* Hero chat mock-up: the signature element */

.chat-mock {
  margin: 0;
}

.chat-window {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--space-3);
  max-width: 30rem;
  margin-inline: auto;
}

.chat-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.chat-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
}

.bubble {
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin: 0 0 var(--space-2);
  font-size: 0.98rem;
}

.bubble-user {
  background: var(--navy);
  color: #fff;
  margin-left: 15%;
  border-bottom-right-radius: 4px;
}

.bubble-ai {
  background: var(--paper);
  margin-right: 8%;
  border-bottom-left-radius: 4px;
}

.bubble-ai p {
  margin-bottom: 0.5rem;
}

.mock-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mock;
}

.mock-list li {
  counter-increment: mock;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--rule);
}

.mock-list li::before {
  content: counter(mock) ".";
  font-weight: 700;
  color: var(--muted);
  min-width: 1.2rem;
}

.mock-name {
  font-weight: 600;
  margin-right: auto;
}

.stars {
  color: #b7791f;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.star-off {
  color: var(--rule);
}

.stamp-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--space-1) 8% 0 0;
  padding: 0.85rem 1rem;
  border: 2.5px dashed var(--green);
  border-radius: 12px;
  color: var(--green-dark);
  transform: rotate(-2deg);
  background: rgba(31, 122, 92, 0.05);
}

.stamp-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
}

.stamp-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.chat-mock figcaption {
  max-width: 30rem;
  margin: var(--space-2) auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */

.section {
  position: relative;
  padding: var(--space-6) 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-navy {
  background: var(--navy);
  color: var(--paper-on-navy);
}

.section-navy h2 {
  color: #fff;
}

.section-navy q {
  color: var(--green-on-navy);
  font-weight: 600;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40rem;
  margin-bottom: var(--space-4);
}

.prose {
  max-width: 38rem;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--green);
  padding-left: var(--space-2);
}

/* Proof table */

.proof-grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.table-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.75rem;
  overflow-x: auto;
}

.named-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.named-table caption {
  text-align: left;
  font-weight: 600;
  padding: 0.25rem 0.25rem 0.75rem;
}

.named-table th,
.named-table td {
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.named-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.named-table tbody th {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.named-table .row-shared {
  background: rgba(31, 122, 92, 0.08);
}

.named-table .row-shared th {
  font-weight: 700;
}

.tick,
.dash {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  overflow: hidden;
  text-indent: 200%;
  white-space: nowrap;
  vertical-align: middle;
}

.tick {
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

.dash {
  background: linear-gradient(var(--rule), var(--rule)) center / 0.7rem 2px no-repeat;
}

.table-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0.25rem 0;
}

/* Factors */

.factor-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.factor-list li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--space-3);
}

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

/* Pricing */

.price-grid {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.price-card p {
  color: var(--muted);
}

.price-card .button {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  padding-inline: 1rem;
}

.price-card-feature {
  border: 2px solid var(--green);
  box-shadow: var(--shadow);
}

.price {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
}

.price-was {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.3rem;
}

.gst {
  margin-top: var(--space-3);
  font-weight: 600;
}

/* Steps: a real sequence, so numbered */

.steps {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) 4.75rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px dashed var(--green);
  border-radius: 50%;
  color: var(--green-dark);
  font-weight: 700;
  transform: rotate(-8deg);
}

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

/* About */

.about-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.about-photo {
  display: block;
  width: clamp(9rem, 30vw, 13rem);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  margin: 0;
  font-size: 1.25rem;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  max-width: 38rem;
}

/* Form */

.section-form {
  background: var(--paper-2);
  overflow: hidden;
  padding-bottom: calc(var(--space-6) + 4rem);
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.snapshot-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
}

.field {
  margin-bottom: var(--space-3);
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #b9ae98;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(31, 122, 92, 0.35);
  outline-offset: 0;
  border-color: var(--green);
}

.field [aria-invalid="true"] {
  border-color: #b42318;
}

.hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.error {
  font-size: 0.9rem;
  color: #b42318;
  font-weight: 600;
  margin: 0.35rem 0 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button-submit {
  width: 100%;
}

.button-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  border-radius: 8px;
  font-weight: 600;
}

.form-status.is-success {
  background: rgba(31, 122, 92, 0.12);
  color: var(--green-dark);
}

.form-status.is-error {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--paper-on-navy);
  padding: var(--space-5) 0 var(--space-3);
}

.site-footer a {
  color: var(--green-on-navy);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: var(--space-2);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
}

.footer-nav ul {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.footer-nav a {
  display: inline-block;
  padding: 0.15rem 0;
}

.privacy h2 {
  font-size: 1.15rem;
  color: #fff;
}

.privacy p {
  font-size: 0.92rem;
  max-width: 40rem;
}

.footer-base {
  border-top: 1px solid rgba(233, 228, 216, 0.2);
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0;
}

/* Larger screens */

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }

  .brand img {
    height: 40px;
  }

  .table-card {
    padding: var(--space-2);
  }

  .named-table thead th {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .factor-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: auto 1fr;
    gap: var(--space-5);
  }

  .footer-grid {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--space-6);
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-5);
  }
}

@media (min-width: 1200px) {
  .price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  * {
    transition: none !important;
  }
}
