/* FINOWA Design System v2 — homepage reference implementation */
.finowa2.ds2-home{
  --ds2-section:72px;
  --ds2-ink:#102a43;
  --ds2-green:#0f6b50;
  --ds2-green-soft:#edf5f1;
  --ds2-cream:#f7f3eb;
  --ds2-line:#e4e0d8;
  --ds2-muted:#647382;
  background:#fbfaf6;
}

.ds2-home .ds2-shell{width:min(1120px,calc(100% - 40px));margin-inline:auto}
.ds2-home .ds2-section{padding:var(--ds2-section) 0}
.ds2-home .ds2-kicker{margin:0 0 8px;color:var(--ds2-green);font-size:11px;font-weight:800;letter-spacing:.16em}
.ds2-home .ds2-section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.ds2-home .ds2-section-head h2{margin:0;font-family:var(--finowa2-font-serif);font-size:clamp(28px,3.4vw,38px);line-height:1.35}
.ds2-home .ds2-section-head p{max-width:640px;margin:8px 0 0;color:var(--ds2-muted);font-size:15px;line-height:1.8}
.ds2-home .ds2-more{color:var(--ds2-green);font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}

/* Header */
.ds2-home .finowa2-nav{background:rgba(255,255,255,.94);border-bottom:1px solid var(--ds2-line)}
.ds2-home .finowa2-brand{font-size:24px;letter-spacing:.13em}
.ds2-home .finowa2-brand small{display:none}

