/* FlyThePay — corporate site
   Colors, type and layout tokens */

@font-face {
  font-family: "Ranade";
  src: url("../fonts/Ranade-Medium.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A1220;
  --ink-2: #131C31;
  --ink-line: #263048;
  --paper: #F5F4EF;
  --white: #FFFFFF;
  --text: #17181A;
  --muted: #5B6070;
  --muted-dark: #8C93A5;
  --soft-dark: #B9BECB;
  --line: #DAD9D2;
  --accent: #6FE3BE;
  --accent-deep: #1E9E7A;
  --font-display: "Ranade", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  --container: 1440px;
  --gutter: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; font-weight: 500; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: #167A5E; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.dark .eyebrow { color: var(--accent); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.dark .lead { color: var(--soft-dark); }
.section { padding: 104px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 8px; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; font-family: var(--font-body); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #8AEBCC; color: var(--ink); }
.btn-ghost { border: 1px solid #3A4358; color: var(--paper); background: transparent; font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: var(--paper); }
.btn-dark { background: var(--text); color: var(--paper); height: 52px; font-size: 16px; padding: 0 24px; }
.btn-dark:hover { background: #2A2C30; color: var(--paper); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }

/* Backgrounds */
.dark { background: var(--ink); color: var(--paper); }
.bg-hero { background: var(--ink) url("../img/hero.webp") center / cover no-repeat; }
.bg-rings { background: #FBFBF9 url("../img/rings.webp") center / cover no-repeat; }
.bg-waves { background: var(--white) url("../img/waves.webp") center bottom / cover no-repeat; }
.bg-corners { background: #FBFBF9 url("../img/corners.webp") center / cover no-repeat; }
.bg-globe { background: #0B1628 url("../img/globe.webp") center bottom / cover no-repeat; }

/* Header */
.site-header { background: var(--ink); color: var(--paper); height: 88px; position: sticky; top: 0; z-index: 20; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand-mark { width: 34px; height: 34px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-footer { height: 22px; align-self: flex-start; margin-bottom: 6px; }
.nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { color: #C9CCD6; }
.nav a:hover { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang { color: #C9CCD6; font-size: 14px; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 8px; }

/* Hero */
.hero { min-height: 760px; display: flex; align-items: stretch; }
.hero .container { display: grid; grid-template-columns: 7fr 5fr; column-gap: 32px; padding-top: 80px; padding-bottom: 64px; width: 100%; }
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-lead { font-size: 21px; line-height: 1.5; color: var(--soft-dark); max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats { display: flex; gap: 64px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(245,244,239,0.18); font-size: 13px; color: var(--muted-dark); }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--paper); line-height: 1.1; }

/* Trust strip */
.trust { background: var(--ink); border-top: 1px solid #1E2740; padding: 40px 0; }
.trust .container { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; color: var(--muted-dark); font-size: 14px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 10px; }
.trust svg { flex: none; }

/* Two-column sections */
.split { display: grid; grid-template-columns: 5fr 1fr 6fr; column-gap: 32px; align-items: start; }
.split > :first-child { grid-column: 1; }
.split > :last-child { grid-column: 3; }
.split-text { display: flex; flex-direction: column; gap: 18px; }

/* Feature grid without cards */
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 40px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--text); }
.feature p { font-size: 15px; color: var(--muted); }

/* Steps */
.steps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.steps-head h2 { max-width: 640px; }
.steps-head p { font-size: 15px; color: var(--muted); max-width: 420px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--text); }
.step span { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; color: var(--muted); }

/* Industries list */
.industries .split { grid-template-columns: 4fr 1fr 7fr; }
.industries .note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.list { border-top: 1px solid var(--text); }
.list-row { display: grid; grid-template-columns: 40px 300px 1fr; column-gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-row span { font-size: 13px; color: var(--muted-dark); }
.list-row h3 { font-size: 18px; }
.list-row p { font-size: 15px; color: var(--muted); }

/* Coverage */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method { background: rgba(19,28,49,0.85); border: 1px solid var(--ink-line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.method span { font-size: 12px; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.method strong { font-size: 15px; font-weight: 500; }

/* Pricing */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.price-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-head strong { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-head span { font-size: 16px; color: var(--muted); }
.price-rows { display: flex; flex-direction: column; gap: 12px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 22px; }
.price-rows div { display: flex; justify-content: space-between; gap: 16px; }
.price-rows b { font-weight: 600; text-align: right; }
.price-rows b.inc { color: var(--accent-deep); }

/* Security */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.grid-3 div { display: flex; flex-direction: column; gap: 10px; }
.grid-3 p { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq .split { grid-template-columns: 4fr 1fr 7fr; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 18px; }
.faq-item p { font-size: 15px; color: var(--muted); }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 15px; color: var(--soft-dark); }
.form { background: rgba(19,28,49,0.9); border: 1px solid var(--ink-line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted-dark); }
.field input, .field select, .field textarea { height: 46px; padding: 0 14px; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 8px; color: var(--paper); font-size: 15px; font-family: var(--font-body); width: 100%; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form .btn { height: 52px; font-size: 16px; }
.form small { font-size: 12px; color: var(--muted-dark); }
.form small a { color: var(--accent); }
.hidden-field { position: absolute; left: -9999px; }
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks .container { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-left: 0; }
.thanks h1 { font-size: clamp(36px, 4.4vw, 60px); }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid #1E2740; color: var(--muted-dark); font-size: 14px; padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols strong { color: var(--paper); font-weight: 600; }
.footer-cols a { color: var(--muted-dark); }
.footer-cols a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1E2740; margin-top: 40px; padding-top: 18px; font-size: 13px; }

/* Legal pages */
.legal-hero { padding: 88px 0 64px; }
.legal-hero .container { display: flex; flex-direction: column; gap: 18px; max-width: calc(var(--container)); }
.legal-hero h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 900px; }
.legal-hero .lead { max-width: 760px; }
.legal-meta { font-size: 14px; color: var(--muted-dark); font-family: var(--font-mono); }
.legal { padding: 72px 0 112px; }
.legal .container { display: grid; grid-template-columns: 3fr 1fr 8fr; column-gap: 32px; align-items: start; }
.legal-aside { grid-column: 1; position: sticky; top: 112px; }
.legal-toc { display: flex; flex-direction: column; gap: 10px; font-size: 14px; border-top: 1px solid var(--text); padding-top: 18px; }
.legal-toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--text); }
.legal-body { grid-column: 3; max-width: 820px; }
.legal-body section { margin-bottom: 44px; }
.legal-body h2 { font-size: 26px; margin-bottom: 16px; }
.legal-body p { margin-bottom: 14px; line-height: 1.65; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; line-height: 1.6; }
.entity { margin: 0 0 48px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; font-size: 15px; }
.entity-title { grid-column: 1 / -1; font-family: var(--font-display); font-size: 19px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.entity dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.entity dd { margin: 0; font-weight: 500; }
.footer-legal { font-size: 13px; line-height: 1.55; color: var(--muted-dark); margin-top: 8px; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .split, .industries .split, .faq .split { grid-template-columns: 1fr; row-gap: 40px; }
  .split > :last-child { grid-column: 1; }
  .legal .container { grid-template-columns: 1fr; row-gap: 40px; }
  .legal-aside { position: static; grid-column: 1; }
  .legal-body { grid-column: 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: var(--ink); flex-direction: column; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid #1E2740; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #1E2740; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 56px; padding-bottom: 48px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .trust .container { flex-direction: column; gap: 14px; }
  .features, .methods, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-head { flex-direction: column; align-items: flex-start; }
  .list-row { grid-template-columns: 32px 1fr; row-gap: 4px; }
  .list-row p { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
  .price-card, .form { padding: 24px; }
  .entity { grid-template-columns: 1fr; padding: 22px; }
  .legal-hero { padding: 64px 0 48px; }
  .btn { width: 100%; }
  .header-actions .lang { font-size: 15px; }
}
