/* SendRight website. Colours and type from branding/SendRight/SendRight-Brand-Guide.md.
   No scripts, no third-party requests: fonts and images are served from this site. */

@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/InterDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/InterDisplay-Medium.woff2") format("woff2"); }

:root {
  --navy: #233348; --navy-1: #14213A; --navy-2: #1A3050; --navy-3: #1E3A5F;
  --slate: #5B6B80; --mist: #C9D3DF; --blue: #00A1FE; --deep-blue: #0865F5; --link: #0758D6;
  --green: #00FD8D; --pink: #FF66C4; --deep-pink: #F522A2;
  --bg: #FFFFFF; --tint: #F4F7FB; --line: #DDE4EC; --text: #233348; --muted: #4A5A6E;
  --radius: 10px; --wrap: 1120px;
  --font: "Inter Display", Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.65 var(--font); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--deep-blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 50px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
code { font-size: 0.92em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header { background: var(--navy-1); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: 16px; }
.site-nav a { color: #E6EDF5; text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 24px; line-height: 1.2; border: 2px solid transparent; }
/* Deeper than the brand pinks so white text passes WCAG AA (4.9:1 and up). */
.btn-primary { background: linear-gradient(135deg, #B80F78, #D4148A); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { color: var(--navy); background: var(--tint); }
.site-nav .btn { padding: 8px 18px; color: #fff; text-decoration: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy-1), var(--navy-2) 55%, var(--navy-3)); padding: 64px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid; pointer-events: none; }
.hero::before { width: 640px; height: 640px; right: -220px; top: -300px; border-color: rgba(0,161,254,0.35); }
.hero::after { width: 460px; height: 460px; right: -160px; top: -200px; border-color: rgba(0,253,141,0.28); }
.hero .wrap { position: relative; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: #DCE5EF; max-width: 680px; }
.eyebrow { display: inline-block; color: var(--deep-blue); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.hero .eyebrow { color: #7CFFC4; }
.tagline { color: var(--pink); font-weight: 700; }
.page-hero { padding: 48px 0 52px; }

/* Trust strip */
.trust { background: var(--tint); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; font-size: 15px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--tint); }
.section-intro { max-width: 720px; color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), #00B7ED 52%, var(--deep-blue)); }
.card .icon svg { width: 22px; height: 22px; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--blue); box-shadow: 0 4px 18px rgba(35,51,72,0.08); }
.card .more { color: var(--link); font-weight: 700; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 66px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Lists, tables, notes */
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--deep-blue)); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15.5px; background: #fff; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--tint); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.note { background: var(--tint); border-left: 4px solid var(--blue); padding: 14px 18px; margin: 18px 0; border-radius: 6px; }
.note p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #fff; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details p { color: var(--muted); }

/* Call to action */
.cta { background: linear-gradient(160deg, var(--navy-1), var(--navy-3)); color: #fff; text-align: center; }
.cta p { color: #DCE5EF; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }

/* Long text pages (privacy, terms) */
.doc h2 { font-size: 24px; margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 5px 0; }
.updated { color: var(--slate); }
.toc { background: var(--tint); padding: 14px 20px; border-radius: var(--radius); font-size: 15.5px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.breadcrumb { font-size: 14px; color: var(--mist); margin-bottom: 14px; }
.breadcrumb a { color: #E6EDF5; }

/* Footer */
.site-footer { background: var(--navy-1); color: #C9D3DF; font-size: 15px; padding: 44px 0 28px; }
.site-footer a { color: #E6EDF5; }
.footer-grid { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: 15px; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.product-of { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.product-of img { height: 30px; width: auto; }
.legal { border-top: 1px solid rgba(201,211,223,0.2); margin-top: 32px; padding-top: 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 44px 0 52px; }
  .brand img { height: 34px; }
  .site-nav { font-size: 15px; gap: 2px 14px; }
  th, td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .cta, .skip { display: none; } body { font-size: 12pt; } }
.footer-tagline { margin-top: 10px; }
.footer-iso { margin-top: 12px; }
/* On phones the industry pages are in the footer, keeping the header to one or two lines. */
@media (max-width: 640px) { .site-nav a[href="/legal/"], .site-nav a[href="/accounting/"] { display: none; } }

/* Privacy FAQ and email templates */
.sources { font-size: 14.5px; color: var(--slate); }
.workflow { grid-template-columns: 1fr; }
.workflow .how { margin-top: 8px; color: var(--text); }
.template { margin: 32px 0; }
.template h2 { border-top: 1px solid var(--line); padding-top: 18px; font-size: 21px; }
.template label { display: block; font-size: 14.5px; color: var(--slate); margin-bottom: 6px; }
.template textarea { width: 100%; font: 500 15.5px/1.55 var(--font); color: var(--text); background: #fff; border: 1px solid var(--mist); border-radius: 8px; padding: 12px 14px; resize: vertical; }
.template textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.template .copy { margin-top: 10px; cursor: pointer; font: inherit; font-weight: 700; background: #fff; }
