/* Handbill site: same look as the App Store posters. Always light. */
:root {
  color-scheme: light;
  --paper: #f6f5f1; --card: #ffffff; --ink: #16303f; --accent: #2f6a8a; --muted: #5f5e5a;
  --line: #e3e0d8; --notch: #e7e4db; --tint: rgba(47, 106, 138, 0.07);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif; }
.wrap { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Faint ticket shapes behind the page, like the poster backgrounds */
.ticket { position: absolute; z-index: 0; background: var(--tint); border-radius: 48px; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }

header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 600; font-size: 16px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--ink); }
nav a.nav-get { color: var(--accent); }
.cta-end { margin-top: 48px; margin-bottom: 48px; }

h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 8vw, 76px); }
h2 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 16px; }
h1 span, h2 span { display: block; color: var(--accent); }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--muted); font-weight: 500; max-width: 560px; margin: 18px 0 0; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
.muted { color: var(--muted); }

.hero { padding-top: 48px; padding-bottom: 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: 999px; }
a.pill { text-decoration: none; }
a.pill:hover { background: var(--accent); }
.pill img { width: 22px; height: 22px; border-radius: 5px; }

/* The tear line with a notch at each edge: the brand divider */
.tear { position: relative; height: 44px; margin: 40px 0; }
.tear::before { content: ""; position: absolute; left: 32px; right: 32px; top: 50%; border-top: 6px dotted rgba(47, 106, 138, 0.35); transform: translateY(-50%); }
.tear::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 0 50%, var(--notch) 21px, transparent 22px),
              radial-gradient(circle at 100% 50%, var(--notch) 21px, transparent 22px); }

/* Poster gallery: a framed scroll area with edge fades, arrows and dots,
   so nothing looks cut off and it is clear the row scrolls. */
.gallery { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 22px 0 16px; box-shadow: 0 18px 50px rgba(22, 48, 63, 0.08); }
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 22px;
  padding: 4px 22px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 auto; width: min(58vw, 240px); border-radius: 20px; scroll-snap-align: start;
  box-shadow: 0 10px 26px rgba(22, 48, 63, 0.12), 0 0 0 1px var(--line); background: var(--paper); }
/* Soft fade on a side only while there is more to scroll that way */
.gallery::before, .gallery::after { content: ""; position: absolute; top: 1px; bottom: 44px; width: 56px; z-index: 2;
  pointer-events: none; transition: opacity .2s; }
.gallery::before { left: 1px; border-radius: 28px 0 0 0; background: linear-gradient(90deg, var(--card), rgba(255,255,255,0)); opacity: 0; }
.gallery::after { right: 1px; border-radius: 0 28px 0 0; background: linear-gradient(270deg, var(--card), rgba(255,255,255,0)); }
.gallery.scrolled::before { opacity: 1; }
.gallery.at-end::after { opacity: 0; }
.arrow { position: absolute; top: calc(50% - 36px); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(22, 48, 63, 0.16); transition: opacity .2s; }
.arrow.prev { left: 12px; } .arrow.next { right: 12px; }
.arrow[hidden] { display: grid; opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(47, 106, 138, 0.25);
  cursor: pointer; transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 22px; background: var(--accent); }
@media (hover: none) { .arrow { display: none; } .arrow[hidden] { display: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: 0 10px 30px rgba(22, 48, 63, 0.06); }
.card p:last-child { margin-bottom: 0; }

/* Document pages (privacy, support) look like a handbill on the table */
.sheet { background: var(--card); border-radius: 28px; padding: clamp(22px, 5vw, 44px);
  box-shadow: 0 24px 60px rgba(22, 48, 63, 0.10); margin: 8px 0 56px; }
.sheet h2 { font-size: 24px; letter-spacing: -0.02em; margin: 30px 0 8px; }
.sheet ul { padding-left: 20px; }
.sheet li { margin-bottom: 8px; }
.callout { background: var(--paper); border-radius: 18px; padding: 18px 20px; margin: 22px 0; font-weight: 500; }

footer { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }

/* Trade list, pricing and FAQ */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; }
.price small { font-size: 17px; font-weight: 600; color: var(--muted); }
.card ul { padding-left: 20px; margin: 12px 0 0; }
.card li { margin-bottom: 6px; }
#faq h3 { margin-top: 24px; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin: 0 -8px; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; color: var(--muted); font-weight: 700; }
.compare tbody tr:first-child { background: var(--tint); }
a.card:hover { border-color: var(--accent); }

/* Accessibility */
.skip { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.arrow[hidden] { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { margin-left: 0; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Invoice style gallery and logo examples */
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.style-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 18px;
  box-shadow: 0 10px 30px rgba(22, 48, 63, 0.06); }
.style-card img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.style-card figcaption { padding: 14px 6px 0; }
.style-card h3 { display: flex; align-items: center; gap: 8px; }
.style-card p { font-size: 15px; margin: 0; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.tag.free { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.logo-demo { display: grid; gap: 16px; max-width: 760px; }
.grid.pairs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.logo-demo figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.logo-demo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.logo-demo figure { display: grid; grid-template-columns: 1fr; }
.logo-demo figcaption { font-weight: 600; font-size: 15px; padding: 10px 4px 2px; }
@media (max-width: 520px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .style-card { padding: 8px 8px 12px; }
  .style-card p { font-size: 14px; } }
