/* hp.css — Homepage authoritative page, layered on the shared shell + card-system + typography (res24).
   Colours: only sitewide tokens (shell --gs-* + card-system --ok-*). No new palette, no photos-as-background. */
.d2 .onh-wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.hp-sec{padding:40px 0}
.hp-sec.onh-band{background:var(--ok-card-surface-quiet)}
.hp-h1{font-size:34px;line-height:1.14;font-weight:800;color:var(--gs-navy);margin:0 0 16px}
.hp-h2{font-size:25px;line-height:1.2;font-weight:800;color:var(--gs-navy);margin:0 0 8px}
.hp-h3{font-size:18px;font-weight:800;color:var(--gs-navy);margin:18px 0 10px}
.hp-p{font-size:15px;line-height:1.62;color:var(--ok-ink);margin:0 0 12px}
.hp-lead{font-size:17px;line-height:1.55;color:var(--ok-ink);margin:0 0 12px;max-width:640px}
.hp-updated{font-size:13px;color:var(--ok-muted);margin:14px 0 0}
.hp-list{margin:0 0 12px;padding-left:20px}
.hp-list li{font-size:14.5px;line-height:1.55;color:var(--ok-ink);margin:0 0 5px}

/* buttons */
/* box-sizing:border-box so min-height is the FULL button height for both <button> and <a>. Without it an
   <a class="d2-btn"> uses content-box and stacks min-height + padding + border into an oversized (~71px) panel. */
.hp-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:46px;padding:11px 22px;border-radius:12px;font-family:inherit;font-weight:800;font-size:15px;cursor:pointer;text-decoration:none;border:1.5px solid transparent;white-space:normal;max-width:100%}
.hp-btn--primary{background:var(--gs-teal);color:#fff}
.hp-btn--primary:hover{background:var(--gs-teal-d)}
.hp-btn--ghost{background:var(--ok-card-surface);color:var(--gs-teal);border-color:var(--gs-teal)}
.hp-btn--ghost:hover{background:var(--ok-card-surface-quiet)}
.hp-btn:focus-visible{outline:2px solid var(--gs-navy);outline-offset:2px}
.hp-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:6px 0 0}
.hp-card__foot{margin-top:auto;padding-top:12px}

/* hero */
.hp-hero{padding:26px 0 30px;position:relative}
.hp-hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:center}
.hp-hero__copy{min-width:0}
.hp-hero-sentinel{position:absolute;bottom:40px;left:0;width:1px;height:1px}
.hp-pic{display:block;width:100%;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:var(--ok-card-surface-quiet)}
.hp-pic img{width:100%;height:100%;object-fit:cover;display:block}

/* sticky chip nav */
.hp-nav__l{flex:0 0 auto;padding:8px 13px;border-radius:999px;font-size:13.5px;font-weight:700;color:var(--ok-muted);text-decoration:none;white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}
.hp-nav__l:hover{color:var(--ok-ink)}
.hp-nav__l.on{background:var(--ok-card-surface-quiet);color:var(--gs-teal)}
.hp-nav__l:focus-visible{outline:2px solid var(--gs-teal);outline-offset:2px}

/* cards + grids */
.hp-grid{display:grid;gap:16px;align-items:stretch;margin:6px 0 12px}
.hp-grid--1{grid-template-columns:1fr}
.hp-grid--2{grid-template-columns:repeat(2,1fr)}
.hp-grid--3{grid-template-columns:repeat(3,1fr)}
.hp-grid--4{grid-template-columns:repeat(4,1fr)}
.hp-card{display:flex;flex-direction:column;background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;padding:20px}
.hp-card h3{font-size:16px;font-weight:800;color:var(--gs-navy);margin:0 0 8px;line-height:1.28}
.hp-card .hp-p{font-size:14px;margin:0 0 8px}
.hp-card .hp-list{margin-bottom:0}
.hp-fact{background:var(--ok-card-surface)}
.hp-compact .hp-compactcard{padding:16px}
.hp-compactcard h3{font-size:14.5px}
.hp-step{position:relative;padding-top:22px}
.hp-step__n{position:absolute;top:16px;right:18px;font-size:26px;font-weight:800;color:var(--ok-card-line);line-height:1}
.hp-price{font-size:20px;color:var(--gs-teal);margin:0 0 8px;font-weight:800}
.hp-nav3 .hp-card__foot .hp-btn{width:100%}

