/* kinginvoicing.com: the public website. The app's own colors and type, nothing from anywhere else. */

@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f8f3ec;
  --card: #ffffff;
  --wash: #efe8dd;
  --ink: #211913;
  --brand: #37261b;
  --text: #3a2f27;
  --muted: #7a6d62;
  --line: #e0d8cc;
  --bronze: #a0764c;
  --good: #2f5b33;
  --sans: 'Jost', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6.4vw, 72px);
}

h2 {
  font-size: clamp(32px, 4.4vw, 48px);
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #cfc4b5;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.big {
  min-height: 54px;
  padding: 0 26px;
  font-size: 18px;
}

.link {
  text-decoration: none;
  font-weight: 500;
}

/* The top */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 560px) {
  .top-links .btn {
    display: none;
  }
}

/* The hero */

.hero {
  padding: 64px 0 56px;
}

.hero-in {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-in {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
}

.lead {
  margin: 20px 0 30px;
  font-size: 20px;
  max-width: 36em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-picture {
  position: relative;
  padding-bottom: 64px;
}

.paper {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 48px rgba(55, 38, 27, 0.12);
}

.paper-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.paper-head div {
  flex: 1;
  display: grid;
}

.paper-head strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.paper-head span {
  font-size: 14px;
  color: var(--muted);
}

.logo-dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
}

.chip {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13px !important;
}

.chip.good {
  background: #dcebdc;
  color: var(--good) !important;
}

.paper-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.paper-row.trade {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.paper-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}

.paper-total strong {
  font-size: 22px;
  font-weight: 500;
}

.signal {
  position: absolute;
  right: -8px;
  bottom: -12px;
  display: flex;
  gap: 12px;
  max-width: 300px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 16px 32px rgba(55, 38, 27, 0.14);
}

.signal .dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--bronze);
}

.signal div {
  display: grid;
  font-size: 15px;
}

.signal strong {
  color: var(--ink);
}

.signal span {
  color: var(--muted);
}

/* How it works */

.how {
  padding: 64px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

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

.step-no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--brand);
  font-weight: 600;
}

.steps p,
.grid p {
  margin: 8px 0 0;
  color: var(--text);
}

/* Features */

.features {
  padding: 72px 0;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

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

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

.grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

/* Devices and the last call */

.devices {
  padding: 56px 0;
  background: var(--brand);
  color: #efe6da;
}

.devices h2 {
  color: #fff;
}

.devices-in p {
  max-width: 40em;
  margin: 14px 0 0;
  font-size: 20px;
}

.cta {
  padding: 80px 0;
}

.cta-in {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.foot a {
  text-decoration: none;
}
