/* sync.reofex.com — mobile first. Brand colours match the app
   (frontend/src/index.css). */
:root {
  --navy: #0f172a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --tint: #f8fafc;
  --surface: #ffffff;
  --wa: #0e7a40; /* 5.4:1 with white text */
  --wa-hover: #0b6535;
  --radius: 16px;
  --shadow-lg: 0 30px 80px -30px rgba(15, 23, 42, 0.35), 0 12px 30px -18px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 10px 30px -14px rgba(15, 23, 42, 0.22);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.35rem, 9vw, 4.4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.1;
  font-weight: 750;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 12px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] {
  scroll-margin-top: 72px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 15px/1 Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.8);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(14, 122, 64, 0.8);
}
.btn-wa:hover {
  background: var(--wa-hover);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--tint);
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: 24px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  background: var(--tint);
  color: var(--ink);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.hide-sm {
  display: none;
}
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu {
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.menu-links {
  display: grid;
  gap: 2px;
  padding-block: 12px 20px;
}
.menu-links a:not(.btn) {
  padding: 14px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-links .btn {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(35% 40% at 20% 10%, rgba(14, 165, 233, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 80%, transparent);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.accent {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 60ch;
}
.cta-row {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.hero-points li::before,
.plan-list li::before,
.privacy-points li::before {
  content: '';
  flex: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 8px -3px 0;
  border-radius: 50%;
  background: #059669
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* Devices */
.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}
.browser {
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.dots {
  display: flex;
  gap: 7px;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dots i:nth-child(1) {
  background: #ff5f57;
}
.dots i:nth-child(2) {
  background: #febc2e;
}
.dots i:nth-child(3) {
  background: #28c840;
}
.url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

/* iPhone 15 (393 x 852 pt screen), drawn in CSS. */
.iphone {
  --w: 290px;
  position: relative;
  width: var(--w);
  aspect-ratio: 393 / 852;
  padding: calc(var(--w) * 0.033);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #2b2d33, #0c0d10 40%, #1a1b20);
  box-shadow:
    inset 0 0 0 1.5px #44464d,
    inset 0 0 0 4px #0c0d10,
    var(--shadow-lg);
}
.iphone::before,
.iphone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #24252a;
}
.iphone::before {
  left: -3px;
  top: 22%;
  height: 12%;
}
.iphone::after {
  right: -3px;
  top: 28%;
  height: 17%;
}
.iphone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.14);
  background: #fff;
  container-type: inline-size;
}
.island {
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  width: 31cqw;
  height: 9.2cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
  z-index: 2;
}
.status {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  height: 13.7cqw; /* 54pt of 393pt */
  padding: 0 7.5cqw 0 10cqw;
  font-size: 4.3cqw;
  font-weight: 650;
  color: #000;
}
.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
}
.status-icons svg {
  height: 3.1cqw;
  width: auto;
  fill: currentColor;
}
.iphone-screen > img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}
.home-bar {
  position: absolute;
  bottom: 2cqw;
  left: 50%;
  width: 35cqw;
  height: 1.3cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------------------------------- Works with */
.works {
  border-block: 1px solid var(--line);
  background: var(--tint);
}
.works-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 20px;
}
.works-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.works ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.works li {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- Sections */
.section {
  padding: 72px 0;
}
.section-tint {
  background: var(--tint);
}
.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lead {
  margin-inline: auto;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow-light {
  color: #93c5fd;
}

/* Invoice -> extracted */
.flow {
  display: grid;
  gap: 16px;
  align-items: center;
}
.flow-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.flow-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.step-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--primary);
}
.flow-arrow svg {
  width: 36px;
  height: 36px;
  transform: rotate(90deg);
}
.checks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checks-row li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.checks-row b {
  color: var(--ink);
  font-weight: 650;
}

/* Bento */
.bento {
  display: grid;
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.tile-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.tile-shot {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.tile-phone {
  background: linear-gradient(180deg, var(--surface), var(--primary-soft));
}
.tile-phone .iphone {
  --w: 240px;
  align-self: center;
  margin-bottom: -160px;
}
.rule-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.rule-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}
.tag-amber {
  background: #fff7ed;
  color: #b45309;
}
.tag-violet {
  background: #f5f3ff;
  color: #6d28d9;
}
.tag-red {
  background: #fef2f2;
  color: #b91c1c;
}
.tag-green {
  background: #ecfdf5;
  color: #047857;
}

/* Backlog import */
.stats {
  display: grid;
  gap: 16px;
  margin: 8px 0 40px;
}
.stats div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--primary-soft));
}
.stats strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stats span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}
.backlog-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.import-mock {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.mock-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.mock-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.mock-bar {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tint);
}
.mock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}
.mock-rows {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.mock-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
}
.feature-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding-left: 18px;
  border-left: 3px solid var(--primary-soft);
}
.feature-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 960px) {
  .backlog-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
  .import-mock {
    position: sticky;
    top: 96px;
  }
}

