/* Invoice Maker: Estimate Maker — shared site styles */
:root {
  --primary: #0f67fe;
  --blue-950: #041833;
  --blue-900: #0a2f6b;
  --blue-700: #0b4fd9;
  --blue-500: #1a6bff;
  --blue-400: #4d8dff;
  --lime: #b8ff2e;
  --lime-deep: #8fd914;
  --ink: #07111f;
  --ink-soft: #243044;
  --muted: #5b6b7f;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: rgba(7, 17, 31, 0.1);
  --shadow: 0 24px 60px rgba(4, 24, 51, 0.28);
  --radius: 18px;
  --font-display: "Space Grotesk", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(26, 107, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(184, 255, 46, 0.12), transparent 50%),
    linear-gradient(180deg, #eef4ff 0%, var(--paper) 32%, #e8eef8 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 0.75rem;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.78);
  border-bottom: 1px solid rgba(7, 17, 31, 0.06);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(10, 47, 107, 0.25);
}

.nav-links {
  display: none;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue-700);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(15, 103, 254, 0.35);
}

.btn-primary:hover {
  background: #0d5ae6;
  color: var(--white);
  box-shadow: 0 14px 34px rgba(15, 103, 254, 0.45);
}

.btn-secondary {
  background: var(--ink);
  color: var(--white);
}

.btn-secondary:hover {
  background: #13233a;
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.apple-badge svg {
  width: 20px;
  height: 20px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.store-badges a {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badges .badge-apple {
  height: 56px;
  width: auto;
}

.store-badges .badge-google {
  height: 82px;
  width: auto;
  margin: -12px -14px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 70% at 70% 30%, rgba(77, 141, 255, 0.45), transparent 60%),
    linear-gradient(145deg, #06275e 0%, #0b4fd9 48%, #1a6bff 100%);
  min-height: min(100vh, 920px);
  display: flex;
  align-items: stretch;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 24, 51, 0.55) 0%, rgba(4, 24, 51, 0.15) 48%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding: 3.5rem 0 0;
  width: min(100% - 2rem, var(--max));
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 4.5rem 0 0;
    min-height: min(100vh, 880px);
  }
}

.hero-copy {
  padding-bottom: 2.5rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  animation: rise 0.8s var(--ease) both;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.1rem);
  max-width: 11ch;
  margin-bottom: 0.85rem;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero .btn-row {
  animation: rise 0.9s var(--ease) 0.24s both;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding-bottom: 2rem;
}

.hero-visual img,
.hero-visual video,
.hero-video {
  width: min(100%, 340px);
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: floatPhone 5.5s ease-in-out infinite, rise 1s var(--ease) 0.2s both;
  background: #041833;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

@media (min-width: 900px) {
  .hero-visual img,
  .hero-visual video,
  .hero-video {
    width: min(100%, 380px);
  }
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.65rem;
}

/* Download */
.download {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.download-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .download-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.price-pills li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.download-card {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-500));
  color: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.download-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.download-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

/* Screenshots */
.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  align-items: start;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 700px) {
  .shot-rail {
    grid-auto-columns: 220px;
  }
}

.shot-rail figure {
  margin: 0;
  scroll-snap-align: start;
  width: 100%;
}

.shot-rail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1242 / 2688;
  object-fit: contain;
  object-position: top center;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(4, 24, 51, 0.18);
  transition: transform 0.35s var(--ease);
  background: #e8eef8;
}

.shot-rail img:hover {
  transform: translateY(-6px) scale(1.02);
}

.shot-rail figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
}

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

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(4, 24, 51, 0.1);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: var(--muted);
  margin: 0;
}

/* Guides */
.guides {
  background: linear-gradient(180deg, transparent, rgba(26, 107, 255, 0.06) 40%, transparent);
}

.guide-grid {
  display: grid;
  gap: 1rem;
}

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

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

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 100%;
}

.guide-card:hover {
  border-color: rgba(11, 79, 217, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(4, 24, 51, 0.1);
  color: var(--ink);
}

.guide-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.guide-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.guide-card .more {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-700);
  margin-top: 0.35rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--blue-700);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.faq-body a.learn {
  display: inline-flex;
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-700);
  text-decoration: none;
}

.faq-body a.learn:hover {
  text-decoration: underline;
}

/* CTA band */
.cta-band {
  padding: 0 0 4.5rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  padding: 2.5rem 1.75rem;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(184, 255, 46, 0.28), transparent 40%),
    linear-gradient(125deg, var(--blue-950), var(--blue-700) 55%, #2470ff);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16ch;
  margin-inline: auto;
}

.cta-panel p {
  max-width: 38ch;
  margin: 0 auto 1.4rem;
  color: rgba(255, 255, 255, 0.88);
}

.cta-panel .btn-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--lime);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* Guide article pages */
.guide-hero {
  padding: 3rem 0 1.5rem;
}

.guide-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 18ch;
}

.guide-hero .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 48ch;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.4rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(4, 24, 51, 0.05);
}

@media (min-width: 700px) {
  .article {
    padding: 2.25rem 2.4rem;
  }
}

.article h2 {
  font-size: 1.45rem;
  margin-top: 1.6rem;
}

.article ol,
.article ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.article li {
  margin-bottom: 0.45rem;
}

.article-cta {
  margin-top: 2rem;
  padding: 1.35rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 107, 255, 0.1), rgba(184, 255, 46, 0.18));
  border: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
}

.related {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

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

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatPhone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.legal-content ul {
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.legal-content li {
  margin-bottom: 0.55rem;
}

.legal-content a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.store-badges--nav .badge-apple {
  height: 36px;
}

.store-badges--nav .badge-google {
  height: 52px;
  margin: -8px -10px;
}

@media (max-width: 520px) {
  .site-nav .store-badges--nav .badge-google {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
