/*
 * The look of the new BrightInvoicing home page (next-app/src/app/globals.css and src/app/page.tsx), in plain CSS so this
 * holding page needs no build step. Light only, like the app's default. Colours, fonts, radii and shadows are the app's own.
 */

:root {
  --bg: #e7f0f6;
  --glow: #f4f9fc;
  --surface: #ffffff;
  --ink: #0f2b3d;
  --action: #00668f;
  --action-hover: #00547a;
  --on-action: #ffffff;
  --button: #178033;
  --button-hover: #12692a;
  --on-button: #ffffff;
  --danger: #c01b1b;
  --success: #006f2a;
  --bulb: #ffe600;
  --brand-blue: #0090c5;
  --brand-green: #00b85c;
  --zinc-200: #e6ebef;
  --zinc-300: #d0d8de;
  --zinc-400: #7e8c98;
  --zinc-600: #4b5864;
  --amber-700: #9c3f00;
  --shadow-rgb: 15 43 61;
  --card-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.07), 0 8px 22px -6px rgb(var(--shadow-rgb) / 0.14);
  --pill: 5px;
  --radius-lg: 6px;
  --radius-2xl: 8px;
  --heading: "Bitter", "Figtree", system-ui, sans-serif;
  color-scheme: light;
}

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

html {
  font-size: 106.25%;
  scroll-padding-top: 5.5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: -0.005em;
  margin: 0;
}

/* The short ink rule under the page title, like the rule on a ledger page. */
h1::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-top: 0.55rem;
  background: var(--ink);
}

p {
  margin: 0;
}

a {
  color: var(--action);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--ring, var(--action));
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--bulb);
  color: #1a1a1a;
}

svg.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.muted {
  color: var(--zinc-600);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- the picture behind the page (backdrop-engine.js draws into it) ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 38%, var(--glow) 0%, var(--bg) 100%);
}

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

main {
  flex: 1;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--pill);
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--button);
  color: var(--on-button);
  transition: background-color 120ms ease;
}

.btn:hover {
  background: var(--button-hover);
  color: var(--on-button);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--zinc-400);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--zinc-200);
  color: var(--ink);
}

.btn-bulb {
  background: var(--bulb);
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 800;
  padding: 1rem 2rem;
}

.btn-bulb:hover {
  background: var(--bulb);
  filter: brightness(0.95);
  color: #1a1a1a;
}

.float {
  box-shadow: var(--card-shadow);
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(208 216 222 / 0.7);
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -12px rgb(var(--shadow-rgb) / 0.3);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.site-header .logo img {
  display: block;
  height: 2.25rem;
  width: auto;
}

.site-header nav {
  display: none;
  margin-left: 1rem;
  gap: 0.25rem;
}

.site-header nav a {
  border-radius: var(--pill);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:hover {
  background: var(--zinc-200);
}

.site-header .end {
  margin-left: auto;
}

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

@media (min-width: 1024px) {
  .site-header .logo img {
    height: 2.75rem;
  }
}

/* ---- hero ---- */
.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
}

.tag {
  border: 1px solid var(--zinc-300);
  background: var(--surface);
  border-radius: var(--pill);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgb(0 184 92 / 0.2);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero .lead {
  max-width: 36rem;
  font-size: 1.25rem;
  line-height: 1.625;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ticks svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-green);
}

.hero-picture {
  position: relative;
  min-width: 0;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-picture {
    padding-bottom: 0;
  }
}

/* The "it worked" badge over the hero picture. */
.badge {
  position: absolute;
  bottom: -0.5rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--zinc-300);
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 0.75rem 1rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
  .badge {
    left: -1.5rem;
  }
}

.badge .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(0 184 92 / 0.2);
  color: var(--brand-green);
}

.badge .circle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.badge-text {
  font-size: 0.875rem;
  line-height: 1.25;
}

.badge-text strong {
  display: block;
  font-weight: 800;
}

/* ---- the product pictures: a browser frame around a sketch of the screen ---- */
.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid var(--zinc-200);
  background: rgb(230 235 239 / 0.5);
  padding: 0.625rem 1rem;
}

.shot-bar .light {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgb(126 140 152 / 0.7);
}

.shot-bar .title {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zinc-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-bar .soon {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--zinc-400);
  border-radius: var(--pill);
  padding: 0.125rem 0.5rem;
  font-size: 0.65rem;
  color: var(--zinc-600);
}

.shot-body {
  aspect-ratio: 16 / 10;
  background: linear-gradient(to bottom right, var(--bg), rgb(230 235 239 / 0.6));
}

.bar {
  display: block;
  height: 0.5rem;
  border-radius: var(--pill);
  background: var(--zinc-300);
}

.sketch-invoice {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.paper {
  width: 100%;
  max-width: 24rem;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
}

.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.paper-logo {
  width: 4rem;
  height: 1.25rem;
  border-radius: 4px;
  background: rgb(0 184 92 / 0.4);
}

.paper-title {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--action);
}