/* readiness (three levels) — light accent stripe to visually distinguish the three states */

/* split (content + photo) */
.hp-split{display:grid;grid-template-columns:1.15fr .85fr;gap:30px;align-items:start}
.hp-split__main,.hp-split__media{min-width:0}
.hp-split__media{position:sticky;top:120px}
.hp-card,.hp-panel,.hp-disc{min-width:0}

/* highlighted Portugal-substance block */
.hp-highlight{background:var(--ok-card-surface-quiet)}
.hp-highlight .hp-split__main .hp-h3{margin-top:20px}

/* disclosures */
.hp-disc{border:1px solid var(--ok-card-line);border-radius:12px;background:var(--ok-card-surface);margin:0 0 10px;overflow:hidden}
.hp-disc>summary{list-style:none;cursor:pointer;padding:14px 18px;font-size:15px;font-weight:800;color:var(--gs-navy);position:relative;padding-right:44px}
.hp-disc>summary::-webkit-details-marker{display:none}
.hp-disc>summary::after{content:"";position:absolute;right:18px;top:50%;width:9px;height:9px;border-right:2px solid var(--ok-muted);border-bottom:2px solid var(--ok-muted);transform:translateY(-70%) rotate(45deg);transition:transform .15s}
.hp-disc[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
.hp-disc__b{padding:2px 18px 16px}
.hp-disc__b .hp-p{font-size:14px}
.hp-disc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.hp-faq__i>summary{font-size:15.5px}

/* tables */
.hp-tablewrap{overflow-x:auto;margin:0 0 14px;border:1px solid var(--ok-card-line);border-radius:12px}
.hp-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:420px}
.hp-table th,.hp-table td{padding:11px 14px;text-align:left;border-top:1px solid var(--ok-card-line)}
.hp-table thead th{background:var(--ok-card-surface-quiet);color:var(--gs-navy);font-weight:800;border-top:none}
.hp-table .num{text-align:right;font-variant-numeric:tabular-nums}
.hp-table td.num{color:var(--gs-navy);font-weight:700}

/* checklist (after-entry) */
.hp-checklist{background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;padding:22px}
.hp-checklist .hp-list{margin-bottom:12px}

/* paired panels + accent routing panel */
.hp-panel{background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;padding:26px;margin:0 0 4px}
.hp-panel .hp-h2{font-size:22px;margin-bottom:10px}
.hp-panel .hp-btn{margin-top:8px}
.hp-panel--accent{border:1.5px solid var(--gs-teal);background:var(--ok-card-surface-quiet)}

/* consular-stage highlighted editorial callout */