/* Privacy */
.section-dark {
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(37, 99, 235, 0.25), transparent 70%),
    var(--navy);
  color: #e2e8f0;
}
.section-dark h2 {
  color: #fff;
}
.lead-light {
  color: #cbd5e1;
}
.privacy-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.privacy-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #e2e8f0;
  font-size: 15px;
}
.privacy-points li {
  display: flex;
}
.privacy-points li::before {
  margin-top: 3px;
}
.diagram {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.diagram-machine {
  padding: 18px;
  border: 1.5px dashed rgba(147, 197, 253, 0.6);
  border-radius: 16px;
}
.diagram-label {
  display: block;
  margin-bottom: 14px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.diagram-app {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}
.diagram-app img {
  border-radius: 9px;
}
.diagram-app small {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.diagram-links {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}
.diagram-links::before {
  content: '';
  position: absolute;
  top: -26px;
  left: 50%;
  height: 26px;
  border-left: 1.5px solid rgba(147, 197, 253, 0.6);
}
.diagram-links span {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.diagram-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 750;
}

/* Pricing */
.plans {
  display: grid;
  gap: 20px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.plan-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 24px 50px -28px rgba(37, 99, 235, 0.6);
}
.badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.plan-for {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  align-self: flex-start;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.plan-for strong {
  color: var(--primary-hover);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.per {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.plan-support {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.plan-support strong {
  color: var(--ink);
}
.included {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.included .plan-list {
  margin-top: 16px;
  padding-top: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .included .plan-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .included .plan-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.price {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}
.price span {
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan .btn {
  margin-top: auto;
}
.plan .plan-support {
  margin-bottom: 20px;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
/* More than 1,500 invoices: stands apart from the self-serve plans. */
.plan-custom {
  border: 0;
  /* Same colours as the link-preview image (website/og/og-image.html). */
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(236, 72, 153, 0.95), transparent 70%),
    radial-gradient(80% 60% at 100% 100%, rgba(249, 115, 22, 0.9), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(192, 38, 211, 0.7), transparent 70%),
    linear-gradient(160deg, #312e81 0%, #4338ca 50%, #6d28d9 100%);
  color: #ede9fe;
  box-shadow: 0 24px 50px -28px rgba(109, 40, 217, 0.8);
}
.plan-custom h3,
.plan-custom .price span,
.plan-custom .plan-support strong {
  color: #fff;
}
.plan-custom .plan-for {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.plan-custom .plan-for strong {
  color: #fef08a;
}
.plan-custom .per,
.plan-custom .price {
  color: #ede9fe;
}
.plan-custom .price span {
  font-size: 2rem;
}
.plan-custom .plan-support {
  border-top-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: #4338ca;
}
.btn-light:hover {
  background: #fef9c3;
}
.plan-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
}
.fine-list {
  max-width: 760px;
  margin: 28px auto 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 8px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  padding-bottom: 20px;
  color: var(--muted);
}

/* Contact */
.section-cta {
  background:
    radial-gradient(50% 70% at 10% 0%, rgba(37, 99, 235, 0.35), transparent 70%),
    var(--navy);
  color: #e2e8f0;
}
.section-cta h2 {
  color: #fff;
}
.contact-grid {
  display: grid;
  gap: 32px;
}
.contact-direct {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.contact-direct li {
  display: grid;
  gap: 2px;
}
.contact-direct span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-direct a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.contact-direct a:hover {
  text-decoration: underline;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.form-row {
  display: grid;
  gap: 16px;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* stops iOS zooming into the field */
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
  outline: none;
}
textarea {
  resize: vertical;
}
.form-error {
  color: #b91c1c;
  font-size: 14px;
}
.form-note {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.site-footer {
  padding: 36px 0 calc(110px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.footer-row {
  display: grid;
  gap: 18px;
}
.brand-sm {
  font-size: 15px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-links a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-fine {
  color: var(--muted);
  font-size: 13px;
}

/* Sticky phone CTA */
.mobile-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.mobile-cta.show {
  transform: none;
}

/* Reveal on scroll (only once JS has marked the page) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- ≥ 640px */
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
  .cta-row {
    display: flex;
    flex-wrap: wrap;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .works-row {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .tile-phone {
    grid-row: span 2;
  }
  .tile-wide {
    grid-column: 1 / -1;
  }
  .contact-form {
    padding: 28px;
  }
}

/* ---------------------------------------------------------------- ≥ 960px */
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
  .hide-sm {
    display: inline-flex;
  }
  .menu-btn,
  .menu,
  .mobile-cta {
    display: none !important;
  }
  .site-footer {
    padding-bottom: 36px;
  }
  /* Centred headline, then a large product view with the phone over its
     corner. */
  .hero {
    padding: 80px 0 0;
  }
  .hero-grid {
    gap: 56px;
  }
  .hero-copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .cta-row,
  .hero-points {
    justify-content: center;
  }
  .hero-visual {
    padding: 0 6% 0 0;
  }
  .hero-visual .browser {
    margin-top: 40px; /* the phone stands taller than the window */
  }
  .browser {
    display: block;
    width: 100%;
    max-width: 1080px;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    box-shadow: 0 -20px 80px -40px rgba(15, 23, 42, 0.35);
  }
  .hero-phone {
    --w: 260px;
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .section {
    padding: 104px 0;
  }
  .flow {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }
  .flow-arrow svg {
    transform: none;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento {
    grid-template-columns: 1.05fr 1fr 1fr;
  }
  .tile-wide {
    grid-column: 2 / -1;
  }
  .privacy-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
  .plans {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
  }
  .footer-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .hero-phone {
    --w: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mobile-cta,
  .btn {
    transition: none;
  }
}

/* Countries with tax rules (docs/21-multi-country.md). */
.countries {
  margin-top: 28px;
  text-align: center;
}
.countries > p:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.countries ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.countries li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.countries-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------------- Download page */
.nav a[aria-current='page'] {
  color: var(--ink);
}
.dl-hero {
  padding-bottom: 56px;
}
.dl-hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
}
.dl-hero .lead {
  max-width: 640px;
  margin-top: 14px;
}
.dl-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 720px;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dl-card .btn {
  gap: 8px;
}
.dl-name {
  margin: 0;
  font-weight: 650;
}
.dl-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.dl-fine {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.dl-checks {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-checks li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
}
.dl-checks li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 21px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.dl-os {
  display: grid;
  gap: 18px;
}
.dl-os-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.dl-os-also {
  color: var(--muted);
  font-weight: 500;
}
.dl-steps {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
}
.dl-steps li::marker {
  color: var(--primary);
  font-weight: 700;
}
.dl-os-card code,
.dl-after code,
.faq code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--tint);
  font-size: 0.9em;
}
.dl-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 10px 10px 14px;
  border-radius: 10px;
  background: var(--navy);
}
.dl-cmd code {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  color: #e2e8f0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.dl-copy {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 600 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.dl-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}
.dl-cmd-label {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.dl-after {
  display: grid;
  gap: 18px;
}
.dl-after > div {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.dl-after p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}
.dl-verify {
  padding: 0 0 48px;
}
.dl-sha {
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (min-width: 960px) {
  .dl-os,
  .dl-after {
    grid-template-columns: 1fr 1fr;
  }
}

/* Practice plans (accountants and CA firms), below the business plans. */
.practice-head {
  margin-top: 64px;
  scroll-margin-top: 72px;
}
.practice-head h3 {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
}
.plans-practice {
  max-width: 1000px;
  margin: 0 auto;
}
.plan-pool {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.plan-custom .plan-pool {
  color: #fff;
}
.practice-extra {
  max-width: 820px;
  margin: 20px auto 0;
  color: var(--ink-2);
  font-size: 14px;
  text-align: center;
}
@media (min-width: 1024px) {
  .plans.plans-practice {
    grid-template-columns: repeat(3, 1fr);
  }
}
