/* Regal Advances. Matches the original Squarespace theme: Manrope headlines, Plus Jakarta Sans text,
   slate on white, blue accent, gold calls to action, thin-bordered white cards. */
:root {
  --navy: #0f172a; --ink: #1e293b; --text: #475569; --muted: #64748b;
  --blue: #0284c7; --gold: #fbbf24; --gold-hover: #f5b014;
  --line: #e2e8f0; --soft: #f8fafc; --badge: #f1f5f9; --white: #ffffff;
  --head: "Manrope", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 50; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.menu { position: relative; }
.menu > button { font: inherit; font-weight: 600; font-size: 15.5px; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 6px; }
.menu > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.menu .panel { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 18px 40px rgba(15,23,42,.10); padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 4px 28px; }
.menu .panel[hidden] { display: none; }
.menu .panel h4 { margin: 4px 0 6px; font: 700 12px/1 var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.menu .panel a { display: block; padding: 6px 0; font-weight: 500; }
.btn { display: inline-block; background: var(--gold); color: #000 !important; text-decoration: none !important; font: 800 15px/1 var(--body);
  text-transform: uppercase; letter-spacing: 1px; padding: 16px 26px; border-radius: 4px; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--gold-hover); }
.btn.big { font-size: 20px; padding: 24px 50px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

/* shared blocks */
.badge { display: inline-block; background: var(--badge); color: var(--text); font: 700 13.5px/1 var(--body); letter-spacing: 2px; text-transform: uppercase; padding: 11px 24px; border-radius: 4px; }
.section { padding-block: 100px; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--text); font-size: 19px; margin-top: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 40px; }
.card p { color: var(--muted); font-size: 16.5px; }
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.more { color: var(--blue); font-weight: 700; font-size: 15px; }

/* hero */
.hero { background: radial-gradient(circle at 50% 0%, var(--soft) 0%, #fff 70%); padding-block: 90px 80px; text-align: center; }
.hero h1 { margin: 26px auto 26px; max-width: 980px; }
.hero h1 span { color: var(--blue); display: block; }
.hero .lede { max-width: 760px; margin: 0 auto 40px; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.65; color: var(--text); }
.hero .lede b { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 940px; margin: 70px auto 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stats div { padding: 28px 12px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 800 40px/1 var(--head); color: var(--navy); letter-spacing: -1.5px; }
.stats span { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* product + industry cards */
.product h3 { margin-bottom: 12px; }
.icon { width: 46px; height: 46px; border-radius: 8px; background: var(--badge); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.icon svg { width: 24px; height: 24px; }
.industry { padding: 30px; }
.industry h3 { font-size: 20px; margin-bottom: 8px; }

/* calculator teaser */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.split p { color: var(--text); font-size: 19px; }
.split ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.split li { padding-left: 28px; position: relative; }
.split li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }

/* testimonials */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 30px; font-size: 18.5px; line-height: 1.65; color: var(--ink); flex: 1; }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); }
.quote cite span { display: block; font-weight: 600; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* closing CTA */
.closer { background: var(--navy); color: #cbd5e1; text-align: center; padding-block: 96px; }
.closer h2 { color: #fff; }
.closer p { font-size: 19px; margin: 18px 0 36px; }

/* article pages (guides, about, privacy) */
.article { padding-block: 70px 90px; }
.article .inner { max-width: 820px; margin: 0 auto; }
.article h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.035em; margin: 22px 0 20px; }
.article h2 { font-size: 27px; letter-spacing: -0.02em; margin: 44px 0 14px; }
.article h3 { font-size: 20px; margin: 28px 0 8px; }
.article p { color: var(--text); font-size: 18px; line-height: 1.75; }
.article ul { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 30px; margin: 0 0 24px; display: grid; gap: 12px; }
.article li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.55; }
.article li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }
.article .cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 28px 0; }
.article .cta a { display: inline-block; background: var(--gold); color: #000; text-decoration: none; font: 800 17px/1 var(--body); text-transform: uppercase; letter-spacing: 1px; padding: 20px 38px; border-radius: 4px; }
.article .cta a:hover { background: var(--gold-hover); }
.article .cta span { color: var(--muted); font-size: 15px; }
.article .cta.end { flex-direction: column; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 44px 24px; margin-top: 52px; }
.article .cta.end strong { font: 800 30px/1.1 var(--head); color: var(--navy); letter-spacing: -1px; }
.article .placeholder { display: none; }
.related { margin-top: 56px; }
.related h2 { font-size: 22px; margin-bottom: 18px; }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related a.card { padding: 20px 22px; font-weight: 700; color: var(--navy); }
.policy table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.policy th, .policy td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: top; }
.policy th { color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* apply */
.apply-head { background: var(--navy); color: #cbd5e1; text-align: center; padding-block: 64px 120px; }
.apply-head h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.apply-head p { font-size: 19px; margin: 16px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-top: -80px; box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.steps div { text-align: center; font: 700 13px/1 var(--body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); }
.steps i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%; background: var(--badge); font-style: normal; color: var(--text); }
.steps div:first-child i { background: var(--gold); color: #000; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 26px 0 0; padding: 10px; }
.form-card iframe { width: 100%; min-height: 900px; border: 0; display: block; }
.trust { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; padding: 28px 0 70px; color: var(--muted); font-weight: 600; font-size: 15px; }
.trust span { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--blue); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: start; }
.contact-info dt { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 26px; }
.contact-info dd { margin: 6px 0 0; font-size: 19px; color: var(--navy); font-weight: 600; }
.form label { display: block; font-weight: 700; font-size: 14.5px; color: var(--navy); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .f { margin-bottom: 18px; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--text); font-weight: 400; margin: 6px 0 22px; }
.form .consent input { width: auto; margin-top: 3px; flex: none; }
.form .hp { position: absolute; left: -5000px; }
.notice { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; padding: 16px 18px; margin-bottom: 22px; }

/* footer */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding-block: 70px 30px; font-size: 15.5px; }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot img { mix-blend-mode: multiply; }
.foot h4 { font: 700 12.5px/1 var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot a { color: var(--ink); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--blue); }
.foot p { color: var(--text); margin: 0 0 6px; }
.foot .legal { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; }
  .nav.open { display: flex; }
  .nav > a, .menu > button { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .menu .panel { position: static; transform: none; box-shadow: none; border: 0; padding: 6px 0 12px; grid-template-columns: 1fr 1fr; }
  .nav .btn { margin-top: 14px; text-align: center; }
  .section { padding-block: 70px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .related .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card { padding: 28px; }
  .btn.big { width: 100%; padding: 22px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; }
  .steps div { font-size: 11px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } }

.article ol { padding-left: 22px; }
.article ol li { margin-bottom: 10px; }
.faq { margin-top: 44px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin: 10px 0 0; }
.article ol { list-style: none; counter-reset: step; padding-left: 0; }
.article ol li { counter-increment: step; position: relative; padding-left: 40px; }
.article ol li::before { content: counter(step); width: 26px; height: 26px; top: 0; border-radius: 50%; background: var(--navy); color: #fff; font: 800 13px/26px var(--head); text-align: center; }
