:root {
  color: #083b61;
  background: #edf4f7;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; min-width: 320px; height: 100%; min-height: 100%; }
body { height: 100dvh; margin: 0; overflow: hidden; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #63d1e5; outline-offset: 3px; }

.site-shell { height: 100dvh; min-height: 100dvh; overflow: hidden; }
.home-view { display: grid; height: 100dvh; min-height: 0; grid-template-rows: auto minmax(0, .82fr) minmax(0, 1.78fr); overflow: hidden; padding: 20px max(24px, calc((100vw - 1200px) / 2)) 22px; background: radial-gradient(circle at 15% 0%, rgba(110, 215, 231, .22), transparent 28rem), linear-gradient(140deg, #f9fcfd 0%, #eaf4f8 100%); }
.site-header { display: flex; min-height: 51px; align-items: center; gap: 17px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; object-fit: contain; }
.brand--takan img { width: 94px; height: 45px; }
.brand--biotek img { width: 105px; height: 33px; }
.brand-divider { width: 1px; height: 26px; background: #c4dbe5; }

.intro { display: grid; align-self: center; gap: 6px; max-width: 600px; padding: 22px 0; }
.intro > span, .brochure-card__label { color: #48758e; font-size: .69rem; font-weight: 850; letter-spacing: .16em; line-height: 1.25; text-transform: uppercase; }
.intro h1 { margin: 0; color: #003e66; font-size: clamp(1.8rem, 3.8vw, 3.15rem); letter-spacing: -.055em; line-height: 1; }
.intro p { max-width: 420px; margin: 3px 0 0; color: #5a7688; font-size: .92rem; line-height: 1.45; }

.brochure-grid { display: grid; width: 100%; height: 70%; min-height: 0; align-self: end; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: stretch; gap: clamp(34px, 4.2vw, 62px); }
.brochure-card { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 25px; background: #003e66; box-shadow: 0 22px 48px rgba(0, 58, 91, .19); color: inherit; font: inherit; text-align: left; isolation: isolate; }
.brochure-card__visual { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translateX(var(--visual-shift, 0)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.brochure-card--knee .brochure-card__visual { --visual-shift: 7%; object-position: 50% 54%; }
.brochure-card--shoulder .brochure-card__visual { --visual-shift: -7%; }
.brochure-card__overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, rgba(0, 32, 56, .12), rgba(0, 32, 56, .1) 34%, rgba(0, 30, 52, .85) 100%); }
.brochure-card::after { position: absolute; z-index: -1; inset: 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 17px; content: ""; pointer-events: none; }
.brochure-card:hover .brochure-card__visual { transform: scale(1.035) translateX(var(--visual-shift, 0)); }
.brochure-card__content { display: flex; height: 100%; flex-direction: column; align-items: start; padding: 27px; color: #fff; }
.brochure-card__label { color: #d6eef3; }
.brochure-card__brand { width: 122px; height: 33px; margin-top: 20px; border-radius: 7px; padding: 6px 9px; background: rgba(255,255,255,.92); object-fit: contain; }
.brochure-card h2 { margin: auto 0 0; color: #fff; font-size: clamp(1.3rem, 2.55vw, 2.18rem); letter-spacing: -.045em; line-height: 1; white-space: nowrap; }

.whatsapp-button { position: fixed; z-index: 30; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: inline-flex; min-height: 51px; align-items: center; gap: 8px; border-radius: 16px; padding: 0 16px 0 13px; background: #1aab5b; color: #fff; box-shadow: 0 13px 27px rgba(0, 97, 49, .25); font-size: .83rem; font-weight: 800; }
.whatsapp-button:hover { background: #158f4c; }
.whatsapp-button svg { width: 27px; height: 27px; fill: currentColor; }

.reader-view { display: grid; height: 100dvh; grid-template-rows: 64px minmax(0, 1fr); background: #e8f0f4; }
.reader-view[hidden], .home-view[hidden] { display: none; }
.reader-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; border-bottom: 1px solid #c8dce6; padding: 10px max(18px, calc((100vw - 1200px) / 2)); background: #fff; }
.reader-header strong { color: #003e66; font-size: .88rem; text-align: center; }
.back-button { width: fit-content; min-height: 38px; border: 1px solid #bdd3df; border-radius: 10px; padding: 0 12px; background: #fff; color: #164e6e; font-size: .78rem; font-weight: 780; }
.back-button:hover { border-color: #83b6cd; background: #f2f9fb; }
.back-button span { margin-right: 6px; font-size: 1.04rem; }
.reader-header__spacer { display: block; }
#brochure-frame { width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 720px) {
  .home-view { display: flex; height: 100svh; flex-direction: column; padding: 15px 16px 16px; }
  .site-header { gap: 12px; }
  .brand--takan img { width: 84px; height: 39px; }
  .brand--biotek img { width: 88px; height: 28px; }
  .intro { padding: clamp(16px, 4vh, 29px) 4px clamp(14px, 2.5vh, 18px); }
  .intro h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .intro p { max-width: 315px; font-size: .8rem; }
  .brochure-grid { width: auto; height: auto; min-height: 0; align-self: stretch; flex: 1; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .brochure-card { height: 100%; border-radius: 20px; }
  .brochure-card__content { padding: 17px 20px; }
  .brochure-card__brand { width: 97px; height: 27px; margin-top: 9px; }
  .brochure-card h2 { font-size: clamp(1.16rem, 5.5vw, 1.5rem); }
  .whatsapp-button { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 52px; padding: 0 13px; border-radius: 17px; }
  .whatsapp-button span { display: none; }
  .reader-header { grid-template-columns: 1fr auto; padding: 9px 14px; }
  .reader-header strong { font-size: .73rem; text-align: right; }
  .reader-header__spacer { display: none; }
  .back-button { padding: 0 10px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
