/* Life of Accounting: styles.css
   One typeface (Geist, self-hosted), white and light-gray bands, black type, brand color only where it means something. */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #424245;
  --text-on-dark: #f5f5f7;
  --text-2-on-dark: #a1a1a6;
  --line: #d2d2d7;
  --link: #0071a8;
  --ok: #1f7a3a;
  --err: #c0262b;

  --green: #62bb47;
  --amber: #fcb827;
  --orange: #f5811e;
  --red: #df393d;
  --purple: #963d97;
  --blue: #009ddc;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --container: 1120px;
  --gutter: 24px;
  --radius: 28px;
  --nav-h: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 8px 12px; background: #fff; border-radius: 8px; color: var(--text); font-weight: 500;
}
.skip-link:focus { left: 8px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.07; letter-spacing: -0.028em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { margin-top: 16px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border: 0; border-radius: 980px;
  background: var(--text); color: #fff; font: inherit; font-size: 17px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #000; text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.link { font-size: 17px; }
.link--lg { font-size: 19px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }

.mark { display: flex; align-items: center; gap: 3px; height: 26px; flex-shrink: 0; }
.mark i { display: block; width: 6px; height: 17px; }
.mark i:nth-child(2n) { height: 26px; }
.mark i:nth-child(1) { background: var(--green); }
.mark i:nth-child(2) { background: var(--amber); }
.mark i:nth-child(3) { background: var(--orange); }
.mark i:nth-child(4) { background: var(--red); }
.mark i:nth-child(5) { background: var(--purple); }
.mark i:nth-child(6) { background: var(--blue); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }
.nav__lang { display: inline-flex; align-items: center; gap: 6px; }
.nav__lang .globe { flex-shrink: 0; }
.nav__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav__login {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 980px;
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.nav__login:hover { text-decoration: none; border-color: var(--text); background: var(--bg-alt); }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle svg { display: block; }
.nav__toggle .icon-close { display: none; }
.nav--open .nav__toggle .icon-menu { display: none; }
.nav--open .nav__toggle .icon-close { display: block; }
.cta-short { display: none; }
.show-sm { display: none; }

/* Mobile nav: the desktop row needs about 960px to fit in both languages */
@media (max-width: 959px) {
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 12px; }
  .hide-sm { display: none; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links .show-sm { display: block; }
  .nav__toggle { display: flex; }
  .btn--sm { height: 34px; }
}
@media (max-width: 479px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand { gap: 8px; font-size: 14px; }
  .btn--sm { padding: 0 12px; }
}
@media (max-width: 339px) {
  .brand__name { display: none; }
}

/* Language ribbon (dismissable, remembered per browser) */
.ribbon { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.ribbon__inner { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 8px; text-align: center; font-size: 13px; line-height: 1.4; }
.ribbon__inner p { color: var(--text-3); }
.ribbon__inner a { display: inline-block; padding: 12px 6px; margin: -12px -6px; font-weight: 500; white-space: nowrap; }
.ribbon__close { flex-shrink: 0; width: 32px; height: 32px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ribbon__close:hover { color: var(--text); background: rgba(0, 0, 0, 0.05); }
.ribbon[hidden] { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark .lead { color: var(--text-2-on-dark); }
.section__head { max-width: 820px; margin-inline: auto; text-align: center; }
.section__head .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px); text-align: center; }
.hero__logo { width: clamp(176px, 20vw, 240px); margin-inline: auto; }
.hero .h1 { max-width: 1100px; margin: clamp(28px, 3vw, 40px) auto 0; }
.hero .lead { max-width: 820px; margin: clamp(20px, 2.4vw, 28px) auto 0; }
.hero__cta { margin-top: clamp(32px, 3.4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; }
@media (max-width: 599px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  padding-block: 44px; border-top: 1px solid var(--line); text-align: center;
}
.stat__value { font-size: clamp(30px, 3.2vw, 44px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.stat__label { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 899px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; border-bottom: 1px solid var(--line); }
}

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 899px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--3 { gap: 40px; }
}
@media (max-width: 599px) {
  .grid--4 { grid-template-columns: 1fr; gap: 36px; }
}

.card {
  display: flex; flex-direction: column;
  padding: clamp(32px, 3.5vw, 44px); border-radius: var(--radius); background: var(--bg-alt);
}
.section--alt .card { background: #fff; }
.card__mark { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 24px; }
.card .h3 + p { margin-top: 12px; }
.card p { color: var(--text-3); }
.card__spec { margin-top: 28px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.card--spec .card__spec { margin-top: auto; padding-top: 28px; }

.col h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.015em; }
.col h3 + p { margin-top: 12px; color: var(--text-3); }
@media (min-width: 1100px) { .grid--4 .col h3 { min-height: 2.34em; } }
.steps { list-style: none; padding: 0; margin-bottom: 0; }
.step__num { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.step h3 { margin-top: 20px; }

.c-green { background: var(--green); } .c-amber { background: var(--amber); } .c-orange { background: var(--orange); }
.c-red { background: var(--red); } .c-purple { background: var(--purple); } .c-blue { background: var(--blue); }
/* Text-safe shades of the brand colors (the fills above stay exact; type needs more contrast) */
.t-green { color: #38842a; } .t-amber { color: #9a6a00; } .t-orange { color: #c9620e; }
.t-red { color: var(--red); } .t-purple { color: var(--purple); } .t-blue { color: #0071a8; }

/* ---------- Statement bands ---------- */
.statement { text-align: center; }
.statement .h2 { max-width: 900px; margin-inline: auto; }
.statement .lead { max-width: 760px; margin-inline: auto; }
.section--dark .h1 { max-width: 900px; margin-inline: auto; }
.section--dark .lead { max-width: 720px; margin-inline: auto; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__quote { margin: 28px 0 0; padding: 0; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
.about__by { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.about__body { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--text-3); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.facts i { display: block; width: 8px; height: 8px; flex-shrink: 0; }
.about .link { display: inline-block; margin-top: 28px; }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: clamp(32px, 4vw, 48px) auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__details { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: #fff; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--text); font: inherit; font-size: 17px;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field select:invalid { color: var(--text-2); }
.field textarea { height: 128px; padding: 12px 16px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--err); }
.field__error { display: none; font-size: 13px; line-height: 1.4; color: var(--err); }
.field.is-invalid .field__error { display: block; }
.form__status { min-height: 0; font-size: 15px; line-height: 1.4; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form__note { font-size: 13px; color: var(--text-2); text-align: center; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Privacy page ---------- */
.privacy { max-width: 720px; }
.privacy h1 + .muted, .privacy h2 + .muted { margin-top: 12px; }
.privacy h2.h3, .privacy h3.h3 { margin-top: 36px; }
.privacy p { margin-top: 12px; color: var(--text-3); }

/* ---------- Footer ---------- */
.footer { padding-block: 48px 40px; border-top: 1px solid var(--line); font-size: 13px; }
.footer__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand p { max-width: 240px; line-height: 1.5; color: var(--text-2); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col strong { display: block; height: 26px; line-height: 26px; font-weight: 600; color: var(--text); }
.footer__col a { color: var(--text-2); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--text-2); }
.footer__right { display: flex; gap: 24px; }
.footer__right a { color: var(--text-2); }
.footer .footer__bottom:only-child { margin-top: 0; border-top: 0; padding-top: 0; }
.footer__col a, .contact__details a { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
