/* Farol website. Mobile first, no JavaScript, system fonts only (the CSP allows
   styles and images from this origin and nothing else). Colours come from the
   app icon: night sky, Atlantic teal, lantern gold and lighthouse red. */

:root {
  color-scheme: light dark;

  --night: #0a1834;
  --deep: #0c2f55;
  --teal: #11809b;
  --sea: #013d60;
  --gold: #fefcc4;
  --amber: #ffc35a;
  --red: #f8493c;
  --shell: #fef8ed;

  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f3eee4;
  --text: #0d1b2e;
  --muted: #4f5d6b;
  --border: #e3dccf;
  --accent: #c2321f;
  --accent-ink: #ffffff;
  --link: #0b6a82;
  --focus: #11809b;
  --shadow: 0 1px 2px rgb(10 24 52 / 6%), 0 12px 32px -12px rgb(10 24 52 / 18%);

  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --wrap: 72rem;
  --gutter: 1rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111f;
    --surface: #0e1c30;
    --surface-2: #12233b;
    --text: #eef2f6;
    --muted: #a6b3c2;
    --border: #213552;
    --accent: #ff6a5c;
    --accent-ink: #1a0603;
    --link: #6fd0e6;
    --focus: #6fd0e6;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 9vw, 4.25rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 720;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 24 52 / 82%);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 1.9rem;
  height: 1.9rem;
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  color: rgb(255 255 255 / 82%);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.site-nav .nav-optional {
  display: none;
}

@media (min-width: 40rem) {
  .site-nav .nav-optional {
    display: block;
  }

  .site-nav a {
    padding-inline: 0.75rem;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 0 0 1px rgb(255 195 90 / 60%), 0 10px 30px -10px rgb(255 195 90 / 70%);
}

.button-primary:hover {
  background: #fffbe0;
}

.button-ghost {
  border-color: rgb(255 255 255 / 30%);
  color: #fff;
}

.button-ghost:hover {
  background: rgb(255 255 255 / 10%);
}

.button-solid {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* Hero: always night, like the icon */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 15% 0%, rgb(255 195 90 / 16%), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--deep) 55%, var(--sea) 100%);
  padding-block: 3rem 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5rem;
  background: linear-gradient(180deg, transparent, rgb(1 61 96 / 60%));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 88%);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0.25rem rgb(248 73 60 / 25%);
}

.hero h1 {
  max-width: 15ch;
  margin-inline: auto;
}

.hero h1 .glow {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: rgb(255 255 255 / 80%);
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fine {
  color: rgb(255 255 255 / 62%);
  font-size: 0.85rem;
}

.hero-stage {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding-bottom: 3rem;
}

.screen {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 70%), 0 0 0 0.5rem rgb(255 255 255 / 4%);
  background: #000;
}

.stage-caption {
  margin: 1rem auto 0;
  max-width: 40rem;
  text-align: center;
  color: rgb(255 255 255 / 60%);
  font-size: 0.85rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 5rem;
  }

  .hero-stage {
    margin-top: 3.5rem;
    padding-bottom: 5rem;
  }
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

@media (min-width: 48rem) {
  .section {
    padding-block: 6rem;
  }
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: linear-gradient(160deg, var(--deep), var(--teal));
}

.card .icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* Problem statements */

.pain {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pain strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.pain p {
  margin: 0;
  color: var(--muted);
}

.callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 0.3rem solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
}

.callout strong {
  color: var(--text);
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  .steps li::before {
    background: var(--gold);
    color: var(--night);
  }
}

.steps p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    padding: 4.5rem 1.5rem 1.5rem;
  }
}

/* Feature split: text beside an illustration */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split + .split {
  margin-top: 4rem;
}

.split ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.split li + li {
  margin-top: 0.4rem;
}

.figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--night);
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

/* Audience chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 550;
}

/* Pricing */

.pricing {
  display: grid;
  gap: 1rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.price-card.featured {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(30rem 16rem at 0% 0%, rgb(255 195 90 / 22%), transparent 60%),
    linear-gradient(160deg, var(--night), var(--deep));
}

.price-card.featured p,
.price-card.featured li {
  color: rgb(255 255 255 / 78%);
}

.price-card .price-cta {
  margin: auto 0 0;
  padding-top: 1.5rem;
}

.price-card .big {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 0.35rem;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.rate-table th,
.rate-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.rate-table td:last-child,
.rate-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.rate-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.packs li {
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
  font-weight: 650;
}

.packs li span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 56rem) {
  .pricing {
    grid-template-columns: 1fr 1.4fr;
  }
}

/* Privacy band */

.privacy-band {
  color: #fff;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(17 128 155 / 35%), transparent 60%),
    var(--night);
}

.privacy-band .kicker {
  color: var(--amber);
}

.privacy-band .section-head p:last-child,
.privacy-band .card p {
  color: rgb(255 255 255 / 72%);
}

.privacy-band .card {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 12%);
  box-shadow: none;
}

.privacy-band a {
  color: var(--gold);
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
}

.faq .answer p:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

.faq-group + .faq-group {
  margin-top: 2.5rem;
}

.faq-group h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* CTA */

.cta {
  text-align: center;
  color: #fff;
  background:
    radial-gradient(40rem 22rem at 50% 120%, rgb(255 195 90 / 22%), transparent 65%),
    linear-gradient(180deg, var(--deep), var(--night));
}

.cta img {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 24px rgb(0 0 0 / 40%));
}

.cta p {
  color: rgb(255 255 255 / 78%);
}

/* Document pages (privacy, support, FAQ) */

.page-hero {
  color: #fff;
  background: linear-gradient(180deg, var(--night), var(--deep));
  padding-block: 3rem 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.25rem);
  margin-bottom: 0.5rem;
}

.page-hero a {
  color: var(--gold);
}

.page-hero p {
  margin: 0;
  color: rgb(255 255 255 / 74%);
  font-size: 1.1rem;
}

.prose {
  padding-block: 2.5rem 4rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose .summary {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.prose .summary ul {
  margin: 0;
}

.toc {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.95rem;
}

.toc ol {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  columns: 2 12rem;
}

.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(160deg, var(--night), var(--deep));
}

.contact-card a {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 650;
  word-break: break-all;
}

.contact-card p {
  margin: 0;
  color: rgb(255 255 255 / 74%);
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.updated {
  color: rgb(255 255 255 / 60%);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .brand {
  color: var(--text);
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* 404 */

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.lost img {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-hero {
    color: #000;
    background: none;
  }
}

.prose .summary h2 {
  margin-top: 0;
}

.prose .toc {
  margin-top: 1.5rem;
}
