:root {
  --ink: #14181e;
  --ink-soft: #4d535b;
  --paper: #ffffff;
  --rule: #d9dce0;
  --soft: #f6f7f8;
  --orange: #ff5a00;
  --dark: #111820;
  --dark-muted: #b9c0c8;
  --max-width: 1440px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(calc(100% - 72px), var(--max-width));
  height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 17px;
  font-weight: 620;
}

nav a {
  position: relative;
  padding: 14px 0;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  width: min(calc(100% - 72px), var(--max-width));
  min-height: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-copy {
  max-width: 750px;
  padding: 100px 40px 110px 50px;
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 38px;
  font-size: clamp(60px, 5.3vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.058em;
  font-weight: 760;
}

.hero-copy > p {
  max-width: 670px;
  margin-bottom: 42px;
  color: #262b31;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.primary-action {
  display: inline-flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  font-weight: 720;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #fff;
  color: var(--orange);
  transform: translateY(-2px);
}

.primary-action:hover svg,
.primary-action:focus-visible svg {
  transform: translateX(3px);
}

.product-stage {
  align-self: stretch;
  min-height: 840px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 72px;
}

.phone {
  width: min(490px, 92%);
  height: 750px;
  position: relative;
  border: 12px solid #111315;
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
  background: #fff;
  box-shadow: 0 14px 35px rgb(20 24 30 / 10%);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  left: -17px;
  width: 5px;
  border-radius: 4px 0 0 4px;
  background: #24282d;
}

.phone::before {
  top: 180px;
  height: 82px;
}

.phone::after {
  top: 284px;
  height: 50px;
}

.phone-top {
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.phone-speaker {
  width: 120px;
  height: 35px;
  border-radius: 24px;
  background: #090a0b;
}

.phone-screen {
  padding: 0 28px 40px;
}

.app-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.menu-icon {
  width: 27px;
  display: grid;
  gap: 5px;
}

.menu-icon i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.add-icon {
  width: 26px;
  height: 26px;
  position: relative;
}

.add-icon::before,
.add-icon::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 1px;
  left: 1px;
  height: 2px;
  background: var(--ink);
}

.add-icon::after {
  transform: rotate(90deg);
}

.invoice-title {
  margin-bottom: 24px;
  font-size: 35px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.invoice-fields,
.line-items {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.invoice-field {
  min-height: 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.invoice-field:last-child {
  border-bottom: 0;
}

.invoice-field strong {
  font-size: 19px;
  font-weight: 560;
}

.invoice-field svg {
  width: 20px;
  position: absolute;
  right: 18px;
  bottom: 27px;
  fill: none;
  stroke: #8b9096;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.field-label {
  color: #686e75;
  font-size: 14px;
  line-height: 1.2;
}

.amount-field strong {
  font-size: 33px;
  font-weight: 480;
  letter-spacing: -0.035em;
}

.status-field {
  min-height: 80px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.status {
  padding: 8px 14px;
  border: 1.5px solid var(--orange);
  border-radius: 9px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 570;
}

.line-items {
  margin-top: 14px;
  padding: 22px 20px 18px;
}

.line-items > .field-label {
  display: block;
  margin-bottom: 18px;
}

.line-item {
  height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #eceeef;
}

.line-item + .line-item {
  padding-top: 11px;
}

.line-item i,
.line-item b {
  display: block;
  height: 9px;
  border-radius: 9px;
  background: #e4e6e8;
}

.line-item i {
  width: 40%;
}

.line-item b {
  width: 14%;
}

.product {
  width: min(calc(100% - 72px), var(--max-width));
  margin: 0 auto;
  padding: 150px 50px 140px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 100px;
  align-items: end;
  padding-bottom: 100px;
}

.section-intro h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(54px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 740;
}

.section-intro p {
  max-width: 650px;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}

.capabilities article {
  min-height: 430px;
  padding: 58px 52px 20px 0;
}

.capabilities article + article {
  padding-left: 52px;
  border-left: 1px solid var(--rule);
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 46px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.capabilities h3 {
  margin-bottom: 22px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.capabilities p {
  max-width: 340px;
  margin-bottom: 0;
  color: #2f343a;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.closing {
  background: var(--dark);
  color: #fff;
  padding: 140px max(36px, calc((100vw - var(--max-width)) / 2 + 50px)) 56px;
}

.closing-copy {
  min-height: 450px;
}

.closing-copy p {
  max-width: 650px;
  margin-top: 42px;
  margin-bottom: 0;
  color: #e5e8eb;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

footer {
  padding-top: 34px;
  border-top: 1px solid #59616a;
}

.brand-dark {
  font-size: 28px;
}

.brand-dark img {
  width: 42px;
  height: 42px;
}

footer > p {
  margin: 18px 0 0;
  color: var(--dark-muted);
  font-size: 16px;
  line-height: 1.5;
}

footer > p span {
  padding: 0 6px;
}

:focus-visible {
  outline: 3px solid rgb(255 90 0 / 40%);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .site-header,
  .hero,
  .product {
    width: min(calc(100% - 48px), var(--max-width));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  }

  .hero-copy {
    padding-left: 20px;
  }

  .phone {
    width: 400px;
    height: 700px;
  }

  .section-intro {
    gap: 50px;
  }

  .capabilities article {
    padding-right: 30px;
  }

  .capabilities article + article {
    padding-left: 30px;
  }
}

@media (max-width: 800px) {
  .site-header {
    width: calc(100% - 40px);
    height: 88px;
  }

  .brand {
    gap: 9px;
    font-size: 24px;
  }

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

  nav {
    gap: 20px;
    font-size: 13px;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .hero-copy {
    max-width: none;
    padding: 76px 24px 64px;
  }

  h1 {
    margin-bottom: 28px;
    font-size: clamp(50px, 13.5vw, 70px);
    line-height: 1.02;
  }

  .hero-copy > p {
    margin-bottom: 34px;
    font-size: 20px;
    line-height: 1.5;
  }

  .primary-action {
    min-height: 64px;
    padding: 0 24px;
    font-size: 17px;
  }

  .product-stage {
    min-height: 620px;
    align-items: flex-end;
    padding: 0 24px;
  }

  .phone {
    width: min(430px, 100%);
    height: 590px;
    border-width: 9px;
    border-bottom: 0;
    border-radius: 54px 54px 0 0;
  }

  .phone-top {
    height: 58px;
  }

  .phone-speaker {
    width: 100px;
    height: 30px;
  }

  .phone-screen {
    padding: 0 20px 30px;
  }

  .app-toolbar {
    margin-bottom: 20px;
  }

  .invoice-title {
    margin-bottom: 18px;
    font-size: 29px;
  }

  .invoice-field {
    min-height: 78px;
    padding: 12px 16px;
  }

  .invoice-field strong {
    font-size: 17px;
  }

  .amount-field strong {
    font-size: 28px;
  }

  .status-field {
    min-height: 68px;
  }

  .line-items {
    display: none;
  }

  .product {
    width: 100%;
    padding: 100px 24px 90px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 68px;
  }

  .section-intro h2,
  .closing h2 {
    font-size: clamp(48px, 12vw, 65px);
    line-height: 1.04;
  }

  .section-intro p {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.5;
  }

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

  .capabilities article,
  .capabilities article + article {
    min-height: 0;
    padding: 44px 0 52px;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .capabilities article:last-child {
    border-bottom: 0;
  }

  .feature-icon {
    margin-bottom: 28px;
  }

  .capabilities h3 {
    font-size: 24px;
  }

  .capabilities p {
    max-width: 540px;
    font-size: 19px;
  }

  .closing {
    padding: 96px 24px 40px;
  }

  .closing-copy {
    min-height: 420px;
  }

  .closing-copy p {
    margin-top: 32px;
    font-size: 20px;
  }

  footer > p span {
    display: none;
  }

  footer > p span::after {
    content: "";
  }
}

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

  .hero-copy {
    padding-top: 60px;
  }

  h1 {
    font-size: 48px;
  }

  .product-stage {
    min-height: 540px;
  }

  .phone {
    height: 530px;
  }

  .section-intro h2,
  .closing h2 {
    font-size: 46px;
  }

  footer > p {
    max-width: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
