/* Vitrine de cursos · Andreia Aguilar
   Layout: PC em duas colunas (apresentação fixa à esquerda, cards à direita); celular em coluna única. */
:root {
  --bg: #0d0907;
  --surface: #19110d;
  --line: rgba(240, 197, 151, .14);
  --line-2: rgba(240, 197, 151, .28);
  --ivory: #f3e8da;
  --muted: #b9a493;
  --copper: #d08a52;
  --copper-2: #f0c597;
  --copper-3: #fbe7cf;
  --gold-label: #dca273;
  --ink: #24170f;
  --grad: linear-gradient(100deg, #c26f3a 0%, #e0a067 34%, #f5d3aa 68%, #fdeedb 100%);
  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--copper-2); outline-offset: 4px; border-radius: 6px; }
em { font-style: italic; }

.page { display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--gold-label); }
.eyebrow::before { content: ""; width: 8px; height: 13px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; }
.grad-text, .name em, .h2 em, .pc-title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .06em .1em .14em .02em; margin: -.06em -.1em -.14em -.02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* apresentação */
.intro { position: relative; isolation: isolate; overflow: hidden; padding: 40px var(--gutter) 34px; border-bottom: 1px solid var(--line); }
.bgfx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgfx > span { position: absolute; display: block; }
.fx-img { inset: -6% 0; background: url("../img/tex-estudio-v.webp") center / cover; }
.fx-vig { inset: 0; background: radial-gradient(130% 100% at 50% 40%, transparent 40%, rgba(5, 3, 2, .8)); }
.intro-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 12px; max-width: 520px; margin: 0 auto; }
.avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 2px solid var(--copper); box-shadow: 0 0 0 6px rgba(208, 138, 82, .14), 0 20px 40px -20px rgba(0, 0, 0, .9); margin-bottom: 6px; }
.name { font-family: var(--f-display); font-size: clamp(40px, 10vw, 64px); line-height: 1; letter-spacing: -.01em; font-weight: 350; }
.bio { color: var(--muted); max-width: 40ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 10px; border-block: 1px solid var(--line); }
.stats li { display: grid; gap: 2px; padding: 14px 6px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--copper-2); }
.stats span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.intro-photo { display: none; }

/* lista */
.list { padding: 40px var(--gutter) 30px; }
.list-head { display: grid; gap: 8px; text-align: center; margin: 0 auto 44px; max-width: 560px; }
.h2 { font-family: var(--f-display); font-size: clamp(30px, 7.4vw, 44px); line-height: 1.08; font-weight: 350; }
.list-head p { color: var(--muted); font-size: 14.5px; }
.cards { display: grid; gap: 40px; max-width: 640px; margin: 0 auto; }

