/* ref4ence marketing site — brand guide colours, Sora (headings) + Inter (body).
   Fonts are self-hosted (SIL OFL, see assets/fonts/*-LICENSE.txt): no third-party requests. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0B1F2A; --green: #00BF63; --deep: #007A3F; --tint: #D6F7E5;
  --paper: #F5F7F4; --slate: #4B5B57; --line: #DCE3DF; --white: #fff;
  --radius: 10px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Sora, Inter, system-ui, sans-serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--deep); }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); margin-bottom: .8em; display: block; }
.dark .label { color: var(--green); }
.muted { color: var(--slate); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Buttons (brand guide: green primary, outlined secondary) */
.btn { display: inline-block; font-weight: 600; font-size: .95rem; text-decoration: none; padding: .8em 1.4em; border-radius: 8px; border: 2px solid transparent; transition: opacity .15s, background .15s; }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--white); }
.dark .btn-secondary { border-color: rgba(255,255,255,.6); color: var(--white); }
.dark .btn-secondary:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: Sora, sans-serif; font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.logo .four { color: var(--green); }
.logo img { display: block; height: 29px; width: auto; }
.site-footer .logo img { height: 25px; }
.dark .logo { color: var(--white); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.nav a:hover { color: var(--deep); }
.nav .btn { padding: .55em 1.1em; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-block; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
}

/* Sections */
section { padding: 88px 0; }
.dark { background: var(--ink); color: var(--white); }
.dark p, .dark .muted { color: rgba(255,255,255,.75); }
.white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.center { text-align: center; } .center .section-head { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--slate); max-width: 34em; margin-bottom: 1.6em; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card p:last-child { margin-bottom: 0; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--deep); font-family: Sora, sans-serif; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Status chips (brand guide) */
.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25em .75em; border-radius: 999px; }
.chip-grey { background: #E7ECEA; color: var(--slate); }
.chip-amber { background: #FDF0D5; color: #8A5A00; }
.chip-green { background: var(--tint); color: var(--deep); }

/* Sample report (hero) */
.report { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(11,31,42,.25); padding: 26px; font-size: .92rem; }
.report-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.report .tag { font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: var(--slate); }
.report h3 { font-size: 1.25rem; margin-bottom: .15em; }
.report dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report dt { color: var(--slate); } .report dd { margin: 0; }
.rating { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; }
.dots { display: flex; gap: 5px; } .dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); display: block; } .dots i.on { background: var(--green); }
.quote { background: var(--paper); border-left: 3px solid var(--green); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; color: var(--slate); font-style: italic; }
.report-foot { display: flex; justify-content: space-between; align-items: center; color: var(--slate); font-size: .85rem; }
.report-foot span.pdf { color: var(--deep); font-weight: 600; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green); }
.price { font-family: Sora, sans-serif; font-weight: 600; font-size: 2rem; margin: .3em 0 .2em; }
.price small { font-family: Inter, sans-serif; font-size: .9rem; font-weight: 400; color: var(--slate); }
.price-card ul { padding-left: 1.1em; margin: 0 0 24px; color: var(--slate); flex: 1; }
.placeholder { background: #FFF3BF; color: #6B5300; padding: 0 .3em; border-radius: 4px; }

/* Lists, FAQ, legal */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%23007A3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .8em 0 0; color: var(--slate); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.draft-banner { background: #FFF3BF; border: 1px solid #E9D27A; color: #6B5300; border-radius: 8px; padding: 12px 16px; font-size: .9rem; margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0 36px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--white); text-decoration: none; margin-right: 20px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { font-size: .8rem; margin-top: 14px; max-width: 560px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split img { justify-self: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img { max-width: 280px; } }

/* Real app screenshots (fictional demo data) */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(11,31,42,.25); }
.shot figcaption { margin-top: 10px; font-size: .8rem; color: var(--slate); text-align: center; }
.phone-shot { display: block; width: 300px; max-width: 100%; height: auto; border: 10px solid #fff; border-radius: 36px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); }
