/* Latin subsets of Archivo, Caveat and IBM Plex Sans (SIL OFL 1.1, see fonts/OFL.txt). Variable fonts: one file covers each weight range. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/caveat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-italic-latin.woff2") format("woff2");
}

:root {
  --ink: #131a2b;
  --text: #2a3348;
  --muted: #4a5468;
  --tinta: #1f3fa6;
  --stamp: #c7361b;
  --paper: #f6f7f9;
  --line: #dce3ef;
  --card-line: #d5dce8;
  --rule: #c5cedd;
  --dash: #8fa3cc;
  --navy: #0f1830;
  --on-navy: #c9d1e2;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 24px 40px -28px rgba(19, 26, 43, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.sprite {
  position: absolute;
}

a:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 3px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.display {
  font-family: var(--display);
  font-weight: 800;
}

.tinta {
  color: var(--tinta);
}

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

.mono {
  font-family: var(--mono);
  word-break: break-all;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text);
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr {
  flex: none;
  fill: var(--ink);
  shape-rendering: crispEdges;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 6px;
  background: var(--tinta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.15s;
}

.btn:hover {
  background: #18338a;
}

.btn-outline {
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--tinta);
  background: #fff;
  color: var(--tinta);
  font-size: 15px;
}

.btn-outline:hover {
  background: #eef1fa;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: #e3e8f2;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tinta);
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header */