/* final CTA */
.hp-final{padding:44px 0}
.hp-final__panel{background:var(--gs-navy);border-radius:22px;padding:36px;text-align:center;color:#fff}
.hp-final__panel .hp-h2{color:#fff}
.hp-final__panel .hp-p{color:rgba(255,255,255,.9)}
.hp-final .hp-cta-row{justify-content:center}
.hp-final__panel .hp-btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}

@media (max-width:1000px){
  .hp-grid--4{grid-template-columns:repeat(2,1fr)}
  .hp-grid--3{grid-template-columns:repeat(2,1fr)}
  .hp-split{grid-template-columns:1fr;gap:20px}
  .hp-split__media{position:static;order:-1}
  .hp-hero__grid{gap:26px}
}
@media (max-width:640px){
  .hp-sec{padding:30px 0}
  .hp-hero__grid{grid-template-columns:1fr;gap:18px}
  .hp-hero__media{order:2}
  .hp-h1{font-size:26px}.hp-h2{font-size:21px}.hp-lead{font-size:15.5px}
  .hp-grid--2,.hp-grid--3,.hp-grid--4{grid-template-columns:1fr}
  .hp-disc-grid{grid-template-columns:1fr}
  /* sticky local row = full-width chip scroller only; the large CTA must not share the row. */
  .hp-split .hp-panel:last-child{margin-bottom:0}
  /* one-line mobile buttons get a 52px intrinsic touch height (was oversized via content-box). */
  .hp-btn{min-height:52px}
}

/* ---------- Homepage additions ---------- */
.hp h1,.hp h2,.hp h3,.hp-h1,.hp-h2,.hp-h3,.hp-lead,.hp-p,.hp-list li,.hp-card h3{overflow-wrap:break-word;word-break:break-word}
/* hero */
.hp-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 10px}
.hp-hero__links{display:flex;flex-wrap:wrap;gap:6px 22px;margin:6px 0 0}
.hp-hero__links a{font-size:14.5px;font-weight:700;color:var(--gs-teal);text-decoration:none}
.hp-hero__links a:hover{text-decoration:underline}
.hp-trustline{font-size:13.5px;color:var(--ok-muted);margin:14px 0 0;line-height:1.5}
/* section intro */
.hp-secintro{font-size:16px;line-height:1.6;color:var(--ok-ink);max-width:760px;margin:0 0 16px}
/* metric cards */
.hp-metric{background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;padding:20px}
.hp-metric h3{font-size:17px;font-weight:800;color:var(--gs-teal);margin:0 0 6px;line-height:1.25}
.hp-metric .hp-p{font-size:14px;margin:0}
.hp-snapshot{font-size:12.5px;color:var(--ok-muted);margin:8px 0 0}
/* media (youtube/telegram) cards */
.hp-media{background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;padding:24px}
.hp-media__stat{font-size:22px;font-weight:800;color:var(--gs-navy);margin:0 0 8px}
.hp-yt__card{display:flex;flex-direction:column;background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:14px;padding:16px;text-decoration:none}
.hp-yt__play{width:40px;height:40px;border-radius:50%;background:var(--gs-teal);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:16px;margin:0 0 10px}
.hp-yt__t{font-size:14.5px;font-weight:700;color:var(--gs-navy);line-height:1.35}
.hp-yt__card:hover .hp-yt__t{color:var(--gs-teal)}
/* project cards */
.hp-proj{display:flex;flex-direction:column;background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;padding:20px}
.hp-proj h3{font-size:16px;font-weight:800;color:var(--gs-navy);margin:0 0 8px}
.hp-proj__a{margin-top:auto;padding-top:12px;font-weight:800;color:var(--gs-teal);text-decoration:none}
.hp-proj__a:hover{text-decoration:underline}
/* case cards */
.hp-case__a{margin-top:auto;padding-top:10px;font-weight:800;color:var(--gs-teal);text-decoration:none}
.hp-case__a:hover{text-decoration:underline}
/* reviews shell */
.hp-reviews__widget{margin:12px 0}
@media (max-width:640px){ .hp-hero__actions .hp-btn{width:100%} }

/* ================= Visual Rhythm & Team Hotfix R1 — four composition families ================= */
/* section density (rhythm): feature > standard > compact. Colours/tokens only; gaps are page-local. */
#outside,#inside{padding:56px 0}
#team{padding:60px 0}
#founder{padding:48px 0}
.hp-sec--compact{padding:26px 0}
.hp h3{overflow-wrap:break-word;word-break:break-word}

/* 1) FEATURE BLOCK — stronger scale, ONE destination action */
.hp-situ{display:grid;grid-template-columns:5fr 7fr;gap:22px;align-items:start;margin-top:6px}
.hp-situ--rev{grid-template-columns:7fr 5fr}
.hp-situ--rev .hp-situ__feature{order:2}
.hp-situ--rev .hp-situ__tiles{order:1}
.hp-situ__tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.hp-feature{display:flex;flex-direction:column;height:100%;background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:18px;padding:28px 26px}
.hp-feature__h{font-size:21px;line-height:1.24;font-weight:800;color:var(--gs-navy);margin:0 0 12px}
.hp-feature .hp-p{font-size:15.5px;line-height:1.6;color:var(--ok-ink)}
.hp-feature__foot{margin-top:auto;padding-top:14px}