.paper-cols {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.paper-cols div,
.paper-lines {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.paper-lines {
  margin-top: 1rem;
  gap: 0.5rem;
  border-top: 1px solid var(--zinc-200);
  padding-top: 0.75rem;
}

.paper-lines div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.paper-lines .amount {
  margin-left: auto;
  width: 2.5rem;
}

.paper-total {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--action);
  color: var(--on-action);
  padding: 0.5rem 0.75rem;
}

.paper-total span:first-child {
  font-size: 0.75rem;
  font-weight: 700;
}

.paper-total span:last-child {
  font-weight: 800;
}

.sketch-dash,
.sketch-reports {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .sketch-invoice {
    padding: 1.5rem;
  }
  .paper,
  .sketch-dash,
  .sketch-reports {
    padding: 1.25rem;
  }
  .paper-title {
    font-size: 0.875rem;
  }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.tile {
  border-radius: var(--radius-lg);
  padding: 0.75rem;
}

.tile small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.7;
}

.tile b {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .tile small {
    font-size: 0.75rem;
  }
  .tile b {
    font-size: 1.25rem;
  }
}

.tint-blue {
  background: rgb(0 144 197 / 0.15);
}

.tint-red {
  background: #fee2e2;
}

.tint-green {
  background: rgb(0 184 92 / 0.15);
}

.panel {
  flex: 1;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.75rem;
}

.panel-title {
  margin-bottom: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.7;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--zinc-200);
  padding: 0.5rem 0;
}

.panel-row:first-of-type {
  border-top: 0;
}

.panel-row .status {
  border: 1px solid currentColor;
  border-radius: var(--pill);
  padding: 0.125rem 0.5rem;
  font-size: 0.55rem;
  font-weight: 700;
}

.panel-row .amount {
  margin-left: auto;
  width: 2.5rem;
}

.red {
  color: var(--danger);
}

.grey {
  color: var(--zinc-600);
}

.amber {
  color: var(--amber-700);
}

.chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.75rem;
}

.chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgb(0 144 197 / 0.7);
}

.chart span:nth-child(even) {
  background: rgb(0 184 92 / 0.7);
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.figures div {
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.5rem;
}

.figures small {
  display: block;
  font-size: 0.6rem;
  opacity: 0.7;
}

.figures b {
  font-size: 0.75rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .figures small {
    font-size: 0.75rem;
  }
  .figures b {
    font-size: 1.125rem;
  }
  .panel-title {
    font-size: 0.75rem;
  }
  .panel-row .status {
    font-size: 0.65rem;
  }
}

/* ---- sections ---- */
.section .wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section .wrap {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section.tint {
  border-top: 1px solid var(--zinc-200);
  border-bottom: 1px solid var(--zinc-200);
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section-head {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--action);
}

.section-head h2,
.showcase h2 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .section-head h2,
  .showcase h2 {
    font-size: 2.25rem;
  }
}

.section-head .intro {
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

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

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features li {
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.features .square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: rgb(0 144 197 / 0.12);
  color: var(--action);
}

.features h3 {
  margin-top: 1rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 800;
}

.features p {
  margin-top: 0.375rem;
}

/* ---- the move: numbered steps ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.steps .number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bulb);
  color: #1a1a1a;
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.steps h3 {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
}

.centre {
  margin-top: 3rem;
  text-align: center;
}

/* ---- showcase ---- */
.showcase .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .showcase .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .showcase.flip .showcase-text {
    order: 2;
  }
}

.showcase-text,
.showcase-picture {
  min-width: 0;
}

.showcase-text > p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.checks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checks .circle {
  margin-top: 0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(0 184 92 / 0.2);
  color: var(--brand-green);
}

.checks .circle svg {
  width: 1rem;
  height: 1rem;
}

/* ---- the problem form ---- */
.form-card {
  max-width: 42rem;
  margin: 0 auto;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .wide {
    grid-column: 1 / -1;
  }
}

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

.field .hint {
  display: block;
  font-size: 0.875rem;
  margin: -0.25rem 0 0.375rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--zinc-400);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--action);
  outline-offset: 0;
  border-color: var(--action);
}

.field .error {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--danger);
  font-weight: 600;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

/* The field people cannot see: anything typed in it came from a robot. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.small {
  font-size: 0.875rem;
}

.notice {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.notice-ok {
  background: rgb(0 184 92 / 0.1);
  border-color: rgb(0 111 42 / 0.4);
  color: var(--success);
}

.notice-bad {
  background: #fdecec;
  border-color: rgb(192 27 27 / 0.4);
  color: var(--danger);
}

.notice-info {
  background: rgb(0 144 197 / 0.08);
  border-color: rgb(0 102 143 / 0.35);
  color: var(--ink);
}

/* ---- final band ---- */
.band {
  background: var(--action);
  color: var(--on-action);
}

.band .wrap {
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.band h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .band .wrap {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .band h2 {
    font-size: 3rem;
  }
}

.band p {
  max-width: 36rem;
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--zinc-300);
  background: var(--surface);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .site-footer .wrap {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer img {
  height: 2.75rem;
  width: auto;
  display: block;
}

.site-footer .about {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
}

.site-footer h2 {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.site-footer nav a {
  color: var(--zinc-600);
  text-decoration: none;
}

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

.copyright {
  border-top: 1px solid var(--zinc-200);
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--zinc-600);
}

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

/* The header button's label: shorter on a phone, so it stays on one line beside the logo. */
.btn-small {
  white-space: nowrap;
}

.wide-only {
  display: none;
}

@media (min-width: 640px) {
  .wide-only {
    display: inline;
  }
  .narrow-only {
    display: none;
  }
}