.site-header {
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* The mark: a voice wave that ends in a check. Blue square and white strokes on light grounds; inverted on navy. */
.mark {
  flex: none;
}

.mark-bg {
  fill: var(--tinta);
}

.mark-fg {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comma {
  color: var(--stamp);
}

.brand-on-navy {
  min-height: 0;
  font-size: 18px;
  color: #fff;
}

.brand-on-navy .mark-bg {
  fill: #fff;
}

.brand-on-navy .mark-fg {
  stroke: var(--navy);
}

.brand-on-navy .comma {
  color: #f08a70;
}

/* Hero */

.hero {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, #e3e9f4 39px, #e3e9f4 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 48px;
  padding-top: clamp(40px, 4.4vw, 64px);
  padding-bottom: clamp(56px, 5.6vw, 80px);
}

.hero-copy {
  flex: 1 1 min(460px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.stamp {
  padding: 5px 12px;
  border: 2px solid var(--stamp);
  background: var(--paper);
  color: var(--stamp);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 540px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  color: var(--text);
}

.ticks li,
.plan-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-art {
  flex: 1.2 1 min(520px, 100%);
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

/* Chat mock */

.chat {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: #fff;
}

.bubble {
  max-width: 94%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.bubble-out {
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
  background: #e8ecf3;
}

.bubble-in {
  align-self: flex-start;
  border-radius: 12px 12px 12px 2px;
  background: #f1f3f7;
}

.chat-note {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
}

.voice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tinta);
}

.voice-play {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tinta);
  color: #fff;
}

.voice-play svg {
  fill: currentColor;
}

.wave {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
}

.voice-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.transcript {
  font-size: 14px;
  line-height: 1.4;
  font-style: italic;
  color: var(--text);
}

.file {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  flex: 0 0 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stamp);
  background: #fff;
  color: var(--stamp);
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
}

.file-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

.chat .mono {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

/* Quote mock: the same layout as the PDF from src/pdf/quote-pdf.ts */

.quote {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 14px;
  border: 1px solid var(--card-line);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.4;
  transform: rotate(1.5deg);
}

.quote-head,
.quote-meta,
.quote-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stack-end {
  align-items: flex-end;
}

.quote-name {
  font-size: 16px;
  line-height: 1.2;
}

.quote-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-number {
  font-size: 15px;
  color: var(--stamp);
  white-space: nowrap;
}

.quote-bar {
  height: 2px;
  background: var(--tinta);
}

.quote-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #d5e0f2;
}

.qty {
  flex: 0 0 28px;
}

.quote-row.th {
  padding: 5px 0;
  border-bottom-color: #b9c8e4;
}

.quote-total {
  align-items: baseline;
}

.quote-total .display {
  font-size: 24px;
  line-height: 1.1;
}

.quote-pix {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px dashed var(--dash);
}

.quote-pix .pix-text {
  gap: 2px;
}

.quote-pix .mono {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
}

.quote-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

/* Sections */

.section {
  background: #fff;
}

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

.section > .wrap,
.section-paper > .wrap,
.section-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: clamp(56px, 6.2vw, 88px);
  padding-bottom: clamp(56px, 6.2vw, 88px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head .lead {
  max-width: 620px;
}

h2.display {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-examples {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.card p {
  font-size: 16px;
  color: var(--text);
}

.step-number {
  font-size: 56px;
  line-height: 1;
  color: var(--tinta);
}

h3.display {
  font-size: 22px;
  line-height: 1.2;
}

.footnote {
  max-width: 760px;
  color: var(--text);
}

.footnote strong {
  font-weight: 600;
  color: var(--ink);
}

/* Features */

.section-paper > .features {
  gap: clamp(56px, 6.2vw, 88px);
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}

.feature-reverse {
  flex-direction: row-reverse;
}

.feature-copy {
  flex: 1 1 min(420px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-copy p {
  color: var(--text);
}

.feature-copy .eyebrow {
  color: var(--stamp);
}

.feature-copy h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.feature-art {
  flex: 1 1 min(380px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feature-art > * {
  width: 100%;
  max-width: 440px;
}

.notebook {
  display: flex;
  flex-direction: column;
  padding: 36px 24px 20px 52px;
  border: 1px solid var(--card-line);
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 35px, #e7a79d 35px, #e7a79d 36px, transparent 36px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #c9d6ec 35px, #c9d6ec 36px);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.notebook > span {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 27px;
  line-height: 36px;
  color: var(--tinta);
}

.notebook .notebook-stamp {
  align-self: flex-end;
  margin-top: 22px;
  padding: 4px 12px;
  border: 3px solid var(--stamp);
  background: #fff;
  color: var(--stamp);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.pix-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  padding: 24px;
  border: 1px solid var(--card-line);
  background: #fff;
  box-shadow: var(--shadow);
}

.pix-card .pix-text {
  flex: 1 1 180px;
  gap: 6px;
}

.pix-card .amount {
  font-size: 34px;
  line-height: 1.1;
}

.pix-card .mono {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed var(--dash);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.signup-chat {
  font-size: 15px;
  line-height: 1.4;
  padding: 16px;
}

.signup-chat .bubble {
  max-width: 86%;
  padding: 9px 12px;
}

.reply-buttons {
  align-self: flex-start;
  max-width: 86%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reply-buttons > span {
  padding: 6px 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  font-size: 13px;
  font-weight: 600;
}

/* Examples */

.example {
  padding: 22px;
}

.example .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tinta);
}

.example p {
  font-style: italic;
}

/* Pricing */

.pricing {
  background: #edf0f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing > .wrap {
  max-width: 928px;
}

.grid-plans {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--rule);
  background: #fff;
}

.plan-featured {
  border: 2px solid var(--tinta);
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.price .display {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}

.plan-list li {
  align-items: flex-start;
  gap: 10px;
}

.plan-list .check {
  margin-top: 4px;
}

.plan .btn,
.plan-note {
  margin-top: auto;
}

.plan-note {
  font-size: 15px;
  color: var(--muted);
}

/* FAQ */

.faq {
  background: var(--paper);
}

.faq > .wrap {
  gap: 32px;
}

.grid-faq {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 0 56px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.faq-item h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.faq-item p {
  font-size: 16px;
  color: var(--text);
}

/* Closing call and footer */

.closing {
  color: #fff;
}

.closing .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: clamp(64px, 6.7vw, 96px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

.closing h2 {
  max-width: 760px;
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.closing p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--on-navy);
}

.closing .btn {
  margin-top: 12px;
}

.site-footer {
  color: var(--on-navy);
}

.site-footer .wrap {
  padding-bottom: 32px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-top: 16px;
  border-top: 1px solid #36415e;
  font-size: 14px;
}

.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bar a:hover {
  color: #fff;
}

.site-footer p {
  margin-top: 8px;
  font-size: 13px;
}

/* Phones: the rotated cards would poke out of a narrow screen. */
@media (max-width: 520px) {
  .quote,
  .notebook {
    transform: none;
  }

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