/* 2) COMPACT NAVIGATION TILE — whole tile is one crawlable link; no separate button */
.hp-tile,.hp-railrow,.hp-caserow,.hp-projrow{display:flex;flex-direction:column;gap:6px;min-height:52px;text-decoration:none;background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:14px;padding:15px 16px;transition:border-color .15s,background .15s}
.hp-tile:hover{background:var(--ok-card-surface-quiet)}
.hp-tile:hover,.hp-railrow:hover,.hp-caserow:hover,.hp-projrow:hover{border-color:var(--gs-teal)}
.hp-tile:focus-visible,.hp-railrow:focus-visible,.hp-caserow:focus-visible,.hp-projrow:focus-visible{outline:2px solid var(--gs-teal);outline-offset:2px}
.hp-tile__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.hp-tile__h{font-size:15px;font-weight:800;color:var(--gs-navy);line-height:1.3}
.hp-tile:hover .hp-tile__h,.hp-railrow:hover .hp-tile__h,.hp-caserow:hover .hp-tile__h{color:var(--gs-teal)}
.hp-tile__arrow{flex:0 0 auto;color:var(--gs-teal);font-weight:800;font-size:16px;line-height:1.3}
.hp-tile__p{display:block;font-size:13.5px;line-height:1.5;color:var(--ok-ink)}

/* 3) PROOF STRIP — one shared surface, separators, no card boxes */
.hp-proof{display:grid;grid-template-columns:repeat(3,1fr);background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;overflow:hidden;margin:8px 0 0}
.hp-proof__i{padding:18px 20px;border-top:1px solid var(--ok-card-line);border-left:1px solid var(--ok-card-line)}
.hp-proof__i:nth-child(-n+3){border-top:none}
.hp-proof__i:nth-child(3n+1){border-left:none}
.hp-proof__h{font-size:16px;font-weight:800;color:var(--gs-teal);margin:0 0 6px;line-height:1.3}
.hp-proof__i .hp-p{font-size:13.5px;margin:0}

/* 4) EDITORIAL MEDIA — citizenship split, team, founder, combined media */
.hp-edito{display:grid;grid-template-columns:5fr 7fr;gap:28px;align-items:start;margin-top:8px}
.hp-edito__media,.hp-edito__body{min-width:0}
.hp-edito__pic{display:block;width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:var(--ok-card-surface-quiet)}
.hp-edito__pic img{width:100%;height:100%;object-fit:cover;display:block}
.hp-crows{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 22px;margin:6px 0 16px}
.hp-crow__h{font-size:15px;font-weight:800;color:var(--gs-navy);margin:0 0 4px;line-height:1.3}
.hp-crow .hp-p{font-size:13.5px;margin:0}

/* service rail (2-col rows) */
.hp-rail{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:6px}

/* team section — full-width editorial image, object-fit contain, no crop */
.hp-team__media{margin-top:16px;border-radius:18px;overflow:hidden;background:var(--ok-card-surface-quiet)}
.hp-team__pic{display:block;width:100%}
.hp-team__pic img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;background:var(--ok-card-surface-quiet)}
@media (min-width:641px) and (max-width:1023px){.hp-team__pic img{aspect-ratio:4/3}}
@media (max-width:640px){.hp-team__pic img{aspect-ratio:1080/1350}}

/* founder profile — portrait 4col / text 8col; no circular crop, no quote/CTA */
.hp-founder__grid{display:grid;grid-template-columns:4fr 8fr;gap:28px;align-items:center}
.hp-founder__media,.hp-founder__body{min-width:0}
.hp-founder__pic{display:block;width:100%;max-width:320px;border-radius:16px;overflow:hidden}
.hp-founder__pic img{display:block;width:100%;height:auto;aspect-ratio:1000/1250;object-fit:contain;background:var(--ok-card-surface-quiet)}
@media (max-width:640px){.hp-founder__pic img{aspect-ratio:1/1}}
.hp-eyebrow{font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--gs-teal);margin:0 0 6px}
.hp-founder__body .hp-h2{margin-bottom:10px}
.hp-founder__body .hp-p{font-size:15.5px;max-width:640px}

