/*
 * clearbill.fr — the commercial site. Plain HTML and CSS, no build: it is read by search engines and by
 * people on a phone, and neither should wait for a framework to tell them what ClearBill is.
 *
 * The violet is the application's own (`plugins/vuetify.ts`), so that the site and the app feel like
 * one product when the visitor crosses from one to the other. So are the colours of its domains
 * (`domains.ts`): each function is drawn in the colour the menu gives it once inside — the sales in
 * violet, the expenses in magenta, the bank in teal, the declarations in blue.
 */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --violet: #5227e0;
  --violet-deep: #3a17b8;
  --violet-soft: #ede8ff;
  --violet-glow: rgba(82, 39, 224, 0.18);
  --ink: #17122b;
  --ink-soft: #4a4560;
  --ink-faint: #7a7590;
  --line: #e6e2f3;
  --ground: #ffffff;
  --ground-tint: #f8f6ff;
  --card: #ffffff;
  --success: #17794a;
  --success-soft: #e3f4ea;
  --warning: #9a5b00;
  --warning-soft: #fdf0dc;
  --sales: #5227e0;
  --expenses: #a62b7e;
  --bank: #0b6f7f;
  --filings: #2456c7;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 18, 43, 0.06), 0 12px 40px -12px rgba(23, 18, 43, 0.18);
  --shadow-strong: 0 2px 4px rgba(23, 18, 43, 0.06), 0 30px 80px -20px rgba(58, 23, 184, 0.35);
  --width: 1160px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --violet: #a58bff;
    --violet-deep: #c3b2ff;
    --violet-soft: #251d45;
    --violet-glow: rgba(165, 139, 255, 0.16);
    --ink: #f2f0fa;
    --ink-soft: #c4c0d6;
    --ink-faint: #8d88a3;
    --line: #2c2645;
    --ground: #0f0c1d;
    --ground-tint: #151129;
    --card: #1a1530;
    --success: #5fd398;
    --success-soft: #133325;
    --warning: #f2b45a;
    --warning-soft: #3a2a10;
    --sales: #a58bff;
    --expenses: #f08cbe;
    --bank: #5cc8d6;
    --filings: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-strong: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The icons' sprite: drawn by the <use> that point at it, never itself. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--violet);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #17122b;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--ground-tint);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.login {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

/* Hero */

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

