/* Dazzle Invoicing website
   Tokens first, then layout, then components. */

:root {
  --ink: #13203a;
  --ink-2: #2b3b58;
  --muted: #5b6b84;
  --line: #dce4ee;
  --mist: #eff4f9;
  --paper: #ffffff;
  --teal: #0a8577;
  --teal-dark: #07675c;
  --teal-soft: #e2f3f0;
  --gold: #f0b13a;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img { height: 44px; width: auto; }

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

.nav a.link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a.link:hover { color: var(--teal-dark); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-2); }

.btn-small { padding: 9px 16px; font-size: 0.95rem; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Icons ---------- */

.ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn svg { fill: currentColor; stroke: none; }

.ico svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 0; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.35rem); }

/* let the preview run a little toward the screen edge on wide screens */
@media (min-width: 1200px) {
  .stage { margin-right: -96px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.eyebrow svg { width: 18px; height: 18px; }

.hero-copy .lead {
  margin-top: 22px;
  font-size: 1.2rem;
  max-width: 34rem;
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }

/* navy desk behind the preview */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 54%;
  background: var(--ink);
}

.stage {
  position: relative;
  padding: 8px 0 150px;
}

.stage-dash {
  width: 94%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(5, 12, 28, 0.45);
}

.stage-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(5, 12, 28, 0.5);
  transform: rotate(2deg);
}

/* ---------- Highlights strip ---------- */

.strip { padding: 0; border-bottom: 1px solid var(--line); }

.strip ul {
  list-style: none;
  margin: 0;
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.strip li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }

.strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.03rem;
  line-height: 1.25;
  color: var(--ink);
}

.strip .t { display: block; margin-top: 3px; font-size: 0.93rem; line-height: 1.45; color: var(--muted); }

/* ---------- Sections ---------- */

section { padding: 92px 0; }
.hero, .strip { padding-top: 0; padding-bottom: 0; }

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.split-head p { margin-top: 18px; max-width: 26rem; color: var(--muted); }

.split-head { position: sticky; top: 110px; }

.feature-list { list-style: none; margin: 0; padding: 0; }

.feature-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list h3 { margin-bottom: 8px; }
.feature-list p { max-width: 36rem; }

.center-head { max-width: 40rem; }
.center-head p { margin-top: 14px; color: var(--muted); }

/* GST */
.gst-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.sub { margin-top: 16px; max-width: 34rem; color: var(--muted); }

.checks { list-style: none; margin: 28px 0 0; padding: 0; }

.checks li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-top: 1px solid #d4deea;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.checks b { color: var(--ink); font-weight: 600; }

.fine { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }

.frame-link { display: block; cursor: zoom-in; border-radius: var(--radius); }

.frame {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(19, 32, 58, 0.16);
  transition: box-shadow 0.2s, transform 0.2s;
}
.frame-link:hover .frame { box-shadow: 0 22px 46px rgba(19, 32, 58, 0.22); transform: translateY(-2px); }

/* dashboard */
.overview-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 44px 0 48px;
}
.overview-points > div { padding-top: 18px; border-top: 3px solid var(--ink); }
.overview-points h3 { margin-bottom: 8px; }

/* documents: three columns divided by rules, not cards */
.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 3px solid var(--ink);
}

.docs > div { padding: 28px 28px 8px 0; }
.docs > div + div { padding-left: 28px; border-left: 1px solid var(--line); }

.docs h3 { margin-bottom: 14px; }

.docs ul { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 9px 0; border-top: 1px solid var(--line); }
.docs li:first-child { border-top: 0; }

/* who it is for */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 44px;
  border-top: 3px solid var(--ink);
}

.cases > div { padding: 28px 36px 30px 0; border-bottom: 1px solid var(--line); }
.cases > div:nth-child(even) { padding-left: 36px; padding-right: 0; border-left: 1px solid var(--line); }
.cases h3 { margin-bottom: 8px; }
.cases p { max-width: 30rem; }

/* steps: a real sequence, so numbers are meaningful */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.steps li { position: relative; padding-top: 58px; counter-increment: step; }

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 54px;
  right: -28px;
  border-top: 2px dashed #b9c6d8;
}
.steps li:last-child::after { display: none; }

.steps h3 { margin-bottom: 8px; }

/* screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 28px;
  margin-top: 40px;
}

.shot { margin: 0; }

.shot a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 32, 58, 0.12);
  cursor: zoom-in;
  transition: box-shadow 0.2s, transform 0.2s;
}
.shot a:hover { box-shadow: 0 18px 38px rgba(19, 32, 58, 0.2); transform: translateY(-2px); }

.shot img { width: 100%; }

.shot figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 18, 34, 0.84); }
.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 32, 58, 0.88);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: var(--ink); }

/* FAQ */
.faq { max-width: 780px; margin-top: 40px; }

.faq details { border-top: 1px solid #d4deea; }
.faq details:last-child { border-bottom: 1px solid #d4deea; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2212"; }

.faq details p { padding: 0 40px 22px 0; }

/* final call to action */
.cta {
  background: var(--ink);
  color: #c9d4e6;
  text-align: center;
  padding: 84px 0;
}
.cta h2 { color: #fff; }
.cta p { margin: 16px auto 32px; max-width: 32rem; }

/* ---------- Footer ---------- */

.site-footer { padding: 44px 0 52px; border-top: 1px solid var(--line); font-size: 0.94rem; }

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--teal-dark); text-decoration: underline; }

.legal { margin-top: 28px; color: var(--muted); font-size: 0.86rem; max-width: 46rem; }

/* ---------- Policy pages ---------- */

.doc { padding: 64px 0 90px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc .updated { margin-top: 12px; color: var(--muted); }
.doc h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero::before { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 0; }
  .stage {
    background: var(--ink);
    margin: 0 -24px;
    padding: 28px 24px 150px;
  }
  .stage-sheet { right: 14px; bottom: 22px; width: 54%; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .split, .gst-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  section { padding: 68px 0; }
  .hero, .strip { padding-top: 0; padding-bottom: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(19, 32, 58, 0.1);
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; }

  .overview-points { grid-template-columns: 1fr; gap: 26px; }
  .docs { grid-template-columns: 1fr; }
  .docs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .docs > div { padding-right: 0; }
  .cases { grid-template-columns: 1fr; }
  .cases > div,
  .cases > div:nth-child(even) { padding: 24px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li::after { display: none; }
  .shot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .strip ul { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .hero-actions .btn { width: 100%; }
  .stage { padding-bottom: 130px; }
  .stage-sheet { width: 58%; }
  .brand { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .frame, .shot a, .nav-toggle span { transition: none; }
}
