/* getfinly.app. System fonts only, nothing loaded from anyone else.
   Colours come from finly-ios's FinlyBrandPalette (Finly/Finly.icon): the navy background and the
   mark's purple-to-cyan gradient. Dark is the default look; light follows the system setting. */

:root {
  --navy: #000b25;
  --purple: #aa5cc3;
  --cyan: #00afdc;
  --gradient: linear-gradient(120deg, var(--purple), var(--cyan));

  --bg: var(--navy);
  --bg-raised: #08142f;
  --bg-card: rgb(255 255 255 / 0.045);
  --border: rgb(255 255 255 / 0.1);
  --text: #f1f3f9;
  --text-muted: #a8b1c6;
  --link: #6fd3f2;
  --accent-text: #c9a4ff;
  --focus: #6fd3f2;
  --glow-a: rgb(170 92 195 / 0.32);
  --glow-b: rgb(0 175 220 / 0.22);
  --shot-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08);

  --radius: 20px;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  color-scheme: dark;
}

@supports (color: color(display-p3 0 0 0)) {
  :root {
    --navy: color(display-p3 0 0.04314 0.1451);
    --purple: color(display-p3 0.66667 0.36078 0.76471);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fb;
    --bg-raised: #ffffff;
    --bg-card: #ffffff;
    --border: rgb(0 11 37 / 0.1);
    --text: #0b1430;
    --text-muted: #4a5470;
    --link: #00688a;
    --accent-text: #7d3a98;
    --focus: #00688a;
    --glow-a: rgb(170 92 195 / 0.18);
    --glow-b: rgb(0 175 220 / 0.16);
    --shot-shadow: 0 30px 60px -24px rgb(0 11 37 / 0.45), 0 0 0 1px rgb(0 11 37 / 0.08);
    /* The mark's two ends, darkened so headline text keeps at least 4.5:1 on the light background. */
    --text-gradient: linear-gradient(120deg, #8a3aa5, #006f8f);
    color-scheme: light;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 46rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--text);
}

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

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
}

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

.brand img {
  width: 32px;
  height: 32px;
}

.brand--small {
  font-size: 1rem;
}

.brand--small img {
  width: 24px;
  height: 24px;
}

.site-nav,
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a,
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer__inner {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: 1fr;
}

.site-footer__about p {
  margin: 0.6rem 0 0;
  max-width: 34rem;
}

.site-footer__legal {
  margin: 0;
}

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

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

/* Shared pieces */

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.gradient-text {
  background: var(--text-gradient, var(--gradient));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (forced-colors: active) {
  .gradient-text {
    background: none;
    color: CanvasText;
  }
}

.lede {
  font-size: clamp(1.15rem, 1.2vw + 0.9rem, 1.35rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 38rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text);
}

.pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gradient);
  flex: none;
}

.fine-print {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.shot {
  border-radius: var(--radius);
  box-shadow: var(--shot-shadow);
  background: #000;
}

.shot--phone {
  border-radius: clamp(18px, 3.2vw, 34px);
}

.shot--tv {
  border-radius: clamp(10px, 1.4vw, 18px);
}

.shot--tablet {
  border-radius: clamp(14px, 2vw, 24px);
}

/* Front page: hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) 0;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 20% 25%, var(--glow-a), transparent 70%),
    radial-gradient(45% 50% at 85% 55%, var(--glow-b), transparent 70%);
  pointer-events: none;
}

.hero__text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__icon {
  width: clamp(88px, 12vw, 120px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.35)) drop-shadow(0 18px 30px rgb(0 0 0 / 0.35));
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 0.35em;
}

.hero .lede {
  margin: 0 auto 2rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero__cta .fine-print {
  margin: 0;
}

.hero__art {
  position: relative;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  max-width: 64rem;
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.hero__art .shot--tv {
  width: 88%;
}

.hero__art .shot--phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
}

/* Front page: feature sections */

.section {
  padding-block: clamp(4rem, 10vw, 7.5rem) 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 720;
}

.section p {
  color: var(--text-muted);
}

.section .lede {
  margin-top: 0;
}

.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature__text p {
  max-width: 34rem;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gradient);
}

.ticks strong {
  color: var(--text);
  font-weight: 600;
}

.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  max-width: 34rem;
  margin-inline: auto;
  width: 100%;
}

.phone-pair .shot:nth-child(2) {
  transform: translateY(12%);
}

.phone-pair--overlap {
  position: relative;
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin-bottom: 10%;
}

.phone-pair--overlap .shot--tablet {
  width: 78%;
}

.phone-pair--overlap .shot--phone {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: 34%;
  transform: none;
}

.feature--wide {
  text-align: center;
}

.feature--wide .feature__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature--wide .ticks {
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 40rem;
}

.feature--wide .shot--tv {
  max-width: 60rem;
  width: 100%;
  margin-inline: auto;
}

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

  .feature--flip .feature__art {
    order: -1;
  }

  .feature--wide {
    grid-template-columns: 1fr;
  }

  .feature--wide .ticks {
    grid-template-columns: repeat(2, 1fr);
    max-width: 50rem;
    margin-inline: auto;
    gap: 1rem 2.5rem;
  }
}

/* Front page: servers */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
}

.card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Front page: Finly Plus */

.plus {
  position: relative;
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(60% 80% at 0% 0%, var(--glow-a), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, var(--glow-b), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border);
  overflow: hidden;
}

.plus .phone-single {
  max-width: 16rem;
  margin-inline: auto;
}

.price {
  margin-top: 1.5rem;
  font-size: 0.98rem;
}

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

/* Front page: privacy and closing */

.privacy-block {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.privacy-block .lede {
  margin-inline: auto;
}

.privacy-block__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
}

.closing {
  text-align: center;
}

.closing img {
  width: 72px;
  margin: 0 auto 1.25rem;
}

.closing h2 {
  margin-bottom: 1.25rem;
}

.closing p {
  margin: 1.25rem 0 0;
}

/* Prose pages: privacy and support */

.prose {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
}

.prose h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 750;
  margin-bottom: 0.4em;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 680;
  margin-top: 2.5em;
}

.prose h3 {
  font-size: 1.12rem;
  font-weight: 650;
  margin-top: 2em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

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

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

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

.prose li::marker {
  color: var(--accent-text);
}

/* The privacy policy's effective date, the paragraph after its title. */
.prose h1 + p:not(.lede) {
  font-size: 0.95rem;
}

.prose .lede {
  margin-top: 0;
}

.contact-card {
  margin: 2rem 0 1rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 0% 0%, var(--glow-a), transparent 70%),
    radial-gradient(70% 120% at 100% 100%, var(--glow-b), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p {
  margin: 0.5rem 0 0;
}

.contact-card .email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.faq {
  margin-top: 3rem;
}

.faq > h2 {
  margin-top: 0;
}

.faq-item {
  padding-block: 0.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin-top: 1.5rem;
}

.faq-item:last-child {
  border-bottom: 0;
}
