/* PayBoli website — values taken from the Figma frames (desktop 1440 / mobile 390). */

:root {
  --navy: #172235;
  --navy-2: #253a56;
  --gold: #c8994b;
  --gold-hover: #d6a95c;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #172235;
  --muted: #637084;
  --stroke: #e8ecf1;
  --field: #f0f4f8;
  --green: #208f5c;
  --error: #b42318;

  --gutter: 96px;
  --max: 1248px;
  --legal-max: 1120px;
  --legal-gutter: 160px;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.21;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link { position: absolute; left: -9999px; top: 12px; }
.skip-link:focus { left: 16px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[id] { scroll-margin-top: 16px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold); }
.eyebrow-sm { font-size: 12px; letter-spacing: 0; }
.section-title { font-size: 42px; font-weight: 700; letter-spacing: -0.01em; }
.dot { display: inline-block; margin-inline: 0.6em; }
.inline-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.inline-link:hover { color: var(--gold); }

.text-link { display: inline-flex; gap: 0.5em; font-size: 17px; font-weight: 700; color: var(--gold); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: relative; z-index: 20; }
.header-inner { height: 100px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 30px; font-weight: 700; color: var(--gold); }
.site-nav { display: flex; gap: 44px; margin-right: 110px; font-size: 14px; font-weight: 500; color: var(--white); }
.site-nav a { padding-block: 6px; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 670px) minmax(0, 448px);
  gap: 50px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 100px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }
.hero h1 { font-size: 57px; line-height: 68px; font-weight: 700; letter-spacing: -0.01em; }
.hero h1 span { display: block; }
.hero-sub { font-size: 19px; line-height: 30px; max-width: 630px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy);
  font-size: 16px; font-weight: 700;
  padding: 17px 24px; border-radius: 12px;
  transition: background-color .15s, transform .15s;
}
.btn-play:hover { background: var(--gold-hover); }
.btn-play:active { transform: translateY(1px); }
.hero-terms { font-size: 14px; font-weight: 500; }

.mockup {
  background: var(--cream); color: var(--text);
  border-radius: 26px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.mockup-top { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.mockup-brand { flex: 0 0 61.5%; font-size: 25px; color: var(--gold); }
.mockup-status { font-size: 12px; color: var(--green); }
.mockup-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.mockup-total { font-size: 51px; font-weight: 700; }
.mockup-rule { height: 1px; background: var(--stroke); }
.payment {
  background: var(--white); border-radius: 14px;
  padding: 14px 12px 14px 14px;
  display: flex; align-items: center; gap: 14px;
}
.payment-icon {
  flex: none; width: 42px; height: 42px; border-radius: 14px;
  background: var(--cream); color: var(--gold);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
}
.payment-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.payment-app { font-size: 14px; font-weight: 600; }
.payment-time { font-size: 11px; color: var(--muted); }
.payment-amount { flex: none; min-width: 110px; font-size: 22px; font-weight: 700; }
.mockup-voice { font-size: 14px; font-weight: 600; color: var(--navy-2); }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); }
.trust-list {
  display: grid; grid-template-columns: 340fr 400fr 430fr; gap: 50px;
  padding-block: 26px; font-size: 14px; font-weight: 700;
}

