/* Vertnet — shared stylesheet for the organic guide pages under /p/.
 *
 * Single source for all three pages (comparison, objection, English guide) rather
 * than three inlined copies: they ship together and drift apart the moment they
 * don't share a file. The /lp/ pages inline their CSS because each is a lone ad
 * landing page where one round trip matters more than reuse; here the file is
 * cached across the set.
 *
 * The system it implements is documented in DESIGN.md. Two rules are load-bearing
 * and were violated by the first build of these pages:
 *   1. Brand furniture (mark, nav, trust strip, footer) is not optional. These
 *      pages are entered COLD from an AI answer by someone who has never heard of
 *      Vertnet — see PRODUCT.md.
 *   2. No side-stripe borders. Panels use a full border plus a ground tint.
 */

/* ---------- fonts (self-hosted, shared with the /lp/ pages) ---------- */
@font-face{font-family:'Kanit';src:url('/lp/fin-de-bail/fonts/kanit-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Inter';src:url('/lp/fin-de-bail/fonts/inter.woff2') format('woff2');font-weight:400 700;font-display:swap}

/* ---------- tokens ---------- */
:root{
  --sand:#ede7da; --sand-2:#f3efe6; --paper:#fff;
  --ink:#18241d; --slate:#2c3a46; --navy:#0b2d4d; --navy2:#0e2a44; --blue:#2a6cb0;
  --mint:#d9f5e6; --mint-line:#a9dcc2; --gold:#e0a53a;
  --line:#ddd5c6; --muted:#645c50;
  --kanit:'Kanit',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --inter:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --max:1180px; --measure:68ch;
  --sect:clamp(56px,8vw,96px);
  --ease:cubic-bezier(.22,1,.36,1);
  --z-header:100;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--sand-2);color:var(--ink);
  font-family:var(--inter);font-size:17px;line-height:1.65;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:var(--blue)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}

.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.measure{max-width:var(--measure)}

h1,h2,h3,h4{font-family:var(--kanit);font-weight:700;text-wrap:balance}
h2{font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.18;letter-spacing:-.02em;
   margin:0 0 18px;color:var(--navy2)}
h3{font-size:clamp(1.12rem,1.7vw,1.32rem);line-height:1.3;margin:0 0 10px;color:var(--navy2)}
p{margin:0 0 16px;text-wrap:pretty}
ul,ol{margin:0 0 18px;padding-left:22px}
li{margin:0 0 10px}
strong{font-weight:700}

/* ---------- header ---------- */
/* Fixed from the start, transparent over the hero, solid once the hero is gone.
 * Do NOT switch position (absolute -> sticky) on scroll: the element changes
 * containing block mid-scroll and the page jumps. Same pattern as the /lp/ pages. */
