/*
 * The website's one stylesheet. Colors are the app theme's (apps/mobile/src/theme/colors.ts, the
 * "Harbor bright" palette) and type is the app's own Figtree files, served from this site so no page
 * makes a third-party request. Pages carry no inline styles or scripts: _headers sets a
 * Content-Security-Policy that allows styles and fonts from this site only.
 */

@font-face {
  font-family: Figtree;
  src: url(/fonts/Figtree-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url(/fonts/Figtree-Medium.ttf) format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url(/fonts/Figtree-SemiBold.ttf) format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url(/fonts/Figtree-Bold.ttf) format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --slate: #224e75;
  --red: #e2290c;
  --muted: #5a6472;
  --line: #d8dee5;
  --fog: #eceff3;
  --fog-light: #f5f7f9;
  --surface: #ffffff;
  --success: #278634;
  --notice: #fff1d6;
  --amber: #c78400;
  --gradient-header: linear-gradient(
    90deg,
    #ce4804 0%,
    #d54004 25%,
    #db3704 50%,
    #e02d05 75%,
    #e42305 100%
  );
  --gradient-icon: linear-gradient(
    135deg,
    #eb6905 0%,
    #ea5505 25%,
    #e94205 50%,
    #e73205 75%,
    #e42305 100%
  );
  --radius-panel: 10px;
  --ease: 180ms ease-in-out;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--slate);
  font:
    17px/1.6 Figtree,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

a {
  color: var(--red);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--slate);
}

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible,
.cta-panel :focus-visible {
  outline-color: var(--surface);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--slate);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--surface);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.icon {
  display: block;
  flex: none;
}

/* Buttons and links styled as buttons: pills, as in the app. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  transition:
    background-color var(--ease),
    color var(--ease),
    border-color var(--ease);
}
.button .icon {
  width: 18px;
  height: 18px;
}
.button-red {
  background: var(--red);
  color: var(--surface);
}
.button-red:hover {
  background: var(--slate);
  color: var(--surface);
}
.button-outline {
  border-color: var(--slate);
  color: var(--slate);
}
.button-outline:hover {
  background: var(--slate);
  color: var(--surface);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--slate);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover {
  color: var(--slate);
}
.brand .icon {
  width: 26px;
  height: 38px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  text-decoration: underline;
}
.nav-links a[aria-current='page'] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.nav-links a.button {
  min-height: 44px;
  margin-left: 6px;
  padding: 0 22px;
  color: var(--surface);
  text-decoration: none;
}

/* Homepage hero, on the app's header gradient. White text on every stop is 4.6:1 or better. */
.hero {
  background: var(--gradient-header);
  color: var(--surface);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero-copy {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero .eyebrow {
  color: var(--surface);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero .lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
}

/* "Coming soon" store badges: words only, never the stores' own artwork before launch. */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 24px 8px 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  text-align: left;
}
.badge .icon {
  width: 26px;
  height: 26px;
}
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.badge-small {
  font-size: 13px;
  font-weight: 500;
}
.badge-store {
  font-size: 20px;
  font-weight: 700;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checks .icon {
  width: 20px;
  height: 20px;
}

/* Sections */
.section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section-tint {
  background: var(--fog-light);
}
.section-dark {
  background: var(--slate);
  color: var(--surface);
}
.section-dark .eyebrow,
.section-dark a {
  color: var(--surface);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.step-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--surface);
  font-size: 18px;
  font-weight: 700;
}
.step-top .icon {
  width: 30px;
  height: 30px;
  color: var(--red);
}
.step h3 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}
.step p {
  margin: 0;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 72px;
}
.split-main {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-main p {
  margin: 0;
  font-size: 18px;
}
.split-side {
  flex: 1 1 380px;
  min-width: 0;
}
.split-wide {
  flex: 999 1 560px;
  min-width: 0;
}

.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ticks .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--success);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-panel);
}
.tile .icon {
  width: 30px;
  height: 30px;
}
.tile h3 {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}
.tile p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}
.link-arrow .icon {
  width: 18px;
  height: 18px;
}

.sources {
  display: flex;
  flex-direction: column;
}
.source {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.source:first-child {
  padding-top: 0;
}
.source .icon {
  width: 28px;
  height: 28px;
  color: var(--red);
}
.source h3 {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}
.source p {
  margin: 4px 0 0;
}
.note-muted {
  margin: 0;
  padding: 22px 0 28px;
  color: var(--muted);
}
.notice {
  margin: 0;
  padding: 18px 22px;
  background: var(--notice);
  border: 1px solid var(--amber);
  border-radius: var(--radius-panel);
}

/* FAQ: native <details>, so it opens and closes with no script. */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 2.5px solid var(--slate);
  border-bottom: 2.5px solid var(--slate);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--ease);
}
.faq details[open] > summary::after {
  transform: translateY(3px) rotate(-135deg);
}
.faq details > p {
  margin: 0;
  padding: 0 24px 22px;
}