.hero::before {
  content: '';
  position: absolute;
  inset: -200px -10% auto;
  height: 760px;
  background:
    radial-gradient(600px 380px at 78% 40%, var(--violet-glow), transparent 70%),
    radial-gradient(500px 300px at 15% 10%, color-mix(in srgb, var(--violet-glow) 60%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow .dot {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 12px;
}

@media (prefers-color-scheme: dark) {
  .eyebrow .dot {
    color: #17122b;
  }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 750;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet) 10%, #b14ee8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-faint);
}

.reassure li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reassure svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* The product, drawn rather than photographed: fictitious figures, never a customer's. */

.mock {
  position: relative;
}

.mock-window {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ground-tint);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.mock-bar b {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
}

.mock-body {
  padding: 22px;
}

.mock-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.figure {
  padding: 14px;
  border-radius: 14px;
  background: var(--ground-tint);
  border: 1px solid var(--line);
}

.figure small {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
}

.figure strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.figure .trend {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.mock-list {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  font-size: 14px;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row .who {
  min-width: 0;
}

.row .who b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row .who small {
  color: var(--ink-faint);
  font-size: 12px;
}

.row .amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-ok {
  background: var(--success-soft);
  color: var(--success);
}

.chip-sent {
  background: var(--violet-soft);
  color: var(--violet-deep);
}

.chip-wait {
  background: var(--warning-soft);
  color: var(--warning);
}

.toast {
  position: absolute;
  left: -28px;
  bottom: -52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.toast .tick {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.toast .tick svg {
  width: 18px;
  height: 18px;
}

.toast b {
  display: block;
  font-weight: 600;
}

.toast small {
  color: var(--ink-faint);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--ground-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 720;
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
}

/* The reform, as dates */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.milestone {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.milestone.now {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-glow);
}

.milestone time {
  font-size: 14px;
  font-weight: 700;
  color: var(--violet);
}

.milestone h3 {
  margin-top: 8px;
  font-size: 21px;
}

.milestone p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 16px;
}

.milestone .chip {
  position: absolute;
  top: 24px;
  right: 24px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 8px 4px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .step::before {
    color: #17122b;
  }
}

.step h3 {
  margin-top: 18px;
  font-size: 21px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  --domain: var(--sales);
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature--expenses {
  --domain: var(--expenses);
}

.feature--bank {
  --domain: var(--bank);
}

.feature--filings {
  --domain: var(--filings);
}

/* The domain's colour along the top of the card, and under its icon a 12% wash of it. */
.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--domain);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--domain) 12%, var(--card));
  color: var(--domain);
}

.feature .icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-top: 18px;
  font-size: 19px;
}

.feature p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Pricing */

.billing-switch {
  display: inline-flex;
  margin: 28px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}

.billing-switch button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.billing-switch button[aria-pressed='true'] {
  background: var(--violet);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .billing-switch button[aria-pressed='true'] {
    color: #17122b;
  }
}

.billing-switch .save {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.plan.featured {
  border: 2px solid var(--violet);
  box-shadow: var(--shadow-strong);
}

.plan .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .plan .badge {
    color: #17122b;
  }
}

.plan h3 {
  font-size: 20px;
}

.plan .for {
  margin-top: 6px;
  min-height: 3.2em;
  font-size: 15px;
  color: var(--ink-soft);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}

.price strong {
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price span {
  font-size: 15px;
  color: var(--ink-faint);
}

.price-note {
  min-height: 1.5em;
  font-size: 13px;
  color: var(--ink-faint);
}

.plan .btn {
  margin-top: 22px;
  width: 100%;
  /* Four columns just above the tablet fold leave a long label less room than it needs. */
  padding: 8px 16px;
  white-space: normal;
  text-align: center;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.plan li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--violet);
}

.plans-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
}

/* FAQ */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-soft);
}

/* Closing call */

.closing {
  padding: 0 0 96px;
}

.closing-card {
  position: relative;
  padding: 64px 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, #5227e0 0%, #3a17b8 55%, #7b2fd6 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.closing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 85% 0%, rgba(255, 255, 255, 0.18), transparent 70%);
}

.closing-card > * {
  position: relative;
}

.closing-card h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.closing-card p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 18px;
  opacity: 0.88;
}

.closing-card .btn {
  margin-top: 30px;
  background: #fff;
  color: #3a17b8;
}

/* Footer */

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* Tablet: the hero stacks, and the grids go two by two. */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-copy {
    text-align: center;
  }

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

  .hero-cta,
  .reassure {
    justify-content: center;
  }

  .mock {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .toast {
    left: 16px;
  }

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

}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

}

/* Phone: one column, and the header keeps only what a thumb needs. */

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .top-inner {
    gap: 12px;
    height: 60px;
  }

  .login {
    display: none;
  }

  .hero {
    padding: 40px 0 72px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .mock-body {
    padding: 14px;
  }

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

  .mock-figures .figure:last-child {
    display: none;
  }

  .figure strong {
    font-size: 19px;
  }

  .row {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }

  .row .chip {
    grid-column: 1;
    justify-self: start;
  }

  .row .amount {
    grid-column: 2;
    grid-row: 1;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: -60px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .timeline,
  .steps,
  .features,
  .plans {
    grid-template-columns: 1fr;
  }

  .plan .for {
    min-height: 0;
  }

  .closing-card {
    padding: 48px 22px;
    border-radius: 22px;
  }

  .closing-card .btn {
    width: 100%;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* A page of text: the legal notice, the page not found. */

/* Vertical room only: the sides are the gutter .wrap gives it. */
.page {
  max-width: calc(760px + 2 * var(--gutter));
  padding-top: 64px;
  padding-bottom: 96px;
}

.page h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.page h2 {
  margin: 40px 0 10px;
  font-size: 21px;
}

.page p {
  color: var(--ink-soft);
}

.page p + p {
  margin-top: 10px;
}

.page .btn {
  margin-top: 28px;
}