header.site{
  position:fixed;top:0;left:0;right:0;z-index:var(--z-header);
  background:transparent;
  transition:background .26s var(--ease),box-shadow .26s var(--ease),padding .26s var(--ease);
}
header.site.solid{background:var(--navy);box-shadow:0 8px 28px rgba(11,45,77,.22)}
header.site.solid nav{padding-top:13px;padding-bottom:13px}
header.site nav{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  max-width:1300px;margin:0 auto;padding:20px 24px;
}
.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;flex:0 0 auto}
.brand img{width:40px;height:40px;object-fit:contain;background:#fff;border-radius:10px;padding:4px}
.brand span{font-family:var(--kanit);font-weight:700;font-size:17px;text-transform:uppercase;letter-spacing:.1em;white-space:nowrap}
.nav-links{display:none;align-items:center;gap:30px}
.nav-links a{color:rgba(255,255,255,.92);text-decoration:none;font-size:14px;font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;font-family:var(--kanit);transition:color .2s var(--ease)}
.nav-links a:hover{color:#fff}
.nav-cta{
  font-family:var(--kanit);font-weight:700;font-size:13.5px;text-transform:uppercase;letter-spacing:.06em;
  color:#fff;text-decoration:none;border:1.5px solid rgba(255,255,255,.6);
  padding:10px 18px;border-radius:999px;white-space:nowrap;
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.nav-cta:hover{background:#fff;color:var(--navy);border-color:#fff}
@media(min-width:940px){.nav-links{display:flex}}

/* ---------- hero ---------- */
.hero{position:relative;min-height:62vh;display:flex;align-items:flex-end;overflow:hidden}
.hero--tall{min-height:70vh}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-ov{position:absolute;inset:0;background:linear-gradient(to top,
  rgba(9,26,44,.94) 0%,rgba(9,26,44,.80) 30%,rgba(9,26,44,.52) 60%,rgba(9,26,44,.34) 100%)}
.hero-c{position:relative;z-index:2;width:100%;max-width:1300px;margin:0 auto;
  padding:132px 24px clamp(38px,5vw,60px);color:#fff}
.hero h1{
  color:#fff;font-size:clamp(2.1rem,4.2vw,3.6rem);line-height:1.04;letter-spacing:-.03em;
  margin:0 0 16px;max-width:17ch;text-shadow:0 2px 30px rgba(0,0,0,.4);
}
.hero .sub{font-size:clamp(1.02rem,1.5vw,1.2rem);color:rgba(255,255,255,.94);
  max-width:58ch;margin:0 0 26px;line-height:1.55;text-shadow:0 1px 16px rgba(0,0,0,.35)}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--kanit);font-weight:700;text-decoration:none;cursor:pointer;border:0;
  padding:15px 30px;border-radius:12px;font-size:16.5px;
  transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease)}
.btn-primary{background:linear-gradient(180deg,#2a6cb0,#0b2d4d);color:#fff;box-shadow:0 12px 26px rgba(11,45,77,.28)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(11,45,77,.34)}
.btn-light{background:#fff;color:var(--navy);box-shadow:0 12px 26px rgba(0,0,0,.18)}
.btn-light:hover{transform:translateY(-2px)}
.btn-out{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7)}
.btn-out:hover{background:rgba(255,255,255,.14)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{transform:translateY(-2px)}

/* ---------- trust strip ---------- */
.trust{background:var(--navy2);color:#fff}
.trust ul{display:flex;flex-wrap:wrap;gap:10px 34px;list-style:none;margin:0;padding:16px 24px;
  max-width:1300px;margin-inline:auto;font-size:14.5px}
.trust li{margin:0;display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.92)}
.trust b{font-family:var(--kanit);font-weight:700;color:#fff}
.trust .tick{color:#7fd6a6;font-weight:700}

/* ---------- sections ---------- */
/* The header is fixed, so an in-page anchor would land its target underneath it. */
section[id]{scroll-margin-top:88px}
html{scroll-behavior:smooth}
section.band{padding:var(--sect) 0}
section.alt{background:var(--sand)}
.lede{font-size:clamp(1.06rem,1.5vw,1.22rem);color:var(--slate);line-height:1.6}

/* ---------- comparison table ---------- */
.tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;
  border-radius:16px;background:var(--paper);
  box-shadow:0 1px 2px rgba(11,45,77,.06),0 12px 32px -12px rgba(11,45,77,.22)}
table.cmp{border-collapse:collapse;width:100%;min-width:760px;font-size:15.5px}
table.cmp th,table.cmp td{padding:20px 22px;text-align:left;vertical-align:top;
  border-bottom:1px solid var(--line)}
table.cmp tbody tr{transition:background .18s var(--ease)}
table.cmp tbody tr:hover{background:#faf7f1}
table.cmp tbody tr.us:hover{background:#cdf0de}
/* Source of every factual claim in the row. The table asserts what each company
 * publishes; without the link the reader cannot check it, and a claim nobody can
 * check is the thing this page argues against. */
.src{display:inline-block;margin-top:7px;font-size:13px;color:var(--slate);
  text-decoration:none;border-bottom:1px solid var(--line)}
.src:hover{color:var(--blue);border-bottom-color:var(--blue)}
.src::after{content:" ↗";font-size:11px}
/* Deliberately NOT position:sticky. The page header is fixed, so a sticky thead
 * pins itself to the viewport top and disappears underneath it. The table is
 * five rows; it does not need one. */
table.cmp thead th{background:var(--navy);color:#fff;font-family:var(--kanit);font-weight:700;
  font-size:14px;letter-spacing:.03em}
table.cmp tbody tr:last-child td{border-bottom:0}
table.cmp tbody tr.us{background:var(--mint)}
table.cmp tbody tr.us td{border-bottom-color:var(--mint-line)}
.co{font-family:var(--kanit);font-weight:700;color:var(--navy2);white-space:nowrap}
.chip{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;
  background:var(--navy);color:#fff;font-family:var(--inter);font-size:11px;
  font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}
.mk{font-weight:700;margin-right:6px}
.mk-y{color:#12683d}
.mk-n{color:#7c4a4a}
.val-y{color:#12683d}
.val-n{color:var(--muted)}
.thint{display:block;font-size:13.5px;color:var(--muted);margin:10px 0 0}
@media(min-width:760px){.thint{display:none}}
.note{font-size:14.5px;color:var(--muted);line-height:1.6;max-width:var(--measure)}

/* ---------- editorial blocks, not cards ----------
 * The first build of these pages was a stack of white rounded rectangles with a
 * 1px border: generic, and cards are the lazy affordance for prose that is
 * simply a sequence of arguments. These are set as rule-separated editorial
 * entries instead — a heading column and a text column, whitespace doing the
 * grouping. No box, no side stripe. */
.cases{margin:0;padding:0;list-style:none}
.case{display:grid;gap:6px 40px;padding:clamp(26px,3.4vw,38px) 0;
  border-top:1px solid var(--line);margin:0}
.case:first-child{border-top:0;padding-top:6px}
.case-h{margin:0}
.case-h h3{margin:0 0 10px;font-size:clamp(1.16rem,1.9vw,1.42rem)}
.case-b p:last-child{margin-bottom:0}
.case-b{max-width:62ch}
@media(min-width:900px){
  .case{grid-template-columns:minmax(0,15.5rem) minmax(0,1fr)}
  .case-h{position:sticky;top:104px;align-self:start}
}
.tag{display:inline-block;font-family:var(--inter);font-size:11.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;padding:4px 11px;border-radius:999px;
  background:var(--sand);color:var(--slate);border:1px solid var(--line);white-space:nowrap}
.tag--alt{background:#fdf3e0;border-color:#e3c184;color:#7a5510}

/* Elevated panel — used sparingly, where a block genuinely is a distinct object
 * (the closing claim, a legal note). Soft shadow rather than a hard border. */
.panel{background:var(--paper);border-radius:16px;padding:clamp(22px,3.2vw,34px);margin:0 0 18px;
  box-shadow:0 1px 2px rgba(11,45,77,.06),0 12px 32px -14px rgba(11,45,77,.22)}
.panel:last-child{margin-bottom:0}
.panel p:last-child{margin-bottom:0}

/* Our own published claims: inverted navy. It is the brand colour, it separates
 * our claim from the neutral comparison, and it carries the most weight on the
 * page without shouting. */
.claim{background:var(--navy);color:#fff;border-radius:18px;
  padding:clamp(26px,3.6vw,44px);
  box-shadow:0 20px 48px -20px rgba(11,45,77,.55)}
/* `.facts .k` is declared further down with the same specificity, so a bare
 * `.claim .k` loses to it and the labels render navy-on-navy. Reach one class
 * deeper rather than reordering the file. */
.claim h3,.claim .facts .k,.claim .k{color:#fff}
.claim a{color:#a9d4ff}
.claim .facts li{border-top-color:rgba(255,255,255,.18)}
.claim p{color:rgba(255,255,255,.9)}
.claim strong{color:#fff}

.grid2{display:grid;gap:18px}
@media(min-width:820px){.grid2{grid-template-columns:1fr 1fr}}

/* facts list — a definition structure, not a card grid */
.facts{list-style:none;margin:0;padding:0}
.facts li{display:grid;gap:4px 36px;padding:20px 0;border-top:1px solid var(--line);margin:0}
.facts li:first-child{border-top:0;padding-top:0}
.facts .k{font-family:var(--kanit);font-weight:700;color:var(--navy2);line-height:1.35}
@media(min-width:700px){.facts li{grid-template-columns:minmax(0,15rem) 1fr}}

/* ---------- inline CTA to the calculator ---------- */
.cta-bar{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;
  background:var(--paper);border-radius:16px;padding:22px clamp(20px,3vw,30px);
  box-shadow:0 1px 2px rgba(11,45,77,.06),0 12px 32px -14px rgba(11,45,77,.22)}
.cta-bar p{margin:0;flex:1 1 22rem;color:var(--slate)}
.cta-bar strong{color:var(--navy2)}
.cta-bar .btn{flex:0 0 auto}

/* ---------- FAQ — rules, not boxes ---------- */
details.q{border-top:1px solid var(--line);padding:20px 0;margin:0}
details.q:first-of-type{border-top:0}
details.q summary{font-family:var(--kanit);font-weight:700;color:var(--navy2);
  cursor:pointer;font-size:17px;line-height:1.4;list-style:none;
  display:flex;gap:16px;align-items:baseline;justify-content:space-between}
details.q summary::-webkit-details-marker{display:none}
details.q summary::after{content:"+";font-size:22px;line-height:1;color:var(--blue);
  flex:0 0 auto;transition:transform .2s var(--ease)}
details.q[open] summary::after{content:"–"}
details.q[open] summary{margin-bottom:12px}
details.q p:last-child{margin-bottom:0}
details.q p{max-width:62ch}

/* ---------- closing CTA ---------- */
.close{background:var(--navy);color:#fff;padding:var(--sect) 0}
.close h2{color:#fff}
.close p{color:rgba(255,255,255,.9);max-width:56ch}
.close .hero-cta{margin-top:24px}

/* ---------- footer ---------- */
footer.site{background:var(--ink);color:#fff;padding:64px 0 28px;font-size:15px}
footer.site h4{font-family:var(--kanit);font-size:14px;text-transform:uppercase;
  letter-spacing:.08em;color:#fff;margin:0 0 14px}
footer.site ul{list-style:none;margin:0;padding:0}
footer.site li{margin:0 0 9px}
footer.site a{color:rgba(255,255,255,.82);text-decoration:none}
footer.site a:hover{color:#fff;text-decoration:underline}
footer.site p{color:rgba(255,255,255,.72)}
.fgrid{display:grid;gap:34px}
@media(min-width:760px){.fgrid{grid-template-columns:1.6fr 1fr 1fr}}
.fbot{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.16);
  display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;
  font-size:13.5px;color:rgba(255,255,255,.6)}

/* ---------- motion ---------- */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
  .btn:hover{transform:none}
}