.pcard { --lift: 0px; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 34%; align-items: end; min-height: 200px; border-radius: 20px; background: linear-gradient(125deg, #2e1f15 0%, #1b120d 55%, #150e0a 100%); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .95); transition: border-color .4s ease, box-shadow .4s ease, translate .4s cubic-bezier(.2, .7, .2, 1); translate: 0 var(--lift); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(70% 90% at 85% 100%, rgba(208, 138, 82, .26), transparent 70%); }
.pcard:hover { --lift: -4px; border-color: var(--line-2); box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(240, 197, 151, .12); }
.pc-txt { display: grid; gap: 10px; align-content: start; padding: 24px 0 24px 24px; position: relative; z-index: 2; }
.pill { justify-self: start; padding: 4px 10px; border-radius: 4px; background: var(--copper-3); color: var(--ink); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.pc-title { font-family: var(--f-display); font-size: clamp(25px, 6.2vw, 32px); line-height: 1.06; letter-spacing: -.005em; }
.pc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.pc-price strong { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--copper-2); line-height: 1; }
.pc-price span { font-size: 12.5px; color: var(--muted); }
.pc-art { position: relative; align-self: stretch; z-index: 1; }
.pc-art img { position: absolute; right: -4%; bottom: 0; width: 124%; max-width: none; height: auto; max-height: 124%; object-fit: contain; object-position: bottom right; transition: translate .6s cubic-bezier(.2, .7, .2, 1), scale .6s cubic-bezier(.2, .7, .2, 1); transform-origin: bottom center; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); border-bottom-right-radius: 20px; }
.pcard:hover .pc-art img { translate: 0 -6px; scale: 1.03; }
.pc-go { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 9, 7, .55); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: background .3s ease; }
.pc-go svg { width: 18px; height: 18px; fill: none; stroke: var(--copper-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard:hover .pc-go { background: var(--copper-2); }
.pcard:hover .pc-go svg { stroke: var(--ink); }
.pc-go-label { width: auto; height: 38px; padding: 0 14px 0 16px; border-radius: 99px; display: inline-flex; gap: 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--grad); border: 0; }
.pc-go-label svg { stroke: var(--ink); }

.pcard-hi { border-color: var(--line-2); }
.pcard-master { min-height: 260px; background: linear-gradient(125deg, #6a4126 0%, #3b2416 45%, #1c120c 100%); border: 1px solid rgba(240, 197, 151, .42); }
.pcard-master::after { content: ""; position: absolute; inset: 8px; border-radius: 14px; border: 1px solid rgba(240, 197, 151, .22); pointer-events: none; }
.pcard-master .pc-title { font-size: clamp(26px, 6.4vw, 36px); }
.pcard-master .pc-price strong { font-size: 32px; }
.pcard-master .pc-desc { color: #d9c3ae; }

/* livro do e-book */
.pc-book { display: grid; place-items: end center; padding: 0 18px 22px 0; perspective: 800px; }
.book { position: relative; width: min(118px, 100%); aspect-ratio: 3 / 4.3; border-radius: 3px 8px 8px 3px; padding: 12px 10px; display: grid; align-content: space-between; text-align: left; background: linear-gradient(150deg, #f6e8d6 0%, #ead2b5 60%, #dcb994 100%); color: var(--ink); box-shadow: inset 6px 0 0 rgba(36, 23, 15, .18), 14px 18px 30px -12px rgba(0, 0, 0, .9); transform: rotateY(-18deg) rotateZ(2deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .book { transform: rotateY(-6deg) rotateZ(0deg) translateY(-6px); }
.book-k { font-size: 7.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #9a5a2c; }
.book-t { font-family: var(--f-display); font-size: 16px; line-height: 1.02; }
.book-t em { color: #9c4f22; }
.book-a { font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; color: #6b5546; }

.foot { margin: 60px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 4px; text-align: center; max-width: 640px; font-size: 12.5px; color: #8c7a6c; padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-name { font-family: var(--f-display); font-size: 22px; color: var(--ivory); }

@media (max-width: 560px) {
  .pc-go-label { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .pc-go-label span { display: none; }
}
@media (max-width: 420px) {
  .pcard { grid-template-columns: minmax(0, 1fr) 30%; }
  .pc-txt { padding: 20px 0 20px 18px; }
  .pc-desc { font-size: 13px; }
}

/* PC: duas colunas */
@media (min-width: 980px) {
  .page { grid-template-columns: minmax(380px, 42%) minmax(0, 1fr); min-height: 100vh; }
  .intro { position: sticky; top: 0; height: 100vh; border-bottom: 0; border-right: 1px solid var(--line); padding: clamp(40px, 5vh, 64px) clamp(32px, 3.4vw, 56px) 0; display: flex; }
  .fx-img { background-image: url("../img/tex-estudio-v.webp"); }
  .intro-in { justify-items: start; text-align: left; margin: 0; max-width: 520px; align-content: start; width: 100%; }
  .avatar { width: 84px; height: 84px; }
  .name { font-size: clamp(52px, 4.6vw, 76px); }
  .stats li:first-child { padding-left: 0; }
  .stats li { padding: 14px 14px; }
  .intro-photo { display: block; position: absolute; z-index: -1; right: calc(clamp(32px, 3.4vw, 56px) * -1); bottom: 0; width: min(72%, 400px); pointer-events: none; }
  .intro-photo img { width: auto; max-width: 100%; max-height: 50vh; margin-left: auto; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .intro-in { position: static; }
  .list { padding: clamp(56px, 8vh, 96px) clamp(32px, 4vw, 72px) 40px; }
  .list-head { text-align: left; margin: 0 0 56px; max-width: 640px; }
  .cards { margin: 0; max-width: 720px; gap: 44px; }
  .foot { margin-left: 0; text-align: left; max-width: 720px; }
  .pcard { grid-template-columns: minmax(0, 1fr) 36%; min-height: 220px; }
  .pc-txt { padding: 28px 0 28px 30px; }
  .pc-title { font-size: clamp(28px, 2.4vw, 34px); }
  .pcard-master { min-height: 290px; }
  .pcard-master .pc-title { font-size: clamp(30px, 2.6vw, 40px); }
  .book { width: 132px; }
}
@media (min-width: 980px) and (max-height: 760px) {
  .intro-photo { width: min(56%, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