/* ---------- Features ---------- */
.features { padding: 80px 0 84px; }
.features-inner { display: flex; flex-direction: column; gap: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 374px)); gap: 20px; }
.feature {
  background: var(--white); border-radius: 18px;
  padding: 26px 12px 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.feature-num { font-size: 16px; font-weight: 700; color: var(--gold); }
.feature h3 { font-size: 23px; font-weight: 700; }
.feature p:last-child { font-size: 15px; color: var(--muted); }
.features-note { font-size: 16px; color: var(--muted); }

/* ---------- How it works ---------- */
.how { background: var(--cream); padding: 88px 0; }
.how-inner { display: grid; grid-template-columns: minmax(0, 555px) minmax(0, 600px); gap: 70px; align-items: center; }
.how-intro { display: flex; flex-direction: column; gap: 20px; }
.how-intro .lead { font-size: 17px; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; align-items: center; gap: 22px; }
.step-num {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
}
.step h3 { font-size: 18px; font-weight: 700; }
.step p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { background: var(--navy-2); color: var(--white); padding: 75px 0; }
.pricing-inner { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 448px); gap: 80px; align-items: center; }
.pricing-copy { display: flex; flex-direction: column; gap: 22px; }
.pricing .section-title { font-size: 43px; }
.pricing-copy p:last-child { font-size: 17px; max-width: 600px; }
.price-card {
  background: var(--white); color: var(--text);
  border-radius: 22px; padding: 26px 22px 28px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.price-label { font-size: 13px; font-weight: 700; color: var(--gold); }
.price-amount { font-size: 63px; font-weight: 700; }
.price-recurring { font-size: 17px; font-weight: 600; }
.price-note { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding: 78px 0 82px; }
.faq-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.faq-inner > * { width: 100%; }
.faq-inner > .text-link { width: auto; }
.faq-item { padding-block: 18px; border-top: 1px solid var(--stroke); }
.faq-item:first-child { padding-top: 0; border-top: 0; }
.faq-item:last-child { padding-bottom: 0; }
.faq-item dt { font-size: 19px; font-weight: 700; }
.faq-item dd { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 1200px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0 40px; }
.footer-top { display: grid; grid-template-columns: 360px 270px 330px; gap: 140px; align-items: center; }
.footer-about .brand { display: inline-block; margin-bottom: 12px; }
.footer-about p { font-size: 15px; }
.footer-col h2 { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.footer-col li { font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-rule { height: 1px; background: var(--navy-2); margin: 24px 0; }
.copyright { font-size: 12px; }

/* ---------- Legal / inner pages ---------- */
.legal { padding: 75px 0 90px; }
.legal .container { max-width: calc(var(--legal-max) + 2 * var(--legal-gutter)); padding-inline: var(--legal-gutter); }
.page-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.page-title { font-size: 49px; font-weight: 700; letter-spacing: -0.01em; }
.page-intro { font-size: 17px; color: var(--muted); }
.gold-rule { width: 75px; height: 4px; background: var(--gold); }

.draft-banner {
  background: var(--cream); border-radius: 11px;
  padding: 16px 14px; margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.draft-badge { font-size: 12px; font-weight: 700; color: var(--text); }

.legal-sections { display: flex; flex-direction: column; gap: 32px; }
.legal-section { padding-bottom: 10px; max-width: 1080px; }
.legal-section h2 { font-size: 22px; font-weight: 700; }
.legal-section p,
.legal-section ul,
.legal-address { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.legal-section ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.legal-section li::marker { color: var(--gold); }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-address { font-style: normal; background: var(--cream); border-radius: 12px; padding: 16px 18px; color: var(--text); }
.page-updated { font-size: 13px; color: var(--muted); margin-top: -8px; }
.btn-inline {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--navy); color: var(--white) !important;
  font-size: 15px; font-weight: 700; padding: 14px 20px; border-radius: 11px;
}
.btn-inline:hover { background: var(--navy-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.panel-address { font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); }
.panel-address strong { color: var(--text); }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 410px); gap: 45px; align-items: start; }
.support-form {
  background: var(--cream); border-radius: 18px;
  padding: 28px 30px 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.support-form h2 { font-size: 25px; font-weight: 700; }
.form-intro { font-size: 15px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px;
  padding: 0 17px;
  font-size: 14px; color: var(--text);
  background: var(--field);
  border: 1px solid transparent; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: 116px; padding: 16px 17px; resize: vertical; line-height: 1.4; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23637084' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center; padding-right: 44px;
}
.field select:invalid { color: var(--muted); }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 153, 75, .22);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 12px; color: var(--error); }
.btn-submit {
  width: 100%; text-align: left;
  background: var(--navy); color: var(--white);
  border: 0; border-radius: 11px;
  padding: 18px 25px;
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background-color .15s;
}
.btn-submit:hover { background: var(--navy-2); }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: #e7f4ec; color: #14532d; }
.form-status.is-error { background: #fdecea; color: var(--error); }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.35; }

.support-panel {
  background: var(--field); border-radius: 18px;
  padding: 30px 24px 30px 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.panel-eyebrow { font-size: 13px; }
.panel-title { font-size: 28px; font-weight: 700; }
.panel-email { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.panel-email .inline-link { font-weight: 600; }
.panel-note { font-size: 15px; color: var(--muted); }
.panel-rule { width: 100%; max-width: 350px; height: 1px; background: var(--stroke); }
.panel-link { font-size: 15px; font-weight: 600; display: inline-flex; gap: 0.6em; }
.panel-link:hover { color: var(--gold); }

.not-found .page-head { margin-bottom: 40px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; --legal-gutter: 48px; }
  .site-nav { gap: 28px; margin-right: 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: 50px; line-height: 60px; }
  .hero-preview { max-width: 448px; }

  .trust-list { gap: 24px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-inner, .pricing-inner { grid-template-columns: 1fr; gap: 40px; }
  .price-card { max-width: 448px; }

  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-panel { max-width: 660px; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Mobile (Figma 390 frames) ---------- */
@media (max-width: 760px) {
  :root { --gutter: 24px; --legal-gutter: 24px; }

  .hide-sm { display: none; }

  /* Header */
  .site-header .container { padding-inline: 22px; }
  .brand { font-size: 25px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 10px 0;
    color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--navy); border-top: 1px solid var(--navy-2);
    padding: 4px 22px 18px;
    box-shadow: 0 16px 24px rgba(23, 34, 53, .25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--navy-2); }
  .site-nav a:last-child { border-bottom: 0; }
  .no-js .site-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; box-shadow: none; border: 0; padding: 0 0 12px; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 18px; }

  .eyebrow { font-size: 11px; letter-spacing: 1px; }
  .section-title, .pricing .section-title { font-size: 30px; }

  /* Hero */
  .hero-inner { gap: 0; padding-top: 44px; padding-bottom: 0; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: 37px; line-height: 1.21; }
  .hero-sub { font-size: 16px; line-height: 1.21; }
  .btn-play { width: 100%; font-size: 15px; padding: 18px 20px; border-radius: 11px; }
  .hero-terms { font-size: 12px; font-weight: 400; }

  .hero-preview {
    max-width: none;
    margin: 46px calc(-1 * var(--gutter)) 0;
    padding: 27px var(--gutter) 30px;
    background: var(--white);
  }
  .mockup { border-radius: 22px; padding: 22px 17px 23px; gap: 14px; }
  .mockup-top { gap: 8px; }
  .mockup-brand { flex-basis: 58%; font-size: 22px; }
  .mockup-label { font-size: 11px; }
  .mockup-total { font-size: 40px; }
  .mockup-rule { display: none; }
  .payment { padding: 12px 10px; gap: 10px; border-radius: 12px; }
  .payment-icon { width: 36px; height: 40px; border-radius: 12px; font-size: 20px; }
  .payment-app { font-size: 13px; }
  .payment-time { font-size: 10px; }
  .payment-amount { min-width: 84px; font-size: 17px; }
  .mockup-voice { font-size: 12px; }

  .trust { display: none; }

  /* Features */
  .features { padding: 45px 0 48px; }
  .features-inner { gap: 18px; }
  .feature-grid { gap: 18px; max-width: none; }
  .feature { background: var(--cream); border-radius: 17px; padding: 21px 14px 23px 20px; gap: 10px; }
  .feature-num { font-size: 13px; }
  .feature h3 { font-size: 20px; }
  .feature p:last-child { font-size: 14px; }
  .features-note { font-size: 14px; }

  /* How it works */
  .how { padding: 45px 0 48px; }
  .how-inner { gap: 17px; }
  .how-intro { gap: 17px; }
  .how-intro .lead { font-size: 15px; }
  .steps { gap: 17px; }
  .step { align-items: baseline; gap: 12px; }
  .step-num { display: block; width: 28px; height: auto; background: none; color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
  .step-num::before { content: "0"; }
  .step h3 { font-size: 17px; }
  .step p { margin-top: 7px; }

  /* Pricing */
  .pricing { padding: 49px 0 52px; }
  .pricing-inner { gap: 22px; }
  .pricing-copy p:last-child { font-size: 15px; }
  .price-card { border-radius: 18px; padding: 24px 18px 26px 20px; gap: 10px; max-width: none; }
  .price-label { font-size: 12px; }
  .price-amount { font-size: 52px; }
  .price-recurring { font-size: 15px; }
  .price-note { font-size: 13px; }

  /* FAQ */
  .faq { padding: 48px 0; }
  .faq-inner { gap: 20px; }
  .faq-item { padding-block: 20px; }
  .faq-item dt { font-size: 17px; }
  .faq-item dd { font-size: 14px; }
  .text-link { font-size: 16px; }

  /* Footer */
  .site-footer { padding: 34px 0 28px; }
  .footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-about .brand { font-size: 26px; margin-bottom: 16px; }
  .footer-about p { font-size: 13px; }
  .footer-explore { display: none; }
  .footer-col h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .footer-legal ul { display: flex; flex-wrap: wrap; row-gap: 2px; }
  .footer-legal li { font-size: 13px; }
  .footer-legal li:not(:last-child)::after { content: "·"; margin-inline: 12px; }
  .footer-rule { display: none; }
  .copyright { font-size: 11px; margin-top: 16px; }

  /* Legal pages */
  .legal { padding: 39px 0 55px; }
  .page-head { gap: 23px; margin-bottom: 23px; }
  .page-title { font-size: 34px; }
  .page-intro { font-size: 15px; }
  .gold-rule { display: none; }
  .draft-banner { margin-bottom: 23px; font-size: 12px; }
  .draft-badge { font-size: 11px; }
  .legal-sections { gap: 23px; }
  .legal-section { padding-bottom: 4px; }
  .legal-section h2 { font-size: 18px; }
  .legal-section p, .legal-section ul, .legal-address { margin-top: 10px; font-size: 14px; }
  .page-updated { font-size: 12px; margin-top: -10px; }

  /* Support */
  .support-grid { gap: 19px; }
  .support-form { padding: 23px 20px 26px; gap: 18px; }
  .support-form h2 { font-size: 19px; }
  .form-intro { font-size: 14px; }
  .field { gap: 7px; }
  .field label { font-size: 13px; }
  .field input, .field select { height: 46px; padding-inline: 14px; }
  .field select { padding-right: 40px; background-position: right 14px center; }
  .field textarea { height: 96px; padding: 14px; }
  .btn-submit { font-size: 14px; padding: 17px 18px; }
  .support-panel { background: none; padding: 20px 0 0; gap: 14px; }
  .panel-eyebrow { display: none; }
  .panel-title { font-size: 20px; }
  .panel-email { font-size: 15px; }
  .panel-note { font-size: 13px; }
}