/* Hero */
.ds2-home .ds2-hero{padding:52px 0 58px;background:linear-gradient(135deg,#f8f4eb 0%,#fff 55%,#edf4f0 100%);border-bottom:1px solid var(--ds2-line)}
.ds2-home .ds2-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:48px;align-items:center}
.ds2-home .ds2-hero h1{margin:0;font-family:var(--finowa2-font-serif);color:var(--ds2-ink);font-size:clamp(44px,4.2vw,56px);line-height:1.28;letter-spacing:-.035em}
.ds2-home .ds2-hero h1 span{display:block;white-space:nowrap}
.ds2-home .ds2-hero-lead{max-width:650px;margin:22px 0 0;color:#42576a;font-size:16px;line-height:1.9}
.ds2-home .ds2-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.ds2-home .ds2-hero-media{margin:0;overflow:hidden;aspect-ratio:4/3;border-radius:22px;border:1px solid var(--ds2-line);background:radial-gradient(circle at 50% 48%,#fff 0 24%,#edf5f1 25% 52%,#f8f4eb 53% 100%);box-shadow:0 18px 45px rgba(20,42,67,.08)}
.ds2-home .ds2-hero-decision-visual{position:relative;min-height:330px}
.ds2-home .ds2-hero-decision-visual:before,.ds2-home .ds2-hero-decision-visual:after{content:"";position:absolute;inset:50% auto auto 50%;width:62%;height:1px;background:#cddbd4;transform-origin:left center;z-index:0}
.ds2-home .ds2-hero-decision-visual:before{transform:rotate(27deg)}
.ds2-home .ds2-hero-decision-visual:after{transform:rotate(-27deg)}
.ds2-home .ds2-visual-core{position:absolute;left:50%;top:50%;z-index:2;display:grid;place-items:center;width:130px;height:130px;padding:18px;border-radius:50%;background:#102a43;color:#fff;transform:translate(-50%,-50%);box-shadow:0 14px 32px rgba(16,42,67,.16);text-align:center}
.ds2-home .ds2-visual-core strong{font-size:18px;letter-spacing:.12em}
.ds2-home .ds2-visual-core span{font-size:11px;color:#dce8e2}
.ds2-home .ds2-visual-node{position:absolute;z-index:2;display:grid;grid-template-columns:36px auto;align-items:center;gap:8px;min-width:108px;padding:11px 14px;border:1px solid #d7e2dc;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(16,42,67,.06);color:var(--ds2-ink);font-size:13px;font-weight:800}
.ds2-home .ds2-visual-node img{width:30px;height:30px}
.ds2-home .ds2-visual-node.is-qualification{left:7%;top:15%}
.ds2-home .ds2-visual-node.is-career{right:7%;top:15%}
.ds2-home .ds2-visual-node.is-money{left:4%;bottom:13%}
.ds2-home .ds2-visual-node.is-compare{right:4%;bottom:13%}
.ds2-home .ds2-visual-node.is-tools{left:50%;bottom:4%;transform:translateX(-50%)}

/* Trust strip */
.ds2-home .ds2-trust{background:#fff;border-bottom:1px solid var(--ds2-line)}
.ds2-home .ds2-trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.ds2-home .ds2-trust-item{padding:27px 24px;border-right:1px solid var(--ds2-line)}
.ds2-home .ds2-trust-item:last-child{border-right:0}
.ds2-home .ds2-trust-item b{display:block;color:var(--ds2-ink);font-size:15px;margin-bottom:7px;line-height:1.5}
.ds2-home .ds2-trust-item p{margin:0;color:var(--ds2-muted);font-size:13px;line-height:1.7}

/* Themes: icons, not repeated photos */
.ds2-home .ds2-themes{background:#fbfaf6}
.ds2-home .ds2-theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.ds2-home .ds2-theme-card{display:flex;min-height:188px;flex-direction:column;padding:22px;border:1px solid var(--ds2-line);border-radius:16px;background:#fff;color:inherit;text-decoration:none;transition:.18s ease}
.ds2-home .ds2-theme-card:hover{transform:translateY(-2px);border-color:#99b7aa;box-shadow:0 10px 26px rgba(16,42,67,.06)}
.ds2-home .ds2-theme-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:24px;border-radius:14px;background:var(--ds2-green-soft)}
.ds2-home .ds2-theme-icon img{width:30px;height:30px}
.ds2-home .ds2-theme-card h3{margin:0 0 7px;font-size:20px}
.ds2-home .ds2-theme-card p{margin:0;color:var(--ds2-muted);font-size:12px;line-height:1.65}
.ds2-home .ds2-theme-card em{margin-top:auto;padding-top:18px;color:var(--ds2-green);font-size:17px;font-style:normal}

/* Decision flow: no stack of generic cards */
.ds2-home .ds2-decision{background:#eef4f1;border-block:1px solid #dce8e2}
.ds2-home .ds2-flow{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #cddbd4;border-bottom:1px solid #cddbd4}
.ds2-home .ds2-flow-step{position:relative;padding:24px 32px 24px 0}
.ds2-home .ds2-flow-step+.ds2-flow-step{padding-left:32px;border-left:1px solid #cddbd4}
.ds2-home .ds2-flow-step small{color:var(--ds2-green);font-size:11px;font-weight:900;letter-spacing:.12em}
.ds2-home .ds2-flow-step h3{margin:8px 0 5px;font-size:21px}
.ds2-home .ds2-flow-step p{margin:0;color:#526874;font-size:13px;line-height:1.75}
.ds2-home .ds2-flow-step a{display:inline-flex;margin-top:10px;color:var(--ds2-green);font-size:13px;font-weight:800;text-decoration:none}

/* Latest: one feature + compact icon list */
.ds2-home .ds2-latest-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:24px;align-items:start}
.ds2-home .ds2-feature-article{display:grid;grid-template-columns:180px 1fr;min-height:230px;overflow:hidden;border:1px solid var(--ds2-line);border-radius:18px;background:#fff;color:inherit;text-decoration:none}
.ds2-home .ds2-feature-visual{display:grid;place-items:center;background:linear-gradient(145deg,#edf5f1,#f7f3eb)}
.ds2-home .ds2-feature-visual img{width:74px;height:74px}
.ds2-home .ds2-feature-body{padding:28px}
.ds2-home .ds2-category{display:inline-flex;align-items:center;gap:6px;color:var(--ds2-green);font-size:11px;font-weight:900;letter-spacing:.08em}
.ds2-home .ds2-feature-body h3{margin:12px 0 12px;font-family:var(--finowa2-font-serif);font-size:24px;line-height:1.55}
.ds2-home .ds2-feature-body p{margin:0;color:var(--ds2-muted);font-size:13px;line-height:1.75}
.ds2-home .ds2-feature-body time{display:block;margin-top:18px;color:#8a959f;font-size:11px}
.ds2-home .ds2-latest-list{border-top:1px solid var(--ds2-line)}
.ds2-home .ds2-latest-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 2px;border-bottom:1px solid var(--ds2-line);color:inherit;text-decoration:none}
.ds2-home .ds2-latest-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--ds2-green-soft)}
.ds2-home .ds2-latest-icon img{width:25px;height:25px}
.ds2-home .ds2-latest-row h3{margin:2px 0;font-size:14px;line-height:1.55}
.ds2-home .ds2-latest-row time{color:#8a959f;font-size:10px}
.ds2-home .ds2-latest-row i{color:var(--ds2-green);font-style:normal}

/* First guide */
.ds2-home .ds2-guide{background:#fff;border-top:1px solid var(--ds2-line)}
.ds2-home .ds2-guide-grid{display:grid;grid-template-columns:1.1fr repeat(3,1fr);gap:0;border:1px solid var(--ds2-line);border-radius:18px;overflow:hidden}
.ds2-home .ds2-guide-intro,.ds2-home .ds2-guide-link{padding:24px}
.ds2-home .ds2-guide-intro{background:#f7f3eb}
.ds2-home .ds2-guide-intro h2{margin:7px 0 8px;font-size:26px}
.ds2-home .ds2-guide-intro p{margin:0;color:var(--ds2-muted);font-size:13px;line-height:1.7}
.ds2-home .ds2-guide-link{display:flex;flex-direction:column;border-left:1px solid var(--ds2-line);color:inherit;text-decoration:none}
.ds2-home .ds2-guide-link img{width:30px;height:30px;margin-bottom:24px}
.ds2-home .ds2-guide-link strong{font-size:15px}
.ds2-home .ds2-guide-link span{margin-top:6px;color:var(--ds2-muted);font-size:12px;line-height:1.6}

/* Footer brand consistency */
.ds2-home .site-footer .ds2-footer-brand{display:block;color:#fff;font-size:24px;font-weight:900;letter-spacing:.14em;margin-bottom:10px}

@media(max-width:1100px){
  .ds2-home .ds2-hero-grid{grid-template-columns:1fr;gap:34px}
  .ds2-home .ds2-hero-media{aspect-ratio:16/7;max-height:360px}
}

@media(max-width:920px){
  .ds2-home{--ds2-section:58px}
  .ds2-home .ds2-hero-grid,.ds2-home .ds2-latest-layout{grid-template-columns:1fr}
  .ds2-home .ds2-hero-media{max-height:320px}
  .ds2-home .ds2-trust-grid{grid-template-columns:1fr 1fr}
  .ds2-home .ds2-trust-item:nth-child(2){border-right:0}
  .ds2-home .ds2-trust-item:nth-child(-n+2){border-bottom:1px solid var(--ds2-line)}
  .ds2-home .ds2-theme-grid{grid-template-columns:repeat(3,1fr)}
  .ds2-home .ds2-guide-grid{grid-template-columns:1fr 1fr}
  .ds2-home .ds2-guide-link:nth-child(2){border-left:0}
  .ds2-home .ds2-guide-link{border-top:1px solid var(--ds2-line)}
}

@media(max-width:640px){
  .ds2-home{--ds2-section:48px}
  .ds2-home .ds2-shell{width:calc(100% - 28px)}
  .ds2-home .finowa2-nav-inner{min-height:64px}
  .ds2-home .finowa2-nav-links{display:none}
  .ds2-home .finowa2-nav-actions .finowa2-search-link{display:none}
  .ds2-home .finowa2-nav-actions .finowa2-button{min-height:40px;padding:9px 14px;font-size:12px}
  .ds2-home .ds2-hero{padding:38px 0 42px}
  .ds2-home .ds2-hero-grid{gap:30px}
  .ds2-home .ds2-hero h1{font-size:36px;line-height:1.28}
  .ds2-home .ds2-hero h1 .ds2-hero-line1{font-size:min(7.5vw,30px);white-space:nowrap}
  .ds2-home .ds2-hero-lead{font-size:16px;line-height:1.8}
  .ds2-home .ds2-hero-actions{display:grid;grid-template-columns:1fr 1fr}
  .ds2-home .ds2-hero-actions .finowa2-button{min-height:46px;padding:10px 12px}
  .ds2-home .ds2-hero-actions .ds2-article-link{grid-column:1/-1;background:transparent;border:0;box-shadow:none;color:var(--ds2-green);justify-content:flex-start;padding-left:0}
  .ds2-home .ds2-hero-media{aspect-ratio:16/9;border-radius:16px}
  .ds2-home .ds2-hero-decision-visual{min-height:210px}
  .ds2-home .ds2-visual-core{width:88px;height:88px;padding:10px}
  .ds2-home .ds2-visual-core strong{font-size:13px}
  .ds2-home .ds2-visual-core span{font-size:8px}
  .ds2-home .ds2-visual-node{grid-template-columns:25px auto;gap:5px;min-width:78px;padding:7px 8px;border-radius:10px;font-size:10px}
  .ds2-home .ds2-visual-node img{width:22px;height:22px}
  .ds2-home .ds2-visual-node.is-qualification{left:4%;top:10%}
  .ds2-home .ds2-visual-node.is-career{right:4%;top:10%}
  .ds2-home .ds2-visual-node.is-money{left:3%;bottom:9%}
  .ds2-home .ds2-visual-node.is-compare{right:3%;bottom:9%}
  .ds2-home .ds2-visual-node.is-tools{bottom:2%}
  .ds2-home .ds2-trust-item{padding:20px 16px}
  .ds2-home .ds2-trust-item b{font-size:14px}
  .ds2-home .ds2-trust-item p{font-size:12px;line-height:1.65}
  .ds2-home .ds2-section-head{display:block;margin-bottom:22px}
  .ds2-home .ds2-section-head h2{font-size:28px}
  .ds2-home .ds2-section-head p{font-size:14px}
  .ds2-home .ds2-section-head .ds2-more{display:inline-block;margin-top:14px}
  .ds2-home .ds2-theme-grid{grid-template-columns:1fr 1fr;gap:10px}
  .ds2-home .ds2-theme-card{min-height:164px;padding:18px}
  .ds2-home .ds2-theme-card:nth-child(5){grid-column:1/-1;min-height:138px}
  .ds2-home .ds2-theme-icon{width:42px;height:42px;margin-bottom:18px}
  .ds2-home .ds2-theme-icon img{width:26px;height:26px}
  .ds2-home .ds2-theme-card h3{font-size:18px}
  .ds2-home .ds2-theme-card p{font-size:12px}
  .ds2-home .ds2-flow{grid-template-columns:1fr}
  .ds2-home .ds2-flow-step,.ds2-home .ds2-flow-step+.ds2-flow-step{display:grid;grid-template-columns:58px minmax(0,1fr);column-gap:12px;padding:18px 0;border-left:0;border-bottom:1px solid #cddbd4}
  .ds2-home .ds2-flow-step:last-child{border-bottom:0}
  .ds2-home .ds2-flow-step small{grid-column:1;grid-row:1/4;align-self:start;padding-top:3px;font-size:10px}
  .ds2-home .ds2-flow-step h3{grid-column:2;margin:0 0 3px;font-size:18px}
  .ds2-home .ds2-flow-step p{grid-column:2;font-size:12px;line-height:1.6}
  .ds2-home .ds2-flow-step a{grid-column:2;margin-top:7px;font-size:12px}
  .ds2-home .ds2-feature-article{grid-template-columns:92px 1fr;min-height:0}
  .ds2-home .ds2-feature-visual img{width:50px;height:50px}
  .ds2-home .ds2-feature-body{padding:20px 18px}
  .ds2-home .ds2-feature-body h3{font-size:19px;line-height:1.5}
  .ds2-home .ds2-feature-body p{display:none}
  .ds2-home .ds2-latest-row{grid-template-columns:42px minmax(0,1fr) 12px}
  .ds2-home .ds2-guide-grid{grid-template-columns:1fr}
  .ds2-home .ds2-guide-link{border-left:0;border-top:1px solid var(--ds2-line);display:grid;grid-template-columns:34px 1fr;gap:14px}
  .ds2-home .ds2-guide-link img{margin:0}
}
