/* ===== Buildo Landing — design tokens ===== */
:root {
  --orange: #C85A00;
  --orange-hover: #E06A00;
  --orange-tint: #F5DFC8;
  --orange-soft: #F9EBDC;
  --ink: #2A1F14;
  --ink-2: #4A3D2E;
  --muted: #7A6A58;
  --muted-2: #6b6157;
  --cream: #F0ECE4;
  --sand: #F5F1E8;
  --line: #E6E0D4;
  --green: #1E7E4C;
  --green-tint: #D4EDDF;
  --shadow-sm: 0 2px 12px rgba(42,31,20,.08);
  --shadow-md: 0 4px 24px rgba(42,31,20,.12);
  --radius: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Heebo, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow { max-width: 760px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, box-shadow .22s, transform .15s;
}
.btn:active { transform: scale(.97); }

.btn--sm { padding: 8px 16px; min-height: 36px; font-size: 14px; }
.btn--lg { padding: 15px 26px; min-height: 52px; font-size: 17px; border-radius: 12px; }
.btn--block { width: 100%; padding: 13px 20px; min-height: 48px; font-size: 15px; }

.btn--primary { color: #fff; background: var(--orange); }
.btn--primary:hover { background: var(--orange-hover); box-shadow: 0 4px 16px rgba(200,90,0,.30); }

.btn--ghost { color: var(--orange); background: #fff; border-color: var(--orange); }
.btn--ghost:hover { background: var(--orange-tint); }

.btn--white { color: var(--orange); background: #fff; border-color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.btn--white:hover { background: var(--sand); }

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand__mark--sm { width: 26px; height: 26px; border-radius: 7px; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.brand__name--sm { font-size: 14px; }
.brand__name--light { color: #fff; font-size: 20px; }
.brand--sm { gap: 7px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,236,228,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav__links a:hover { color: var(--orange); }
.nav__links a.is-active { color: var(--orange); font-weight: 800; }

/* ===== Hero ===== */
.hero { padding: 56px 0 60px; background: linear-gradient(180deg, var(--sand), var(--cream)); }
.hero__inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero__copy { flex: 1 1 460px; }
.hero__title {
  font-size: 54px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.06;
  margin: 18px 0 0;
}
.accent { color: var(--orange); }
.hero__lead { font-size: 20px; color: var(--ink-2); margin-top: 18px; max-width: 480px; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero__device { flex: 1 1 auto; display: flex; justify-content: center; }

.badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700;
}

/* ===== Phone mockup ===== */
.phone {
  width: 262px; background: #0f0d0b; border-radius: 38px; padding: 9px;
  box-shadow: 0 30px 70px rgba(42,31,20,.3); flex-shrink: 0;
}
.phone__screen { background: var(--cream); border-radius: 30px; overflow: hidden; height: 528px; }
.phone__top {
  padding: 14px 16px 10px; display: flex; justify-content: space-between; align-items: center;
}
.phone__body { padding: 0 16px; }
.phone__project { font-size: 19px; font-weight: 800; }
.phone__sub { font-size: 12px; color: var(--muted); }

.pcard {
  background: #fff; border-radius: 14px; padding: 16px; margin-top: 12px;
  box-shadow: var(--shadow-sm);
}
.pcard--progress { border-right: 4px solid var(--orange); }
.pcard--row { padding: 12px 16px; margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.pcard--task { gap: 10px; justify-content: flex-start; }
.pcard__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.pcard__pct { font-size: 40px; font-weight: 800; color: var(--orange); letter-spacing: -1px; line-height: 1; direction: ltr; text-align: right; }
.pcard__title { font-size: 13px; font-weight: 700; }
.pcard__meta { font-size: 11px; color: var(--muted); }
.pcard__amount { font-size: 18px; font-weight: 800; color: var(--orange); direction: ltr; }

.bar { height: 8px; background: var(--orange-soft); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--orange); border-radius: 99px; }

.icon-chip {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-chip--green { background: var(--green-tint); color: var(--green); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--tint); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); }

.section__head { margin-bottom: 44px; }
.section__head--center { text-align: center; }
.section__head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .6px; color: var(--orange); }

.h2 {
  font-size: 38px; font-weight: 800; letter-spacing: -.8px; line-height: 1.15;
  margin: 10px 0 0; color: var(--ink);
}
.h2--light { color: #fff; }

.section__lead {
  font-size: 18px; color: var(--ink-2); margin: 12px auto 0;
  max-width: 560px; line-height: 1.6;
}
.section__head--center .section__lead { margin-inline: auto; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 700; font-size: 15px;
}
.link-arrow:hover { gap: 9px; }
.link-arrow--sm { font-size: 14px; margin-top: 4px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }

/* ===== Pain cards (on dark) ===== */
.pain {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
}
.pain__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.pain__title { font-size: 20px; font-weight: 800; color: #fff; margin: 16px 0 0; }
.pain__text { font-size: 15px; color: rgba(255,255,255,.7); margin-top: 8px; line-height: 1.6; }

/* ===== Role cards ===== */
.role {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
  border-right: 4px solid var(--color);
  transition: transform .22s, box-shadow .22s;
}
.role:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.role__icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--tint); color: var(--color);
  display: flex; align-items: center; justify-content: center;
}
.role__title { font-size: 22px; font-weight: 800; margin: 16px 0 0; }
.role__text { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }

/* ===== Testimonials ===== */
.quote {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.stars { color: var(--orange); font-size: 16px; letter-spacing: 2px; }
.quote__text { font-size: 16px; line-height: 1.7; flex-grow: 1; margin: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.person__name { font-size: 15px; font-weight: 800; }
.person__role { font-size: 13px; color: var(--muted); }

/* ===== Features ===== */
.feature {
  display: flex; gap: 18px; background: #fff;
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature__title { font-size: 19px; font-weight: 800; margin: 0; }
.feature__text { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }

/* ===== Articles ===== */
.article {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.article:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article__bar { height: 6px; background: var(--orange); }
.article__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.article__meta { display: flex; align-items: center; gap: 10px; }
.article__read { font-size: 12px; color: #9A8B78; }
.article__title { font-size: 19px; font-weight: 800; line-height: 1.35; margin: 0; }
.article__text { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; flex-grow: 1; }

.tag {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  background: var(--orange-tint); color: var(--orange);
  font-size: 11px; font-weight: 700;
}

/* ===== Pricing ===== */
.pricing { align-items: stretch; }
.tier {
  background: #fff; border-radius: 16px; padding: 30px;
  position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 2px solid transparent;
}
.tier--popular { box-shadow: var(--shadow-md); border-color: var(--orange); }
.tier__badge {
  position: absolute; top: -13px; right: 24px;
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
}
.tier__name { font-size: 18px; font-weight: 800; margin: 0; }
.tier__proj { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tier__price { display: flex; align-items: baseline; gap: 4px; margin-top: 16px; }
.tier__num { font-size: 46px; font-weight: 800; letter-spacing: -1px; direction: ltr; }
.tier__unit { font-size: 17px; font-weight: 700; color: var(--muted); }
.tier__feats { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.tier__feats li {
  display: flex; gap: 8px; align-items: center; font-size: 15px;
}
.tier__feats li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / contain no-repeat;
}
.tier .btn { margin-top: auto; }
.pricing__note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }

/* ===== Final CTA ===== */
.cta { background: var(--orange); padding: 74px 0; text-align: center; }
.cta__title { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.1; margin: 0; }
.cta__text { font-size: 19px; color: rgba(255,255,255,.92); margin: 14px 0 0; }
.cta__btn { margin-top: 28px; display: flex; justify-content: center; }

/* ===== Articles page: header ===== */
.page-head { padding: 54px 0 8px; background: linear-gradient(180deg, var(--sand), var(--cream)); }
.page-head__title {
  font-size: 46px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.08;
  margin: 10px 0 0;
}
.page-head__lead { font-size: 19px; color: var(--ink-2); margin: 14px 0 0; max-width: 620px; line-height: 1.6; }

/* ===== Featured article ===== */
.featured-wrap { padding: 36px 0 0; background: var(--cream); }
.featured {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(42,31,20,.10);
  display: flex; flex-wrap: wrap;
}
.featured__media {
  flex: 1 1 300px; background: var(--ink); min-height: 280px;
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.featured__glyph { color: var(--orange); opacity: .92; }
.featured__flag {
  position: absolute; top: 20px; right: 20px;
  display: inline-flex; padding: 5px 13px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
}
.featured__body {
  flex: 1 1 380px; padding: 38px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured__title { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 14px 0 0; letter-spacing: -.5px; }
.featured__text { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin: 12px 0 0; }
.featured .link-arrow { margin-top: 20px; }

/* ===== Filter tabs ===== */
.section--list { padding: 40px 0 72px; background: var(--cream); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter__tab {
  display: inline-flex; align-items: center;
  padding: 9px 18px; font-family: inherit; font-size: 14px; font-weight: 700;
  border-radius: 999px; cursor: pointer;
  color: var(--ink-2); background: #fff; border: 2px solid #E6DFD2;
  transition: background .15s, color .15s, border-color .15s;
}
.filter__tab:hover { border-color: var(--orange); color: var(--orange); }
.filter__tab.is-active { color: #fff; background: var(--orange); border-color: var(--orange); }

.list-empty { text-align: center; font-size: 16px; color: var(--muted); padding: 32px 0; }

/* ===== Newsletter strip ===== */
.newsletter { background: var(--ink); padding: 48px 0; }
.newsletter__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.newsletter__copy { flex: 1 1 360px; }
.newsletter__title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.5px; margin: 0; }
.newsletter__text { font-size: 16px; color: rgba(255,255,255,.78); margin: 8px 0 0; }
.newsletter__form { display: flex; gap: 10px; flex: 0 1 420px; flex-wrap: wrap; }
.newsletter__input {
  flex: 1 1 200px; min-height: 48px; padding: 12px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 10px; outline: none;
}
.newsletter__input:focus { border-color: var(--orange); }
.newsletter__form .btn { border-radius: 10px; padding: 12px 24px; min-height: 48px; font-size: 15px; }
.newsletter__thanks { color: #fff; font-size: 16px; font-weight: 700; margin: 0; }

/* ===== Article (single post) ===== */
.post-head { padding: 44px 0 0; background: linear-gradient(180deg, var(--sand), var(--cream)); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--orange); font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs__sep { color: #C3B9A8; }

.post__title {
  font-size: 42px; font-weight: 800; letter-spacing: -1.1px; line-height: 1.12;
  margin: 12px 0 0;
}
.post__lead { font-size: 20px; color: var(--ink-2); line-height: 1.6; margin: 16px 0 0; }

.byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 36px; }
.byline__name { font-size: 15px; font-weight: 800; }
.byline__meta { font-size: 13px; color: var(--muted); }

.post__media {
  background: var(--ink); border-radius: 16px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -16px;
  box-shadow: 0 2px 16px rgba(42,31,20,.10);
}
.post__glyph { color: var(--orange); opacity: .92; }

/* Prose */
.prose { padding: 40px 0 8px; }
.prose > * { max-width: 100%; }
.prose p { font-size: 18px; line-height: 1.8; color: var(--ink-2); margin: 0 0 22px; }
.prose h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--ink);
  margin: 40px 0 14px; line-height: 1.25;
}
.prose ul { margin: 0 0 22px; padding-inline-start: 0; list-style: none; }
.prose li {
  position: relative; font-size: 18px; line-height: 1.7; color: var(--ink-2);
  padding-inline-start: 26px; margin-bottom: 10px;
}
.prose li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.prose blockquote {
  margin: 28px 0; padding: 20px 24px;
  background: var(--orange-soft); border-right: 4px solid var(--orange);
  border-radius: 12px; font-size: 17px; line-height: 1.7; color: var(--ink);
}
.prose blockquote strong { color: var(--orange); }
.prose-link {
  color: var(--orange); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--orange-soft); transition: border-color .15s ease;
}
.prose-link:hover { border-bottom-color: var(--orange); }

/* Inline CTA */
.post-cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  background: var(--orange); border-radius: 16px;
  padding: 32px 36px; margin: 40px 0 72px;
}
.post-cta__title { font-size: 24px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -.4px; }
.post-cta__text { font-size: 16px; color: rgba(255,255,255,.92); margin: 8px 0 0; }

/* Make article cards fully clickable */
.article--link { text-decoration: none; color: inherit; }
.article--link .link-arrow { color: var(--orange); }
.article--link:hover .link-arrow { gap: 9px; }

/* ===== Footer ===== */
.footer { background: var(--ink); padding: 36px 0; }
.footer--bordered { border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__links { display: flex; gap: 24px; font-size: 14px; }
.footer__links a { color: rgba(255,255,255,.7); }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.6); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 44px; }
  .h2 { font-size: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .hero__title { font-size: 36px; letter-spacing: -1px; }
  .hero__lead { font-size: 18px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .h2 { font-size: 28px; }
  .cta__title { font-size: 32px; }
  .btn--lg { font-size: 16px; padding: 14px 22px; }
}
