/*
 * Product, Founder e Pricing com a mesma direção da home (landing-brand.css): identidade da Diligence
 * (floresta, papel, sálvia, ferrugem) + energia de fintech: títulos pesados, blocos de cor arredondados,
 * números grandes, botões em pílula. Só estas três páginas. Movimento: transform/opacity, atrás de no-preference.
 */
body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]){--bp-r:28px;--bp-sage:#dce6df;--bp-blush:#f0d9cf;--bp-sand:#e9e5dc;--bp-accent:#a4503a;--bp-spring:cubic-bezier(.2,.7,.2,1)}
@supports (transition-timing-function:linear(0,1)){body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]){--bp-spring:linear(0,.101,.289,.476,.63,.746,.83,.887,.927,.953,.97,.981,.988,.992,.995,1)}}

/* Comum: tipografia pesada, pílulas, entrada */
body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) :is(h1,h2){font-weight:760;letter-spacing:-.055em}
body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) .button{border-radius:99px}
body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) .site-header .nav-cta{border-radius:99px;font-weight:760;min-height:44px}
body:is([data-page="product"],[data-page="pricing"]) .site-header .nav-cta{background:var(--forest);color:#fff;border:1px solid var(--forest);box-shadow:none}
body:is([data-page="product"],[data-page="pricing"]) .site-header .nav-cta:hover{background:var(--ink);color:#fff}
body[data-page="founder"] .site-header .nav-cta{background:#fff;color:var(--forest);border:1px solid #fff;box-shadow:none}
body[data-page="founder"] .site-header .nav-cta:hover{background:var(--bp-sage);color:var(--forest)}

/* ---- Product ---- */
body[data-page="product"] .product-grid{gap:16px;background:none;border:0}
body[data-page="product"] .product-tile{min-height:300px;padding:40px;border-radius:var(--bp-r);color:var(--forest)}
body[data-page="product"] .product-tile:nth-child(1){background:var(--bp-sage)}
body[data-page="product"] .product-tile:nth-child(2){background:var(--forest);color:#fff}
body[data-page="product"] .product-tile:nth-child(3){background:var(--bp-blush)}
body[data-page="product"] .product-tile:nth-child(4){background:var(--bp-sand)}
body[data-page="product"] .product-tile span{color:var(--bp-accent)}
body[data-page="product"] .product-tile:nth-child(2) span{color:#e3a58f}
body[data-page="product"] .product-tile h2{font-size:clamp(28px,3.4vw,44px);font-weight:760;letter-spacing:-.055em}
body[data-page="product"] .product-tile p{color:inherit;opacity:.78}
body[data-page="product"] .note-panel{border-radius:var(--bp-r);padding:32px 36px}
body[data-page="product"] .workflow{gap:16px;border:0}
body[data-page="product"] .workflow article{margin:0;padding:34px;border:0;border-radius:var(--bp-r)}
body[data-page="product"] .workflow article:nth-child(1){background:var(--bp-sage)}
body[data-page="product"] .workflow article:nth-child(2){background:var(--forest);color:#fff}
body[data-page="product"] .workflow article:nth-child(3){background:var(--bp-blush)}
body[data-page="product"] .workflow article:nth-child(2) p{color:rgba(255,255,255,.78)}
body[data-page="product"] .workflow article:nth-child(2) span{color:#e3a58f}
body[data-page="product"] .workflow h3{font-size:24px;font-weight:760;letter-spacing:-.045em}
body[data-page="product"] main>section:last-child{background:var(--forest);color:#fff;text-align:center}
body[data-page="product"] main>section:last-child .section-heading{margin-left:auto;margin-right:auto}
body[data-page="product"] main>section:last-child .eyebrow{color:#e3a58f}
body[data-page="product"] main>section:last-child .button-row{justify-content:center}
body[data-page="product"] main>section:last-child .button-dark{background:var(--bp-accent);border-color:var(--bp-accent);min-height:52px}

/* ---- Founder ---- */
body[data-page="founder"] .chapter-pill{border-radius:99px}
body[data-page="founder"] .founder-signature{border-radius:var(--bp-r)}
body[data-page="founder"] .founder-portrait img,body[data-page="founder"] .founder-profile img{border-radius:var(--bp-r);border:0;padding:0}
body[data-page="founder"] .founder-next-step{border:0;border-radius:var(--bp-r);box-shadow:none}
body[data-page="founder"] .big-statement{border-radius:var(--bp-r)}
body[data-page="founder"] .chapter-columns{gap:16px}
body[data-page="founder"] .chapter-columns article{min-height:220px;padding:30px;border-radius:var(--bp-r);color:var(--forest)}
body[data-page="founder"] .chapter-columns article:nth-child(1){background:var(--bp-sage)}
body[data-page="founder"] .chapter-columns article:nth-child(2){background:var(--forest);color:#fff}
body[data-page="founder"] .chapter-columns article:nth-child(3){background:var(--bp-blush)}
body[data-page="founder"] .chapter-columns article p{color:inherit;opacity:.78}
body[data-page="founder"] .chapter-columns article:nth-child(2) span{color:#e3a58f}
body[data-page="founder"] .chapter-columns span{color:var(--bp-accent)}
body[data-page="founder"] .chapter-columns h3{font-size:20px;font-weight:760}
body[data-page="founder"] .chapter-title,body[data-page="founder"] .founder-cover h1{font-weight:760}

/* ---- Pricing: três cartões de cor; o recomendado em papel sobre o verde ---- */
body[data-page="product"] .product-hero-actions{margin-top:22px;gap:8px 14px}
body[data-page="product"] .product-hero-actions .button{min-height:48px}
body[data-page="product"] .page-hero-content>.hero-demo{display:grid;gap:3px;margin:12px 0 0;font-size:14px;line-height:1.45}
body[data-page="product"] #app-screens{scroll-margin-top:90px}
@media(max-width:700px){
  body[data-page="product"] .page-hero-content{padding-bottom:40px}
  body[data-page="product"] .product-hero-actions .button{width:100%}
}

body[data-page="pricing"] .pricing-grid{gap:16px;border:0}
body[data-page="pricing"] .price-card,body[data-page="pricing"] .price-card:last-child{margin:0;min-height:0;padding:34px 30px 30px;border:0;border-radius:var(--bp-r);background:rgba(255,255,255,.08)}
body[data-page="pricing"] .price strong{font-size:clamp(56px,5.4vw,78px);font-weight:760;letter-spacing:-.06em}
body[data-page="pricing"] .price-card h2{font-size:30px;font-weight:760;letter-spacing:-.05em}
body[data-page="pricing"] .price-card .button{border-radius:99px;min-height:50px}
body[data-page="pricing"] .price-card.featured{background:#f6f3ed;color:var(--forest)}
body[data-page="pricing"] .price-card.featured .price-kicker{color:var(--bp-accent)}
body[data-page="pricing"] .price-card.featured .price span,body[data-page="pricing"] .price-card.featured .price-desc{color:#59635c}
body[data-page="pricing"] .price-card.featured ul,body[data-page="pricing"] .price-card.featured li{border-color:rgba(23,37,31,.14);color:var(--forest)}
body[data-page="pricing"] .price-card.featured .button{background:var(--bp-accent);border-color:var(--bp-accent);color:#fff}
body[data-page="pricing"] .price-badge{border-radius:99px;padding:6px 12px;background:var(--bp-accent)}
body[data-page="pricing"] .access-form input,body[data-page="pricing"] .access-form select,body[data-page="pricing"] .access-form textarea{padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
body[data-page="pricing"] .access-form .hidden{display:none}
body[data-page="pricing"] .legal-status{border-radius:18px}

/* Palavra no lugar do número («Custom», «Personalizzato»…): mais comprida nas traduções, não pode alargar o cartão */
body[data-page="pricing"] .price strong.price-word{font-size:clamp(34px,5vw,56px);letter-spacing:-.04em;overflow-wrap:anywhere}

@media(max-width:900px){
  body[data-page="product"] .product-grid,body[data-page="product"] .workflow,body[data-page="founder"] .chapter-columns{grid-template-columns:1fr}
}
@media(max-width:700px){
  body[data-page="product"] .product-tile,body[data-page="product"] .workflow article,body[data-page="pricing"] .price-card,body[data-page="founder"] .chapter-columns article{padding:28px 24px;min-height:0}
}

/* Movimento: os blocos entram com mola quando chegam ao ecrã (o JS existente já os marca com data-reveal) */
@media(prefers-reduced-motion:no-preference){
  body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) :is(.product-tile,.workflow article,.price-card,.chapter-columns article){transition:transform .5s var(--bp-spring)}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) :is(.product-tile,.workflow article,.price-card,.chapter-columns article):hover{transform:translateY(-6px)}
}

/* Alvos de toque de pelo menos 44px em telemóvel: resumos da FAQ e ligações do rodapé */
@media(max-width:700px){
  body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) .faq summary{min-height:44px;align-items:center}
  body:is([data-page="product"],[data-page="founder"],[data-page="pricing"]) footer nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
}
