/* Filipa Teixeira Biofeedback — design tokens & base styles */

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EK Roumald';
  src: url('../fonts/EKRoumald-Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EK Roumald';
  src: url('../fonts/EKRoumald-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root{
  --cream: #FAF9F7;
  --terracotta: #EFCBB1;
  --terracotta-deep: #E2B696;
  --charcoal: #3A3532;
  --ink: #1C1917;
  --ink-soft: rgba(28,25,23,.68);
  --ink-faint: rgba(28,25,23,.46);
  --rose: #D0B4B3;
  --rose-deep: #C39F9E;
  --white: #FFFFFF;
  --hairline: rgba(28,25,23,.12);
  --hairline-on-dark: rgba(250,249,247,.18);

  /* Official brand tokens, extracted from the live site */
  --brand-light: #F3E7BA;
  --accent: #DEC7A4;
  --card-bg: #FFFFFF;
  --card-border: #EFCBB1;
  --button-bg: #D0B4B3;
  --button-hover: #EFCBB1;
  --button-text: #1C1917;
  --shadow-color: rgba(208,180,183,.15);
  --header-bg: #FFFFFF;
  --footer-bg: #454B3F;
  --footer-text: #D0B4B3;
  --section-dark-text: #EFCBB1;
  --stone-300: #D6D3D1;
  --stone-500: #78716C;
  --stone-900: #1C1917;

  --font-display: 'EK Roumald', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
h1{ font-size: clamp(36px, 5.5vw, 64px); }
h2{ font-size: clamp(28px, 4vw, 42px); }
h3{ font-size: clamp(20px, 2.4vw, 26px); }
p{ margin: 0; }

.eyebrow{
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
  margin: 0 0 16px;
}

.section{ padding-block: 88px; }
.section--cream{ background: var(--cream); }
.section--terracotta{ background: var(--terracotta); }
.section--dark{ background: var(--charcoal); color: var(--cream); }
.section--white{ background: var(--white); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}
.btn--primary{ background: var(--button-bg); color: var(--button-text); box-shadow: 0 4px 10px var(--shadow-color); }
.btn--primary:hover{ background: var(--button-hover); box-shadow: 0 8px 18px var(--shadow-color); transform: scale(1.05); }
.btn--dark{ background: var(--ink); color: var(--cream); }
.btn--dark:hover{ background: #000; }
.btn--outline{ background: transparent; color: var(--ink); border: 1px solid var(--rose); }
.btn--outline:hover{ background: var(--terracotta); color: var(--ink); border-color: var(--terracotta); box-shadow: 0 2px 8px var(--shadow-color); }
.btn--outline .lucide-arrow-right, .btn--outline svg{ transition: transform .3s ease; }
.btn--outline:hover svg{ transform: translateX(3px); }
.section--dark .btn--outline{ color: var(--cream); border-color: var(--hairline-on-dark); }
.section--dark .btn--outline:hover{ background: var(--cream); color: var(--ink); }

/* Hero */
.hero{
  position:relative;
  display:flex; flex-direction:column;
  min-height:100vh;
  background:var(--cream);
}
.hero-media{
  position:relative; width:100%; height:60vh; flex-shrink:0;
}
.hero-media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 35%;
}
.hero-content{
  position:relative; z-index:1; width:100%;
  display:flex; flex-direction:column; justify-content:center;
  padding:32px 24px; background:var(--cream);
}
.hero-content-inner{ max-width:620px; margin:0 auto; }
.hero-accent{ color:var(--ink); }
@media (min-width:860px){
  .hero{ flex-direction:row; height:100vh; min-height:0; }
  .hero-media{ width:50%; height:100%; }
  .hero-content{ width:50%; padding:48px 64px; }
  .hero-content-inner{ margin:0; }
}
@media (min-width:1200px){
  .hero-content{ padding:48px 96px; }
}

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.site-header .logo{ height: 36px; }
.nav{ display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.nav a{ font-size: 13px; font-weight: 500; color: var(--stone-500); white-space: nowrap; letter-spacing: .03em; text-transform: uppercase; transition: color .15s ease; }
.nav a:hover{ color: var(--rose-deep); }
.btn--small{ padding: 8px 18px; font-size: 12.5px; }
.nav .btn{ margin-left: 6px; }
.nav .btn--outline{ border-color: var(--hairline); box-shadow: 0 1px 2px var(--shadow-color); }
.nav .btn--outline:hover{ background: var(--stone-300); border-color: var(--stone-300); box-shadow: none; }
.nav-toggle{ display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg{ width: 22px; height: 22px; }

@media (max-width: 1280px){
  .nav{
    position: fixed; inset: 0; top: 73px;
    background: var(--cream);
    flex-direction: column; align-items: flex-start;
    padding: 32px 24px; gap: 20px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav.is-open{ transform: translateX(0); }
  .nav a{ font-size: 18px; }
  .nav-toggle{ display: block; }
}

/* Footer */
.site-footer{ background: var(--footer-bg); color: var(--footer-text); padding-block: 64px 32px; }
.site-footer .footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(208,180,183,.18);
}
.site-footer h4{ font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; font-weight: 600; }
.site-footer ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a{ color: rgba(208,180,183,.8); font-size: 14px; transition: color .15s ease; }
.site-footer a:hover{ color: var(--footer-text); }
.site-footer a[aria-label]:hover{ color: var(--terracotta); }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(208,180,183,.55); flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px){
  .site-footer .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .site-footer .footer-grid{ grid-template-columns: 1fr; }
}
.site-footer a{ word-break: break-word; }

/* Cards */
.card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px var(--shadow-color), 0 1px 2px var(--shadow-color);
}

/* Whatsapp floating button */
.wa-float{
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  height: 56px; padding: 0 22px 0 18px; border-radius: 99px;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg{ width: 28px; height: 28px; fill: #fff; flex: none; }
.wa-float:hover{ filter: brightness(.95); }
@media (max-width: 520px){ .wa-float{ right: 14px; bottom: 14px; padding: 0 18px 0 14px; font-size: 14px; } }
.wa-hint{ margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }
.wa-hint a{ text-decoration: underline; font-weight: 600; color: var(--ink); }

/* utility */
.text-center{ text-align: center; }
.mx-auto{ margin-inline: auto; }
.stack{ display: flex; flex-direction: column; gap: 16px; }
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3{ display: grid; grid-template-columns: repeat(3,1fr); }
.grid-4{ display: grid; grid-template-columns: repeat(4,1fr); }
@media (max-width: 760px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .grid-4{ grid-template-columns: 1fr; }
}
html, body{ overflow-x: hidden; }
.contra-grid{ grid-template-columns: repeat(2,1fr); }
@media (max-width: 560px){ .contra-grid{ grid-template-columns: 1fr; } }
@media (max-width: 860px){
  #invisible-pain .container, #technology .container{ grid-template-columns: 1fr !important; }
}

.product-showcase{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  padding: 56px 32px;
  background: radial-gradient(circle at 50% 40%, #F7E7DF 0%, var(--terracotta) 48%, var(--terracotta-deep) 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.product-showcase::before{
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.product-frame{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.product-frame img{
  width: 100%;
  display: block;
  filter: drop-shadow(0 24px 28px rgba(60,30,20,.28));
}

.pack-card{ display: flex; flex-direction: column; height: 100%; }
.pack-card .pack-footer{ margin-top: auto; padding-top: 16px; }

.b2b-card{
  background: rgba(250,249,247,.05);
  border: 1px solid rgba(250,249,247,.12);
  border-top: 2px solid var(--rose);
  border-radius: 16px;
  padding: 28px 24px;
}
.b2b-stat{
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--rose);
}
.b2b-icon{
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(208,180,179,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose); margin-bottom: 16px;
}
.b2b-model{
  background: rgba(250,249,247,.05);
  border: 1px solid rgba(250,249,247,.12);
  border-top: 2px solid var(--rose);
  border-radius: 16px;
  padding: 28px 24px;
}
.b2b-model h4{ font-size: 17.5px; }
.b2b-model p{ margin-top: 10px; line-height: 1.55; }
