:root {
  color-scheme: light;
  --ink: #141416;
  --muted: #56555e;
  --violet: #6c5ce7;
  --lilac: #f1effd;
  --line: #e9e8ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.5; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 6px; }
::selection { background: #ded8ff; color: var(--ink); }
.wrap { width: 89.6%; max-width: 1296px; margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 20px; background: #fff; color: var(--ink); border: 2px solid var(--violet); border-radius: 8px; }
.skip-link:focus { transform: none; }
.button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; min-height: 58px; padding: 13px 27px; border-radius: 10px; background: var(--violet); color: #fff; font-size: 20px; font-weight: 500; line-height: 1.4; }
.button:hover { background: #5948ce; }
.brand { display: block; flex-shrink: 0; width: 198px; }
.site-header { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header-nav, .footer-nav { display: flex; align-items: center; gap: 40px; font-size: 20px; }
.header-nav a, .footer-nav a { padding-block: 12px; }
.header-nav a:hover, .footer-nav a:hover { color: #5948ce; text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 72px; padding-block: 84px 110px; }
.hero-copy { min-width: 0; }
.development { display: inline-block; padding: 5px 12px; margin-bottom: 22px; border: 1px solid #e6e0fb; border-radius: 100px; background: #f6f4ff; color: #5847ba; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
h1 { font-size: clamp(40px, 6.9vw, 100px); font-weight: 750; letter-spacing: -.055em; line-height: 1.02; }
.hero-intro { max-width: 570px; margin-block: 28px 34px; color: #3e3d43; font-size: 21px; line-height: 1.5; }
.hero-illustration { min-width: 0; padding-top: 30px; }
.hero-illustration figcaption { margin-top: 18px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }

.editor { display: grid; grid-template-columns: 2.85em minmax(0, 1fr); overflow: hidden; border: 1px solid #e5e4e8; border-radius: 13px; background: #fff; box-shadow: 0 18px 30px -8px #20202b1a, 0 3px 7px #20202b06; color: #39383f; font-size: clamp(9px, 1.03vw, 14px); line-height: 1.4; }
.editor-rail { display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding-top: 1.35em; border-right: 1px solid #eeece9; background: #faf9f6; color: #9b98a2; }
.editor-rail > img { width: 2.3em; margin-bottom: .7em; }
.rail-item { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 5px; }
.rail-item svg { width: 1.15em; height: 1.15em; }
.rail-item.selected { color: var(--violet); background: #ebe6fc; }
.editor-main { min-width: 0; padding: 1.4em 1.25em 1.5em; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-bottom: 1.9em; }
.editor-heading > p { color: #17161b; font-size: 1.15em; font-weight: 600; letter-spacing: -.025em; }
.new-invoice { display: inline-flex; align-items: center; justify-content: center; gap: .25em; padding: .5em .65em; border-radius: 5px; background: var(--violet); color: #fff; font-size: .67em; white-space: nowrap; }
.new-invoice > span { font-size: 1.3em; line-height: 1; }
.invoice-details { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6em; margin-bottom: 2em; font-size: .78em; }
.invoice-details dt { color: #85828b; margin-bottom: .25em; }
.invoice-details dd { color: #66636d; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: .84em; font-variant-numeric: tabular-nums; }
.invoice-table th, .invoice-table td { padding: .95em .45em; text-align: right; white-space: nowrap; font-weight: 400; }
.invoice-table thead { background: #f6f6f5; color: #67646c; font-size: .9em; }
.invoice-table tr > :first-child { text-align: left; }
.invoice-table tr > :nth-child(2) { text-align: center; }
.invoice-table tbody tr { border-bottom: 1px solid #efedf1; }
.invoice-table tfoot th, .invoice-table tfoot td { font-weight: 600; font-size: 1.1em; }
.invoice-table tfoot tr > th { text-align: right; }
.invoice-table tfoot td { text-align: right; }
.editor-actions { display: flex; justify-content: flex-end; margin-top: 1em; }
.send-button { display: inline-block; width: 36%; padding: .65em 1em; border-radius: 6px; background: var(--violet); color: #fff; text-align: center; font-size: .9em; }

.features { padding-block: 56px; background: var(--lilac); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 292px 280px 280px; gap: 26px; }
.tile { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; background: #e8e8eb; }
.tile-copy { position: relative; padding: 0 28px 25px; }
.tile h3 { margin-bottom: 5px; font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.tile-copy > p { color: #55525e; font-size: 14px; line-height: 1.5; }
.tile--list { grid-column: 1 / 3; grid-row: 1 / 3; background: #a99aee; }
.tile--list .tile-copy { padding: 0 32px 29px; }
.tile--list .tile-copy > p { color: #342951; }
.list-art { flex: 1; display: grid; place-items: center; padding: 36px 9%; }
.invoice-list { width: 100%; min-width: 0; padding: 21px; border: 1px solid #e8e5ef; border-radius: 13px; background: #fff; color: #37353e; box-shadow: 0 14px 22px #30205d1f, 0 3px 6px #30205d12; font-size: 13px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list-heading > p { font-size: 24px; letter-spacing: -.03em; color: #16151a; }
.list-heading .new-invoice { font-size: 10px; }
.list-tools { display: flex; justify-content: space-between; gap: 24px; margin-block: 18px 12px; color: #77737d; font-size: 11px; }
.search-decoration, .filter-decoration { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 8px; border: 1px solid #e9e7ec; border-radius: 5px; }
.search-decoration { width: 56%; color: #9b97a1; }
.list-tools svg { width: 13px; height: 13px; }
.list-table { width: 100%; border-collapse: collapse; text-align: left; }
.list-table th { padding-block: 6px; font-size: 11px; font-weight: 400; background: #f6f6f6; }
.list-table td { padding-block: 10px; border-bottom: 1px solid #efedf1; }
.list-table tbody tr:last-child td { border-bottom: 0; }
.list-table tr > :first-child { width: 7%; padding-left: 5px; }
.list-table tr > :nth-child(2) { width: 54%; }
.list-table tr > :last-child { width: 6%; color: #96929c; }
.list-table small { display: block; color: #8c8892; font-size: 10px; }
.check-decoration { display: block; width: 12px; height: 12px; border: 1px solid #e5e3e9; border-radius: 2px; background: #fff; }
.status { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; line-height: 1.3; }
.status--draft { color: #66636b; background: #ecebed; }
.status--sent { color: #377497; background: #dff1fd; }
.status--paid { color: #35784f; background: #dff5e7; }
.status--overdue { color: #a54d53; background: #fde3e5; }
.tile--draft { grid-column: 3 / 5; grid-row: 1; }
.tile--send { grid-column: 3; grid-row: 2; background: #e2dcfb; }
.tile--follow { grid-column: 4; grid-row: 2; background: #eaeaea; }
.tile--review { grid-column: 1 / 3; grid-row: 3; }
.tile--records { grid-column: 3; grid-row: 3; background: #eaeaea; }
.tile--overview { grid-column: 4; grid-row: 3; background: #f7f6f1; }
.editor-art { position: relative; flex: 1; min-height: 0; overflow: hidden; margin-bottom: 18px; }
.editor--decorative { position: absolute; top: 34px; left: 9%; width: 82%; font-size: 11px; border-radius: 10px; }
.tile--review .editor--decorative { top: 25px; left: 27%; width: 60%; transform: rotate(13deg); transform-origin: 50% 20%; font-size: 9px; }
.icon-art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 20px 0 12px; color: var(--violet); }
.icon-art svg { width: 100px; max-width: 42%; height: auto; stroke-width: 5.5; }

.how-it-works { padding-block: 88px 64px; }
.how-it-works h2 { font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; padding: 0; margin: 40px 0 0; list-style: none; }
.steps li { border-top: 1px solid #dcdbe2; padding-top: 22px; }
.step-number { display: block; color: var(--violet); font-size: 18px; margin-bottom: 19px; }
.steps h3 { font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 46px 78px; }
.closing h2 { font-size: 32px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
.site-footer { border-top: 1px solid #dcdbe2; padding-block: 54px 58px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.footer-top .brand { width: 240px; }
.site-footer > p { color: var(--muted); font-size: 15px; }
.site-footer > p + p { margin-top: 10px; }

@media (max-width: 1199px) {
  .site-header { min-height: 110px; }
  .brand { width: 166px; }
  .button { min-height: 50px; padding: 11px 22px; font-size: 18px; }
  .hero { gap: 42px; padding-block: 66px 85px; }
  .hero-intro { font-size: 18px; }
  .bento { grid-template-rows: 262px 258px 258px; gap: 22px; }
  .tile-copy { padding: 0 22px 22px; }
  .tile h3 { font-size: 18px; }
  .tile-copy > p { font-size: 13px; }
  .invoice-list { font-size: 12px; padding: 17px; }
  .list-art { padding-inline: 8%; }
  .list-heading > p { font-size: 21px; }
  .editor--decorative { font-size: 9px; }
  .tile--review .editor--decorative { font-size: 8px; width: 65%; left: 24%; }
  .steps { gap: 30px; }
  .steps h3 { font-size: 19px; }
}

@media (max-width: 900px) {
  .header-nav, .footer-nav { gap: 24px; font-size: 17px; }
  .hero { gap: 28px; }
  .hero-intro { font-size: 16px; }
  .editor { font-size: 8px; }
  .hero-illustration figcaption { font-size: 10px; }
  .bento { grid-template-rows: 230px 242px 242px; gap: 18px; }
  .tile { border-radius: 22px; }
  .tile-copy { padding-inline: 19px; }
  .tile--list .tile-copy { padding-inline: 24px; }
  .list-art { padding-inline: 6%; }
  .invoice-list { font-size: 11px; padding: 13px; }
  .list-heading > p { font-size: 18px; }
  .list-heading .new-invoice { font-size: 8px; }
  .list-table td { padding-block: 9px; }
  .list-table tr > :nth-child(2) { width: 48%; }
  .status { font-size: 10px; padding-inline: 7px; }
  .editor--decorative { font-size: 8px; }
  .tile--review .editor--decorative { font-size: 7px; }
  .tile h3 { font-size: 17px; }
  .icon-art svg { width: 80px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 92px; gap: 16px; }
  .site-header .brand { width: 137px; }
  .header-nav { display: none; }
  .button { min-height: 46px; padding: 11px 18px; border-radius: 8px; font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 38px 48px; }
  .development { margin-bottom: 18px; font-size: 11px; }
  h1 { font-size: clamp(40px, 10.6vw, 64px); letter-spacing: -.05em; line-height: 1.05; }
  .hero-intro { max-width: 500px; margin-block: 22px 26px; font-size: 16px; line-height: 1.6; }
  .hero-illustration { width: 100%; max-width: 500px; margin-inline: auto; padding-top: 0; }
  .hero-illustration .editor { font-size: clamp(8px, 2.5vw, 13px); }
  .hero-illustration figcaption { margin-top: 16px; font-size: 10px; }
  .features { padding-block: 26px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 16px; }
  .bento > .tile { grid-column: auto; grid-row: auto; }
  .bento > .tile--list, .bento > .tile--draft, .bento > .tile--review { grid-column: 1 / -1; }
  .tile { border-radius: 22px; }
  .tile-copy { padding: 0 18px 21px; }
  .tile h3 { font-size: 18px; }
  .tile-copy > p { font-size: 13px; }
  .tile--list { min-height: 440px; }
  .tile--list .tile-copy { padding: 0 24px 24px; }
  .list-art { padding: 29px 7%; }
  .invoice-list { font-size: 11px; padding: 14px; }
  .list-heading > p { font-size: 19px; }
  .list-heading .new-invoice { font-size: 8px; }
  .list-tools { margin-block: 14px 10px; gap: 12px; font-size: 10px; }
  .list-table th { font-size: 10px; }
  .list-table td { padding-block: 9px; }
  .list-table small { font-size: 9px; }
  .check-decoration { width: 10px; height: 10px; }
  .tile--draft, .tile--review { min-height: 290px; }
  .editor-art { flex-basis: 186px; }
  .editor--decorative { font-size: clamp(8px, 2.3vw, 12px); }
  .tile--review .editor--decorative { top: 25px; left: 24%; width: 68%; font-size: clamp(7px, 1.9vw, 10px); }
  .tile--icon { min-height: 246px; }
  .tile--icon .tile-copy { padding-inline: 17px; }
  .tile--icon h3 { font-size: 17px; }
  .icon-art { min-height: 120px; padding-top: 24px; }
  .icon-art svg { width: 74px; max-width: 48%; }
  .how-it-works { padding-block: 53px 30px; }
  .how-it-works h2 { font-size: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 28px; }
  .steps li { padding-top: 20px; }
  .step-number { margin-bottom: 12px; font-size: 16px; }
  .steps h3 { font-size: 21px; }
  .steps p { margin-top: 7px; font-size: 15px; }
  .closing { flex-direction: column; align-items: flex-start; padding-block: 36px 48px; gap: 22px; }
  .closing h2 { max-width: 300px; font-size: 29px; }
  .site-footer { padding-block: 34px 38px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 25px; }
  .footer-top .brand { width: 178px; }
  .footer-nav { font-size: 16px; gap: 28px; }
  .site-footer > p { font-size: 12px; line-height: 1.7; }
}

@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .site-header .brand { width: 119px; }
  .site-header .button { padding-inline: 13px; font-size: 14px; }
  h1 { font-size: 36px; }
  .hero-illustration .editor { font-size: 7.5px; }
  .invoice-list { padding: 11px; }
  .list-heading > p { font-size: 17px; }
  .list-heading .new-invoice { font-size: 7px; }
  .tile--icon .tile-copy { padding-inline: 13px; }
  .tile--icon h3 { font-size: 16px; }
  .tile--icon .tile-copy > p { font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: background-color .15s ease; }
}
