/* Invoice Toolbox website. Colours follow the app icon: violet, ink, yellow and pink. */

:root {
  --violet: #4b23e8;
  --violet-soft: #6b46f2;
  --ink: #14103a;
  --sun: #ffd21f;
  --pink: #e0207a;
  --teal: #0b8585;
  --emerald: #0a8549;
  --amber: #c26200;
  --coral: #dc2e1a;
  --sky: #3b82f6;

  --bg: #ffffff;
  --bg-alt: #f4f2fb;
  --card: #ffffff;
  --text: #1d1a2e;
  --heading: #14103a;
  --muted: #5e5a7a;
  --line: #e1ddef;
  --link: #4b23e8;
  --shadow: 0 10px 30px rgba(20, 16, 58, 0.10);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b22;
    --bg-alt: #151130;
    --card: #1b1740;
    --text: #e9e7f6;
    --heading: #ffffff;
    --muted: #aaa6c8;
    --line: #2d2858;
    --link: #a99bff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--heading); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 22%; }
.site-header nav { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { background: var(--bg-alt); }
.site-header nav a[aria-current="page"] { color: var(--link); background: var(--bg-alt); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffdc4d; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.is-soon { cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta-row.centre { justify-content: center; }

/* Hero: the Home header from the app, writ large */
.hero { color: #fff; overflow: hidden; background:
  radial-gradient(circle at 100% 0%, var(--sun) 0, var(--sun) 230px, rgba(255, 210, 31, 0) 231px),
  linear-gradient(135deg, var(--ink) 0%, var(--violet) 58%, var(--violet-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 72px; }
.hero h1 { color: #fff; }
.eyebrow { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }
.hero .eyebrow { color: var(--sun); }
.lead { font-size: 1.22rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); max-width: 34em; }
.hero-note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }
.hero-copy { padding-bottom: 72px; }
.hero-shot { align-self: end; display: flex; justify-content: center; }
.phone { width: min(330px, 78vw); border-radius: 44px 44px 0 0; border: 9px solid var(--ink); border-bottom: 0; box-shadow: 0 30px 60px rgba(8, 5, 30, 0.45); aspect-ratio: 460 / 760; object-fit: cover; object-position: top; background: var(--ink); }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.small { font-size: 0.9rem; color: var(--muted); max-width: 60em; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; margin-bottom: 16px; }
.badge.big { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.badge.big .ico { width: 32px; height: 32px; }
.tint-violet { background: linear-gradient(135deg, var(--violet), var(--violet-soft)); }
.tint-teal { background: var(--teal); }
.tint-emerald { background: var(--emerald); }
.tint-coral { background: var(--coral); }
.tint-pink { background: var(--pink); }
.tint-amber { background: var(--amber); }
.tint-sky { background: var(--sky); }
.tint-ink { background: var(--sun); color: var(--ink); }

.showcase { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.reverse .showcase-copy { order: 2; }
.showcase.reverse { grid-template-columns: 1.2fr 0.8fr; }
.showcase-copy p { color: var(--muted); }
.frame { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(0.2em + 5px); width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }

.privacy-card { display: flex; gap: 28px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 28px; padding: 40px; max-width: 1072px; }
.privacy-card p { color: var(--muted); max-width: 46em; }
.privacy-card p:last-child { margin-bottom: 0; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; margin: 36px 0 28px; }
.plan { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: var(--violet); }
.plan p { color: var(--muted); margin: 0; }
.plan .price { font-size: 2.3rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; margin: 4px 0 10px; }
.plan .price { text-wrap: balance; font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.plan .price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--sun); color: var(--ink) !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; }
.plan-includes { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.plan-includes li { position: relative; padding-left: 28px; }
.plan-includes li::before { content: ""; position: absolute; left: 4px; top: 0.35em; width: 7px; height: 12px; border: solid var(--emerald); border-width: 0 3px 3px 0; transform: rotate(40deg); }

.faq { margin: 28px 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; color: var(--heading); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 500; color: var(--link); line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 40px; }

.closing { background: linear-gradient(135deg, var(--ink), var(--violet)); color: #fff; padding: 80px 0; text-align: center; }
.closing h2 { color: #fff; }
.closing img { margin: 0 auto 20px; border-radius: 22%; }

/* Text pages: privacy, terms, support */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.page-head p { color: var(--muted); margin: 0; max-width: 46em; }
.prose { padding: 48px 0 88px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--heading); background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--bg-alt); border-left: 5px solid var(--violet); border-radius: 12px; padding: 18px 22px; margin: 1.5em 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 56px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.foot h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--sun); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; overflow-wrap: anywhere; }
.foot-brand p { margin-top: 14px; max-width: 26em; }
.legal-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); }
.legal-line p { margin-bottom: 0.6em; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 56px; }
  .hero-copy { padding-bottom: 32px; }
  .hero { background:
    radial-gradient(circle at 100% 0%, var(--sun) 0, var(--sun) 84px, rgba(255, 210, 31, 0) 85px),
    linear-gradient(135deg, var(--ink) 0%, var(--violet) 58%, var(--violet-soft) 100%); }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase.reverse .showcase-copy { order: 0; }
  .showcase + .showcase { margin-top: 64px; }
  .section { padding: 64px 0; }
  .privacy-card { flex-direction: column; padding: 28px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .site-header nav a { padding: 6px 9px; font-size: 0.92rem; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .closing { display: none; } }