.narrow {
  max-width: 880px;
}

.get-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.get-app p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}
.get-app .badges {
  justify-content: center;
  padding-top: 8px;
}
.get-app .small {
  font-size: 15px;
  color: var(--muted);
}
.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background: var(--gradient-icon);
}
.app-icon .icon {
  width: 56px;
  height: 81px;
}

/* Guide and policy pages */
.page-head {
  background: var(--fog-light);
  border-bottom: 1px solid var(--line);
}
.page-head-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}
.page-head h1 {
  margin: 0;
  max-width: 18em;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-head .lead {
  margin: 0;
  max-width: 40em;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.updated {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* The policy switcher: the app's segmented control, as links. */
.segment {
  display: flex;
  align-self: flex-start;
  max-width: 100%;
  border: 2px solid var(--slate);
  border-radius: 999px;
  overflow: hidden;
}
.segment a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--ease);
}
.segment a:hover {
  background: var(--fog);
  color: var(--slate);
}
.segment a[aria-current='page'] {
  background: var(--slate);
  color: var(--surface);
}

.doc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 72px;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.toc {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
@media (min-width: 900px) {
  .toc {
    position: sticky;
    top: 24px;
  }
}
.toc h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol,
.toc ul {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 16px;
  line-height: 1.4;
}
.toc ul {
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-block;
  padding: 7px 0;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

.prose {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 760px;
  line-height: 1.65;
}
.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}
.prose > :first-child,
.prose > section:first-child > h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 8px;
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
}
.prose p {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 12px;
}
.prose strong {
  font-weight: 600;
}
.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--fog);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.prose .intro {
  font-size: 18px;
}

.table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: var(--fog-light);
  font-weight: 600;
  vertical-align: bottom;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 8px 0 16px;
  padding: 20px 22px;
  background: var(--fog-light);
  border-radius: var(--radius-panel);
}
.callout .icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--red);
}
.callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}
.compare > div {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.prose .compare h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 26px;
}
.compare dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.compare dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.compare dd {
  margin: 0;
}

.gauge {
  margin: 8px 0 20px;
}
.gauge-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 44px;
  border: 2px solid var(--slate);
  border-radius: 999px;
  overflow: hidden;
}
.gauge-bar > span {
  border-right: 1px solid var(--line);
}
.gauge-bar > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--notice);
  border-right: 2px solid var(--slate);
  font-size: 14px;
  font-weight: 600;
}
.gauge-bar > span:last-child {
  border-right: 0;
}
.gauge-scale {
  display: flex;
  justify-content: space-between;
  padding: 8px 6px 0;
  font-size: 15px;
  font-weight: 600;
}
.gauge figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.prose .faq {
  margin: 0 0 16px;
}
.prose .faq summary {
  padding: 18px 22px;
  font-size: 18px;
  line-height: 25px;
}
.prose .faq details > p {
  padding: 0 22px 20px;
}

.cta-panel {
  margin-top: 56px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-panel);
  background: var(--slate);
  color: var(--surface);
}
.prose .cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
}
.cta-panel .badges {
  padding-top: 4px;
}

.contact-panel {
  margin-top: 56px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--fog-light);
}
.prose .contact-panel h2 {
  margin-top: 0;
}
.prose .contact-panel p:last-child {
  margin-bottom: 0;
}

/* The standalone pages in site/public: 404 and the emailed-link fallbacks. */
.plain {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.plain h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}
.plain p {
  margin: 0 0 16px;
}
.plain strong {
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 64px 0 48px;
  background: var(--slate);
  color: var(--surface);
}
.site-footer a {
  color: var(--surface);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.footer-brand {
  flex: 2 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .brand {
  color: var(--surface);
}
.footer-brand .brand .icon {
  width: 24px;
  height: 35px;
}
.footer-brand p {
  margin: 0;
  max-width: 26em;
  font-size: 16px;
  line-height: 1.55;
}
.footer-brand p a {
  font-weight: 600;
}
.footer-nav {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-nav h2 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--surface);
  text-decoration: underline;
}
.footer-note {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
}

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