/* combined media (YouTube ~2/3 + Telegram ~1/3) */
.hp-mediacombo{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:start;margin-top:6px}
.hp-media__h{font-size:18px;font-weight:800;color:var(--gs-navy);margin:0 0 10px}
.hp-ytgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:4px 0 14px}

/* cases — 2 featured cards + 4 compact rows */
.hp-casefeats{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:6px 0 16px}
.hp-casefeat{display:flex;flex-direction:column;background:var(--ok-card-surface);border:1px solid var(--ok-card-line);border-radius:16px;overflow:hidden}
.hp-casefeat__pic{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:var(--ok-card-surface-quiet)}
.hp-casefeat__pic img{width:100%;height:100%;object-fit:cover;display:block}
.hp-casefeat__b{display:flex;flex-direction:column;flex:1;padding:18px 20px}
.hp-casefeat__b h3{font-size:17px;font-weight:800;color:var(--gs-navy);margin:0 0 8px;line-height:1.3}
.hp-casefeat__b .hp-p{font-size:14px}
.hp-casefeat .hp-case__a{margin-top:auto;padding-top:10px}
.hp-caserows{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}

/* projects strip */
.hp-projstrip{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:6px 0 14px}
.hp-projrow__top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hp-projrow__h{font-size:15.5px;font-weight:800;color:var(--gs-navy)}
.hp-projrow:hover .hp-projrow__h{color:var(--gs-teal)}
.hp-projrow__dom{font-size:12.5px;color:var(--ok-muted);font-weight:700}

/* final conversion panel (one navy panel; reuses established white-on-navy pattern) */
.hp-finalpanel{background:var(--gs-navy);border-radius:22px;padding:36px;text-align:center;color:#fff}
.hp-finalpanel .hp-h2{color:#fff;margin-bottom:20px}
.hp-finalprimary{display:flex;justify-content:center;margin:0 0 16px}
.hp-finalprimary .hp-btn{min-width:280px;max-width:100%}
.hp-finalsec{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.hp-finalitem{display:flex;flex-direction:column;align-items:center;gap:8px}
.hp-finalitem__d{font-size:13px;color:rgba(255,255,255,.9);margin:0;max-width:280px;line-height:1.45}
.hp-finalpanel .hp-btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}

/* ---- responsive: tablet/stack ---- */
@media (max-width:1000px){
  .hp-situ,.hp-situ--rev{grid-template-columns:1fr}
  .hp-situ--rev .hp-situ__feature,.hp-situ--rev .hp-situ__tiles{order:0}
  .hp-edito,.hp-founder__grid,.hp-mediacombo,.hp-casefeats{grid-template-columns:1fr}
  #outside,#inside{padding:44px 0}
}
/* ---- responsive: mobile 360/390 ---- */
@media (max-width:640px){
  .hp-situ__tiles,.hp-rail,.hp-crows,.hp-ytgrid,.hp-caserows,.hp-projstrip{grid-template-columns:1fr}
  .hp-feature{padding:22px 20px}
  .hp-feature__h{font-size:19px}
  .hp-proof{grid-template-columns:repeat(2,1fr)}
  .hp-proof__i{border-top:1px solid var(--ok-card-line);border-left:1px solid var(--ok-card-line)}
  .hp-proof__i:nth-child(-n+2){border-top:none}
  .hp-proof__i:nth-child(2n+1){border-left:none}
  .hp-finalpanel{padding:26px 20px}
  .hp-finalprimary .hp-btn{min-width:0;width:100%}
  .hp-finalsec{flex-direction:column;gap:14px}
  .hp-finalitem{width:100%}
}
